Programmer's Guide
PcOS Series 80PLUS
Control Codes
Printer Status
Rev B 4/13/99
Page 49
Inquire Commands
Function
Inquire printer status
ASCII
[ENQ] <n>
Hexadecimal
05H <n>
Decimal
<5><n>
IPCL
none
EPOS
[GS] r or [DLE] [ENQ] or [DLE] [EOT]
Description
This command inquires printer status and returns the result. The following
ENQ's are defined.
NOTE:
If the printer is off-line, ENQ's may not be accepted.
Function
Inquire Cash Drawer 1 status
ASCII
[ENQ] <1>
Hexadecimal
05H 01H
Decimal
<5><1>
Function
Cash Drawer 1 status
Response
ACK <1> (06H 01H)
Cash Drawer 1 is closed.
NAK <1> (15H 01H)
Cash Drawer 1 is open.
The cash drawer status is defined as open circuit being drawer closed.
Function
Inquire Cash Drawer 2 status
ASCII
[ENQ] <2>
Hexadecimal
05H 02H
Decimal
<5><2>
Function
Cash Drawer 2 status
Response
ACK <2> (06H 02H)
Cash Drawer 2 is closed.
NAK <2> (15H 02H)
Cash Drawer 2 is open.
The cash drawer status is defined as open circuit being drawer closed.