Select your printer model

Parameters are refined by the selected printer.
  • EU-m30
  • TM-J2000
  • TM-J2100
  • TM-L90
  • TM-L90 LFC
  • TM-L100
  • TM-m10
  • TM-m30
  • TM-m30II
  • TM-m30II-H
  • TM-m30III
  • TM-m30III-H
  • TM-m30II-NT
  • TM-m30II-S
  • TM-m30II-SL
  • TM-m50
  • TM-m50II
  • TM-m50II-H
  • TM-P20
  • TM-P20II
  • TM-P60
  • TM-P60II
  • TM-P80
  • TM-P80II
  • TM-T20
  • TM-T20II
  • TM-T20III
  • TM-T20IIIL
  • TM-T20IV-L
  • TM-T20X
  • TM-T20X-II
  • TM-T70
  • TM-T70II
  • TM-T81III
  • TM-T82II
  • TM-T82III
  • TM-T82IIIL
  • TM-T82IV-L
  • TM-T82X
  • TM-T82X-II
  • TM-T83III
  • TM-T83IV
  • TM-T88IV
  • TM-T88V
  • TM-T88VI
  • TM-T88VII
  • TM-T90
  • TM-T100
  • TM-U220
  • TM-U220II
  • TM-U230

GS P


[Name]

Set horizontal and vertical motion units

[Format]

ASCII
   
GS
  
P
  
x
  
y
Hex
1D
50
x
y
Decimal
29
80
x
y

[Range]

x = 0 – 255
y = 0 – 255

[Default]

x, y: different depending on the printers

[Description]

Sets the horizontal and vertical motion units to approximately 25.4/x mm {1/x"} and approximately 25.4/y mm {1/y"}, respectively.
  • When x = 0, the default value of the horizontal motion unit is used.
  • When y = 0, the default value of the vertical motion unit is used.

[Notes]

  • The horizontal and vertical motion units indicate the minimum pitch used for calculating the values of related commands.
  • The horizontal direction is perpendicular to the paper feed direction and the vertical direction is the paper feed direction.
  • In Standard mode, the following commands use x or y.
  • in Page mode, the following commands use x or y, when the starting position is set to the upper left or lower right of the print area using ESC T.
  • in Page mode, the following commands use x or y, when the starting position is set to the upper right or lower left of the print area using ESC T.
  • Setting of this command is effective until ESC @ is executed, the printer is reset, or the power is turned off.
  • The calculated result from combining this command with others is truncated to the minimum value of the mechanical pitch.
  • This command does not affect the current setting values.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ESC/POS® includes patented or patent pending commands. The contents must not be disclosed to third parties.


ESC/POS® Command Reference for TM Printers

Jump to the top