Set Absolute Starting Position - NCR 7158 Owner's Manual

Thermal receipt and impact printer
Table of Contents

Advertisement

7-46 Chapter 7: Programming Guide

Set Absolute Starting Position

ASCII:
Hexadecimal:
Decimal:
Value of n:
Value of n1
:
Value of n2
:
The values for n1 and n2 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
n1 = 24 n2 = 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.
ESC $ n1 n2
1B 24 n1 n2
27 36 n1 n2
Number of dots to be moved from the beginning of
the line.
Remainder after dividing n by 256.
Integer after dividing n by 256.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents