User manual

APOS Premium Printer Series User Manual Page 53 /136 Reference: FDE 3107312 Issue A
S
ET HORIZONTAL AND VERTICAL MINIMUM MOTION UNITS
Sets the horizontal and vertical motion units to 1/x inch and 1/y inch respectively.
When x or y is set to 0, the default setting for that motion unit is used.
ASCII
GS P x y
Hexadecimal 1D 50 x y
Decimal
29 80 x y
Value of x
Horizontal
Value of y
Vertical
Range of x
0 – 255
Range of y
0 - 255
Default of x:
180
Default of y:
360
S
ET PRINTING AREA WIDTH
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) times horizontal motion
unit) inches. The Set Horizontal and Vertical Minimum Motion Units command (1D 50), described earlier
in this document, sets the horizontal motion units.
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.
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
576 dots (the maximum printable area).
Formulas
To set the width of the printing area to one inch at the horizontal motion unit of 1/203 inches, send the
four-byte string: GS W 203 0
Or, to set the width of the printing area to two inches at the horizontal motion unit of 1/203 units per inch,
send the four-byte string: GS W 150 1
Where 2 inches = 406/203, and 406 = (1 X 256) + 150.
←
Printable area 576 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 576 dots (see illustration).