Cognitive Solutions A799 manual Horizontal tab, Set horizontal and vertical minimum motion units

Models: A799

1 142
Download 142 pages 30.19 Kb
Page 45
Image 45

Revision D 12/09

Chapter 4: Programming Commands  45

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.

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.

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.

A799-PG00001D

Page 45
Image 45
Cognitive Solutions A799 manual Horizontal tab, Set horizontal and vertical minimum motion units, Set column, GS P x y