HP LaserJet Printers -
Common PJL Commands for Front Panel Settings and Default Page Formatting
In
this document:
Copies |
Paper
size |
Orientation |
Formlines |
Symbol
set |
Font
number |
Pitch
size |
Point
size |
Dark
Courier |
EconoMode |
Autocont |
Density |
Resolution |
Resolution
enhancement |
Job
offset (HP LaserJet 4Si and 4Si MX printers) |
Outbin
(HP LaserJet 4Si and 4Si MX printers) |
Duplex
(HP LaserJet 4 Plus, 4M Plus, 4Si, 4Si MX, 5Si, and 5Si MX printers)) |
Duplex
binding (HP LaserJet 4 Plus, 4M Plus, 4Si, 4Si MX, 5Si, and 5Si MX printers |
Reset |
Additional
commands for the HP LaserJet 5P and 6P family printers) |
Memory
booster technology |
QUESTION:
What are the PJL commands for HP LaserJet printers?
ANSWER:
PJL commands are commonly used to change menu settings for the HP LaserJet
4 and above printer families. The command used is the SET command, which
permanently changes the menu setting for the current job. For the common
PJL commands, please see the Details section.
DETAILS:
The common PJL commands are found in the following sections.
The
following are PJL commands commonly used to change menu settings for the
HP LaserJet 4 and above printer family. The command used is the SET command,
which permanently changes the menu setting for the current job.
NOTE:
Not all commands are supported on all HP LaserJet printers, and some commands
are Read Only. For a complete listing of PJL commands, see the Printer
Job Language Reference Manual, which is part of the Technical Reference
Manual bundle.
NOTE:
HP LaserJet 4L, 5L, 6L, and 1100 printers will be reset to factory defaults
if they are manually reset or unplugged.
To
enter the escape sequence (Ec), press CTRL then P. No character will appear
on the screen at this point. Let up on both keys and press ESC. A Left
Arrow will be displayed on the screen.
Copies![back to table of contents](../images/gtabtop.gif)
Ec%-12345X@PJL
SET COPIES=1 to 999
Ec%-12345X
Paper
size![back to table of contents](../images/gtabtop.gif)
The following
command changes the menu setting of the HP LaserJet 4, 5, and 6 printer
families to legal-sized paper.
Ec%-12345X@PJL
SET PAPER=LEGAL
Ec%-12345X
NOTE:
Variables for paper size are Letter, Legal, Executive, Ledger, Com10, B4,
B5, Custom, JISB4, JISB5, JPost, JPostD, A3, A4, C5, DL, and Monarch.
Not all
paper sizes work on all printers. Check the User's Manual for supported
paper sizes.
Orientation![back to table of contents](../images/gtabtop.gif)
The following
command changes the menu setting of the HP LaserJet 4, 5, and 6 printer
families to Landscape Orientation.
Ec%-12345X@PJL
SET ORIENTATION=LANDSCAPE
Ec%-12345X
Formlines![back to table of contents](../images/gtabtop.gif)
The following
command changes the front menu panel of the HP LaserJet 4, 5, and 6 printer
families to 66 lines-per-page.
Ec%-12345X@PJL
SET FORMLINES=66
Ec%-12345X
NOTE:
Variables are from 5 lines to 128 lines.
Symbol
set![back to table of contents](../images/gtabtop.gif)
The following
command changes the menu setting of the HP LaserJet 4, 5, and 6 printer
families to the PC-8 symbol set.
Ec%-12345X@PJL
SET LPARM : PCL SYMSET=PC8
Ec%-12345X
Font
number![back to table of contents](../images/gtabtop.gif)
The following
command changes the menu setting of the HP LaserJet 4, 5, and 6 printer
families to font number 2.
Ec%-12345X@PJL
SET LPARM : PCL FONTNUMBER=2
Ec%-12345X
Pitch
size![back to table of contents](../images/gtabtop.gif)
The following
command changes the menu of the HP LaserJet 4, 5, and 6 printer families
to a pitch size of 16.67.
Point
size![back to table of contents](../images/gtabtop.gif)
The following
command changes the menu of the HP LaserJet 4, 5, and 6 printer families
to point size 20.
Ec%-12345X@PJL
SET LPARM : PCL PTSIZE=20
Ec%-12345X
NOTE:
Variables for point size are from 4 to 999.75.
Dark
Courier![back to table of contents](../images/gtabtop.gif)
Ec%-12345X@PJL
SET COURIER=DARK
Ec%-12345X
NOTE:
This is not supported on the HP LaserJet 4L, 5L, and 6L printer families.
EconoMode![back to table of contents](../images/gtabtop.gif)
Ec%-12345X@PJL
SET ECONOMODE=ON or OFF
Ec%-12345X
NOTE:
The HP LaserJet 2100 printer will not support EconoMode while set at 1200
dpi.
Autocont![back to table of contents](../images/gtabtop.gif)
Ec%-12345X@PJL
SET AUTOCONT=ON or OFF
Ec%-12345X
Density![back to table of contents](../images/gtabtop.gif)
This is
Read Only on the HP LaserJet 4 and 4M printers.
Ec%-12345X@PJL
SET DENSITY=1, 2, 3, 4 or 5
Ec%-12345X
NOTE:
This is not supported on HP LaserJet 4Si and 4Si MX printers.
Resolution![back to table of contents](../images/gtabtop.gif)
Ec%-12345X@PJL
SET RESOLUTION=300, 600 or 1200 ( depending on the printer)
Ec%-12345X
NOTE:
This code function is not supported on HP LaserJet 4L and 4ML printers.
NOTE:
The HP LaserJet 2100, LaserJet 4000, LaserJet 5000, and LaserJet 4050 printers
support 1200 dpi. The HP LaserJet 8000 and LaserJet 8100 printers support
HP FastRes 1200.
Resolution
enhancement![back to table of contents](../images/gtabtop.gif)
Ec%-12345X@PJL
SET RET=OFF, LIGHT, MEDIUM OR DARK
Ec%-12345X
NOTE:
On the HP LaserJet 4Si and 4Si MX printers, the variables are ON or OFF
only.
Job
offset (HP LaserJet 4Si and 4Si MX printers)![back to table of contents](../images/gtabtop.gif)
Ec%-12345X
@PJL SET JOBOFFSET=ON or OFF
Ec%-12345X
Outbin
(HP LaserJet 4Si and 4Si MX printers)![back to table of contents](../images/gtabtop.gif)
Ec%-12345X@PJL
SET OUTBIN=UPPER or LOWER
Ec%-12345X
Duplex
(HP LaserJet 4 Plus, 4M Plus, 4Si, 4Si MX, 5Si, and 5Si MX printers))![back to table of contents](../images/gtabtop.gif)
Ec%-12345X@PJL
SET DUPLEX=ON or OFF
Ec%-12345X
Duplex
binding (HP LaserJet 4 Plus, 4M Plus, 4Si, 4Si MX, 5Si, and 5Si MX printers![back to table of contents](../images/gtabtop.gif)
Ec%-12345X@PJL
SET BINDING=LONGEDGE or SHORTEDGE
Ec%-12345X
Reset![back to table of contents](../images/gtabtop.gif)
Use the
following command at the end of PJL jobs that use the PJL SET command to
set the printer back to its default state:
Ec%-12345X@PJL
INITIALIZE
Ec%-12345X
NOTE:
Use Initialize, not Reset, on the HP LaserJet 4, 4 Plus, 5L, 5P, and 5MP
printers.
Additional
commands for the HP LaserJet 5P and 6P family printers)![back to table of contents](../images/gtabtop.gif)
MP tray
as a cassette or first tray
This command
sets the configuration of Tray 1 (MP Tray) as either a first tray or a
cassette tray. The command is as follows:
Ec%-12345X@PJL
SET MPTRAY=FIRST or CASSETTE
Ec%-12345X
NOTE:
The default value is FIRST.
Memory
booster technology![back to table of contents](../images/gtabtop.gif)
This command
sets the Memory Booster Technology to On, Off, or Auto. The command is
as follows:
Ec%-12345X@PJL
SET PS:MBT=ON, OFF, or AUTO
Ec%-12345X