Specifications

$1D $50 x y
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 speci 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 = 204, y = 408
[Reference] $1B $20, $1B $24, $1B $5C, $1B $33, $1B $4A, $1D $4C, $1D $57
[Example]
n $1D $56, o $1D $56
Printers: KPM150
[Name] Select cut mode
[Format] n ASCII GS V m
Hex 1D 56 m
Decimal 29 86 m
o ASCII GS V m n
Hex 1D 56 m n
Decimal 29 86 m n
[Range] n m = 0, 48
o m = 65, 0 n 255
[Description] Selects cut mode and executes the cut command. m selects cut mode as follows:
m FUNCTION
0, 48 Total cut.
65, 66 Form feed (cut position + [ n × vertical motion unit]) and total cut
[Notes] • This command is only enabled if set at the beginning of the line.
• The horizontal and vertical motion units are speci ed by $1D $50.
[Default]
[Reference] $1B $69
[Example]
ESC/POS™ Emulation
Command Reference 29