TransAct Technologies ITHERM 280 User Manual

Page 178

Advertising
background image

Programming Codes

iTherm

®

280 Programmer’s Guide

Page 176

Rev C

28-07764

[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

1

> <r

2

>…


Where

<20> is the echo of command ID.

<n>

is the number of return bytes + 40
(28H) (to prevent confusion with XON/XOFF).

<r

1

>:

bit 0 = Cash Drawer 1 is open.
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

2

>:

bit 0 = 1 always
bit 1 = Cover is closed.
bit 2 = Buffer is empty.
bit 3 = Printer has been power cycled,

Reading this does not affect the state of the power-cycled flag.

(Use [ENQ] <11> to reset the power cycled bit.)

bit 4 = Printer is waiting in an error mode. Use [ENQ]<22> to identify the

specific error and [ENQ]<10> to recover

bit 5 = 0
bit 6 = 1 always
bit 7 = 0 always

<r

3

>:

bit 0 = 1 always (Receipt Station)
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

4

>:

bit 0 = Printer supports receipts.
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

5

>:

Percentage of ink remaining on Head 1 (0-100) + 40 (28H)

<r

6

>:

Percentage of ink remaining on Head 2 (0-100) + 40 (28H)

<r

7

>:

Current multi-head alignment (0-16, 8 = 0 offset)

Advertising