Chapter 6: Commands
7193 Owner’s Guide
August 1998
52
Set Relative Starting Position
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.
Hexadecimal
Decimal
ASCII
Value of n
1B 5C n1 n2
27 92 n1 n2
ESC \ n1 n2
See Examples Below
To Move the Relative Starting Position Right of the Current Position
n = 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.
Determine the value of n by multiplying the number of columns to move right of the
current position by 10 (standard pitch) or 8 (compressed pitch). The example shows how to
set the relative position two columns in standard pitch (10 dots per column) to the right of
the current position.
2 x 10 = 20 dots (two columns to be moved right of the current position)
20/256 = 0, remainder of 20
n1 = 20
n2 = 0
To Move the Relative Starting Position Left of the Current Position
n = 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.
Determine the value of n by multiplying the number of columns to move left of the current
position by 10 (standard pitch) or 8 (compressed pitch). The example shows how to set the
relative position two columns in standard pitch (10 dots per column) to the left of the
current position.
2 x 10 = 20 dots (two columns to be moved left of the current position)
65,536-20 = 65516
65,516/256 = 255, remainder of 236
n1 = 236
n2 = 255
Note:
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 Starting Position) will be interpreted accordingly. For more
information, see the description of the Set Horizontal and Vertical Minimum Motion Units
command later in this chapter.
Summary of Contents for 7193
Page 1: ...BD20 1439 A Issue B August 1998 NCR 7193 Thermal Receipt Printer Owner s Guide ...
Page 6: ...Contents 7193 Owner s Guide August 1998 x ...
Page 16: ...Chapter 2 Setting Up the Printer 7193 Owner s Guide August 1998 10 Parallel Models ...
Page 22: ...Chapter 2 Setting Up the Printer 7193 Owner s Guide August 1998 16 ...
Page 24: ...Chapter 2 Setting Up the Printer 7193 Owner s Guide August 1998 18 ...
Page 26: ...Chapter 2 Setting Up the Printer 7193 Owner s Guide August 1998 20 ...
Page 30: ...Chapter 3 Solving Problems 7193 Owner s Guide August 1998 24 ...
Page 48: ...Chapter 5 Communication 7193 Owner s Guide August 1998 42 ...
Page 88: ...Chapter 6 Commands 7193 Owner s Guide August 1998 82 ...
Page 96: ...Appendix B Print Characteristics 7193 Owner s Guide August 1998 88 ...
Page 102: ...Index 7193 Owner s Guide August 1998 94 ...
Page 103: ......