Control Codes PcOS Series 150 Programmer's Guide
Printer Status Set/Inquire
Page 66 Rev G12/14/99
Function Inquire all printer status
ASCII [ENQ] <20>
Hexadecimal 05H 14H
Decimal <5> <20>
Function Returns all status flags
Serial/Parallel, IEEE1284 Parallel, non-IEEE 1284
Response [ACK] <20> <n> <r1> <r2>… Not supported via PE
Where <20> is the echo of the command ID.
n = number of return bytes + 40 (to prevent confusion with
XON/XOFF).
<r1>: Bit 0 = Cash Drawer 1 open
Bit 1 = Cash Drawer 2 open
Bit 2 = Receipt paper out
Bit 3 = Undefined
Bit 4 = Undefined
Bit 5 = Form sensor detects paper
Bit 6 = 1 always
Bit 7 = 0 always
<r2>: Bit 0 = Form clamp closed
Bit 1 = Undefined
Bit 2 = Buffer empty
Bit 3 = Printer power cycled (does not affect state of power
cycled flag) Use [ENQ] <11> to reset.
Bit 4 = Printer waiting in error mode
Bit 5 = Undefined
Bit 6 = 1 always
Bit 7 = 0 always
<r3>: Bit 0 = Receipt station selected
Bit 1 = Top validation station selected
Bit 2 = Undefined
Bit 3 = Waiting for form
Bit 4 = Undefined
Bit 5 = Printer blocking print (Out of paper)
Bit 6 = 1 always
Bit 7 = 0 always
<r4>: Bit 0 = Printer supports receipt
Bit 1 = Printer supports inserted forms
Bit 2 = Undefined
Bit 3 = Printer supports cutter