Page 1 of 1

How would I open a cash draw using CAPITAL?

Posted: Fri Nov 11, 2011 4:23 pm
by Nat
How would I open a cash draw using CAPITAL?

Posted: Fri Nov 11, 2011 4:23 pm
by COBS Tech Support
This script sends the character "U" to the COM port of a cash draw set to 9600/N/8/1

This approach should work on later versions of Windows.

According to this table:

http://www.robelle.com/smugbook/ascii.html

^G (control+G) = 7

So change the CoMWrite() line below to read:

ComWrite("CashDraw", CHR(7))

Also note that it won't work if the 9600/N/8/1 settings are different for the cash draw in question. There should be a booklet or pamphlet that came with the draw that tells you what the com parameters are.

***

If ComOpen("CashDraw", "COM1", 9600, "N", 8, 1)
ComWrite("CashDraw", "UUUUU")
ComClose("CashDraw")
Endif