Confidential BTP-R880NP Programming Manual
- 14 -
• This command does not affect printing in page mode.
• If the setting exceeds the printable area, the maximum value of the printable area is
used.
• The horizontal and vertical motion units are specified by
GS P
. Changing the
horizontal and vertical motion unit does not affect the current left margin.
[Default]
nL = 0, nH = 0
[Reference]
GS P, GS W
[Exmple]
0A
(
Sets printing position at the begin of the line
)
1B 40
(
Initialization
)
30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
37 38 39
0A
1D 4C 30 00
(
Sets left margin to 48/203 inch
)
30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
37 38 39
0A
1D 57 C8 00
(
Sets printing width to 200/203 inch
)
30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
37 38 39
0A
Results
:
GS P x y
[Function]
Sets the horizontal and vertical motion units to approximately 25.4/ x mm
{ 1/ x inches} and approximately 25.4/ y mm {1/ y inches}, respectively.
[Format]
ASCII
GS
P
x y
Hex 1D
50
x
y
Decimal 29 80 x y
[Range]
0
≤
x
≤
255
0
≤
y
≤
255
[Notes]
• When x and y are set to 0, the default setting of each value is used.
• 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, regardless of character
rotation (upside-down or 90° clockwise rotation):
1) Commands using x
:
ESC SP, ESC $, ESC \, FS S, GS L, GS W
2) Commands using y
:
ESC 3, ESC J, GS V
• In page mode, the following command use x or y, depending on character
orientation:
1) When the print starting position is set to the upper left (Printing direction from left to
right)or lower right(Printing direction from right to left) of the printing area using
ESC