Set Relative Print Position - NCR 7158 Owner's Manual

Thermal receipt and impact printer
Table of Contents

Advertisement

7-48 Chapter 7: Programming Guide

Set Relative Print Position

ASCII:
Hexadecimal:
Decimal:
Value of n:
To Move the Relative Starting Position Right of the Current Position by
n dots:
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 by n
dots:
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.
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.
(Set Relative Print Position—continued on the next page)
Formulas:
To move to the left:
Determine the value of n by multiplying the number of columns to
move left of the current position by 10 (slip or receipt standard pitch)
or 8 (receipt 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
ESC \ n1 n2
1B 5C n1 n2
27 92 n1 n2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents