Set Print Area In Page Mode - CognitiveTPG A776 ColorPOS Programming Manual

Two-color thermal/impact hybrid printer
Hide thumbs Also See for A776 ColorPOS:
Table of Contents

Advertisement

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:
n1–4 =
n5 =
n6 =
n7 =
n8 =
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
y0 =
0
dx =
576
2.8 in.
dy =
576
2.8 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 D 07/13
Receipt Slip
0
0
64
144
2
1
64
128
2
5
0
0
200
2.5 in.
705
9.7 in.
Chapter 5: Programming commands
��
��������
��
����������
������������������
A776 (B780) Programming Guide
107

Advertisement

Table of Contents
loading

Table of Contents