Control Codes
PcOS Series 80PLUS
Programmer's Guide
Printer Status
Page 52
Rev B 4/13/99
Function
Inquire power cycle status
ASCII
[ENQ] <11>
Hexadecimal
05H 0BH
Decimal
<5><11>
Function
Has the printer been power cycled since the last request?
Response
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>.
Description
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.
Function
Inquire printer state
ASCII
[ENQ]<15>
Hexadecimal
05H 11H
Decimal
<5><15>
Function
This command returns the current printer state.
Response
[ACK]<15><n><r1><r2>…
Where
<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
cleared).
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