User manual
APOS Premium Printer Series User Manual Page 52 /136 Reference: FDE 3107312 Issue A
S
ELECT JUSTIFICATION
Specifies the alignment of characters, graphics, logos, and bar codes (see the value of n table).
ASCII
ESC a n
Hexadecimal 1B 61 n
Decimal
27 97 n
Value of n
0, 48 = Left aligned
1, 49 = Center aligned
2, 50 = Right aligned
Range of n
0-2, 48-50
Default
0 (Left aligned)
Exceptions :
The command is valid only at the beginning of a line.
S
ET LEFT MARGIN
Sets the left margin of the printing area. The left margin is set to (((nH X 256) + nL) times horizontal
motion unit) inches. The Set Horizontal and Vertical Minimum Motion Units command (1D 50) sets the
horizontal motion units. This command is described below.
The Set Printing Area Width command (1D 57), which follows this command, sets the width of the printing
area. See the Set Printing Area Width command (1D 57) in this document for a description of that
command.
If the setting exceeds the printable area, the maximum value of the printable area is used. The maximum
printable area is 576 dots. See the illustration.
ASCII
GS L nL nH
Hexadecimal 1D 4C nL nH
Decimal
29 76 nL nH
Range of nL
0-255
Range of nH
0-255
Default
576 dots (the maximum printable area).
Formulas
To set the left margin to one inch at the horizontal motion unit of 1/203 inches, send the four-byte string:
GS L 203 0
Or, to set the left margin to two inches at the horizontal motion unit of 1/203 units per inch, send the four-
byte string: GS L 150 1
Where 2 inches = 406/203, and 406 = (1 X 256) + 150.
←
Printable area 576 dots →
←Left margin→
←
Printing area width→