
Thermal Printer Technical Manual
26
This command executes justification in the printing area.
This command justifies the space area according to HT, ESC $ or ESC \.
[Default]
n = 0
[Example]
GS L nL nH Set left margin
[Name]
Set left margin
[Format]
ASCII
GS
L
nL nH
Hex
1D
4C
nL nH
Decimal
29
76
nL nH
[Range]
0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description]
Set the left margin using nL and nH.
The left margin is set to [(nL + nH × 256) × horizontal motion unit)] inches.
[Notes]
This command is effective only when processed at the beginning of the line in standard mode.
If this command is input in page mode, the printer performs only internal flag operations.
This command does not affect printing in page mode.
If the setting exceeds the printable area, the maximum value of the printable area is used.
The horizontal and vertical motion units are specified by GS P. Changing the horizontal and
vertical motion unit does not affect the current left margin.
[Default]
nL = 0, nH = 0
[Reference]
GS P, GS W
GS W nL nH Set printing area width
[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]
Set the printing area width to the area specified by nL and nH.
The printing area width is set to [(nL + nH× 256)× horizontal motion unit)] inches.