Specifications

1-36 Command Descriptions Rev. A
ESC v transmits the status of a paper sensor as 1 byte of data. This command allows the host to obtain
the near-end or paper-out status for each line. GS r 1 can also be used to check the status. GS r is
recommended for transmitting the paper sensor status. The status to be transmitted is shown in the
table below.
GS ENQ
[Name] Transmit real-time printer status
[Format] ASCII GS ENQ
Hex 1D 05
Decimal 29 5
GS ENQ transmits the printer status as 1 byte of data in real time. This command is executed even if
the printer is off-line, the receive buffer is full, or an error occurs. DLE EOT is recommended for
transmitting the real-time printer status. The status to be transmitted is shown in the table below.
Bit Off/On Hex Decimal Status
0
Off 00 0 Journal near-end sensor: paper adequate.
On 01 1 Journal near-end sensor: paper near end.
1
Off 00 0 Receipt near-end sensor: paper adequate.
On 02 2 Receipt near-end sensor: paper near end.
2
Off 00 0 Journal end sensor: paper present.
On 04 4 Journal end sensor: paper not present.
3
Off 00 0 Receipt end sensor: paper present.
On 08 8 Receipt end sensor: paper not present.
4 Off 00 0 Not used. Fixed to Off.
5
Off 00 0 Slip insertion sensor: paper present.
On 20 32 Slip insertion sensor: paper not present.
6
Off 00 0 Slip ejection sensor: paper present.
On 40 64 Slip ejection sensor: paper not present.
7 Off 00 0 Not used. Fixed to Off.
Program Example
PRINT #1, CHR$(&H1B);"v";
Bit Off/On Hex Decimal Status
0
Off 00 0 Paper roll near-end sensor: paper adequate.
On 01 1 Journal near-end sensor: paper near end.
1
Off 00 0 Receipt near-end sensor: paper adequate.
On 02 2 Receipt near-end sensor: paper near end.