Chapter 6: Commands 7197 Owner’s Guide
February 2002
142
An application using the DLE sequence must send ENQ within 100 milliseconds of DLE or
the printer will misinterpret the DLE and execute a Clear Printer command. Avoid this
possibility by using the 1D 03 n sequence that is handled exactly the same as 10 05 n.
Real Time Printer Status Transmission
ASCII:
GS ENQ
Hexadecimal:
1D 05
Decimal:
29 5
Transmits one byte status of the printer in real time.
Value of Byte:
Bit Status Hex Decimal Function
0 Off
On
00
01
0
1
Receipt paper adequate
Receipt paper low
1 Off
On
00
02
0
2
Receipt paper adequate
Receipt paper low
2 Off
On
00
04
0
4
Cover closed
Cover open
3 Off
On
00
08
0
8
Not busy at the RS-232C interface
Printer is busy at the RS-232C interface
4 Off
On
00
1
0
16
One or both cash drawers open
Both cash drawers closed
5 Off 00 0 Fixed to off
6 Off
On
00
40
0
64
No error condition
Error condition exists in the printer
7 On 00 0 Fixed to on
Example:
• MSComm1.Output = Chr$(&H1D) & Chr$(&H05)