ESC/POS Command Manual
38
GS W
nL nH
[Name]
Set printing area width
[Format]
ASCII GS
W
nL nH
Hex
1D
57
nL nH
Decimal 29
87
nL nH
[Range]
0
≤
nL
≤
255
0
≤
nH
≤
255
[Description]
Sets the printing area width to the area specified by
nL
and
nH.
The printing area width is set to [(
nL
+
nH
x 256) x horizontal motion unit]].
Printable area
Left margin Printing area width
[Details]
This command is effective only processed at the beginning of the line.
In page mode, the printer performs only internal flag operations.
This command does not affect printing in page mode.
If the [left printing area width] exceeds the printable area, [printable
area width - left
margin] is used.
The horizontal motion unit (x) is used for calculating the printing area width. The calculated result
is truncated to the minimum value of the mechanical pitch.
If the width set for the printing area is less than the width of one character,
when the character
data is developed, the following processing is performed:
①
The printing area width is extended to the right to accommodate one
character.
Printable area
Left margin Extended to right
Printing area width set by
nL
and
nH
②
f the printing area width cannot be extended sufficiently, the left margin is
reduced
to accommodate one character
Printable area