Programming Codes
[ENQ] <20>
Inquire all printer status
ASCII
[ENQ] <20>
Hexadecimal 05H 14H
Decimal
<5> <20>
Function
The [ENQ] <20> command returns all status flags
Response
[ACK] <20> <n> <r
Where
<20> is the echo of command ID.
<n>
is the number of return bytes + 40
(28H) (to prevent confusion with XON/XOFF).
<r
>:
bit 0 = Cash Drawer 1 is open.
1
bit 1 = Cash Drawer 2 is open
bit 2 = Receipt paper is out.
bit 3 = 0
bit 4 = Receipt paper error occurred. (low or out)
bit 5 = 0
bit 6 = 1 always
bit 7 = 0 always
<r
>:
bit 0 = 1 always
2
bit 1 = Cover is closed.
bit 2 = Buffer is empty.
bit 3 = Printer has been power cycled,
bit 4 = Printer is waiting in an error mode. Use [ENQ]<22> to identify the
bit 5 = 0
bit 6 = 1 always
bit 7 = 0 always
<r
>:
bit 0 = 1 always (Receipt Station)
3
bit 1 = 0
bit 2 = 0
bit 3 = 0
bit 4 = Undefined
bit 5 = Printer is blocking print (Cover is open or out of paper.)
bit 6 = 1 always
bit 7 = 0 always
<r
>:
bit 0 = Printer supports receipts.
4
bit 1 = Printer supports inserted forms.
bit 2 = Printer supports multiple colors
bit 3 = Printer supports cutter.
bit 4 = Printer supports partial cuts.
bit 5 = 0
bit 6 = 1 always
bit 7 = 0 always
<r
>:
Percentage of ink remaining on Head 1 (0-100) + 40 (28H)
5
<r
>:
Percentage of ink remaining on Head 2 (0-100) + 40 (28H)
6
<r
>:
Current multi-head alignment (0-16, 8 = 0 offset)
7
100-06908
>...
> <r
1
2
Reading this does not affect the state of the power-cycled flag.
(Use [ENQ] <11> to reset the power cycled bit.)
specific error and [ENQ]<10> to recover
Rev D
®
Ithaca
8000 Programmer's Guide
Page 173
Need help?
Do you have a question about the Ithaca 8000 and is the answer not in the manual?
Questions and answers