Specifications
TH230/TH230+ Programmers Guide
157
GS W
Function: Set printing area width
Code ASCII: GS W n
L
n
H
Code HEX:
0x1D 0x57 n
L
n
H
Range: 0 ≤ (n
L
+ n
H
× 256) ≤ 65535 (0 ≤ n
L
≤ 255, 0 ≤ n
H
≤ 255)
Default: Entire printable area
n
L
= 64, n
H
= 2 (when paper width is set to 80 mm (576 dots))
n
L
= 152, n
H
= 1 (when paper width is set to 57.5 mm (408 dots))
Description: In standard mode, sets the printing area width to (n
L
+ n
H
× 256) × (horizontal
motion unit).
Notes:
• When standard mode is selected, this command is enabled only when
processed at the beginning of the line.
• The printing area width has no effect in page mode. If this command is
processed in page mode, the printing area width is set and it is enabled
when the printer returns to standard mode.
• If the [left margin + printing area width] exceeds the printable area, the
printing area width is automatically set to [printable area – left margin].
• If this command and GS L set the printing area width to less than the
width of one character, the printing area width is extended to
accommodate one character for the line.
• Horizontal motion unit is used.
• If horizontal motion unit is changed after setting the printable area width,
the printable area width setting will not be changed.
• Printable area width setting is effective until ESC @ is executed, the
printer is reset, or the power is turned off.
• The horizontal motion unit is specified by GS P.
• See GS ( E Functions 5 and 6 for specifying the paper width.