I have a dispenser (reported by MilanDiag.exe as a "MCL Serial Compact Hopper") in my system that the acceptor can route coins to if told to. When the program starts DefaultPath is initialised to be the main cash box, Path is the 5p Dispenser/Hopper and PathSwitchLevel is set to be the maximum capacity defined in the dispenser specifications (about 600) + PathCount - the current coin count in the dispenser. The problem is my dispenser always seems to state there are 0 coins in it, even if the coinLevel status is HIGH (and there are actually lots of coins in it).
Code: Select all
[code]myCoin.Path = ROUTE_TO_FIVE_DISP;
myCoin.DefaultPath = ROUTE_TO_MAIN_CASH_BOX;
myCoin.PathSwitchLevel = FIVE_PENCE_SWITCH_LEVEL + myCoin.PathCount - fiveDispenser.CoinCount;I guess all that stuff about routing the coins is kinda irrelevant, the question/problem is why is fiveDispenser.CoinCount always 0?
My thoughts are that
a) the dispenser doesn't report this value.
or
b) i've misunderstood how this value should be used.
In the case that a is true, how best can I achieve the coin routing described above (when the hopper gets full route to the main cash box)?
Thanks in advance.