Reassign dispenser value

Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.

Moderators: aardvark, davebush, Admin

Post Reply
markh51
Posts: 15
Joined: Mon Nov 12, 2007 9:09 pm

Reassign dispenser value

Post by markh51 »

When we reassign dispenser values should we wait any length of time before we check the status to see if it has been updated ? I ask because on trials we have had problems with the status not always returning with DISPENSER_VALUE_REASSIGNED.
davebush
Posts: 490
Joined: Fri Oct 22, 2004 12:20 pm

Post by davebush »

Hi,

The times you wait are not clearly defined. The guaranteed sequence is that DISPENSER_REASSIGN_VALUE is set before the call to WriteDispenserDetails returns.

After this call, at some time in the future, the Paylink unit will update its internal details and set the status to DISPENSER_VALUE_REASSIGNED, at some further time in the future this value will be returned to the PC.

The time for this round trip is indeterminate, but in any normal system the value should have returned to the PC in under a second.

As an aside, following the DISPENSER_REASSIGN_VALUE setting, any subsequent Payout call will actually use the new value.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
markh51
Posts: 15
Joined: Mon Nov 12, 2007 9:09 pm

Post by markh51 »

so are you saying we dont have to check that the value was reassigned ? is it enough to just reassign the value then do a payout ?
davebush
Posts: 490
Joined: Fri Oct 22, 2004 12:20 pm

Post by davebush »

So far as I can tell there is no need to actually check for the new status.

Having checked the code, there is a minor problem in returning the status of DISPENSER_VALUE_REASSIGNED. If the hopper runs a periodic self test before the PC checks the value, DISPENSER_VALUE_REASSIGNED will be replaced by PAY_FINISHED.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply