Programmer's Guide
PcOS Series 80PLUS
Control Codes
Printer Status
Rev B 4/13/99
Page 53
Function
Inquire all printer status
ASCII
[ENQ]<20>
Hexadecimal
05H 14H
Decimal
<5><20>
Function
This command returns all status flags.
Response
[ACK]<20><n><r1><r2>…
Where
<20> is the echo of command ID, n is the number of return bytes + 40
(28H) (to prevent confusion with XON/XOFF).
<r1>:
Bit 0 = Cash Drawer 1 is open.
Bit 1 = Cash Drawer 2 is open.
Bit 2 = Receipt paper is out.
Bit 3 = 0
Bit 4 = Receipt paper error occurs.
Bit 5 = 0
Bit 6 = 1 always
Bit 7 = 0 always
<r2>:
Bit 0 = 1
Bit 1 = Cover is closed.
Bit 2 = Buffer is empty.
Bit 3 = Printer power has been cycled (does not affect state of
power cycled flag). Use [ENQ]<11> to reset.
Bit 4 = Printer is waiting in error mode.
Bit 5 = 0
Bit 6 = 1 always
Bit 7 = 0 always
<r3>:
Bit 0 = 1 Receipt station is selected.
Bit 1 = 0
Bit 2 = 0
Bit 3 = 0
Bit 4 = Undefined
Bit 5 = Printer is blocking print. (The cover is open or out of
paper)
Bit 6 = 1 always
Bit 7 = 0 always
<r4>:
Bit 0 = 1 Printer supports receipt.
Bit 1 = 0 Printer does not support inserted forms.
Bit 2 = Undefined
Bit 3 = Printer supports cutter.
Bit 4 = Printer supports partial cuts.
Bit 5 = 0 Printer does not support MICR.
Bit 6 = 1 always
Bit 7 = 0 always