Using the drawer kick
350 PRINT #1, CHR$(27);"p";CHR$(O);CHR$(10);CHR$(100);
The “p” generates a specified pulse;
Refer to ESC p m n1 n2.
In line 350, the module terminal of the drawer kick outputs a 20-ms
pulse followed by a 200-ms wait.
How to read the status of the drawer kick
360 PRINT #1, CHR$(27);"u";CHR$(O);
370 A$=INPUT$(1, #1)
380 IF A$=CHR$(0) THEN PRINT "DRW:L"
390 IF A$=CHR$(1) THEN PRINT "DRW:H"
The “u” command in line 360 transmits the status of the drawer kick to
printer. Refer to ESC u n.
370 recieves the data from the printer through RS-232C.
380 and 390 display the status of the drawer kick on the CRT.
Close RS-232C
400 CLOSE #1
RS-232C must be closed by the computer using this command.
-56-