User`s manual

Margins
ESC
(
Format:
ASCII code:
ESC (
Decimal:
27
40
Hexadecimal:
1B
28
nl
nl
nl
Set
PaPe
Format
n2 . . .
n9
n2 . . .
n9
n2 . . .
n9
Comments:
Specifies margins (top, bottom, left, and right) within a specified page.
The following values can be used for nl, which specifies the paper size:
0: Same as physical paper size
1: A4 fed lengthwise
2: A5 fed lengthwise
4: B5 fed lengthwise
5: Letter fed lengthwise
6: Half Letter fed lengthwise
7:
Legal fed lengthwise
9: A4 fed sideways
10: A5 fed sideways
12: B5 fed sideways
13: Letter fed sideways
14: Half Letter fed sideways
15: Legal fed sideways
The next eight characters are used to set the margins: n2 and
n3
specify
the top margin; n4 and n5 specify the bottom margin; n6 and n7 specify
the left margin;
n8
and
n9
specify the
right
margin. In each case, the
margin is specified in units of the minimum increment, using the
formula: total distance
=
nl
+
(n2
x 256). The minimum increment is
specified with ESC q. The margins are cleared if the paper size is
changed. Margins must be less than 5461 in dots.
Print position movement
ESC
1
Set Absolute Print Position on Page
Format:
ASCII code:
ESC )
nl n2 n3 n4
Decimal:
27
41
nl n2 n3 n4
Hexadecimal:
1B
29
nl n2 n3 n4
Comments:
Specifies the position at which subsequent data is printed. The values
of nl and n2 specify the distance of
the
print position from the origin in
the X (horizontal) direction; n3 and n4 specify the distance of the print
position from the origin in the Y (vertical) direction. In each case, the
distance is specified in units of the minimum increment, using the
formula: total distance
=
nl
+
(n2
x 256). The minimum increment is
specified with ESC q.
A-16
Page Printer Commands