Specifications

EM 220
Rev. 1.00
- 64 -
Mobile Printer Command Manual
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.
Paper sensor status (n=1, 49) :
Bit Off/On Hex Decimal Function
Off 00 0 Reserved
.
0, 1
On 03 3 Reserved
.
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 can not be executed when the printer is
offline due to the lack of paper. Therefore, the status of bit 2 (1) and
bit 3 (1) is not transmitted.
• This command following DLE can be executed in real-time command
mode.
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)
[Description] Prints a raster bit image in m mode.
- m specifies the bit image mode.
m Mode Vertical dot density Horizontal dot density
0, 48 Normal 203 dpi 203 dpi
1, 49 Double-width 203 dpi 203/2 dpi
2, 50 Double-height 203/2 dpi 203 dpi
3, 51 Quadruple 203/2 dpi 203/2 dpi
dpi : dots per 25.4mm {1"}
-
xL, xH specifies (xL + xH x 256) byte(s) in the horizontal direction for the bit image.
-
yL, yH specifies (yL + yH x 256) dot(s) in the vertical direction for the bit image.
- d specifies the definition data of the bit image data.