7-46 Chapter 7: Programming Guide
Set Absolute Starting Position
ASCII:
ESC $
n1 n2
Hexadecimal:
1B 24
n1 n2
Decimal:
27
36
n1 n2
Value of
n
:
Number of dots to be moved from the beginning of
the line.
Value of
n1
:
Remainder after dividing
n
by 256.
Value of
n2
:
Integer after dividing
n
by 256.
The values for
n
1 and
n
2 are two bytes in low byte, high byte word
orientation.
Sets the print starting position to the specified number of dots (up to
the right margin) from the beginning of the line. The print starting
position is reset to the first column after each line.
Formulas:
Determine the value of
n
by multiplying the column for the absolute
starting position by 10 (slip, or receipt standard pitch) or 8 (receipt
compressed pitch). The example shows how to calculate column 29 (10
dots per column) as the absolute starting position.
28 x 10 = 280 dots (beginning of column 29)
280/256 = 1, remainder of 24
n
1 = 24
n
2 = 1
Related Information:
This command is also used in the graphics mode on the receipt. See
Graphics Commands in this chapter for more 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 Absolute 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.
Summary of Contents for 7158
Page 1: ...NCR 7158 Thermal Receipt and Impact Printer Release 1 0 Owner s Guide B005 0000 1112 Issue D...
Page 26: ...1 8 Chapter 1 About the Printer...
Page 50: ...3 12 Chapter 3 Using the Printer Clearing Check Flip Paper Jams Check Check Flip Window Door...
Page 110: ...5 28 Chapter 5 Technical Specifications Code Page 437...
Page 111: ...Chapter 5 Technical Specifications 5 29 Code Page 850...
Page 112: ...5 30 Chapter 5 Technical Specifications Code Page 852...
Page 113: ...Chapter 5 Technical Specifications 5 31 Code Page 858...
Page 114: ...5 32 Chapter 5 Technical Specifications Code Page 860...
Page 115: ...Chapter 5 Technical Specifications 5 33 Code Page 863...
Page 116: ...5 34 Chapter 5 Technical Specifications Code Page 865...
Page 117: ...Chapter 5 Technical Specifications 5 35 Code Page 866...
Page 128: ...6 10 Chapter 6 Communication Interface...
Page 286: ...7 158 Chapter 7 Programming Guide...
Page 314: ...Index 8 W Weight of printer 5 36 X XON XOFF protocol 6 6...