This document describes how to access the extended features of the Phaser 4600/4620 in environments for which Xerox
does not make a custom driver.
Note: Some of the commands and syntax used in this document requires familiarity with either PostScript (PS) or Printer
Command Language (PCL).
This document provides the Printer Description Language (PDL) commands and syntax for each feature. The following
tables are also included:
features supported by the Phaser 4600/4620
commands to use in a PCL print job
commands to use in a PS print job
This document is not intended as a PS or PCL reference manual, but a guide for using the extended features in PS, PCL or
ASCII print jobs.
Using this Guide
1. Refer to the Feature List for the feature you wish to implement. Select the page number to jump to that page.
2. Follow the syntax listed for the command you selected. Read the “Dependencies/Caveats” section. You can access
features using several methods:
PCL or PS commands
PJL SET commands
Xerox specific COMMENT command.
Feature Listing
PCL and ASCII print jobs can use PJL commands or PCL commands to access the attributes of the device. If there is more
than one method listed to access a specific feature, determine the best method for your application and use that method.
PostScript print jobs use PS commands. If there is more than one method listed to access a specific feature, determine the
best method for your application and use that method.
dc10cc0470
Customer Support Page 1
Page 2
Getting Started
PCL and ASCII print jobs can use PJL commands or PCL commands to access the attributes of the device. If there is more
than one method listed to access a specific feature, determine the best method for your application and use that method.
Comment Commands
To process all PJL COMMENT commands, enclose them with XRXBegin and XRXEnd commands.
Example PCL or ASCII print job:
@PJL COMMENT XRXb eg in
@PJL COMMENT OID_ AT T_S TA RT_SHEET OID_V AL_ JO B_ SHEET_NONE;
@PJL COMMENT XRXe nd
The first parameter of the command is an attribute followed by a value.
Comment commands must end with a semicolon except for the XRXbegin and XRXend commands.
A comment command not enclosed by XRXbegin and XRXend is NOT a Xerox specific command and is treated as a real
comment with no functional attachment to its contents.
The comment commands are specific to the Phaser 4600/4620 Series.
PJL SET Commands
PJL SET commands are available for some features. If you choose to use these commands, do not enclose them with the
XRXBegin and XRXEnd commands.
PJL SET commands do not require a semicolon at the end of the command line.
PCL Commands
PCL commands are available for some features. If you choose to use these commands do not enclose them with the
XRXBegin and XRXEnd commands. Refer to a PCL reference manual for more specific information regarding PCL commands.
PS Commands
PS commands are for some features. If you choose to use these commands, do not enclose them with the XRXBegin and
XRXEnd commands. Refer to a PS reference manual for more specific information regarding PS commands.
dc10cc0470
Customer Support Page 2
Page 3
Table of Contents
Accessing Extended Features .............................................................................................................................................................. 1
Using this Guide ................................................................................................................................................................................ 1
PJL SET Commands ..................................................................................................................................................................................2
General Comment Commands .........................................................................................................................................................5
Job Name .................................................................................................................................................................................................5
Job Type ......................................................................................................................................... Error! Bookmark not defined.
Media Comment Commands ............................................................................................................................................................7
Media Source ..........................................................................................................................................................................................7
Media Size ................................................................................................................................................................................................9
Custom Media Sizes ......................................................................................................................................................................... 10
Media Type ........................................................................................................................................................................................... 10
Front Cover Only ................................................................................................................................................................................ 15
Front Cover Only Media Color ..................................................................................................................................................... 16
Front Cover Only Media Size ........................................................................................................................................................ 16
Front Cover Only Media Type ...................................................................................................................................................... 16
Front And Back Cover ...................................................................................................................................................................... 16
Front And Back Cover Media Color ........................................................................................................................................... 16
Front And Back Cover Media Size .............................................................................................................................................. 17
Front And Back Cover Media Type ............................................................................................................................................ 17
Interleave Media Color ................................................................................................................................................................... 17
When the interpreter receives this command it begins to parse PJL COMMENT commands to check for Xerox-specific
commands until it receives the command to stop parsing.
PJL COMMENT Command
@PJL COMMENT XRXbegin
XRXEnd
When the interpreter receives this command it stops parsing PJL COMMENT commands.
PJL COMMENT Command
@PJL COMMENT XRXend
General Commands
Job Name
The value for Job Name is stored for printing on the banner page.
PJL COMMENT Command
@PJL COMMENT JOB NAME=”string”;
Where string is a maximum of 40 characters. This appears as the first item on the banner sheet.
Job Owner
The value for Job Owner is stored for printing on the banner page.
PJL COMMENT Command
@PJL COMMENT OID_ATT_JOB_OWNER “string”;
Where string is a maximum of 40 characters. This appears as the second item on the banner sheet.
Copies
Use this command to specify the number of non-collated sets of a document in a print job.
With COPIES specified, the device renders X number of copies of page 1 of the document,
X number of copies of page 2, and so on. Use the COLLATION command in conjunction
with the COPIES command to set a collate value.
PJL SET PCL Cmd PCLXL/6 PS Cmd
@PJL SET COPIES=int;
Esc&lintX uint16 int ubyte
pagecopies
<</NumCopies int>>
Where int is 1 to 9999.
dc10cc0470
Customer Support Page 5
Page 6
@PJL COMMENT
OID_VAL_SAVE_DISPOSITION_SAVE_ONLY;
Use the command @PJL JOB NAME = "job_name" to specify the name of the saved job. If this command is
not used the default name is the name of the print job.
Saved Job
Saves a job to the device hard drive in a public folder named “Public”
PJL COMMENT Command
OID_ATT_SAVE_DISPOSITION
Save and Print Job
Prints the job and saves a copy of the job to the device hard drive in a public folder named “Public”
PJL COMMENT Command
dc10cc0470
Customer Support Page 6
Page 7
PS Cmd
featurebegin{
where string is from the table below.
PCL5 Cmd
<Esc>&l#H
where # is the number assigned to the selection.
PCL XL/6
ubyte ## attr_ubyte MediaSource
where ## is the hex number assigned to each selection.
Tray location
PS Cmd
PCL5
PCL XL/6
Banner Sheet (Start Sheet)
This command turns on/off the banner sheet that prints at the beginning of every job. It only applies to the job that
contains the command; it does not affect any other jobs. If the device is configured to disable banner sheets, this
command is ignored.
PJL COMMENT Command
@PJL COMMENT OID_ATT_START_SHEET OID_VAL_JOB_SHEET_”string”;
Where string is:
NONE Do not create a banner sheet for this job.
FULL Create a banner sheet for this job. By default, if the START SHEET comment is not included a
banner sheet is generated unless the device has banner sheet disabled.
Media Commands
Media Source
This command specifies the tray to supply the job’s media. These are PCL commands rather
than PJL commands. Insert this command within the PCL portion of the print job.
automatic <Esc>&l7H 0x01
Tray 1 (Bypass) tray-1 <Esc>&l4H 0x04
Tray 2 tray-2 <Esc>&l1H 0x05
Tray 3 tray-3 <Esc>&l5H 0x07
Tray 4 tray-4 <Esc>&l8H 0x08
Tray 5 tray-5 <Esc>&l21H 0x0A
Tray 6 tray-6 <Esc>&l22H 0x09
If an optional Hi-capacity Feeder (HCF) is used, the tray location is the tray position it is in. If the device is a
three tray configuration with a HCF, the HCF is tray 3.
Where X is the tray mapping number from the application and # is the 4600/4620 value as
shown above.
Example: to remap l23H to tray 3 use the following c ommand:
%-12345X@PJL
@PJL DEFAULT LPARM:PCL XPCLPAPERSRC23 = 5
%-12345X
PJL command for resetting the PCL tray mappings to factory default values
The PCL tray logic can be set back to factory default without resetting NVRAM. If the “y”
parameter is set “99” in the @PJL DEFAULT LPARM:PCL XPCLPAPERSRCx = y command
structure, it will set the printer default for that tray back to the default tray mapping
parameter. Using the example above, the following PJL command syntax would set the PCL
command of “5” back to “current tray”.
Changing the device’s default mapping may cause issues when trying to select a paper tray with the PCL 5 driver.
dc10cc0470
Customer Support Page 8
Page 9
int
(216 x 356 mm)
(184 x 266 mm)
0x11 saC6 Envelope
0x02 C6
Media Size
This command specifies the size of media on which to print the job. These are PCL commands rather than PJL commands.
Insert a media size command within the PCL portion of the print job.
envelope <Esc>&n9Wdenvelope 0x08 0x00 envelope
labels <Esc>&n7Wdlabels 0x06 0x00 labels
stationery-letterhead <Esc>&n22Wdstationery-letterhead 0x15 0x00 stationery-letterhead
stationery-recycled <Esc>&n20Wdstationery-recycled 0x13 0x00 stationery-recycled
other <Esc>&n6Wdother 0x05 0x00 other
stationery-pre-printed <Esc>&n23Wdstationery-pre-printed 0x16 0x00 stationery-pre-printed
stationery-pre-punched <Esc>&n23Wdstationery-pre-punched 0x16 0x00 stationery-pre-punched
bond <Esc>&n5Wdbond 0x04 0x00 bond
custom1 <Esc>&n8Wdcustom1 0x07 custom1
dc10cc0470
Customer Support Page 10
Page 11
Custom3
<Esc>&n8Wdcustom3
0x07 custom3
Custom4
<Esc>&n8Wdcustom4
0x07 custom4
Custom5
<Esc>&n8Wdcustom5
0x07 custom5
Custom6
<Esc>&n8Wdcustom6
0x07 custom6
Custom7 <Esc>&n8Wdcustom7 0x07 custom7
dc10cc0470
Customer Support Page 11
Page 12
PS String Value
PCL5 Cmd
PCL XL/6 Hexadecimal and String
Media Color
Use this command to indicate the color of the media used to print a job. The strings are case sensitive with the first letter
capitalized and the rest lower-case. When using a Media Source command, issue a Media Type command set to
where # is the length of string+1; and string from the table below
ubyte_array uint16 ## ##string attr_ubyte MediaColor
Example: 0xc8 0xc1 0x20 0x00 <media-color>white</media-color> 0xf8 0x81 0x47
where ## ## is the length of the string in hex (lsb, msb), and the string from the table
below.
dc10cc0470
Customer Support Page 12
Page 13
Formatting Commands
Collation
This attribute controls the collation status of the output. COLLATE results in sets of pages, for example two copies of a 3page job results in pages 1 through 3 printed, then pages 1 through 3 printed again. NO_PAGE COLLATE results in page 1
printing twice, page 2 printing twice and page 3 printing twice.
PJL COMMENT Command PS Set Page
@PJL COMMENT OID_ATT_OUTPUT string; /Collate true
/Collate false
Where string is one of the following:
OID_VAL_OUTPUT_PAGE_COLLATE
OID_VAL_OUTPUT_NO_PAGE_COLLATE
Binding
BINDING defines along which edge a duplex page is flipped. In portrait orientation, LONGEDGE binding indicate pages
turn as in a book, SHORTEDGE binding indicates pages turn as those in a flip chart. In printing/graphic arts nomenclature,
SHORTEDGE is analogous to DUPLEX TUMBLE. BINDING is ignored if the document is simplex.
PJL SET
@PJL SET BINDING= string
Where string is:
SHORTEDGE
LONGEDGE
Simplex / Duplex Printing
This command specifies if a job is to print on one side or both sides of the sheet. Choose one of the methods below for
indicating this feature.
PS Cmd
PCL5 Cmd
PCL XL/6
PostScript PCL5 PCL XL/6
one-sided /Duplex false
two-sided-long-edge /Duplex true
See commands in table below
<Esc>&l#S
where # is the number assigned to the selection
See commands in table below
<Esc>&l0S 0xc0 0x00 0xf8 0x34
/Tumble false
<Esc>&l1S Portrait 0xc0 0x00 0xf8 0x35 [ubyte
/Tumble false
[ubyte eSimplexFrontS ide attr_ubyte
SimplexPageMode]
eDuplexHorizontal Bindi ng attr _ubyte
DuplexPageMode]
@PJL SET MULTIBINMODE=MAILBOX
@PJL SET OUTBIN=Bin 2
&l2G
Main Tray
Use PJL commands
@PJL SET MULTIBINMODE=MAILBOX
@PJL SET OUTBIN=Bin 1
&l1G
Bin 1
Note: w/ Mailbox
@PJL SET OUTBIN=Bin 2
Bin 2
Note: w/ Mailbox
Use PJL commands
@PJL SET MULTIBINMODE=MAILBOX
@PJL SET OUTBIN=Bin 3
&l3G
Bin 3
Note: w/ Mailbox
Use PJL commands
@PJL SET MULTIBINMODE=MAILBOX
@PJL SET OUTBIN=Bin 4
&l4G
Bin 4
Note: w/ Mailbox
Use PJL commands
@PJL SET MULTIBINMODE=MAILBOX
@PJL SET OUTBIN=Bin 5
&l5G
Automatically
Select
Use PJL commands
@PJL SET MULTIBINMODE=STACKING
&l0G
PJL COMMENT Command
@PJL COMMENT XRXSTAPLE=string;
Finishing Commands
Offset
This feature provides a physical offset of hard copy that distinguishes between sets or stacks within a job.
PJL SET Cmd PS Cmd
@PJL SET JOBOFFSET=string<</Jog int>>
Where string is:
ON
OFF
Where int is:
0 = no offset
3 = offset each set
Output Destination
Indicates the output bin where the print job is sent.
Tray PS Set Page PJL Command PCL5e / PCL6
Cmds
Use PJL commands @PJL SET MULTIBINMODE=MAILBOX
&l2G
Note: the PJL commands for output destination are case sensitive.
Staple
This command indicates use and location of staple(s).
Where string is:
PORTRAIT
LANDSCAPE
dc10cc0470
Customer Support Page 14
PS SET Page
/Staple int /StapleDetails<</Type 1
/StapleLocation(“string”)
Where int is:
0 = No Staple
3 = Staple at end of set
Where string is:
SinglePortrait
SingleLandscape
Page 15
Image Quality Commands
Print Quality
This command sets the resolution value.
PS Command
<</PostRenderingEnhance true
/PostRenderingEnhanceDetails currentpagedevice
1 index get 1 dict copy
dup /Type 33 put
dup /OutputMode (string) put
>> setpagedevice
where string is one of the following.
toner-saver
standard
enhanced
Print Job Accounting Commands
Network Accounting
Allows User ID data to be sent with job for the purposes of Job-based accounting.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_ACCOUNTING_INFORMATION_AVP “XRX_USERID,xxxx”
Where xxxx is actual User ID entered by user.
Allows Account ID data to be sent with job for the purposes of Job-based accounting.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_ACCOUNTING_INFORMATION_AVP “XRX_ACCTID,yyyy1”
Where yyyy is actual Account ID entered by user.
Cover Commands
Front Cover Only
This command specifies a job has a front (only) cover sheet and whether the cover sheet is imaged (TRUE) or blank
(FALSE).
PJL COMMENT Cmd DSC Comment Cmd
@PJL COMMENT
OID_ATT_FIRST_PAGE_IMAGED “String”;
Where string is:
TRUE
FALSE
dc10cc0470
Customer Support Page 15
%%OID_ATT_FIRST_PAGE_IMAGED “String”;
Page 16
Front Cover Only Media Color
This command indicates the first page of a job is to print on media of a specified color. Requires that
OID_ATT_FIRST_PAGE_IMAGED is also used.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_FIRST_PAGE_MEDIA_COLOR “string”;
See Media Color Section for accepted string values.
Front Cover Only Media Size
This command indicates the first page of a job is to print on media of a specified size. Requires that
OID_ATT_FIRST_PAGE_IMAGED is also used.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_FIRST_PAGE_MEDIA_SIZE “mm mm”;
Where mm mm is one of the metric sizes listed in the MEDIA SIZE table.
Front Cover Only Media Type
This command indicates the first page of a job is to print on media of a specified type. Requires that
OID_ATT_FIRST_PAGE_IMAGED is also used.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_FIRST_PAGE_MEDIA_TYPE “string”;
See Media Type Section for accepted string values.
Front And Back Cover
This command indicates the first and last pages of a job are covers. Do not use this command in conjunction with the
FIRST_PAGE_IMAGED.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_FIRSTLAST_PAGE_IMAGED “string”;
Where string is:
TRUE
FALSE
Front And Back Cover Media Color
This command indicates the first and last page of a job is to print on media of a specified color. Requires that
OID_ATT_FIRSTLAST_PAGE_IMAGED is also used.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_FIRSTLAST_PAGE_MEDIA_
COLOR “string”;
See Media Color Section for accepted string values.
dc10cc0470
Customer Support Page 16
Page 17
Front And Back Cover Media Size
Overrides the document’s media size for the first and last sheet. Requires OID_ATT_FIRSTLAST_PAGE_IMAGED to be
used also.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_FIRSTLAST_PAGE_MEDIA_SIZE “mm mm”;
Where mm mm is one of the metric sizes listed in the MEDIA SIZE table.
Front And Back Cover Media Type
Overrides the document’s media type for the first and last sheet. Requires OID_ATT_FIRSTLAST_PAGE_IMAGED to be
used also.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_FIRSTLAST_PAGE_MEDIA_TYPE “string”;
See Media Type Section for accepted string values.
Interleave (transpa renc y sep ar ato r)
This command identifies the type of page to insert between sets.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_INTERLEAVE OID_VAL_INTERLEAVE_string;
Where string is one of the following:
NONE
BLANK
IMAGED
Interleave Media Color
This command identifies the color of the interleaved pages.
PJL COMMENT Cmd
@PJL COMMENT OID_ATT_INTERLEAVE_COLOR “string”;
See Media Color Section for accepted string values.
PJL/PCL Dependencies/Caveats
• Locate all PJL commands in the first 64KB of the job.
• To combine printer escape commands (not including PJL commands):
The first two characters after the <esc> MUST be the same.
All alpha characters MUST be lowercase, except the final terminating character.
The commands are read left to right. Combine them in the order you wish them executed.
For example, print 5 copies (<ESC>&
l5X) and use letter size (<ESC>&l2A) is combined as: <ESC>&l5x2A
• In case of duplicate commands, the last one requested takes precedence.
• The @PJL SET COPIES takes precedence over the PCL Escape Command (<ESC> & l int X>) to determine number of
copies. In general, a PJL command takes precedence over a PCL command.
dc10cc0470
Customer Support Page 17
Page 18
•When printing a job with an odd number of pages and duplex front and back imaged covers, the printer always prints
Note:
on both sides of the front and back covers. The remaining pages are printed on the document body media type and
color with a blank page inserted to allow an image on both sides of the back cover.
•When using the Blank Front or the Blank Front & Back Cover command, the Cover Media Size command is optional. If
the cover size command is not in the PDL, the printer assumes the cover media size is the same as the document
body.
•Use one of the following methods to specify media selection:
Describe the media attributes with size, color, and type and allow the device to select the matching source tray. If
the media description method is used, leave source tray selection out of the request or set to Auto. If not, the tray
selection defeats the auto tray selection capabilities of the device.
Indicate the tray to supply media. If the source tray method is used, the system automatically defaults paper
type to the defined SYSTEM DEFAULT unless specified otherwise. This prevents inadvertent use of special paper
types. To override, include a paper type specification of UNSPECIFIED in the job.
PS Dependencies/Caveats
•The following media sizes do not print duplex and do not support staple commands: A6, B6, 5 x 7" Postcard (4.5 x 6"),
envelopes and any custom sized media where the page width is less than 5.5". A request to duplex or staple these
media sizes is ignored.
•Jobs that indicate Transparencies, Labels, Envelopes or Tab-Stock do not support duplex commands. The duplex print
request is ignored when any of these media types are used.
•When printing an odd number of pages in a document with duplex front and back imaged covers, the printer always
prints on both sides of the front and back covers. The remaining pages print on the document body media type and
color with a blank page inserted to allow an image on both sides of the back cover.
•When using the Blank Front or the Blank Front and Back Cover command, the Cover Media Size command is optional.
If the Cover Media Size command is not in the PDL, the printer assumes the cover media size as that of the document
body.
•Use one of the following methods to specify media selection:
Describing the media attributes with size, color, and type and allowing the device to select the matching source
tray. If the media description method is used, leave source tray selection out of the request or specifically set to
Auto. Otherwise, the tray selection defeats the auto tray selection capabilities of the device.
Specifically indicate the tray to feed from. If the source tray method is used, the system automatically defaults
paper type to the defined SYSTEM DEFAULT unless specified otherwise. This occurs to prevent inadvertent use of
special paper types. To override, include a paper type specification of UNSPECIFIED in the job.
Examples
Basic PCL/PJL Template
This section illustrates a standard PCL template example that is used to access general
print features. This example lists each feature and the syntax, both PCL commands and
This print job specifies
the following items:
• Job owner
• Job name
• Heavyweight
• Green paper
• 1 staple
• Sample set
• Draft mode
Note:
The quotations in the Job
Name and Job Owner lines
are required.
dc10cc0470
Customer SupportPage 18
PJL, required to use these features.
Note: This section is only an example that may include features and commands that do
not exist for this product.
Section 1 (Opening Command, Required for all files)
<ESC>%-12345X@PJL JOB
Section 2 (PJL Set Commands)
@PJL SET RESOLUTION=600
@PJL SET COPIES=1
@PJL SET DENSITY=4
This section is an example of a standard PostScript template that is used to access general
print features. This template lists each feature and the syntax, both Postscript commands
and DSC (Document Structuring Conventions) required.
Note: This section is only an example that may include features and commands that do
not exist for this product.