The 12 characters, “012345678901” are print data.
A
“CHR$ (0)” must always be used as the last command (representing end of data.)
Using the drawer
350 PRINT #l, CHR$(27); “P”; CHR$(0); CHR$( 10); CHR$( 100);
The “p” generates a specified pulse; Refer to ESC pm n1 n2.
In line 350, the module terminal of the drawer
How to read the status of the drawer
360 PRINT #l, CHR$(27); “u”; CHR$(0); 370 A$ = INPUT!$(l, #l)
380 IF A$ = CHR$(0) THEN PRINT “DRW: L”
380 IF A$ = CHR$( 1) THEN PRINT “DRW: H”
The “u” command in line 360 transmits the status of the drawer
370 receives the data from the printer through
380 and 390 display the status of the drawer
Close
400 CLOSE #l
RS-232C must be closed using this command.
57