
Thermal Printer Technical Manual
45
GS ( A pL pH n m Execute test print
[Name]
Execute test print
[Format]
ASCII
GS
(
A pL pH n
m
Hex
1D
28
41 pL pH n m
Decimal
29
40
65 pL pH n m
[Range]
( pL+ pH × 256)=2 (pL=2, pH=0)
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
1 ≤ m ≤ 3, 49 ≤ m ≤ 51
[Description]
Execute a test print. The method is determined by n,m.
pL and pH specifies the number of the parameter such as n, m to (pL + (pH * 256)) bytes.
n specifies the paper to be tested.
n
Paper
0, 48
Basic sheet (paper roll)
1, 49
Paper roll
2, 50
The content of printing is determined by m
m
Content
1, 49
Hexadecimal dump
2, 50
Printer status print
3, 51
Rolling pattern print
[Description]
This command is enabled only when processed at the beginning of a line in standard mode.
This command is no effect in page mode.
When this command is received during macro definition, the printer ends macro definition and
begins performing this command.
After the test print is finished, the printer resets itself automatically. Therefore, the
already-defined data before this command is executed, such as an user defined characters,
downloaded bit image, and macro, becomes undefined, and the receive buffer and print buffer
are cleared, and each setting returns to the default value. The printer also re-reads the DIP switch
settings.
The printer cuts the paper at the end of the test print.
The printer goes BUSY while this command is executed.
GS ( D pL pH m [a1 b1] … [ak bk] Enable/disable real-time command
[Name]
Enable/disable real-time command
[Format]
ASCII
GS
(
D pL pH m *a1 b1+ … *ak bk+
Hex
1D
28
44 pL pH m *a1 b1+ … *ak bk+
Decimal
29
40
68 pL pH m *a1 b1+ … *ak bk+
[Range]
3 ≤ (pL + pH × 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)
m = 20
a = 1, 2
b = 0, 1, 48, 49
[Description]
Enable or disable the real-time command specified by a.
pL, pH specify (pL + pH × 256) as the number of bytes after pH (m and [a1 b1]...[ak bk])