Chapter 5: Programming commands 107
A776-PG00001 D 07/13
A776 (B780) Programming Guide
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
n1
–
4
=
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 = [(
n
1 +
n
2
×
256)
×
(horizontal direction of the fundamental calculation pitch)]
• y0 = [(
n
3 +
n
4
×
256)
×
(vertical direction of the fundamental calculation pitch)]
• dx = [(
n
5 +
n
6
×
256)
×
(horizontal direction of the fundamental calculation pitch)]
• dy = [(
n
7 +
n
8
×
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 . . .
��������
��
������������������
��
����������
Summary of Contents for A776 ColorPOS
Page 12: ...Contents x A776 B780 Programming Guide A776 PG00001 D 07 13...
Page 14: ...Chapter 1 About this Guide 2 A776 B780 Programming Guide A776 PG00001 D 07 13...
Page 172: ...Code page 1255 Hebrew...
Page 173: ...Code page KZ_1048 Kazakh Code Page KZ_1048 Kazakh...
Page 174: ...Appendix C Electronic Journal 162 A776 B780 Programming Guide A776 PG00001 D 07 13...
Page 179: ......
Page 180: ...A776 PG00001 Rev D 07 2013...