Specifications

Programmers Guide TH230/TH230+
116
GS ( E p
L
p
H
fn a <Function 12>
Code ASCII: GS ( E p
L
p
H
fn a
Code HEX: 0x1D 0x28 0x45 p
L
p
H
0x0C a
Range:
(p
L
+ p
H
× 256) = 2 (p
L
= 2, p
H
= 0)
fn = 12
1 ≤ a ≤ 4
Description:
Transmit the setting value of the serial interface communication condition
specified by a.
a Communication
condition
1 Baud rate
2 Parity
3 Flow control
4
Bit length
Notes:
This function works in user setting mode and during normal operation.
This function transmits “Header to NUL” as follows:
Transmit data
Hex
Decimal
Data quantity
Header
0x37
55
1 byte
Identifier
0x33
51
1 byte
Communication
condition (*1)
0x310x34 4952 1 byte
Separator
0x1F
31
1 byte
Setting value (*2)
0x30 − 0x39
48 − 57
1 − 5 bytes
NULL 0x00 0 1 byte
(*1) Communication condition is specified by a.
(*2) Setting value is set by Function 11.
“Setting value” is set by Function 11. It might differ from the current
communication condition before executing Function 2.
This function is used to confirm whether Function 11 ends normally
before executing Function 2.
The host can differentiate the setting value of the customize value from
other transmit data by the specific data in the transmit data block. When
the header transmitted from the printer is [hex = 0x37, decimal = 55],
the data up to NUL [hex = 00H, decimal = 0] is handled as one group and
can be identified by the following data:
Transmit data Hex Decimal
1
st
byte (header)
0x37
55
2
nd
byte
(identifier)
0x33
51
However, consider the following requirement for data processing.
When communication with the printer uses XON/XOFF control, the XOFF
may interrupt the “Header to NUL” data string.