CognitiveTPG A760 User Manual

Page 47

Advertising
background image

A760 User Guide: Programming Supplement

Chapter 4: Programming commands

47

Revision F January 2010

Set absolute starting position

ASCII

ESC $ n1 n2

Hexadecimal 1B 24 n1 n2
Decimal

27 36 n1 n2

Value of n:

n = Number of dots to be moved from

the beginning of the line.

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.
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 graphic commands in this chapter for more
information.
If the set horizontal and vertical motion units command
(1D 50) is used to change the horizontal and vertical
minimum motion unit, the parameters of this command
(set relative print position) will be interpreted accordingly.
For more information, see the description of the command
set horizontal and vertical minimum motion units
command (1D 50) in this document.

Set vertical line spacing to 1/6 inch

ASCII

ESC 2

Hexadecimal 1B 32
Decimal

27 50

Default:

3.33 mm (0.13”)

Sets the default line spacing to 4.25 mm (1/6 of an inch).

Set vertical line spacing

ASCII

ESC 3 n

Hexadecimal 1B 33 n
Decimal

27 51 n

Value of n:

Receipt - n/406 inch

Slip -

n/144 inch

Range of n:

0 – 255

Default:

Receipt - 0.13 inch (3.37 mm or 7.52 lines

per inch, 3 extra dot rows)

Slip -

0.14 inch (7.20 lines per inch,

3 extra dot rows)

Sets the line spacing for the receipt and for the slip. For the
receipt, the space is set to n/406 inches. For the slip, the
line spacing is set to n/144 inches. The line spacing equals
the character height when n is too small.

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 line spacing) will be interpreted
accordingly.

Related information

For more information, see the description of the set
horizontal and vertical minimum motion units command
in this document.

Advertising