Programmer's guide pcos series 150 control codes – Star Micronics 150 User Manual
Page 75

Programmer's Guide
PcOS Series 150
Control Codes
Printer Status Set/Inquire
12/14/99
Rev G
Page 65
Function
Inquire printer state
ASCII
[ENQ] <15>
Hexadecimal
05H 0FH
Decimal
<5> <15>
Function
Returns current printer state
Serial/Parallel, IEEE1284
Parallel, non-IEEE 1284
Response
[ACK] <15> <n> <r1> <r2>…
Not supported via PE
Where
<15> is the echo of the command ID.
n = number of return bytes + 40 (to prevent confusion with
XON/XOFF).
<r1>:
Bit 0 = Form clamp closed
Bit 1 = Undefined
Bit 2 = Receipt paper out
Bit 3 = Undefined
Bit 4 = In error state (Waiting for error to be cleared)
Bit 5 = Undefined
Bit 6 = 1 always
Bit 7 = 0 always
<r2>:
Forms processing state
040H
No forms processing
044H
Waiting to enter validation mode or for the paper path to be
cleared to enter validation mode
045H
Waiting for an internal delay time-out (auto clear)
Other states may be active but will automatically be cleared.