Cognitive Solutions B780, A776 manual Set column, Set absolute starting position, 3.33 mm 0.13”

Models: B780 A776

1 192
Download 192 pages 23.55 Kb
Page 60
Image 60
Set column

48 Chapter 5: Programming commands

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 columnn. 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 $ 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).

Line spacing is set for the station or stations selected by the command 1B 63 31 n .

A776 (B780) Programming Guide

A776-PG00001 C 12/09

Page 60
Image 60
Cognitive Solutions B780 Set column, Set absolute starting position, Set vertical line spacing to 1/6 inch, 3.33 mm 0.13”