Specifications
Programmers Guide TH230/TH230+
154
GS P
Function: Set horizontal and vertical motion units
Code ASCII: GS P x y
Code HEX:
0x1D 0x50 x y
Range: 0 ≤ x ≤ 255
0 ≤ y ≤ 255
Default:
x = 203
y = 203
Description: Sets the horizontal and vertical motion units to 1/x and 1/y inches,
respectively.
• When x = 0, the default setting of the horizontal value is used.
• When y = 0, the default setting of the vertical value is used.
Notes:
• The horizontal direction is perpendicular to the paper feed direction and
the vertical direction is the paper feed direction.
• The horizontal and vertical motion units indicate the minimum pitch used
for calculating the values of related commands (shown on the next
screen).
• In standard mode, the following commands use x or y.
• Commands using x: ESC SP, ESC $, ESC \, GS L, and GS W
• Commands using y: ESC 3, ESC J, ESC K and GS V
• 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 printing area using
ESC T.
• Commands using x: ESC SP, ESC $, ESC W, ESC \ and FS S.
• Commands using y: ESC 3, ESC J, ESC K, ESC W, GS $, GS V, and GS \.
• 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 printing area using
ESC T.
• Commands using x: ESC 3, ESC J, ESC K, ESC W, GS $, and GS \
• Commands using y: ESC SP, ESC $, ESC W, ESC \, FS S and GS V
• 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.
•
The default values equal the normal dot pitch horizontally and ½ dot pitch
vertically.