Chapter 5: Programming commands
38
A776 (B780) Programming Guide
A776-PG00001 D 07/13
Set column
ASCII
ESC DC4
n
Hexadecimal
1B 14
n
Decimal
27 20
n
Value of
n:
Receipt -
1–44 = Standard pitch
1–56 = Compressed pitch
Slip -
1–66 = Standard pitch
1–80 = Compressed pitch
Default of
n:
1
Prints the first character of the next print line in column
n
. It must be sent for each line not printed at column one. The
value of
n
is set to one after each line.
Exceptions
This command cannot be used with single- or double-density graphics.
Set absolute starting position
ASCII
ESC $
n
1
n
2
Hexadecimal
1B 24
n
1
n
2
Decimal
27 36
n
1
n
2
Value of
n:
n
= Number of dots to be moved from the beginning of the line.
n
1 = Remainder after dividing
n
by 256.
n
2 = 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
n
1 = 24
n
2 =
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).
Line spacing is set for the station or stations selected by the command 1B 63 31 n .
Summary of Contents for A776 ColorPOS
Page 12: ...Contents x A776 B780 Programming Guide A776 PG00001 D 07 13...
Page 14: ...Chapter 1 About this Guide 2 A776 B780 Programming Guide A776 PG00001 D 07 13...
Page 172: ...Code page 1255 Hebrew...
Page 173: ...Code page KZ_1048 Kazakh Code Page KZ_1048 Kazakh...
Page 174: ...Appendix C Electronic Journal 162 A776 B780 Programming Guide A776 PG00001 D 07 13...
Page 179: ......
Page 180: ...A776 PG00001 Rev D 07 2013...