The HP Printer Job Language (PJL) offers you more control over your print jobs. Status feedback is not supported by the PRISMAsync Print Server.
Command |
Supported syntax |
Command Description |
Support |
---|---|---|---|
Kernel commands |
|||
UEL (Universal Exit Language) |
<ESC>%-12345X |
Exits current printer language and returns control to PJL. |
Yes |
COMMENT |
@PJL COMMENT remarks [<CR>] <LF> |
Causes PJL to accept the command line as a comment |
Yes |
ENTER |
@PJL ENTER LANGUAGE = personality [<CR>]<LF> |
Selects a printer language for processing the current job (not PostScript). |
No |
Environment commands |
|||
DEFAULT |
@PJL DEFAULT [LPARM: PCL] variable = value [<CR>] <LF> |
Sets default value for environment variables. Will be used as current after next PJL Reset. |
Yes |
SET |
@PJL SET [LPARM: PCL] variable = value [<CR>] <LF> |
Sets an environment variable to a specified value for the duration of a PJL job. |
Yes |
INITIALIZE |
@PJL INITIALIZE [<CR>] <LF> |
Resets current and default PJL variables to factory default values. |
Partial, see note below |
RESET |
@PJL RESET [<CR>] <LF> |
Resets current PJL variables to default values. |
Yes |
Job Separation commands |
|||
JOB |
@PJL JOB [NAME="name"] [start=#] [end=#] [offset="word"] |
Defines the start of a PJL job, specifies a name (optional) used for unsolicited messages, supports page range printing |
Partial; password option not supported |
EOJ |
@PJL EOJ [NAME="name"] |
Defines the end of a PJL job (optionally specifying (another) name |
Yes |
Status Readback commands |
|||
ECHO |
@PJL ECHO "words" |
If a bidirectional socket is specified, then messages will be sent back to the host |
No |
INFO STATUS |
@PJL INFO STATUS |
Returns printer state message on/offline and idle/processing |
No |
INFO USTATUS |
@PJL INFO USTATUS |
Returns which unsolicited status messages are supported |
No |
USTATUS DEVICE |
@PJL USTATUS DEVICE=ON|OFF |
Turns on/off the sending back of printer state changes. |
No |
USTATUS JOB |
@PJL USTATUS JOB=ON|OFF |
Turns on/off the sending back of start/end of PJL jobs. |
No |
USTATUS PAGE |
@PJL USTATUS PAGE=ON|OFF |
Turns on/off the sending back of page deliveries |
No |
USTATUSOFF |
@PJL USTATUSOFF |
Turns of all unsolicited status messages |
No |
Device Attendance commands |
|||
RDYMSG |
@PJL RDYMSG DISPLAY="message" |
Displays message (<16 chars) on printer console, remains online |
No |
OPMSG |
@PJL OPMSG DISPLAY="message" |
Displays an operator message (e.g. load paper) on printer console. Goes offline |
No |
STMSG |
@PJL STMSG DISPLAY="message" |
Displays an operator message on printer console, goes offline and returns the key pressed |
No |
PJL File System commands |
|||
FSDELETE |
@PJL FSDELETE NAME="pathname" |
Delete a file from printer disk |
No |
FSDOWNLOAD |
@PJL FSDOWNLOAD FORMAT: BINARY [SIZE = #][NAME = "pathname"] <binary data> <ESC>%-12345X |
Downloads a binary file to the printer disk (possible replacing an existing file with same name). |
No |
FSINIT |
@PJL FSINIT VOLUME="0:" |
Initialise the printer disk file system |
No |
FSMKDIR |
@PJL FSMKDIR NAME="pathname" |
Create a directory on the printer disk file system. |
No |
These variables are stored in non-volatile storage and can therefore not be overruled with the PJL INITIALIZE command (Factory to Default). However, with the PJL DEFAULT command the value in non-volatile storage can be changed. After the next PJL RESET condition these new values from non-volatile storage will then be used as CURRENT.
The following table lists the environment variables for the PJL DEFAULT and PJL SET command that are supported. The factory defaults are given in bold.
Environment variable |
Variable values |
Remarks |
---|---|---|
BINDING |
LEFT | RIGHT | TOP | BOTTOM LONGEDGE | SHORTEDGE |
For the first 4 values, binding gives the position used for margins, staple and punch. NOTE
BINDING is not the Océ binding edge (for tumble back sides. The last 2 values are supported for backward compatibility with HP specification. For these values, this does correspond to the Océ binding edge. |
COLLATE |
ON | OFF |
Collate ON means sort by set Collate OFF means sort by page |
COPIES QTY |
1 |
Number of copies. Depending on the job setup, COPIES or QTY can be used for selecting the number of copies. The last definition of any of these two variables sets the number of copies. |
DUPLEX |
OFF | ON |
|
FINISH |
STAPLE | NONE | LEFT1POINT | RIGHT1POINT | ANY2POINT | CENTER |
Enables stapling at PJL JOB and EOJ. See the description for staple below this table. |
FOLDING |
NONE | Z-FOLD | ZIGZAGIN | ZIGZAGOUT | DOUBLEPARALLELIN | DOUBLEPARALLELOUT | MULTILETTERFOLDIN | MULTILETTERFOLDOUT |
Folding methods See the description for fold below this table. |
FONTNUMBER |
0 to n (maximum depends on the number of installed fonts) (24) |
See PCL fonts and the Configuration Report |
HOLD |
OFF |
When OFF is selected the Job destination is Scheduled jobs. |
JOBNAME |
"" (Roman-8) |
The jobname is enclosed in quotation marks. The string consists of any combination of characters from Roman-8 character 32 through 255, plus character 9 (horizontal tab), excluding character 34 (quotation mark). Depending on the PJL programming, the PJL JOB command and PJL SET JOBNAME can be used. The last definition of any of these two sets the job name: @PJL JOB NAME = "job name" @PJL SET JOBNAME = "job name" |
JOBOFFSET |
OFF | ON |
Enables jogging at the end of a job (at PJL JOB and EOJ). |
OCEBIN |
(1) - maxbin |
|
OUTBIN |
DEFAULT | BIN1 | BIN2 | BIN3 | ... |
Output bin, see Output bin |
ORIENTATION |
PORTRAIT | LANDSCAPE | RPORTRAIT | RLANDSCAPE |
|
PAPER |
LETTER | LEGAL_LARGE | A4 | A3 | A5 | LEDGER | US_STANDARD | LEGAL_SMALL | KWARTO | FOLIO | FOOLSCAP | COMMERCIAL |
|
PITCH |
0.44 to 99.99 (10.00) |
|
PTSIZE |
4.00 to 999.75 (12.00) |
|
PUNCH |
OFF | ON | <unknown value> |
Any unknown value is interpreted as ON. When only PUNCH is defined and no PUNCHNUM is defined, then the number of punch holes is set to fixed (1 hole). |
PUNCHNUM |
1 | 2 | 3 | 4 | <unknown value> |
Number of punch holes. For any other value of PUNCHNUM, punch holes is set to fixed (1 hole). Punch position is given relative to the orientation. |
RESOLUTION |
600 |
No other resolutions are supported. |
STAPLEOPTION |
TOPLEFT | BOTTOMLEFT | EDGELEFT |
Determines where the staple is placed. This variable is only taken into account if FINISH = STAPLE. Topleft and bottomleft staple leads to one staple but the location can be overridden by the actual orientation. |
SYMSET |
DESKTOP | ISO11 | … | WIN31J |
symbolsetnumber = RO number on Status Report |
Staple
Staple options |
Description |
---|---|
FINISH = STAPLE STAPLEOPTION = TOPLEFT | BOTTOMLEFT | EDGELEFT |
Legacy staple: portrait, landscape, double |
Staple options |
Description |
---|---|
FINISH = LEFT1POINT | RIGHT1POINT | ANY2POINT | CENTER BINDING = LEFT | RIGHT | TOP | BOTTOM ORIENTATION = PORTRAIT | LANDSCAPE |
Corner staples and edge staples description based on the orientation |
FINISH = CENTER |
Saddle stitching |
Punch
Punch options |
Description |
---|---|
PUNCH = OFF | ON | <unknown value> |
Any unknown value is interpreted as ON. |
PUNCH = ON |
When only PUNCH is defined and no PUNCHNUM is defined, then the number of punch holes is set to fixed (1 hole). |
PUNCH = ON PUNCHNUM = 1 | 2 | 3 | 4 | <unknown value> BINDING = LEFT | RIGHT | TOP | BOTTOM ORIENTATION = PORTRAIT | LANDSCAPE |
For any other value of PUNCHNUM, punch holes is set to fixed (1 hole). Punch position is given relative to the orientation. |
Fold
FOLDING = NONE | Z-FOLD | ZIGZAGIN | ZIGZAGOUT | DOUBLEPARALLELIN | DOUBLEPARALLELOUT | MULTILETTERFOLDIN | MULTILETTERFOLDOUT
PJL |
Folding method |
Print side |
---|---|---|
Z-FOLD |
Z-Fold |
inside |
ZIGZAGIN |
Tri-fold in |
inside |
ZIGZAGOUT |
Tri-fold out |
outside |
DOUBLEPARALLELIN |
Double parallel fold |
inside |
DOUBLEPARALLELOUT |
Double parallel fold |
outside |
MULTILETTERFOLDIN |
Multi halffold |
inside |
MULTILETTERFOLDOUT |
Multi halffold |
outside |