Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 13
Using Job-Control Commands
The following example selects the manual paper feed as the paper source:
SBUFFER ':=' [%33,"&l2H"] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,SBUFFER,@S^PTR '-' @SBUFFER);
IF <> THEN ...
Selecting the Output Bin
You select the output bin by writing an escape sequence with the following format to
the printer:
bin-number is 1 for the upper bin and 2 for the lower bin.
The following example selects the lower bin:
SBUFFER ':=' [%33,"&l2G"] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,SBUFFER,@S^PTR '-' @SBUFFER);
IF <> THEN ...
Separating Jobs
You issue the job separation sequence by writing an escape sequence with the
following format to the printer:
The following issues the job separation sequence:
SBUFFER ':=' [%33,"&l1T"] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,SBUFFER,@S^PTR '-' @SBUFFER);
IF <> THEN ...
3 Manual envelope feed
4 Lower paper tray
6 Envelope feeder
Escape sequence for selecting the output bin:
esc&lbin-numberG
Note. Bin selection is supported only on laser printers that support PCL 5.
Escape sequence for selecting the output bin:
esc&l1T
Note. The job separation feature is supported only on the PCL 5 laser printers.