1-26
Command Descriptions
Rev. A
GS r
n
[Name]
Transmit status
[Format]
ASCII
GS
r
n
Hex
1D
72
n
Decimal
29
114
n
[Range]
1
≤
n
≤
2
49
≤
n
≤
50
GS r n transmits the status specified by n as follows: paper sensor status as 1 byte of data when n=1 or 49,
and drawer kick-out connector status when n=2 or 50. The paper present status of bits 2 and 3 for the paper
sensor status is not transmitted because the printer goes off-line when a paper-end is detected by the
paper-end sensor. The paper roll near-end sensor is an option; if the sensor is not installed, bits 0 and 1 for
the paper sensor status are always in the “Paper Adequate” status.
Paper sensor status (n=1, 49)
Drawer kick-out connector status (n=2, 50)
Program Example
PRINT #1, CHR$(&H1D);"r";CHR$(1);
←
Transmits paper sensor status
Bit
Off/On
Hex
Decimal
Status
0,1
Off
00
0
Paper near-end sensor: paper adequate.
On
(03)
(3)
Paper near-end sensor: paper near end.
2,3
Off
00
0
Paper end sensor: paper present.
On
0C
12
Paper end sensor: paper not present.
4
Off
00
0
Not used. Fixed to Off.
5,6
—
—
—
Undefined.
7
Off
00
0
Not used. Fixed to Off.
Bit
Off/On
Hex
Decimal
Status
0
Off
00
0
Drawer kick-out connector pin 3 is LOW.
On
01
1
Drawer kick-out connector pin 3 is HIGH.
1-3
—
—
—
Undefined.
4
Off
00
0
Not used. Fixed to Off.
5,6
—
—
—
Undefined.
7
Off
00
0
Not used. Fixed to Off.