Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 11
Using Job-Control Commands
Use the following sequences to send the Universal Exit Language/Start PJL and @PJL
enter-language commands:
The following example selects PostScript mode:
SBUFFER ':=' [%33,"%-12345X@PJL enter language = PostScript",
%12] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,SBUFFER,@S^PTR '-' @SBUFFER);
IF <> THEN ...
Using Job-Control Commands
The Tandem laser printers support PCL commands that provide job-control capabilities
such as selecting the number of copies and whether you want to print on one side of
the paper or on both sides. The following paragraphs describe these features.
These features are supported on all Tandem laser printers except where noted.
Selecting the Number of Copies
You select how many copies of the print job you require by writing an escape sequence
with the following format to the printer:
copies indicates the number of copies of the job you want printed. The following
example prints 5 copies of the current job:
SBUFFER ':=' [%33,"&l5X"] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,SBUFFER,@S^PTR '-' @SBUFFER);
IF <> THEN ...
Escape sequence to send the Universal Exit Language/Start PJL command:
esc%-12345X
Character sequence to enter PostScript mode:
@PJL enter language = PostScript<LF>
Character sequence to enter PCL mode:
@PJL enter language = PCL<LF>
Escape sequence for specifying the number of copies to print:
esc&lcopiesX