TPSK 12 & 24 V User’s Manual
Page 28 / 66
Reference: FDE 31 08 972 Issue Z
S
ET
R
ELATIVE
P
RINT
P
OSITION
Moves the print-starting position the specified number of dots 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.
Any setting that exceeds the printable area is ignored.
ASCII
ESC \ nL nH
Hexadecimal
1B 5C
nL nH
Decimal
27 92 nL nH
Value of
n
To Move the Relative Starting Position Right of the Current Position:
n = Number of dots to be moved right of the current position
nL = Remainder after dividing n by 256
nH = Integer after dividing n by 256
The values for nL and nH are two bytes in low byte, high byte word orientation.
To Move the Relative Starting-Position Left of the Current Position:
n = Number of dots to be moved left of the current position
nL = Remainder after dividing (65536-n) by 256
nH = Integer after dividing (65536-n) by 256
The values for nL and nH are two bytes in low byte, high byte word orientation.
Note
: where nL is a multiple of 4.
Formulas
To move to the left:
The example shows how to set the relative position 20 dots to the left of the current position.
65536-20 = 65516
65516/256 = 255, remainder of 236
nL = 236, nH = 255
To move to the right:
The example shows how to set the relative position 260 dots to the right of the current position.
260/256 = 1, remainder of 4
nL = 04, nH = 01