Esc Gs P 4 Nl Nh; Esc Gs P 5 Nl Nh - Star StarPRNT SM-L Series Command Specifications

Line thermal printer
Table of Contents

Advertisement

ESC GS P 4 nL nH

[Name] Specify character vertical direction absolute position in page mode
[Code]
ASCII
ESC GS
Hexadecimal
Decimal
[Defined Area]
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
[Initial Value]
- - -
[Function]
Specify the position for character vertical direction of the data expansion starting position in page
mode with the absolute position that uses the starting point as a reference.
The position of the character vertical direction of the starting position for subsequent data expansion uses
the position from the starting point [(nL + nH x 256) x 1/8]mm.
• This command is ignored when page mode is not selected.
• Absolute position specifications that exceed the specified print region are ignored.
• The position of the character horizontal direction of the data expansion starting position does not move.
• Specify the reference starting point using ESC GS P 2.
• The following operations will occur depending on the starting point of ESC GS P 2 (select character
print direction in page mode).
a. When the starting point is "upper left" or "bottom right," specify the absolute position of the paper feed
direction.
b. When the starting point is "upper right" or "bottom left," specify the absolute position of the
perpendicular direction to the paper feed.
• If the calculated results is a fraction that is corrected to the minimum mechanical pitch and excess is
discarded.

ESC GS P 5 nL nH

[Name] Specify character vertical direction relative position in page mode
[Code]
ASCII
ESC GS
Hexadecimal
Decimal
[Defined Area]
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
[Initial Value]
- - -
[Function]
Specify the position for character vertical direction of the data expansion starting position in page
mode with the relative position that uses the current position as a reference.
The subsequent data expansion starting position uses the position moved [(nL + nH x 256) x 1/8]
mm from the current position.
• This command is ignored when page mode is not selected.
• When specifying the characters downward from the current position the value is positive (plus);
when specifying upward, the value is negative (minus).
• Negative numbers are represented by a complement of 65536. For example, use the following to move
upward N pitches.
nL + nH x 256 = 65536-N
• Relative position specifications that exceed the specified print region are ignored.
• The following operations will occur depending on the ESC GS P 2 (select character print direction in
page mode).
a. When the starting point is "upper left" or "bottom right," specify the absolute position of the paper feed
direction.
b. When the starting point is "upper right" or "bottom left," specify the relative position of the perpendicular
direction to the paper feed.
• If the calculated results is a fraction that is corrected to the minimum mechanical pitch and excess is
discarded.
Star PRNT Command Specifications
P
4
1B
1D
50
34
27
29
80
52
P
5
1B
1D
50
35
27
29
80
53
2-36

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents