Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 8
Commonly Used PCL Escape Sequences
This escape sequence is equivalent to the previous two examples. Note that the
example specifies a lowercase “m” rather than an uppercase “M.”
To send escape sequences to the printer, you must construct a string of ASCII
characters according to the format of escape sequences given above and send those
characters to the printer using the WRITE[X] procedure. This example sets the left and
right margins.
SBUFFER ':=' [%33,"&a99m9L"] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,
SBUFFER,
@S^PTR '-' @SBUFFER);
Commonly Used PCL Escape Sequences
Table 11-3 lists some of the more commonly used PCL commands and indicates which
Tandem printers support each command.
Table 11-3. Common PCL Escape Sequences (page 1 of 2)
Escape
Sequence Function Performed
5515/5516/55
18 Matrix
Line Printers
5574 and
5577 Laser
Printers
5573 and
5573D Laser
Printers
escE Resets the printer X X X
esc&a#L Left margin X X X
esc&a#M Right margin X X X
esc&a#P Print direction (degrees
i
n 90-degree increments)
X
esc&d#D Underline enable X X X
esc&d@ Underline disable X X X
esc&k#H Horizontal motion index X X
esc&l#A Paper size X X
esc&l#C Vertical motion index X X
esc&l#D Line spacing X X X
esc&l#E Top margin X X
esc&l#G Output bin selection X
esc&l#H Paper source X X
esc&l#O Orientation X X
esc&l#P Page length X X X
esc&l#S Simplex/duplex selection X
(5
577 only)
esc&l1T Job separation X
esc&l#V Select VFC channel X
esc&l#W Programmable VFC X