Rev. 1.00
- 53 -
Metapace T-2
GS r n
[Name]
[Format]
[Range]
[Description]
Transmit status.
ASCII GS r n
Hex 1D
72
n
Decimal 29 114 n
n=1, 2, 49, 50
▪
Transmits the normal status specified by n as follows :
n
Function
1, 49 Transmits paper sensor status.
2, 50 Transmits drawer kick-out connector status.
▪
Paper sensor status (n=1, 49) :
Bit Off/On Hex Decimal Function
Off 00 0 Paper roll near-end sensor : paper adequate.
0, 1
On 03 3 Paper roll near-end sensor : paper near end.
Off
00
0
Paper roll end sensor : paper present.
2, 3
On 0C 12 Paper roll end sensor : paper not present.
4 Off 00 0 Fixed.
5 Off 00 0 Reserved.
6 Off 00 0 Reserved.
7 Off 00 0 Fixed.
- Bits 2 and 3 : This command cannot be executed since the printer
becomes offline when the paper roll end sensor detects the paper not
present. Therefore, the status of bit 2 (1) and bit 3 (1) is not transmitted.
▪
Drawer kick-out connector status (n=2, 50) :
Bit Off/On
Hex Decimal
Function
Off 00 0 Drawer kick-out connector pin 3 is LOW.
0
On 01 1 Drawer kick-out connector pin 3 is HIGH.
1 Off 00 0 Reserved.
2 Off 00 0 Reserved.
3 Off 00 0 Reserved.
4 Off 00 0 Fixed.
5 Off 00 0 Reserved.
6 Off 00 0 Reserved.
7 Off 00 0 Fixed.
GS v 0 m xL xH yL yH d1...dk
[Name]
[Format]
[Range]
Print raster bit image.
ASCII
GS
v
0
m
xL xH yL yH d1...dk
Hex
1D
76
30
m
xL xH yL yH d1...dk
Decimal
29
118
48
m
xL xH yL yH d1...dk
0
≤
m
≤
3, 48
≤
m
≤
51
1
≤
(xL + xH x 256)
≤
128 (0
≤
xL
≤
128, xh=0)
1
≤
(yL + yH x 256)
≤
4095 (0
≤
yL
≤
255, 0
≤
yH
≤
15)
0
≤
d
≤
255
k = (xL + xH x 256) x (yL + yH x 256)