REGO Thermal Printer Technical Manual
www.regotek.com
29
GS \ nL nH Set relative vertical print position in page mode
[Name]
Set relative vertical print position in page mode
[Format]
ASCII
GS \ nL nH
Hex
1D 5C nL nH
Decimal
29 92 nL nH
[Range]
0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description]
Sets the relative vertical print starting position from the current position in page mode.
This command sets the distance from the current position to [(nL + nH ´ 256)x0.125 mm)].
[Notes]
This command is ignored unless page mode is selected.
When the movement downward:
nL + nH x 256 = N
When the movement upward:
nL + nH x 256 = 65536 - N
Any setting that exceeds the specified printing area is ignored.
[Reference]
ESC $, ESC T, ESC W, ESC \, GS $
GS $ nL nH Set absolute vertical print position in page mode
[Name]
Set absolute vertical print position in page mode
[Format]
ASCII
GS $ nL nH
Hex
1D 24 nL nH
Decimal
29 36 nL nH
[Range]
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
[Description]
Sets the absolute vertical print starting position to buffer character data in page
mode.
This command sets the absolute print position to [(nL + nH x 256) x 0.125 mm].
[Notes]
This command is effective only in page mode.
If the [(nL + nHx 256) x (vertical or horizontal motion units)] exceeds the specified printing area,
this command is ignored.
The horizontal starting buffer position does not move.
The reference starting position is that specified by ESC T.
This command operates as follows, depending on the starting position of the printing area
specified by ESC T:
When the starting position is set to the upper left or lower right, this command sets the absolute
position in the vertical direction.
When the starting position is set to the upper right or lower left, this command sets the absolute
position in the horizontal direction.
[Reference]
ESC $, ESC T, ESC W, ESC \, GS \
[Example]
char SendStr[29] = {0x1B,0x4C,0x1B,0x57,0x20,0x00,0x00,0x00,0x40,
0x01,0x90,0x01, 0x32,0x32,0x32,0x32,0x32,0x32,
0x0A,0x1D,0x5C,0x20,0x00,0x33,0x33,0x33,0x33, 0x0A,0x0C};
SendData(SendStr, 29);
char SendStr[29] = {0x1B,0x4C,0x1B,0x57,0x20,0x00,0x00,0x00,0x40,
0x01,0x90,0x01, 0x32,0x32,0x32,0x32,0x32,0x32,