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 . . .
��������
��
������������������
��
����������
Содержание A776 ColorPOS
Страница 12: ...Contents x A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 14: ...Chapter 1 About this Guide 2 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 160: ...Appendix B Resident Character Sets 148 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 737 Greek...
Страница 161: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 149 Code page 850 Multilingual...
Страница 162: ...Appendix B Resident Character Sets 150 A776 B780 Programming Guide A776 PG00001 D 07 13 Code Page 852 Slavic...
Страница 163: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 151 Code Page 857 Turkish...
Страница 164: ...Appendix B Resident Character Sets 152 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 858 with Eurosymbol...
Страница 165: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 153 Code page 860 Portugese...
Страница 166: ...Appendix B Resident Character Sets 154 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 862 Hebrew...
Страница 167: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 155 Code page 863 French Canadian...
Страница 168: ...Appendix B Resident Character Sets 156 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 865 Nordic...
Страница 169: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 157 Code page 866 Cyrillic...
Страница 170: ...Appendix B Resident Character Sets 158 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 1251 Cyrillic...
Страница 171: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 159 Code page 1252 Windows Latin 1...
Страница 172: ...Code page 1255 Hebrew...
Страница 173: ...Code page KZ_1048 Kazakh Code Page KZ_1048 Kazakh...
Страница 174: ...Appendix C Electronic Journal 162 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 179: ......
Страница 180: ...A776 PG00001 Rev D 07 2013...