Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 12
Using Job-Control Commands
Selecting Simplex or Duplex Mode
If a job is printed in simplex mode, it is printed on one side of the paper. Jobs that print
on both sides of the paper are duplex-mode jobs.
You select simplex or duplex mode by writing an escape sequence with the following
format to the printer:
mode-number is 0 for simplex, 1 for duplex with long-edge binding, or 2 for duplex
with short-edge binding. The default mode is simplex.
The following example sets duplex mode with long-edge binding:
SBUFFER ':=' [%33,"&l1S"] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,SBUFFER,@S^PTR '-' @SBUFFER);
IF <> THEN ...
Selecting the Paper Source
The paper source designates one of two paper locations as the paper source for
printing: the internal tray or manual input.
You select the paper source by writing an escape sequence with the following format
to the printer:
For PCL 4, the options for tray-number are:
For PCL 5, the options are:
Escape sequence for setting simplex/duplex mode:
esc&lmode-numberS
Note. Duplexing is supported only on the 5577 laser printer.
Escape sequence for selecting the paper source:
esc&ltray-numberH
0 Print the current page without changing the paper source
1 Internal tray (the default source)
2 Manual paper feed
0 Print the current page without changing the paper source
1 Upper paper tray (the default source)
2 Manual paper feed