Specifications
$1D $50
Printers: KPM150
[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.
• In standard mode, the following commands use x or y, regardless of character rotation
(upside-down or 90° clockwise rotation):
n Commands using x : $1B $20, $1B $24, $1B $5C, $1D $4C, $1D $57.
o Commands using y : $1B $33, $1B $4A.
• This command does not affect the previously specifi ed values.
• The calculated result from combining this command with others is truncated to the
minimum value of the mechanical pitch or an exact multiple of that value.
[Default] x = 200, y = 200
[Reference] $1B $20, $1B $24, $1B $5C, $1B $33, $1B $4A, $1D $4C, $1D $57
[Example]
$1D $57
Printers: KPM150
[Name] Set printing area width
[Format] ASCII GS W nL nH
Hex 1D 57 nL nH
Decimal 29 87 nL nH
[Range] 0 ≤ nL, nH ≤ 255
[Description] Sets the printing area width to the area specifi ed by nL and nH.
• The left margin is set to [(nL + nH × 256) × (horizontal motion unit)] inches.
Printable area
Left margin Printing area width
[Notes] • This command is only enabled if set at the beginning of the line.
• If the right margin is greater than the printable area, the printing area width is set at
maximum value.
• If the printing area width = 0, it is set at the maximum value.
• The horizontal and vertical motion units are specifi ed by $1D $50. Changing the hori-
zontal or vertical motion unit does not affect the current left margin.
• The $1D $50 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.
KPM54 Emulation
88 Command Reference