Specifications

TH230/TH230+ Programmers Guide
93
GS ( D
Function: Enable/disable real-time command
Code ASCII:
GS ( D p
L
p
H
m [a1 b1]...[ak bk]
Code HEX: 0x1D 0x28 0x44 p
L
p
H
0x14 [a1 b1]...[ak bk]
Range: (p
L
+ p
H
× 256) = 3 (p
L
= 3, p
H
= 0)
m = 20
a = 2
b = 0, 1, 48, 49
Default:
a = 2 / b = 0 (DLE SO fn a b (n = 2): disable)
Description: Specifies enable or disable of a real-time command.
p
L
, p
H
sets the number of parameters after p
H
(m and [a1 b1]...[ak bk])
to (p
L
+ p
H
× 256) bytes.
a specifies the type of real-time command.
b specifies enable/disable of real-time command processing.
a
b
Real-time command type
2
0, 48
Disable DLE SO n a b (n = 2): execute power off (It
doesn’t process)
1, 49
Enable DLE SO n a b (n = 2): execute power off (It does
process)
Notes:
You will find additional information about “Power off control by host”
on page 9.
The behavior of the Power Button is described on page 7.
The printer processes each real-time command that is enabled upon
receiving it.
A real-time command specified as disabled is not processed.
The setting of this command is effective until ESC @ is executed, the
printer is reset, or the power is turned off.
If you transmit a command for a bit image or defined data that contains
the sequence DLE SO, be sure to disable real-time command processing
before transmitting the bit image or defined data command. Then the
printer will process the sequence DLE SO as image data.