Special Operation
The KSI interface can also be used in PULSE MODE - similar in function to the M-S Cash
Drawer "KC" type interface. In PULSE MODE the drawer will respond to any data at any
baud rate without the need to determine a specific character at a specific baud rate.
Switch: 1 2 3 4 5 6 7 8 9 10
Pulse Mode: 0 0 1 1 1 1 1 0 1 1
Drawer Open Signal
The Drawer Open Signal can be read by software as
R
ing
I
ndicate
(pin 22 on the
DB25 connector). The signal is HIGH when the drawer is OPEN and LOW when the
drawer is CLOSED. The following example shows how to read status from QBASIC on a
compatible PC.
10 A1 = INP(&H3FE) AND (&H40) IF A1> 0 THEN PRINT "Drawer is open" (for COM1:)
10 A1 = INP(&H2FE) AND (&H40) IF A1> 0 THEN PRINT "Drawer is open" (for COM2:)
Testing
The factory settings are: ^G (BEL), Single Character; 9600 Baud
Switch: 1 2 3 4 5 6 7 8 9 10
1 1 1 0 0 0 0 1 0 0
To test the interface on COM1:, enter the following at any DOS prompt:
•
A:> MODE COM1:9600,n,8,1
•
A:> ECHO > COM1: ^G
•
^G = Hold the <Ctrl> key while pressing G
test #1
The interface requires that PARITY is set to NONE, Data bits are set to 8 with 1 Stop bit
Troubleshooting
NOTE: The switch settings are only read immediately after power is applied. It is
necessary to remove power for 5 seconds after changing the switch settings.
All tests assume operation in Dead-End mode. In Parasite mode handshaking is handled
by the attached device (i.e. a printer). If no such device is attached, the interface must
use the Dead-End cable configuration.
1.) The green LED should illuminate when the power adaptor is plugged in and
powered. If the LED does not illuminate, check the adaptor and your power
strip.
2.) The green LED should flash momentarily when the interface receives data
Watch the LED carefully as the opening character is sent using the DOS test.