Specifications
TH230/TH230+ Programmers Guide
101
GS ( E p
L
p
H
fn a <Function 4>
Code ASCII:
GS ( E p
L
p
H
fn a
Code HEX: 0x1D 0x28 0x45 0x02 0x00 0x04 a
Range: (p
L
+ p
H
× 256) = 2 (p
L
= 2, p
H
= 0):
fn = 4
a = 1, 2, 128
Description: The printer transmits the value for the memory switch specified by
parameter a to the host.
Notes:
• This function works both in user setting mode and during normal printer
operation.
• The printer transmits the “Header to NUL” data shown below:
Transmit data
Hex
Decimal
Data quantity
Header
0x37
55
1 byte
Identifier 0x21 33 1 byte
Setting value 0x30 or 0x31 48 or 49 8 byte
NULL 0x00 0 1 byte
• The value of the memory switch is transmitted from bit 8 to bit 1. 48 or
49 is transmitted for a bit of Reserved.
• The host can differentiate the data for the memory switch from other
transmitted data by the specific information in the transmit data block.
When the header transmitted from the printer is 0x37 or 55 decimal, the
data up to NUL (0x00 or 0 decimal) is handled as one group and can be
identified by the following data:
Transmit data Hex Decimal
1st byte (header) 0x37 55
2nd byte
(identifier)
0x21 33
However, consider the following requirement for data processing:
• When communication with the printer uses XON/XOFF control, the
XOFF code may interrupt the “Header to NUL” data string.