HP PCL/PJL reference - Printer Job Language Technical Reference Manual

EN Environment Commands 6-35
Example: Setting the Printer to a Desired State
The following example demonstrates setting HP LaserJet 4 and 4M
printers to a known state. For the specific printer you are configuring,
consider which environment features you can modify. The modifiable
environment features for HP LaserJet 4 and 4M printers are listed
below (see Appendix A for a list of environment variables supported
by each PJL printer):
Of these HP LaserJet 4 and 4M features, only RET, PAGEPROTECT,
and RESOLUTION affect the printed output and cannot be set using
the printer language (in this case, PCL). These features are set using
PJL, as the following lines show:
<ESC>%-12345X@PJL <CR><LF>
@PJL SET RET = MEDIUM <CR><LF>
@PJL SET PAGEPROTECT = OFF <CR><LF>
@PJL SET RESOLUTION = 300 <CR><LF>
@PJL ENTER LANGUAGE = PCL <CR><LF>
<ESC>E . . Use PCL to set copies, paper,
orientation, line spacing, manual feed, and font
selection— values not set using PJL <ESC>E
~<ESC>%-12345X@PJL <CR><LF>
@PJL RESET <CR><LF>
<ESC>%-12345X
COPIES FORMLINES
PAPER MANUALFEED
ORIENTATION RET
PAGEPROTECT PERSONALITY *
RESOLUTION TIMEOUT *
FONTSOURCE PTSIZE
FONTNUMBER SYMSET
PITCH PRTPSERRS
* PERSONALITY and TIMEOUT do not affect the printed output and generally should
not be used.