Control Codes
Printer Status
Function
ASCII
Hexadecimal
Decimal
Function
Response
Description
Function
ASCII
Hexadecimal
Decimal
Function
Response
Where
cleared).
Page 52
PcOS Series 80PLUS
Inquire power cycle status
[ENQ] <11>
05H 0BH
<5><11>
Has the printer been power cycled since the last request?
ACK <11> (06H 0BH)
Printer power has been cycled since last [ENQ] <11>.
NAK <5> (15H 0BH)
Printer has not power cycled since last [ENQ] <11>.
The first time after a reset this command will return [ACK] <11>,
after that the command will return [NAK] <11>. This command
allows the application to determine if the printer has been power
cycled and needs to be reinitialized. The [ENQ] <10> command and
the INIT signal on the parallel port will both cause the printer to
return power up status.
Inquire printer state
[ENQ]<15>
05H 11H
<5><15>
This command returns the current printer state.
[ACK]<15><n><r1><r2>...
<15> is the echo of command ID, n is the number of return bytes + 40
(28H) (to prevent confusion with XON/XOFF).
<r1>:
Bit 0 = Form clamp is closed.
Bit 1 = Cover is closed.
Bit 2 = Receipt paper is out.
Bit 3 = 0
Bit 4 = Printer is in error state (waiting for error to be
Bit 5 = 0
Bit 6 = 1 always
Bit 7 = 0 always
<r2>:
Bit 0 = 0
Bit 1 = 0
Bit 2 = 0
Bit 3 = 0
Bit 4 = 0
Bit 5 = 0
Bit 6 = 1 always
Bit 7 = 0 always
Rev B 4/13/99
Programmer's Guide