7197 Series II Owner’s Guide Chapter 6: Commands
August 2011
172
Set Relative Vertical Print Position in Page Mode
ASCII: GS \ nL nH
Hexadecimal: 1D 5C nL nH
Decimal:
29 92 nL nH
Sets the relative vertical print starting position from the current position. This command
can also change the horizontal and vertical motion unit. The unit of horizontal and vertical
motion is specified by this command.
This command functions as follows, depending on the print starting position set by Select
Print Direction in Page Mode (1B 54):
When the starting position is set to the upper left or lower left of the printing area, the vertical
motion unit (y) is used.
When the starting position is set to the upper right or lower left of the printing area, the
horizontal motion unit (x) is used.
Value:
The value for the horizontal and vertical movement cannot be less than the minimum
horizontal movement amount, and must be in even units of the minimum horizontal
movement amount.
Formulas:
The distance from the current position is set to [(nL + nH x 256) x vertical or horizontal
motion unit] inches. The amount of movement is calculated only for the receipt.
When pitch n is specified to the movement downward:
nL + nH x 256 = n
When pitch n is specified to the movement upward (the negative direction), use the
complement of 65536.
When pitch n is specified to the movement upward:
nL + nH x 256 – 65536 – N
Exceptions:
This command is used only in Page Mode, otherwise it is ignored.
Any setting that exceeds the specified printing area is ignored.
Example:
MSComm1.Output = Chr$(&H1D) & Chr$(&H5C) & Chr$(nL) & Chr$(nH)