Vertical And Horizontal Positioning; Horizontal Tab; Set Horizontal And Vertical Minimum Motion Units; Set Column - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

Vertical and horizontal positioning

The horizontal positioning commands control the horizontal print positions of characters on the receipt.
The commands describe operation for 80mm paper. If the printer supports 82.5mm paper, the dot spacing is the same but
there are 640 printable dots rather than 576 printable dots on the 80mm paper.

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. If underline is set, tab spaces skipped by this command are not underlined.
Print initialization sets 32 tabs at column 8, 16, 24...

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
Sets the horizontal and vertical motion units to 1/x inch and 1/y inch respectively, until the printer is initialized, reset, or
powered off.
When x or y is set to 0, the default setting for that motion unit is used. When combined with other commands, the
calculated result is truncated to the minimum value of the mechanical pitch.
Mode
Standard
Page (upper left or lower right)
Page (upper right or lower left)

Set column

ASCII
ESC DC4 n
Hexadecimal
1B 14 n
Decimal
27 20 n
Value of n:
1 – 44 = Standard pitch
1 – 56 = 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.
Related information
This is ignored in LEGACY emulation and the parameter byte goes into the print buffer.
Range of x:
0 – 255
Range of y:
0 – 255
Commands using x
1B 20, 1B 24, 1B 5C, 1D 4C, 1D 57
1B 20, 1B 24, 1B 57, 1B 5C, [1C 53]
1B 33, 1B 4A, 1B 4B, 1B 57, 1D 24, 1D 5C
A799-2PG0001B 4/2016
Chapter 4: Programming Commands
Default of x:
203
Default of y:
203
Commands using y
1B 33, 1B 4A, 1B 4B, 1D 56
1B 33, 1B 4A, 1B 4B, 1B 57, 1D 24, 1D 56, 1D 5C
1B 20, 1B 24, 1B 57, 1B 5C, [1C 53], 1D 56
47

Advertisement

Table of Contents
loading

Table of Contents