Vertical and horizontal positioning – CognitiveTPG A760 User Manual
Page 46

A760 User Guide: Programming Supplement
Chapter 4: Programming commands
46
Revision F January 2010
Vertical and horizontal positioning
The horizontal positioning commands control the horizontal print positions of characters on the
receipt and slip.
Horizontal tab
ASCII
HT
Hexadecimal 09
Decimal
9
Moves the print position to the next tab position set by the
set horizontal tab positions (1B 44 n1 n2 ... 00) command.
The print position is reset to column one after each line.
Tab treats the left margin as column one, therefore changes
to the left margin will move the tab positions.
When no tabs are defined to the right of the current
position, or if the next tab is past the right margin, line
feed is executed. HT has no effect in page mode.
Print initialization sets 32 tabs at column 9, 17, 25…
Set horizontal and vertical minimum motion units
ASCII
GS P x y
Hexadecimal 1D 50 x y
Decimal
29 80 x y
Value of x:
Horizontal
Value of y:
Vertical
Range of x:
0 – 255
Range of y:
0 – 255
Default of x:
203
Default of y:
203
Sets the horizontal and vertical motion units to 1/x inch
and 1/y inch respectively.
When x or y is set to 0, the default setting for that motion
unit is used.
The default horizontal motion is x - 203.
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.