Specifications
Programmers Guide TH230/TH230+
120
• 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
GS ( F
Function: Set adjustment value(s)
Code ASCII:
GS ( F p
L
p
H
a fn n
L
n
H
Code HEX: 0x1D 0x28 0x46 p
L
p
H
a fn n
L
n
H
Range: (p
L
+ (p
H
× 256)) = 4 (where p
L
= 4, p
H
= 0)
a = 1
fn = 0, 48 or 1, 49
0 ≤ ( n
L
+ n
H
× 256) ≤ 65535
(where 0
≤
n
L
≤
255, 0
≤
n
H
≤
255)
Default: All adjustment values are set to “0”.
(At the factory setting, the print starting position and the cutting position
are set to the head position and the cutter position respectively when the
BM sensor detects the BM.)
Description: This command is effective only when the BM sensor is enabled with
memory switch 0x80.
Sets adjustment values(s) for the printer operations specified by a.
• p
L
, p
H
specifies (p
L
+ (p
H
×256)) for the number of bytes after p
H
(a, fn, n
L
and n
H
).
• a specifies setting values for the positions to start printing.
a Function
1 Setting value for the positions to start the
printing.
The parameter is a dummy for further extensions. That’s why, printer
accept other values too, but don’t use anyone of them.
• fn specifies the direction of the adjustment.
fn Function
0, 48 Specifies a forward paper feeding direction
1, 49 Specifies a backward paper feeding direction
• n
L
and n
H
specifies the setting value to [(n
L
+ n
H
× 256) x 0.125 mm].
Please note that the maximum setting value is 210 mm.