Gs P X Y Set The Horizontal And Vertical Motion Units - SNBC BTP-R580II Programming Manual

Table of Contents

Advertisement

• This command does not affect printing in page mode.
• If the setting exceeds the maximum printable width, the maximum printable width will
be used.
• The horizontal and vertical motion units are specified by GS P. Changing horizontal
and vertical motion unit does not affect the current left margin.
[Default]
nL = 0, nH = 0
[Relative]
GS P, GS W
[Example]
0A(Set printing position to the beginning 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(Set 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(Set 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
Result:

GS P x y Set the horizontal and vertical motion units

[Function]
Set 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
Hex
Decimal 29
[Range]
0 ≤ x ≤ 255
0 ≤ y ≤ 255
[Notes]
• When x and y are 0, the x and y are set to be default settings.
• 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):
 ① Commands using x: ESC SP, ESC $, ESC \, FS S, GS L, GS W
 ② Commands using y: ESC 3, ESC J, GS V
• In page mode, the following commands use x or y, depending on the direction and
GS
P
x
y
1D
50
x
y
80
x
y
BTP-R580II Programming Manual
- 13 -

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents