Cognitive Solutions A776 Set print area in page mode, Continued, ESC W n1, n2 ...n8, n1 -4 =

Models: B780 A776

1 192
Download 192 pages 23.55 Kb
Page 123
Image 123
Set print area in page mode

Chapter 5: Programming commands  111

Set print area in page mode

ASCII

ESC W n1, n2 ...n8

 

Hexadecimal

1B 57 n1, n2 ...n8

 

Decimal

27

87 n1, n2 ...n8

 

Range of n:

0–255

 

 

Default:

 

 

Receipt

Slip

 

n14 =

0

0

 

n5

=

64

144

 

n6

=

2

1

 

n7

=

64

128

 

n8

=

2

5

Sets the position and size of the printing area in page mode.

The command can be sent multiple times so that several different print areas, aligned in different print directions, can be developed in the printer’s page buffer before being printed using the print page mode commands (0C or 1B 0C).

Formulas

The starting position of the print area is the upper left of the area to be printed (x0, y0). The length of the area to be printed in the y direction is set to dy inches. The length of the area to be printed in the x direction is set to dx inches.

Use the equations to determine the Value of x0, y0, dx, and dy.

x0 = [(n1 + n2 × 256) × (horizontal direction of the fundamental calculation pitch)]

y0 = [(n3 + n4 × 256) × (vertical direction of the fundamental calculation pitch)]

dx = [(n5 + n6 × 256) × (horizontal direction of the fundamental calculation pitch)]

dy = [(n7 + n8 × 256) × (vertical direction of the fundamental calculation pitch)]

Default values:

 

 

Receipt

Slip

��������

 

 

��

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x0

=

0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

y0

=

0

0

 

 

 

 

 

 

 

 

 

 

dx

=

576

200

 

��

 

����������

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.8 in.

2.5 in.

 

 

 

 

 

 

 

 

 

 

dy =

576

705

 

 

 

 

 

 

 

 

 

������������������

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.8 in.

9.7 in.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Keep the following notes in mind for this command.

The fundamental calculation pitch depends on the vertical or horizontal direction.

Receipt:

• The maximum printable area in the x direction is 576/203 inches.

Slip:

The maximum printable area in the x direction is 3.024 inches. This can be set using dx = 484 half dots, for example 1B 57 00 00 00 00 E4 01 80 05.

Receipt and Slip:

The maximum printable area in the y direction depends on the available memory.

See the illustration for a graphic representation of the printing area. For more information about the fundamental calculation pitch, see the set horizontal and vertical motion units command (1D 50).

Continued . . .

A776-PG00001 C 12/09

A776 (B780) Programming Guide

Page 123
Image 123
Cognitive Solutions A776 Set print area in page mode, Continued, ESC W n1, n2 ...n8, 1B 57 n1, n2 ...n8, 87 n1, n2 ...n8