REGO Thermal Printer Technical Manual
www.regotek.com
46
[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])
a
b
Function
1
0, 48
DLE DC4 fn m t (fn = 1): Not processed (disabled).
1, 49
DLE DC4 fn m t (fn = 1): Processed (enabled).
2
0, 48
DLE DC4 fn a b (fn = 2): Not processed (disabled).
1, 49
DLE DC4 fn a b (fn = 2): Processed (enabled).
[Notes]
If graphics data includes a data string matching DLE DC4 (fn = 1 or 2), it is recommended to use
this command in advance to disable the real-time commands.
GS ( H pL pH fn m d1 d2 d3 d4
(
fn=48
)
Set the process ID response
[Name]
Set the process ID response
[Format]
ASCII
GS
(
H pL pH fn m d1 d2 d3 d4
Hex
1D
28
48 pL pH fn m d1 d2 d3 d4
Decimal
29
40
72 pL pH fn m d1 d2 d3 d4
[Range]
(pL + pH × 256) = 6 (pL =6, pH = 0)
fn = 48
m = 48
32 ≤ d ≤ 126
[Description]
Set the processed ID specified by (d1, d2, d3, d4) return to the host.