TPSK 12 & 24 V User’s Manual
Page 30 / 66
Reference: FDE 31 08 972 Issue Z
S
ET
P
RINTING
A
REA
W
IDTH
Sets the width of the printing area. If the setting exceeds the printable area, the maximum value of the printable
area is used. The width of the printing area is set to ((nH X 256) + nL) dots.
The width of the printing area follows the Set Left Margin command (1D 4C). See the Set Left Margin
command (GS L) earlier in this document for a description.
The command is ignored if it is not at the beginning of the line.
ASCII
GS W nL nH
Hexadecimal
1D 57
nL
nH
Decimal
29 87 nL nH
Range of
nL
0-255
Range of
nH
0-255
Default
384 dots (the maximum printable area)
Note
: where nL is a multiple of 4.
Minimum print area width = 4
Formulas
To set the width of the printing area to one inch, send the four-byte string: GS W 203 0
Or, to set the width of the printing area to two inches, send the four-byte string: GS W 150 1
Where 2 inches = 406/203, and 406 = (1 X 256) + 150.
←
Printable area 384 dots -------------
→
←
Left margin
→
←
Printing area width
→
Exceptions
This command is effective only at the beginning of a line.
If the setting exceeds the printable area, the maximum value of the printable area is used. The maximum
printable area is 384 dots.