TH320/TH420
Programmers Guide
89
Set print area in page mode
ASCII
ESC W n 1, n2 ...n8
Hexadecimal
1B 57 n 1, n2 ...n8
Decimal
27 87 n 1, n2 ...n8
Range of n:
0- 255
Default:
Receipt Slip
n 1–4=
0
0
n 5=
64
164
n 6=
2
1
n 7=
64
00
n 8=
2
6
Set 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 d y inches. The length of the area to be printed in the x
direction is set to d x 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
2.8 in.
420
3 in.
Dy =
576
2.8 in
1500
10 in.
Keep the following notes in mind for this command.
The fundamental calculation pitch depends on the vertical or horizontal direction.
Summary of Contents for TH320
Page 1: ...TH320 TH420 Two Color Thermal Impact Hybrid Printer Programmers Guide ...
Page 75: ...TH320 TH420 Programmers Guide 67 ...
Page 121: ...TH320 TH420 Programmers Guide 113 Character Sets Character code 437 USA Standard Europe ...
Page 122: ...Programmers Guide TH320 420 114 Codepage 737 Greek ...
Page 123: ...TH320 TH420 Programmers Guide 115 Codepage 850 Multilingual ...
Page 124: ...Programmers Guide TH320 420 116 Codepage 852 Slavic ...
Page 125: ...TH320 TH420 Programmers Guide 117 Codepage 857 Turkish ...
Page 126: ...Programmers Guide TH320 420 118 Codepage 858 with Euro symbol ...
Page 127: ...TH320 TH420 Programmers Guide 119 Codepage 860 Portuguese ...
Page 128: ...Programmers Guide TH320 420 120 Codepage 862 Hebrew ...
Page 129: ...TH320 TH420 Programmers Guide 121 Codepage 863 French Canadian ...
Page 130: ...Programmers Guide TH320 420 122 Codepage 865 Nordic ...
Page 131: ...TH320 TH420 Programmers Guide 123 Codepage 866 Cyrillic ...
Page 132: ...Programmers Guide TH320 420 124 Codepage 1252 Windows Latin 1 ...
Page 134: ...Programmers Guide TH320 420 126 Codepage 1255 Hebrew ...
Page 142: ...Programmers Guide TH320 420 134 TH420 Additional Features ...
Page 156: ......
Page 157: ...TH320 TH420 Programmers Guide Wincor Nixdorf International GmbH D 33094 Paderborn ...