3. PRINTER FUNCTIONS
KPM216H
263-
HnLnL SG
[Name] Set left margin
[Format] ASCII GS L nL nH
Hex 1D 4C nL nH
Decimal 29 76 nL nH
[Range] 0 ≤ nL, nH ≤ 255
[Description] Sets the left margin.
• The left margin is set to [(nL + nH × 256) × (horizontal motion unit)]
inches.
Printable area
Left margin Printing area width
[Notes] • This command is enabled only if set at the beginning of the line.
• If the setting exceeds the printable area, the maximum value of the print-
able area is used.
• If the left margin + printing area width is greater than the printable area,
the printing area width is set at maximum value.
• The horizontal and vertical motion unit are specified by GS P or GS $D0.
Changing the horizontal or vertical motion unit does not affect the current
left margin.
• The GS P or GS $D0 command can change the horizontal (and vertical)
motion unit.
• However, the value cannot be less than the minimum horizontal movement
amount and it must be in even units of the minimum horizontal movement
amount.
[Default]
[Reference] GS P or GS $D0, GS W
[Example]
)1edom(yxPSG
[Name] Set horizontal and vertical motion units
[Format] ASCII GS P x y
Hex 1D 50 x y
Decimal 29 80 x y
[Range] 0 ≤ x, y ≤ 255
[Description] Sets the horizontal and vertical motion units to 1/x inch and
1/y inch respectively.
When x is set to 0, the default setting value is used.
When y is set to 0, the default setting value is used.
[Notes] • The horizontal direction is perpendicular to the paper feed direction.