User manual

APOS Premium Printer Series User Manual Page 51 /136 Reference: FDE 3107312 Issue A
S
ET RELATIVE PRINT POSITION
Moves the print-starting position the specified number of dots times horizontal motion unit either right (up
to the right margin) or left (up to the left margin) of the current position. The print starting position is reset
to the first column after each line.
ASCII
ESC \ n1 n2
Hexadecimal 1B 5C n1 n2
Decimal
27 92 n1 n2
Value of n
To Move the Relative Starting Position Right of the Current Position:
[n x horizontal or vertical motion units] = Number of dots to be moved right of the current position
n1 = Remainder after dividing n by 256
n2 = Integer after dividing n by 256
The values for n1 and n2 are two bytes in low byte, high byte word orientation.
To Move the Relative Starting-Position Left of the Current Position:
[n x horizontal or vertical motion units] = Number of dots to be moved left of the current position
n1 = Remainder after dividing (65,536-n) by 256
n2 = Integer after dividing (65,536-n) by 256
The values for n1 and n2 are two bytes in low byte, high byte word orientation.
Formulas
To move to the left:
The example shows how to set the relative position 20 dots to the left of the current position.
65,536-20 = 65516
65,516/256 = 255, remainder of 236
n1 = 236, n2 = 255
To move to the right:
The example shows how to set the relative position 20 dots to the right of the current position.
20/256 = 0, remainder of 20
n1 = 20, n2 = 0
Related Information
If the Set Horizontal and Vertical Minimum Motion Units command (1D 50) is used to change the
horizontal and vertical minimum motion unit, the parameters of this command (Set Relative Print Position)
will be interpreted accordingly. For more information, see the description of the Set Horizontal and
Vertical Minimum Motion Units command (1D 50) in this document.