HP 1220 HP PCL/PJL reference - Printer Job Language Technical Reference Manual
HP 1220 - LaserJet B/W Laser Manual
UPC - 725184632365
View all HP 1220 manuals
Add to My Manuals
Save this manual to your list of manuals |
HP 1220 manual content summary:
- HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 1
- HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 2
- HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 3
Printer Job Language Technical Reference Manual - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 4
Computer Corporation. HP Explorer Software is a trademark and PCL and Resolution Enhancement are registered trademarks of Hewlett-Packard Company. Epson Development Corporation. Microsoft is a registered trademark and Word, Windows, MS-Mincho, and MSGothic are trademarks of Microsoft Corporation - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 5
support personnel. Before using PJL commands, programmers should be familiar with the introductory information in Chapters 1, 2, and 3, and with the programming tips in Chapter 11. In addition, users of this manual should be acquainted with the HP LaserJet printer language (PCL) and with LaserJet - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 6
of using PJL in application programs. It also covers compatibility with non-PJL printers, which includes older models of HP LaserJet printers, HP DeskJet printers, and HP DesignJet plotters and printers. Chapter 2. PJL Command Syntax and Format Chapter 2 explains the conventions used to describe - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 7
and FSDELETE. These commands provide the capability to initialize the mass storage, make directories, list directories, and download, upload, delete, and append files. Chapter 10. Job Management Chapter 10 describes the job management features found on the HP LaserJet 8100 and 8500 printers. EN v - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 8
common problems and things to watch for when using PJL commands. Samples are included to demonstrate different types of applications. Appendix A. Product-Specific Feature Support This chapter lists all of the PJL commands and shows which commands are supported by the different PJL printers. It - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 9
to control the printer. A large portion of the manual is devoted to HP-GL/2, the vector-based graphics language that is part of all PCL 5 printers. PCL 5 Comparison Guide This document provides printer-specific information on paper handling, internal fonts, PCL command support, and control panel - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 10
Items in brackets < > indicate a control code character (for example, for carriage return) or a special defined identifier. • A vertical bar (|) indicates there is more than one optional parameter. Note Throughout this manual, the term printer also includes any relevant DesignJet plotters and - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 11
Job Language Technical Reference Manual Inside This Manual 1-iii Manual Organization 1-iv Related Documents 1-vii Manual Conventions 1-viii Contents 1 Introduction to PJL The Benefits of PJL 1-3 Who Should Use PJL 1-3 Compatibility With Non-PJL Printers 1-4 2 PJL Command Syntax and Format - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 12
Environment Variables 6-11 General PJL Environment Variables 6-12 Port-Specific Variables (LaserJet 4PJ Only 6-26 PCL-Specific Variables 6-27 PostScript-Specific Variables 6-31 ESC/P-Specific Variables 6-32 Setting the Printer to a Desired State 6-34 DEFAULT Command 6-36 INITIALIZE Command - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 13
LaserJet 8100 Printer 10-1 HP LaserJet 8500 Printer 10-5 11 Programming Tips for Using PJL PJL Services 11-2 Print Data Generators 11-3 Printer Utilities 11-5 Spoolers 11-11 Requesting Printer Status 11-18 Using Status Readback in a Multi-User System 11-18 A Product-Specific Feature Support - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 14
A-59 HP LaserJet 1100 Series Comments A-61 HP LaserJet 2100 Series Comments A-62 HP Color LaserJet 4500 Series Comments A-63 HP LaserJet 8000 and 8100 Series Comments A-64 HP Color LaserJet 8500 Series Comments A-65 B PJL Command Summary C Programming Examples D PJL Status Codes Status Code - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 15
needs of networks and other multi-user systems, in addition to enabling applications to simulate control panel functions that previously could not be controlled without pressing control panel keys. For the HP printers (HP LaserJet, HP DeskJet, and HP DesignJet) that support it, PJL allows job-level - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 16
and modify the message displayed on the control panel, or change feature settings in printers without a control panel, such as the HP LaserJet 1100 Series printers. For those printers supporting more than one printer language, applications can print one job using PCL, and then print the next job - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 17
on other jobs in a shared environment. Applications containing PJL commands used as described in this manual provide users with smooth transitions between print jobs. Conversely, improperly used PJL commands can create problems in multi-user printing environments. EN Introduction to PJL 1-3 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 18
support PJL, it is important to know what happens when PJL commands are sent to a non-PJL printer. PJL commands are recognized by the following HP printers: • LaserJet IIISi, 4Si, 4SiMx, 5Si, 5SiMx, 5Si Mopier • LaserJet 1100 Series, 2100 Series • LaserJet 4000 Series, 5000 Series • LaserJet 8000 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 19
printing. Pressing the printer's Continue key removes the error message, but the error causes the printer to discard the PostScript job. Other Printer Languages PJL code is interpreted differently when running different printer languages on non-PJL printers. To avoid printing problems, do not use - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 20
1-6 Introduction to PJL EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 21
about products newer than those included in this book, see the Printer Job Language Technical Reference Addendum, which includes product-specific information about newer products, as well as commands and variables added to PJL to support these newer products. EN PJL Command Syntax and Format 2-1 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 22
syntax conventions are used to describe the PJL commands in this manual: variables COMMANDS [ ] < > ~ | Items in italics the form feed character [ASCII 12].) This character indicates that the current line of code is a continuation of the previous line. For example, "All of this text belongs - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 23
PJL command line containing the ENTER command: The table below lists the control codes and special identifiers used in this manual: < end-of-file indication. It is not part of PJL, but is used to end PostScript examples. EN PJL Command Syntax and Format 2-3 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 24
as ENTER, RDYMSG, or RESET. [command modifier : value] - The command modifier enables the user to specify what is effected by the command. For example, with the command modifier LPARM you can specify language-specific variables. A PJL command with a command modifier of LPARM : PCL only affects PCL - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 25
LANGUAGE = personality." The range of values varies with each specific command and each printer model. A PJL command may have no options, or of the PJL command is not case-sensitive. For clarity, however, this manual shows other portions of PJL commands in uppercase to indicate portions that are not - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 26
is not allowed. An example is between the optional carriage return and required line feed character that terminate most commands. For clarity, this manual consistently shows white space as one blank space. The PJL language requirements are shown in both examples below: 2-6 PJL Command Syntax and - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 27
Types of Variables PJL uses alphanumeric variables, numeric variables, and strings. The following explains the three types of variables and their ranges. • Alphanumeric variables. Any combination of letters and digits, with the stipulation that the first character always must be a letter. Letters - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 28
CR> is not within the valid range of characters for a string.) Strings displayed on the printer control panel are generally displayed using the Roman-8 symbol set. On HP LaserJet 4PJ, 4V, and 4MV printers, when the language is set to Japanese, strings which correspond to a control panel message are - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 29
-quotes, numeric values missing digits before the decimal point, and numeric values encountered when alphanumeric values are expected. When the printer receives commands with syntax errors, it ignores the entire command. For example, the value portion of the JOB command's NAME option is a string and - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 30
Note Any errors that occur during PJL parsing can be received by enabling device status as described in Chapter 7 (send the @PJL USTATUS DEVICE = VERBOSE command). Appendix D lists the status codes that are received by the host when an invalid command is received and unsolicited verbose device - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 31
explains how the manual categorizes PJL commands into groups of related commands. Each command has a brief description of its function to help familiarize you with the PJL language. Each PJL printer supports a different set of PJL commands. See Appendix A for printer-specific information. For - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 32
Figure 3-1 PJL Code PCL Job PJL Code PostScript Job PJL Commands Encapsulate Print Jobs PJL Code 3-2 Using PJL EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 33
and network environments. Here are the requirements: • All PJL jobs must begin and end with a UEL command (%-12345X). This command exits the current printer language and returns control to PJL. • The UEL command at the beginning of the job must be immediately followed by the PJL command prefix - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 34
actually part of the previous line.) Example: Changing Control Panel Settings This example simulates using PJL to control printer features one PCL and one PostScript. The PCL job prints first, then PJL code switches the printer language to prepare for the PostScript job. %-12345X@PJL - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 35
know which PJL commands are supported by the printer you are using. See Appendix A for feature support information. • Chapter 5 explains commands that enable you to create jobs for keeping track of printing status, and explain a non-printing mode that allows printing of specific pages of print jobs - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 36
Command Groupings by Functionality This manual categorizes the PJL commands into related groups. Each page count, allows naming of the job, supports non-printing mode for printing portions of jobs. Where supported, it adds PJL password security. Tells printer the print job is complete, resets the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 37
environment variable. Returns the portion of the command to the host computer. Requests a specified category of printer information, such as printer model number, printer memory available, configuration, page count, status, environment variables, and unsolicited status variables. Allows - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 38
and directories. Downloads files to the printer mass storage system. Initializes the printer mass storage file system. Creates a directory on the printer mass storage file system. Queries existence of directories and files and returns file sizes. Uploads all or part of a file from the printer to the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 39
EN Using PJL 3-9 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 40
3-10 Using PJL EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 41
printer languages. Besides programmatic printer language switching, you can configure some LaserJet printers to switch printer Printer Job Language Technical Reference Addendum, which includes product-specific information about newer products, as well as commands and variables added to PJL to support - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 42
printer languages in PJL printers. The UEL command instructs the active printer end with the UEL command. Printers that support I/O switching use the UEL printer receives any characters, spaces, or control codes before @PJL, it enables the default printer language and processes the job in that printer - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 43
Language Switching" later in this chapter). Instead of relying on implicit switching, use the ENTER command to specify the printer language, even if the printer has only one printer language. The following example demonstrates the use of the UEL command. Example: Using the UEL Command This example - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 44
requesting a specific printer language, the printer enables the default printer language as set from the control panel (or if the printer supports context switching, such as the HP Color LaserJet 4500 series, 8500 series, 8100 series, LaserJet 2100 series, 4000 series, 5000 series, 8000 series, 8100 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 45
LANGUAGE = ESCP command to explicitly select it. For any job containing personality-specific data, send the ENTER command if the intended printer language is known, instead of relying on the printer's ability to switch to the default printer language. This is true even if there is only one available - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 46
LF> Parameters: Parameter remarks Range Roman-8 character codes 33 through 255 and , starting with code between the initial UEL command and the ENTER command. (Comments placed after the ENTER command are considered personality-specific data and are printed as determined by the active printer - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 47
printer language. (See the User's Manual for each printer for instructions about specifying a default printer language.) This switching method does not always ensure that the proper printer language is used, since the printer simply uses the default language. • Context Switching (HP Color LaserJet - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 48
to parse the data in the newly selected printer language. HP LaserJet 4V and 4MV printers cannot properly context-switch into the ESC/P personality by sensing the data stream. Developers who use ESC/P must use explicit or implicit switching. Although printers supporting context switching can select - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 49
about products newer than those included in this book, see the Printer Job Language Technical Reference Addendum, which includes product-specific information about newer products, as well as commands and variables added to PJL to support these newer products. EN Job Separation Commands 5-1 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 50
jobs (for example, when printing a job with a banner page). Also, in jobs sent to those printers supporting the PASSWORD option, use a JOB command to specify the correct password. For printers that support the DISPLAY variable, the JOB command can be used to display a control panel message while - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 51
It indicates the first page that is printed. If the START option is omitted, the printer starts printing at the beginning of the job. If the end of the job comes to page 1 of the print job. If the END variable is omitted, the printer prints to the end of the job. If the end of the job is encountered - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 52
DISPLAY CHARACTER SIZE = value as part of the response. For HP LaserJet 4PJ, 4V, 4MV, 5Si, 5SiMx, 5Si Mopier printers, if the LANG variable is set to Japanese, messages are displayed using the JIS X0201-76 character set. For the LaserJet 4000, 5000, 8000, and 8100 series printers, if LANG is set to - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 53
counts physical pages, not multi-copy collated pages. In this example, the JOB command: • Informs the printer of the beginning of a print job. • Names the print job "Jim's Job." • Instructs the printer to begin printing on page three of the job. (Since the END option is missing, the job prints - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 54
did not use PJL (that is, the application generated a print job that consisted of just "%!PS-ADOBE .. PostScript print job ... ^D", a LaserJet printer using context-sensitive switching would still print properly (provided PostScript is installed) and the spooler would still receive the unsolicited - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 55
Example: Nested JOB Commands This example shows a PCL job that was sent to spooler 1, which in turn was sent to spooler 2 (the nested jobs are indented). Note that the first job name is overwritten by the second job name ("Spooler 1 Job") when the second JOB command is processed. %-12345X@PJL < - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 56
the job started with the previous JOB command. The EOJ command: • Resets the PJL Current Environment variables to their default (NVRAM) values, as if the printer powered down and then powered up again. • Resets the page number associated with unsolicited page status. 5-8 Job Separation Commands EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 57
receives this command, it returns unsolicited job status information, if enabled, when the last page of the job exits the printer and is in the output tray. The EOJ command resets the page number associated with unsolicited page status. Resetting the page count associated with unsolicited - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 58
PJL Job Security HP LaserJet 2100 series, 4000 series, 4500 series, 5000 series, 8000 series, 8100 series, 8500 series, 4/4M Plus, 4V, 4MV, 4Si, 4SiMx, 5, 5M, 5Si, 5SiMx, 5Si Mopier, 5P, 6P, and 6MP printers support the following types of PJL security: • Password protection of default feature - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 59
. When the control panel is locked, the user cannot change any control panel settings. If the user tries to change any control panel settings, the key (MAXIMUM has the same effect as the ON value). Disk Lock On printers which support Disk Lock, you can "lock" volume 0 by sending the @PJL DEFAULT - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 60
Example: Using PJL Security This example demonstrates how to set a password and to lock the control panel so users cannot modify control panel settings. It is assumed the password value at the start of job is 7654. The example changes the password to 1776. < - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 61
Job Cancellation HP LaserJet 2100 series, 4000 series, 4500 series, 5000 series, 8000 series, 8100 series, 8500 series, 5, 5M, 5Si, 5SiMx printers and the LaserJet 5Si Mopier support job cancellation using the printer control panel. When a PJL print job is started using the PJL JOB command as - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 62
, the media was not loaded). Using the previous example, if the printer receives the following command containing the same job name as in the JOB name" If unsolicited job status and job ID reporting are enabled, the printer would use the ID number associated with that job name and respond with: - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 63
receives notification that a job is cancelled, the printer provides the @PJL USTATUS JOB CANCELED message to the driver/spooler if unsolicited job status is enabled. Using the same job name and ID number as the previous example, the printer's response would be: @PJL USTATUS JOB CANCELED - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 64
5-16 Job Separation Commands EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 65
6 Environment Commands Note Note Introduction Hewlett-Packard printers have many features you can set using printer commands or by pressing control panel keys. Since previous jobs can change feature settings to unwanted values, applications should set printer features affecting the print job to a - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 66
from the control panel. The print environment defaults to the User Default values when various printer conditions occur, such as the end of a PJL job printer language is entered, feature settings are recorded in the Modified Print Environment. Note HP LaserJet 4L, 5L, 6L, and 1100 series printers - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 67
containing NVRAM). Following any PJL reset condition, these values are placed into the PJL Current Environment. If the printer has a control panel, the User Default values are displayed on the control panel under the appropriate menu. • PJL Current Environment - This environment contains the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 68
Figure 6-1 How Environments Affect the Print Job 6-4 Environment Commands EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 69
the number of copies setting to another value, such as 8, the newly specified printer language value overrides the PJL Current Environment value. If the printer has a control panel, however, it still displays the User Default Environment value set using the control panel keys or the DEFAULT command - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 70
&l5X %-12345X Factory Default 1 1 1 1 1 Environment Setting User Default PJL Current 1 1 Modified Print 1 3 1 1 3 4 4 3 4 . For those printers without a control panel, disregard any mention of control panels. In these printers, User Default Environment features - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 71
Current Environment Modified Print Environment (PrinterLanguage Specific) Stored permanently in printer memory-settings cannot be modified. Factory default settings cannot be read programmatically, but they are listed in the PCL 5 Comparison Guide. The User Default Environment is set to the factory - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 72
PJL Reset Conditions 6-8 Environment Commands EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 73
printer language resets (such as E). Printer language resets load the PJL Current Environment values into the Modified Print Environment. PJL reset conditions are more powerful. They load the User panel reset • Other printer-specific events (see Appendix A for information about job - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 74
The control panel settings (User Default Environment) can be changed using the control panel or the DEFAULT command. In printers without a control panel, using printer language commands. These settings take effect for the duration of the printer language job. After a printer language-specific reset - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 75
environment variables (those not printer language-specific) are listed first, followed by printer language-specific variables. For most variables panel keys). • DEFAULT - modifies the User Default settings (stored in NVRAM in those printers containing NVRAM). • INITIALIZE - defaults all - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 76
printer language-specific. When you use these variables, do not use the LPARM : personality option. The range of values for each variable may differ for the various printer models. Appendix A lists the environment variables and indicates which printers support the user's manual for each printer. - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 77
error user presses the Continue key. COMPRESSRASTER STORAGE Specifies whether or not raster data is ON, OFF to be compressed when the printer printer looks for context clues to determine which personality takes effect. When the personality is changed, memory is reconfigured and all downloaded - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 78
OFF, state. If CPLOCK is set to ON, users MINIMUM, cannot modify feature settings using the MODERATE, and it will not be possible to format the disk, download fonts, delete disk fonts, etc. If OFF, reading toner-saving feature used in many of the LaserJet printers. ON, OFF FINISH Sets the LaserJet - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 79
Lossy compression. IMAGELOCATION Specifies that DISK storage is or is not DISK, RAM to be used for processing raster images when object banding occurs. For printers with a hard disk, the default is DISK. Switching from one mode to another causes a graphics shutdown to occur, that is, the queue of - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 80
the size of the paper currently LETTER, LEGAL, installed in tray 1 (usually the MP tray or A3, A4, CUSTOM, upper tray, depending on the printer). A5, LEDGER, EXECUTIVE, JISB4, JISB5, B5 COM10, C5, DL, JPOST, JPOSTD, MONARCH INTRAY2SIZE Returns the size of the paper currently installed in tray - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 81
these optional input trays. A4, and others INTRAYxSIZE is valid only if the (tray-dependent) optional tray is installed. If not installed, the printer returns "?" instead of a tray size, indicating the variable is unknown. IOBUFFER Sets the value of the I/O buffering variable. ON, OFF, AUTO - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 82
ON, OFF, STOP, messages. If ON or CONTINUE, printer CONTINUE remains online when the LOW TONER message is displayed; if OFF or STOP, printer goes offline and waits until On Line or Continue key is pressed. MANUALFEED Manual feed mode. ON, OFF MARGINS Sets the margins for the plot. The - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 83
the configuration value of the CASSETTE, multi-purpose tray. MANUAL, FIRST ORIENTATION Page orientation. PORTRAIT, LANDSCAPE OUTBIN Sets the default output bin. (For HP LaserJet 4Si, 4SiMx, 4000 series, 5Si, 5SiMx, 5Si Mopier printers, the UPPER output bin is a face-down, correct-order - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 84
block of printer memory to prevent ON printer overrun errors (error 21) when formatting very dense or complex images, especially HP-GL/2 images sizes, CUSTOM, JISB4, but it varies with the printer: the JISB5, JPOST, LaserJet 4P/4MP printers interpret JPOSTD CUSTOM as odd sizes, such as 3 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 85
is reconfigured and all downloaded fonts, PCL macros, and PostScript dictionaries are lost (however, no I/O data is lost). Refer to Appendix A, "Commands that Affect Printer Memory." For the LaserJet 4PJ, this variable is assigned on a per-port basis (see "Port-Specific Variables"). For the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 86
job, while a value of 3 indicates a color job. POWERSAVE Enables or disables power-saving feature. ON, OFF POWERSAVETIME Sets the time (in minutes) the printer will 1, 15, 30, 60, 120, remain idle before it enters powersave 180, 240, 280,480 mode if powersave is on. PRINTAREA INKEDAREA sets - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 87
Determines whether pages are AUTO, OFF, ON reprinted after a paper jam. When AUTO is selected and the amount of RAM installed is below a printer-specific threshold, pages are not reprinted. If the amount of RAM installed is more than this threshold, they are reprinted. The ON setting causes - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 88
Printer Memory" in Appendix A. RESOURCESAVE Sets the value of the resource-saving ON, OFF, AUTO variable. RESOURCESAVESIZE (This variable is set as a personality-specific characters and graphics by smoothing the edges of lines. Most users do not need to adjust this feature since the default - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 89
it ends the print job and begins accepting data from other I/O ports, if any. In most cases, do not adjust this feature unless the printer times out during normal operation, in which case you can try extending the timeout duration. (See the "Timeouts" description in Appendix A.) WIDEA4 Changes the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 90
Specific Variables (LaserJet 4PJ Only) The following variable is I/O port-specific in the HP LaserJet 4PJ printer, and can be set and requested using PJL. This variable must be set using the IPARM : port option. For the HP LaserJet and all downloaded fonts and PCL macros are lost (however, - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 91
Variables The following variables are PCL-specific and can be set and requested using PJL. These variables must be set using the LPARM : PCL option. A sample value range is shown in this table. See Appendix A for the actual value range for each PJL printer, or use the INFO VARIABLES command to - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 92
Variables FONTNUMBER (continued) PCL-Specific Variables (continued) Description Sample Value Range If the value of the the printer searches for the highest priority default-marked font, cartridges have the highest priority, then SIMMs, then internal default-marked fonts (downloaded soft - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 93
FONTSOURCE PCL-Specific Variables (continued) Description Sample Value Range The valid values for FONTSOURCE are: I, M1, M2, M3, M4, C, C1, C2, S z I (Internal Fonts) z C, C1, C2 (Cartridge Fonts) z S (Permanent Soft Fonts) z M1, M2, M3, M4 (Fonts stored in one of the printer's ROM SIMM - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 94
LINETERMINATION PITCH PTSIZE SYMSET PCL-Specific Variables (continued) Description Sample Value HP LaserJet 4PJ, PC850, PC852, the HP LaserJet 4LJ Pro, and the HP PC8TK, PC1004, LaserJet 4V/4MV when ESC/P is WINL1, WINL2, installed].) WINL5, DESKTOP, PSTEXT, On the HP LaserJet 4LC printer - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 95
specific printer to format full frame it printer (enabled), the printer formats a PostScript set to AUTO, the printer will select either full frame printer has 7 Mb of memory available, the printer will print full frame (disable MBT); if less than 7 Mb is available, the printer printer performance - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 96
following table lists the currently defined ESC/P-specific variables which are valid only for HP LaserJet 4PJ and 4LJPro printers, and optionally for HP LaserJet 4V and 4MV printers. These variables can be set using the LPARM : ESCP option. Note that HP LaserJet 4PJ, 4V, and 4MV factory defaults for - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 97
Variable Description Sample Value Range CARRIAGERETURN Controls how ESC/P interprets the carriage (CR), CRLF return (CR) control character. The valid values for CARRIAGERETURN are: CR-CR maps to carriage return;CRLF-CR maps to carriage return and linefeed. CHARACTERSET Default character - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 98
must be set to a desired state to print the job as expected. This can be accomplished in two ways: • If the printer has a control panel, the user sets the control panel to values that are appropriate for all users sharing the printer. • For features that must be set on a job-by-job basis, use - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 99
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 manual - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 100
that support the PASSWORD variable, the DEFAULT command will not take effect unless used within a secure job (a job with the correct password in the JOB command). Note In situations where the printer is shared by several users, such as networks, restrict the use of the DEFAULT command using - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 101
parameter is used to set port-specific variables. The HP LaserJet 4PJ is the only printer which supports port-specific variables. • IPARM : port - This option must be used when setting port-specific variables. Valid values for port for the HP LaserJet 4PJ printer are SERIAL and PARALLEL. • variable - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 102
specific variables must be set using the IPARM: port option. Variables that are not port-specific cannot be set using the IPARM : port option. Default values set with this command affect the printer . %-12345X@PJL @PJL COMMENT User Defaults @PJL DEFAULT PAGEPROTECT = LETTER - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 103
. Note Because personalities can be dynamically added to some HP LaserJet printers, these printers support more personality-specific variables than those listed here. In any case, the INITIALIZE command causes the PJL Current and User Default environment values for all personalities to default to - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 104
FONTNUMBER PTSIZE FONTSOURCE SYMSET PITCH PostScript-Specific Variables JAMRECOVERY PRTPSERRS ESC/P-Specific Variables ANKCONDENSE FONT CARRIAGERETURN TOPMARGIN CHARACTERSET The environment variables may vary with different HP LaserJet printer models. See Appendix A for a list of - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 105
Example: Using the INITIALIZE Command This example initializes the printer: %-12345X@PJL @PJL COMMENT Initialize settings to @PJL COMMENT factory defaults @PJL INITIALIZE %-12345X Related Commands: DEFAULT, RESET, SET EN Environment Commands 6-41 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 106
37). The RESET command resets the following environment variables to their user default values. Note Because personalities can be dynamically added to some HP LaserJet printers, those printers support more personality-specific variables than those listed here. In addition, the allowable variables - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 107
REPRINT IMAGEADAPT RESOLUTION JOBOFFSET RET MANUALFEED TIMEOUT PCL-Specific Variables FONTNUMBER PTSIZE FONTSOURCE SYMSET PITCH PostScript-Specific Variables JAMRECOVERY PRTPSERRS ESC/P-Specific Variables ANKCONDENSE FONT CARRIAGERETURN TOPMARGIN CHARACTERSET EN Environment - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 108
Example: Using the RESET Command The following example uses a RESET command after the print job to return the features to their previous state: %-12345X@PJL @PJL COMMENT Resets variables to @PJL COMMENT control panel settings @PJL SET RESOLUTION = 600 @PJL - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 109
parameter is used to set port-specific variables. The HP LaserJet 4PJ is the only printer which supports port-specific variables. The IPARM : port option must be used when setting port-specific variables. Valid values for port for the HP LaserJet 4PJ printer are SERIAL and PARALLEL. EN Environment - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 110
and range of values for each variable may not be the same in all HP LaserJet printer models. See Appendix A for a list of valid variables and the range of Other personalities may be supported PARALLEL SERIAL Supported on LaserJet 4PJ only Valid variables for each printer are listed in Appendix - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 111
printer language-specific variables. Printer language-specific variables must be specified using the LPARM : personality option. Features that are not printer language-specific RESET command after the job to reset features to the User Default (control panel) values. See the following example for a - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 112
PJL SET PAGEPROTECT = OFF @PJL SET RESOLUTION = 600 @PJL ENTER LANGUAGE = POSTSCRIPT %!PS-ADOBE ... PostScript print job - use ~POSTSCRIPT code to set all values that are ~not set using PJL... ^D %-12345X@PJL @PJL RESET %-12345X Related Commands - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 113
printer events occur. For example, the printer can send status information indicating the printer door is open, toner feature settings to your specifications. This chapter describes the variable. • DINQUIRE requests the default value (User Default Environment) for a specified environment variable. - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 114
about products newer than those included in this book, see the Printer Job Language Technical Reference Addendum, which includes product-specific information about newer products, as well as commands and variables added to PJL to support these newer products. 7-2 Status Readback Commands EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 115
two-way communication between the application and the printer. Printer sharing devices, networks, and other printing system components may not support this bi-directional communication. (Refer to "Using Status Readback in a Multi-User System" in Chapter 11.) EN Status Readback Commands 7-3 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 116
data between the "@PJL" header and the control code. Lines within the PJL status response begin with a specific keyword, as described in the command descriptions in this chapter, and end with the control codes. Future printers may support new keywords in the PJL status response. Your - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 117
parameter is used to set port-specific variables. The HP LaserJet 4PJ is the only printer which supports port-specific variables. The IPARM : port option must be used when setting port-specific variables. Valid values for port for the HP LaserJet 4PJ printer are SERIAL and PARALLEL. • variable - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 118
: Parameter personality port variable value Variable Names+ PCL ESCP POSTSCRIPT (other personalities may be supported) PARALLEL SERIAL Supported on HP LaserJet 4PJ only Valid variables for each printer are listed in Appendix A. Acceptable values for each variable are also listed in Appendix - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 119
supported, the command will return an appropriate error code if USTATUS DEVICE=VERBOSE is enabled. The LPARM : personality option must be used when requesting printer language-specific the HP LaserJet 4 printer, a sample printer response for this example is as follows. Other PJL printers may respond - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 120
INQUIRE TIMEOUT 15 Example: Using INQUIRE for Printer Language-Specific Variables This example requests the PCL settings for pitch, point size, and symbol set LF> %-12345X For the HP LaserJet 4 printer, the response for this example is shown on the following page. Other PJL - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 121
@PJL ECHO 12:22:23.9 11-05-92 @PJL INQUIRE LPARM:PCL PITCH 10.00 @PJL INQUIRE LPARM:PCL PTSIZE 12.00 @PJL INQUIRE LPARM:PCL SYMSET ROMAN8 Related Commands: DINQUIRE, ECHO, INFO, SET, DEFAULT, USTATUS EN Status Readback - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 122
DINQUIRE command to find the User Default Environment setting for any specific variables. The HP LaserJet 4PJ is the only printer which supports port-specific variables. The IPARM : port option must be used when setting port-specific variables. Valid values for port for the HP LaserJet 4PJ printer - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 123
or not you want the printer to stay online when the toner is low. See Appendix A for valid variable values. Parameters: Parameter personality port variable value Variable Names PCL ESCP POSTSCRIPT (other personalities may be supported) PARALLEL SERIAL Supported on HP LaserJet 4PJ only Valid - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 124
> "?" If a printer language-specific variable is not available because that printer language is not installed or is invalid, or if a port-specific variable is not available because that port is not supported, the command will return an appropriate error code if USTATUS DEVICE=VERBOSE is - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 125
Printer Language-Specific Variables This example requests the default PCL pitch and symbol set using the DINQUIRE command. The printer SYMSET %-12345X A sample HP LaserJet 4 printer response for this example is as follows. Other PJL printer responses may vary. @PJL ECHO 11:03:05 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 126
. A unique message eliminates the possibility of duplicate messages being echoed by different applications. The maximum length for is 80 bytes. Comments: In a multi-user environment, the printer may respond to many different status requests. Since the status messages are buffered in the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 127
Using the ECHO command @PJL ECHO Testing 68394 10:57:06.4 %-12345X A sample HP LaserJet 4 printer response for this example is shown below. Other PJL printers may have different responses. @PJL ECHO Testing 68394 10:57:06.4 Related Commands: INQUIRE, DINQUIRE - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 128
characters or followed by ] Parameters: Category ID CONFIG FILESYS MEMORY PAGECOUNT STATUS VARIABLES USTATUS Description Provides the printer model number, such as "LaserJet 4." Provides configuration information, such as how many and which paper sizes are available in this - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 129
format of the printer's response. If the printer does not support the specified category, the returned information is as follows: @PJL INFO category "?" ID Category The INFO ID command provides a way to identify the type of printer used. For the HP LaserJet 4 printer, the INFO - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 130
the response only if they are installed in the printer. For example, if a HP LaserJet 4 printer does not have the lower paper cassette installed, indicates there are 4 returned options for the feature. Refer to the sample printer response in the "Using the INFO CONFIG Command" example for the format - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 131
alphanumeric value (any Name of a printer feature, such as combination of letters [ASCII DUPLEX or FONT CARTRIDGE 65-90 or 97-122] and CONFIG Command This example requests the current configuration information. The printer, a HP LaserJet 4 printer in this case, responds with a list of features. For - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 132
%-12345X A sample HP LaserJet 4 printer response for this example is shown on the following page. Other printers may respond differently. @PJL ECHO 09: LF> PAGE TIMED FONT CARTRIDGE SLOTS [1 ENUMERATED] CARTRIDGE MEMORY=2097152 DISPLAY LINES=1 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 133
CR> @PJL ECHO 11:33:42.3 9-20-96 @PJL INFO FILESYS %-12345X A sample HP LaserJet 5 printer response for this example is shown below. Other printers may respond differently. @PJL INFO FILESYS [2 TABLE] VOLUME TOTAL SIZE FREE SPACE LOCATION LABEL STATUS 0: 1755136 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 134
Reference Manual for more information about PCL status readback. Example: Using the INFO MEMORY Command %-12345X@PJL @PJL COMMENT Using @PJL INFO MEMORY @PJL ECHO 14:51:48.3 12-18-92 @PJL INFO MEMORY %-12345X A sample HP LaserJet 4 printer response - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 135
PAGECOUNT @PJL ECHO 06:53:29.3 1-25-93 @PJL INFO PAGECOUNT %-12345X A sample HP LaserJet 4ML printer response for this example is shown here. Some printers do not return the label "PAGECOUNT=" in front of the page count. @PJL INFO PAGECOUNT PAGECOUNT=183933 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 136
printer status codes.) Only the "string" portion of the "DISPLAY =" status message is localized; the same message as that displayed on the control panel appears in whichever language is used. For those printers supporting The printer, in this case a HP LaserJet 4 printer, returns a status code (10001 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 137
depends on the current environment and the printer languages installed. Each add-on printer language has its own specific variables. Printer language-specific variables are always indicated by LPARM:personality in the response. Port-specific variables (HP LaserJet 4PJ only) are always indicated by - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 138
@PJL ECHO 07:22:03.8 12-03-92 @PJL INFO VARIABLES %-12345X A sample HP LaserJet 4 printer response for this example is shown below. Other PJL printers may provide a somewhat different response: @PJL ECHO 07:22:03.8 12-03-92 @PJL INFO VARIABLES COPIES - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 139
[2 ENUMERATED] 300 600 PERSONALITY=AUTO [3 ENUMERATED] AUTO PCL POSTSCRIPT TIMEOUT=15 [2 RANGE] 5 300 MPTRAY=CASSETTE [3 ENUMERATED] MANUAL CASSETTE FIRST INTRAY1=UNLOCKED [2 ENUMERATED] UNLOCKED LOCKED INTRAY2=UNLOCKED [2 ENUMERATED] UNLOCKED LOCKED INTRAY3=UNLOCKED [2 ENUMERATED] UNLOCKED LOCKED - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 140
DENSITY=3 [2 RANGE READONLY] 1 5 LOWTONER=ON [2 ENUMERATED READONLY] OFF ON INTRAY1SIZE=LETTER [9 ENUMERATED READONLY] LETTER LEGAL A4 EXECUTIVE COM10 MONARCH C5 DL B5 INTRAY2SIZE=LETTER [4 ENUMERATED READONLY] LETTER LEGAL A4 EXECUTIVE INTRAY3SIZE=LETTER [4 ENUMERATED READONLY] LETTER LEGAL A4 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 141
USTATUS Category The INFO USTATUS command lists each type of unsolicited status supported by the printer, such as DEVICE, JOB, PAGE, and TIMED (see the can be used in the USTATUS command. In this example, the HP LaserJet 4 printer replies that there are 4 unsolicited status types: DEVICE, JOB, PAGE - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 142
A sample HP LaserJet 4 printer response for this example is shown below. Responses for other PJL printers may vary. @PJL ECHO 08:10:09.1 08-22-92 @PJL INFO USTATUS DEVICE=OFF [3 ENUMERATED] OFF< - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 143
, unsolicited status is sent automatically when the status changes. Use the USTATUS command when you want to know: • Device status changes (such as printer open, paper jams, and paper out conditions) • Job status changes (when a JOB command is encountered, the job completely prints, or the job is - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 144
all status changes plus notification of all PJL parser warnings and errors. The VERBOSE value should only be used during application development. Disables unsolicited device status Enables unsolicited job status so that the printer sends a status message every time a job begins, ends, or - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 145
sends status information for all changes to printer status. When DEVICE = VERBOSE, the printer also sends status information for all PJL parser warnings and errors. Part of the unsolicited status message sent to the host is a 5-digit code that indicates the status condition. The first 2 digits - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 146
those printers supporting Japanese printing, when the language is set to Japanese, strings which correspond to a control panel message are displayed on the control panel using the JIS X0201-76 character set. Status Category Description 10 Informational messages which do not indicate errors, such - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 147
LF> @PJL USTATUS DEVICE = VERBOSE %-12345X A sample HP LaserJet 4 printer response for unsolicited device status is shown here. For other printers, responses may vary. @PJL USTATUS DEVICE CODE=40021 DISPLAY="12 PRINTER OPEN" ONLINE=FALSE EN Status - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 148
and an EOJ command has been received, and when a job has been canceled (only for those printers that support job cancellation such as the HP LaserJet 4000 series and 5000 series printers). This is useful for spooling applications requiring feedback indicating that a particular job has started or - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 149
Note Some HP LaserJet printers support job cancellation. For information about unsolicited job status during job cancellation, see the "Job Cancellation" section in Chapter 5. Example: Using Unsolicited Job Status This example - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 150
non-printing mode.) Example: Using Unsolicited Page Status The following example enables unsolicited page status. The sample HP LaserJet 4 printer response indicates the status messages that the printer sends when processing a four-page job. %-12345X@PJL @PJL USTATUS PAGE = ON - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 151
A sample HP LaserJet 4 printer response for unsolicited page status is shown here. Other PJL printer responses may vary. @PJL USTATUS PAGE 1 @PJL USTATUS PAGE 2 @PJL USTATUS PAGE 3< - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 152
a timing window in your application. The "CODE=" portion indicates a status code number. See Appendix D for a complete list of status code numbers. panel appears in whichever language is being used. For those printers supporting Japanese printing when the language is set to Japanese strings which - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 153
A sample HP LaserJet 4 printer response is shown below. Other PJL printers may respond differently. @PJL USTATUS TIMED CODE=10001 DISPLAY="00 READY" ONLINE=TRUE Related Commands: INFO, ECHO, INQUIRE, DINQUIRE, SET, USTATUSOFF EN Status Readback Commands 7-41 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 154
USTATUSOFF Command The USTATUSOFF command turns off all unsolicited status. This command eliminates the need to send several commands to turn off different types of USTATUS. Syntax: @PJL USTATUSOFF [] Parameters: There are no parameters for this command. Example: Using the USTATUSOFF Command - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 155
JOB and EOJ commands are used to reset the page count and inform the printer of the boundaries for the job-its beginning and end. • The USTATUS sent prior to the JOB command. If a power failure or another problem interrupts the job, the unsolicited page status indicates the last completely printed - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 156
In the job above, the first unsolicited page status message is sent after page 26 lands in the output tray. For an HP LaserJet 4 printer, the response appears as shown below. Other PJL printers may respond differently. @PJL USTATUS PAGE 26 7-44 Status Readback Commands EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 157
Additional page status messages are sent after each succeeding page lands in the output tray. After the remaining 75 pages of the job are completely printed the host receives unsolicited page and job status as follows: @PJL USTATUS PAGE 100 @PJL USTATUS JOB END - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 158
7-46 Status Readback Commands EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 159
commands. See Appendix A for a list of features supported by each printer. For information about products newer than those included in this book, see the Printer Job Language Technical Reference Addendum, which includes product-specific information about newer products, as well as commands and - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 160
to display the name of the printer. Note For the HP LaserJet 4000, 5000, 8000, 8100, Color LaserJet 4500, and 8500 printers (and newer), use the JOB DISPLAY="display text" method to display a message on the front panel during a specific job. For these printers, RDYMSG only replaces the lowest - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 161
true for the HP Color LaserJet 4500 printer, except there is no support for Turkish or Hungarian on this printer. Some HP LaserJet printers may have a printer returns DISPLAY LINES=value and DISPLAY CHARACTER SIZE=value as part of the response message. For example, HP LaserJet 4 and 4M printers - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 162
%-12345X@PJL @PJL JOB NAME = "Terry's Job" @PJL JOB DISPLAY = "Terry's Job" @PJL RDYMSG DISPLAY = "TERRY'S JOB" %-12345X@PJL @PJL ENTER LANGUAGE = PCL E . . . PCL Job . . .E ~%-12345X ~%-12345X@PJL @PJL - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 163
. To request the display limitations, use the INFO CONFIG command. The printer returns DISPLAY LINES=value and DISPLAY CHARACTER SIZE=value as part of the response message. For example, the HP LaserJet 4 and 4M printers return DISPLAY LINES=1, DISPLAY CHARACTER SIZE=16, indicating that the displayed - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 164
Note For HP LaserJet 4PJ, 4V, 4MV, 5Si, 5SiMx, 5Si Mopier printers, if the LANG variable is set to Japanese, the message is displayed in the JIS X0201-76 character set. For the LaserJet 4000, 5000, 8000, and 8100 series printers, if LANG is set to POLISH, CZECH, or HUNGARIAN, messages are displayed - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 165
, or Reset key, and to take a different action depending on which key the user presses. Syntax: @PJL STMSG DISPLAY = "message" [] Return Syntax: key the operator presses to return the printer online. For HP LaserJet 4PJ, 4V, 4MV, 5Si, 5SiMx, 5Si Mopier printers, if the LANG variable is set - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 166
support for Turkish or Hungarian on this printer. Comments: This command is useful for making a programming decision based on which key the operator presses. For example, the application can prompt the user to press Reset, and then wait until the Reset key is pressed. Some HP LaserJet printers may - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 167
Example: Using the STMSG Command This example prompts the printer to display "LOAD FORM 1040" and goes offline. The printer returns the name of the key that is pressed to resume operation-in this case, the Continue key. %-12345X@PJL @PJL < - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 168
8-10 Device Attendance Commands EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 169
for storing fonts, macros, electronic forms, and other information. Printers such as the HP LaserJet 4000 and 5000 series printers have an optional disk drive. The HP LaserJet 4000, 5000 series and some other printers support flash memory, which is non-volatile memory contained in modules that - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 170
The PJL file system consists of eight commands: z FSAPPEND z FSDELETE z FSDIRLIST z FSDOWNLOAD z FSINIT z FSMKDIR z FSQUERY z FSUPLOAD These commands are described on the following pages. For feature support information, see Appendix A. 9-2 PJL File System Commands EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 171
number of items is 9. The volume of the PJL file system is required in the pathname (the volume range is 0, 1, and 2, depending on the printer [prior to LaserJet 4000, the only valid volume was 0] - see the examples on the following page). For the FSAPPEND command, the pathname must be a file (not - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 172
Examples of valid pathnames include: 0: 0:\ 0:\MyDir 0:\My/Dir\Gen/Dir 0:\dir0\file1 0:\DIR1\DIR2\File1 0:\DIR1\Prefix/Suffix Volume 0 Root directory on volume 0 \MyDir directory \Gen/Dir directory in \My/Dir directory file1 file in \dir0 directory File1 file in \DIR2 directory in \DIR1 directory - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 173
FSDIRLIST Command The FSDIRLIST command returns a list of files and directories which exist within the specified directory on the printer's file system. This command is similar in function to the DOS DIR command. The ENTRY and COUNT parameters are used to limit the amount of - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 174
zeros. For example, if the printer returns FILEERROR=17, the error is equivalent to status code 32017 (Invalid parameter), meaning the FSDIRLIST command contained an invalid parameter. See PJL File System Errors (32xxx) in Appendix D for a complete list of error codes. Example: Using the FSDIRLIST - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 175
: Using the FSDELETE Command This example demonstrates using the FSDELETE command to delete a file from the printer's file system. @PJL FSDELETE NAME = "0:\pcl\macros\Name: HP ~Logo; Application; ABC; Manufacturer: XYZ; ~Version: 7.9; Date: 8/17/94" Related Commands: FSAPPEND, FSDIRLIST - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 176
. Example: Using the FSDOWNLOAD Command This example demonstrates using the FSDOWNLOAD command to download a file to the printer file system. @PJL FSDOWNLOAD FORMAT:BINARY ~NAME = "0:\pcl\macros\Name: HP Logo; ~Application; ABC; Manufacturer: XYZ; ~Version: 7.9; Date:8/7/94" SIZE = 22 22 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 177
FSINIT command must be part of a secure job. Syntax: @PJL FSINIT VOLUME = "pathname" [] Parameters: Parameter VOLUME = "pathname" Functional Range 0:, 1:*, 2:* Default N/A * Volumes 1: and 2: are only supported on the HP LaserJet 4000 and newer printers. • VOLUME = "pathname" - The - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 178
and 9-3. Example: Using the FSMKDIR Command The following two command lines demonstrate using the FSMKDIR command to create directories on the printer file system. @PJL FSMKDIR NAME = "0:\pcl" [] @PJL FSMKDIR NAME = "0:\pcl\macros" [] Related Commands: FSAPPEND, FSDELETE, FSDIRLIST - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 179
FSQUERY Command The FSQUERY command is used to determine if a given entry exists within the file system, the type of entry (file or directory), and if it is a file, the file size in bytes. Syntax: @PJL FSQUERY NAME = "pathname" [] Response Syntax: If pathname is a file: @PJL FSQUERY NAME=" - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 180
zeros. For example, if the printer returns FILEERROR=7, the error is equivalent to status code 32007 (Illegal name), meaning the FSQUERY command contained an illegal NAME variable. See PJL File System Errors (32xxx) in Appendix D for a complete list of error codes. Example: Using the FSQUERY Command - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 181
FSUPLOAD Command The FSUPLOAD command uploads a file, or a part of a file, from the printer file system to the host. Syntax: @PJL FSUPLOAD NAME = "pathname" ~OFFSET= SIZE=[] Response Syntax: If the pathname is valid: @PJL FSUPLOAD - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 182
zeros. For example, if the printer returns FILEERROR=7, the error is equivalent to status code 32007 (Illegal name), meaning the FSUPLOAD command contained an illegal NAME variable. See PJL File System Errors (32xxx) in Appendix D for a complete list of error codes. Example: Using the FSUPLOAD - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 183
to any printer with flash memory or a hard disk. The example downloads and part of the preceding line. That is, there should be no carriage return or line feed control codes at the end of the preceding line. First Command %-12345X This PJL command causes the printer to exit the active printer - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 184
pcl\macros\a_macro" SIZE=29 *p900x1500YThis is the macro ~%-12345X This PJL command does several things. First, it specifies the download format to be binary (FORMAT:BINARY). Second, it specifies the macro's pathname on the file system (NAME = "0:\pcl\ macros\a_macro"). Third, it - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 185
macro. Note that &f2X and &f3X will also work here. Ninth Command E The Printer Reset command causes the printer to print and eject the page. It also restores the User Default Environment and deletes temporary fonts and macros. Tenth Command %-12345X This PJL command causes the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 186
downloads data to printers which support this command. This command allows data to be downloaded to either the printers internal disk (such as available in HP LaserJet 4000 series, 5Si, 5SiMx, and 5Si Mopier printers) or flash memory (such as available in HP LaserJet 5, 5M, and 4000 series printers - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 187
included in this book, see the Printer Job Language Technical Reference Addendum, which includes product-specific information about newer products, as well as commands and variables added to PJL to support these newer products. The HP LaserJet 8100 and 8500 series printers differ in the way they - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 188
Hold job but only after the additional copies have been printed. It will also be deleted when the user sends down another Proof and Hold job with the same job name, or if the user explicitly deletes the job. The job is not printed immediately but is retained on disk. The job - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 189
job that is sent down by the same user will replace the user's last job on disk. The driver is responsible for determining the size of the printer's control panel and sending a string of appropriate length. To determine the size of the printer's control panel, use the INFO CONFIG command, which - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 190
the default value will be "NO USER NAME". The driver is responsible for determining the size of the printer's control panel and sending a string by the size of the printer's control panel display. The default value is "NO USER NAME". Example: Job Management HP LaserJet 8100 The following PJL - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 191
HP LaserJet 8500 Printer The HP LaserJet 8500 printer implements job management in a different way than the HP LaserJet 8100 printer. For this printer, only the HOLD = JOB option is supported for the HOLD command. The HOLDTYPE and HOLDKEY variables are not supported. (See the descriptions of the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 192
that is sent down by the same user will replace the user's last job on disk. The driver is responsible for determining the size of the printer's control panel and sending a string of appropriate length. Value "jobname string" Value Description For the HP LaserJet 8500, the string is limited to 16 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 193
8500 The following PJL example demonstrates job management for the HP LaserJet 8500 printer. It creates a secure Proof and Print job that prints one copy and then is held until the user selects it for printing via the control panel. %-12345X@PJL @PJL COMMENT **Give job a name** - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 194
10-8 Job Management EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 195
in a multi-user system. For information about products newer than those included in this book, see the Printer Job Language Technical Reference Addendum, which includes product-specific information about newer products, as well as commands and variables added to PJL to support these newer products - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 196
features, and print jobs. If an application does provide more than one service, only use those PJL commands appropriate for the provided services. If applications providing different printer services follow the guidelines described in this section, they can work together properly. This chapter - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 197
use PJL commands when a corresponding command does not exist in the printer language. This is recommended so that the application does not override every PJL job. Use to add explanations within PJL code. To select the correct printer language for the print job. To select a desired feature when - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 198
PJL @PJL ENTER LANGUAGE = POSTSCRIPT %!PS-ADOBE ... PostScript code ... ^D ~%-12345X Jobs That Set Printer Features This example specifies two feature settings that cannot be selected using the specified printer language: %-12345X@PJL @PJL SET RET = LIGHT - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 199
out, or low toner. The USTATUS DEVICE and USTATUS TIMED commands are used to monitor printer status. Applications can continuously monitor the printer for changes in printer state. When the printer changes state, the application takes appropriate action, such as informing the user. In general, the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 200
and after every PJL job. Use to add explanations within PJL code. To modify a printer feature until the next PJL reset condition. To set the printer to its user default feature settings. To modify the user default value of a printer feature. (NOTE: In shared environments, this feature should be used - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 201
. Since this application uses the DEFAULT command, it changes the User Default Environment and control panel settings. In multi-user situations, it should be used only by printer administrators to avoid unexpected results by other users. (Reading Status Information) %-12345X@PJL @PJL - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 202
@PJL COMMENT Requesting features @PJL ECHO Job #53 11-17-92 08:52:03.7 [. . application discards any printer status readback information received before the ECHO response . .] @PJL INQUIRE RET @PJL INQUIRE PAGEPROTECT @PJL INQUIRE RESOLUTION - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 203
Figure 11-1 Sample Printing System Components EN Programming Tips for Using PJL 11-9 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 204
status using the USTATUS DEVICE command. After unsolicited device status is enabled, the printer automatically sends a status response whenever the printer's status changes. %-12345X@PJL @PJL ECHO Acme #17 8-28-92 5:39:02.9 @PJL COMMENT Turn on unsolicited device ~status - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 205
of the job is printed and in the output tray. • Cancel jobs (only HP LaserJet 5/5M, 5Si/5SiMx/5Si Mopier, and other printers that support job cancel)-The spooler can cancel the print job using the PML printer language or a user can cancel the job using the control panel. If unsolicited job status is - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 206
job. Use to add explanations within PJL code. To modify the default value of a printer feature. (NOTE: In shared environments, the control panel "00 READY" message with a customized message. 1 For the LaserJet 4000 and newer printers, use the JOB DISPLAY = "display text" method instead of (or as - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 207
used by spooling applications: • Jobs that monitor job progress and confirm job completion • Jobs that notify the user to load specific forms or paper • Jobs that control printer resources and print selected pages • Jobs that print a banner page followed by an application- generated job (application - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 208
@PJL EOJ NAME = "End of Monitor Job" @PJL USTATUS JOB = OFF @PJL USTATUS PAGE = OFF %-12345X When the printer processes the JOB command, the following unsolicited job status message is sent: @PJL USTATUS JOB START NAME="Monitoring Job" 11-14 Programming Tips for - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 209
When USTATUS PAGE = ON, the first unsolicited page status message is sent after page 1 lands in the output tray: @PJL USTATUS PAGE 1 Additional page status messages are sent after each succeeding page lands in the output tray. After the job is completely printed, the host receives unsolicited - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 210
That Notify the User to Load Specific Forms or Paper This example displays a message to "LOAD FORM 1040" and takes the printer off-line. to print multiple copies of a selected page causes unexpected results because the printer counts physical pages, not multi-copy collated pages. %-12345X@PJL - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 211
that prints a banner page. The application was not created with a PJL-ready driver, so it does not begin and end with UEL commands, or specify the printer language-the printer implicitly switches to the correct printer language. %-12345X@PJL @PJL JOB NAME = "Spooler #2" - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 212
discard unrecognizable lines. Lines within the PJL status response begin with a specific keyword, as described in the command description in Chapter 7, and end with the control codes. Future printers may support new keywords in the PJL status response. Your application should ignore those - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 213
box itself may be able to inject a "print job" to query the printer for specific information. External printer sharing boxes can be designed to support sending data from the printer to the host computer. However, the printer sharing box has to determine which host computer should receive the EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 214
interface or the MIO interface. An application running on host computer #2 or #3 may receive printer responses if the printer sharing box supports bi-directional printer communication. However, since the printer sharing box does not have enough information to route the response to the correct host - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 215
primary purposes (although there are other uses): printer driver configuration and monitoring device status. Since printer configuration does not change often (i.e., the amount of installed printer memory does not change frequently) using printer status readback to assist in initial configuration - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 216
the user's response, the application can continue as appropriate. Printer Status Readback and Printer I/O Switching I/O switching occurs when a printer contains more than one I/O interface and accepts data from any interface, based on a first-come first-served basis. Some PJL printers do not support - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 217
is providing the current print job. However, it is possible for an application to get a few bytes of data into the inactive I/O interface before the printer paces off that I/O interface. If the application times out while trying to send the initial UEL command after one or more bytes of the command - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 218
, a word processing application may send a query to the printer, but because the user turned off the host computer, the application never got a old printer status readback responses and discard them until the expected response is received. Applications should include unique information as part of - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 219
overflow" message: CE CODE=10010 DISPLAY="00 READY" Refer to the "HP LaserJet 4 and 5 Family Comments" section in Appendix A under "Printer Status Readback" for the exact "printer to host buffer overflow" message sent by HP LaserJet 4 and 5 printer families. The PJL unsolicited "printer to host data - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 220
options to solve this printer-to-host data routing problem. 1 A printer sharing device that is a uni-directional device and does not support printer-to-host data transfer. Applications need to be designed to work with uni-directional printer sharing devices. 2 A printer sharing device that examines - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 221
does not need an unsolicited status response, then the application can discard the response. If the application ever receives the unsolicited PJL "printer to host data buffer overflow" message, then the application should resend all queries in the "outstanding solicited query" list. When the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 222
because of actions performed by the application. 6 Do not be dependent on the timing characteristics of a single printer model. For example, the response time of the HP LaserJet 4 printer's built-in IEEE-1284-compatible I/O interface will be different than the timing characteristics of a IEEE-1284 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 223
list of environment variables shows the range of environment variables supported by each printer. The final portion of the appendix describes some important product-specific information regarding the different Hewlett-Packard printers. Note For information about products newer than those included - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 224
The following three tables list the PJL commands and show command support by each printer. "Y" indicates a command is supported; "ns" indicates it is not supported. Table A-1. PJL Feature Support for HP LaserJet, DeskJet, and PaintJet Printers PJL Command Name 4/4M 4 Plus 4L 4Si 4M Plus 5L IIISi - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 225
Table A-1. PJL Feature Support for HP LaserJet, DeskJet, and PaintJet Printers PJL Command Name LaserJet Color LJ 4000 Series Color LJ 5000 Series 5/5M DeskJet 1200C DeskJet 1600C PaintJet XL300 COMMENT Y Y Y Y Y DEFAULT Y ns ns Y ns DINQUIRE Y ns ns Y ns ECHO Y Y - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 226
Table A-1. PJL Feature Support for HP LaserJet, DeskJet, and PaintJet Printers PJL Command Name LaserJet LaserJet LaserJet LaserJet LaserJet 1100 Series 2100 Series 4500 Series 8000/8100 8500 Series COMMENT Y Y Y Y Y DEFAULT Y Y Y Y Y DINQUIRE Y Y Y Y Y ECHO Y Y Y Y Y - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 227
Table A-1. PJL Feature Support for HP DesignJet Printers/Plotters PJL 200, Command Name 220 230, 250C, 330, 600 350C, 430, 450C, 455CA, 488CA 650C 700, 750C Plus, 750C, 755CM, 2000CP, 2500CP, 1050C, 1055CM, - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 228
5SiMx, 5Si Mopier, HP DeskJet 1600C A-29 to 39 HP LaserJet 1100 Series, 2100 Series, 5000 Series, 8000 Series, 8100 Series, Color LaserJet 4500 Series, 8500 Series A-40 to 43 HP DesignJet printers The letters "Y" and "ns" indicate the feature is supported and not supported, respectively. A value - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 229
for HP LaserJet Printers User Default and PJL Current Environment settings are modified (except for the LaserJet 4L, 5L, and 6L printers). It is recommended these variables not be changed on a job-by-job basis. 2 Only modifiable using the DEFAULT command. EN Product-Specific Feature Support - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 230
Table A-2. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 4 4 Plus 4V 4Si 4000 4L 4ML 4P 4M 4M Plus 4MV 4SiMx Series 4MP HOLD (OFF) ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns A-8 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 231
Table A-2. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 4 4 Plus 4V 4Si 4000 4L 4ML 4P 4M 4M Plus 4MV 4SiMx Series 4MP INTRAY2SIZE (LETTER) RO ns ns RO ns ns ns ns ns RO ns ns ns ns ns RO ns ns ns EN Product-Specific Feature Support A-9 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 232
Table A-2. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 4 4 Plus 4V 4Si 4000 4L 4ML 4P 4M 4M Plus 4MV 4SiMx The IOBUFFER and IOSIZE variables can only be used with the DEFAULT, DINQUIRE, and INQUIRE commands. A-10 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 233
HP LaserJet Printers PAPER ns ns ns ns ns ns ns ns MPTRAY MANUAL RO RO RO ns ns ns ns ns CASSETTE (RO ns (Y) (Y) ns (Y) (Y) (Y) (Y) 1For LaserJet 4000 series printers, the MPTRAY variable can only be changed using the PJL DEFAULT command. EN Product-Specific Feature Support A-11 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 234
A-2. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 4 supported with the DEFAULT, DINQUIRE, and INQUIRE commands. 2 For the LaserJet 4PJ printer, PERSONALITY is a port-specific variable. For all other LaserJet printers, personality is not I/O port-specific - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 235
Table A-2. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 4 4 Plus 4V 4Si 1 These variables can only be used with the DEFAULT, DINQUIRE, and INQUIRE commands. RESOURCESAVESIZE is a personality-specific variable. EN Product-Specific Feature Support A-13 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 236
HP LaserJet Printers Environment Variable Variable Values 4 4 Plus 4V 4Si 4000 4L 4ML 4P 4M 4M Plus 4MV 4SiMx Series 4MP USERNAME "username string" ns ns ns ns ns ns ns ns WIDEA4 (NO) ns ns ns ns Y ns ns ns YES ns ns ns ns Y ns ns ns PCL-Specific -Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 237
HP LaserJet Printers Environment Variable Variable Values 4 4 Plus 4V 4Si 4000 4L 4ML 4P 4M 4M Plus 4MV 4SiMx Series 4MP SYMSET (continued on the following pages) DESKTOP YY Y PSTEXT Y Y Y Y Y YY Y ROMAN8 (Y) (Y) (Y) (Y) Y (Y) (Y) (Y) EN Product-Specific Feature Support A-15 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 238
HP LaserJet Printers Y Y YY Y WIN31J ns ns Y1 ns Y ns ns ns Port-Specific Variables PERSONALITY2 ESCP PCL ns ns ns ns ns ns ns ns ns ns ESC/P-Specific Variables specific variable for the LaserJet 4PJ printer. For all other printers, it is a general variable. For all other printers - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 239
HP LaserJet Printers Environment Variable Variable Values 4 4 Plus 4V 4Si 4000 4L 4M 4M Plus 4MV 4SiMx Series PostScript-Specific PostScript is installed. PostScript is an option in some printers. 4ML ns ns ns ns ns Y Y 4P 4MP ns ns ns ns ns Y Y EN Product-Specific Feature Support A-17 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 240
Environment Variables for HP LaserJet and DeskJet Printers Environment Variable Variable , both the User Default and PJL Current Environment settings are modified (except for the LaserJet 4L and 5L printers). It is is only supported by the 5Si Mopier. A-18 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 241
Table A-3. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable Variable Values 4PJ 4 LC 5L 4LJ Pro 6L 5P 5MP 6P 5Si 5 6MP 5SiMx DeskJet 1600C - these variables are only available using the DEFAULT and DINQUIRE commands. EN Product-Specific Feature Support A-19 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 242
Table A-3. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable Variable Values 4PJ 4 LC 5L 4LJ Pro 6L 5P 5MP 6P 5Si 5 6MP 5SiMx, 5M Mopier 1600C INTRAY2SIZE ( ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns A-20 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 243
Table A-3. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable Variable Values 4PJ 4 LC 5L 4LJ Pro 6L 5P 5MP 6P 5Si 5 6MP 5SiMx, and IOSIZE variables can only be used with the DEFAULT, DINQUIRE, and INQUIRE commands. EN Product-Specific Feature Support A-21 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 244
HP LaserJet and DeskJet Printers ns ns ns ns ns ns Y MPTRAY MANUAL ns ns ns Y2 ns ns ns ns LaserJet 5P/5MP printers, the MPTRAY variable can only be changed using the PJL DEFAULTcommand. The LaserJet 6P/6MP printers allow both the DEFAULT and SET commands. A-22 Product-Specific Feature Support - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 245
Table A-3. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable Variable Values 4PJ 4 LC 5L LaserJet 4PJ printer, PERSONALITY is a port-specific variable. For all other LaserJet printers, personality is not I/O port-specific. EN Product-Specific Feature Support - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 246
Table A-3. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable Variable Values 4PJ 4 LC 5L , and INQUIRE commands. RESOURCESAVESIZE is a personality-specific variable. 3 QTY is only supported on the HP LaserJet 5Si Mopier. A-24 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 247
LaserJet 4JL Pro printer does not support font SIMMs. 3 The DeskJet 1600C only supports the values 8.00, 10.00, 12.00, 16.67, 18.00, 20.00. 4 These variables can only be used with the DEFAULT, DINQUIRE, and INQUIRE commands. RESOURCESAVESIZE is a personality-specific variable. EN Product-Specific - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 248
HP LaserJet and DeskJet Printers Environment Variable Variable Values 4PJ 4 LC 5L 4LJ Pro 6L 5P 5MP 6P 5Si 5 6MP 5SiMx, 5M Mopier 1600C SYMSET (continued on the following pages) DESKTOP are only available using the DEFAULT and DINQUIRE commands. A-26 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 249
PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable Variable Values 4PJ ns 1 PERSONALITY is only a port-specific variable for the LaserJet 4PJ printer. For all other printers, it is a general variable. For all other printers, see the PERSONALITY variable in the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 250
Table A-3. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable Variable Values 4PJ 4 LC 5L 4LJ Pro 6L 5P 5MP 6P 5Si 5 6MP 5SiMx, 5M Mopier 1600C PostScript-Specific Variables1 ADOBEMBT OFF ns ns ns Y ns ns ns ns ON ns ns ns Y ns ns ns ns (AUTO) - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 251
Table A-4. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 8500 Series Series Series Series Series Series Series AUTOCONT1 OFF (Y)1 (Y)2 Y Y Y Y RO ON Y1 Y2 (Y) (Y) (Y) (Y) RO AUTOSELECT (ON) ns ns ns ns ns - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 252
Table A-4. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 8500 Series Series Series Series Series Series Series HOLD1 (OFF) and HOLDTYPE are only modifiable using the SET command. A-30 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 253
Table A-4. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 8500 Series Series Series Series Series Series Series INTRAY2SIZE ( with UNKNOWNPAPER when the paper tray is pulled out. EN Product-Specific Feature Support A-31 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 254
Table A-4. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 8500 Series Series Series Series Series IOSIZE variables can only be used with the DEFAULT, DINQUIRE, and INQUIRE commands. A-32 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 255
Table A-4. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 8500 Series Series Series Series Series Series Series LANG DANISH ns Y Y Y Y Y Y GERMAN ns ns ns ns ns ns ns EN Product-Specific Feature Support A-33 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 256
HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 ns ns ns Y MPTRAY MANUAL ns ns ns ns ns LaserJet 5000 and Color LaserJet 4500 series printers, the MPTRAY variable can only be changed using the PJL DEFAULT command. A-34 Product-Specific Feature Support - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 257
for HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 supported with the DEFAULT, DINQUIRE, and INQUIRE commands. 2 For the LaserJet 4PJ printer, PERSONALITY is a port-specific variable. For all other LaserJet printers, personality is not I/O port-specific - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 258
Table A-4. PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 8500 Series Series Series Series Series DINQUIRE, and INQUIRE commands. RESOURCESAVESIZE is a personality-specific variable. A-36 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 259
Variables for HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 8500 Series Series Series Series Series Series Series USERNAME "username string" ns ns ns ns ns Y Y WIDEA4 (NO) ns Y ns Y Y Y Y YES ns Y ns Y Y Y Y PCL-Specific Variables - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 260
HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 8500 Series Series Series Series Series Series Series SYMSET (continued on the following pages) DESKTOP Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y A-38 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 261
PJL Environment Variables for HP LaserJet Printers Environment Variable Variable Values 1100 2100 4500 5000 8000 8100 8500 Series Series Series Series Series Series Series SYMSET continued WINL5 WIN31J Y Y Y Y ns ns ns Y Y Y Y Y Y ns Port-Specific Variables PERSONALITY2 ESCP - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 262
Table A-5. PJL Environment Variables for HP DesignJets Environment Variable1 Variable Values 230 250C 330 350C ns ns Y Y YY Y Y AUTO ns ns ns ns ns ns ns ns 1 The HP DesignJet 200, 220, 600, and 650C do not support any environment variables. A-40 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 263
(Y2) (Y) OFF ns ns Y Y2 Y AUTO ns ns (Y) Y2 Y 1 The HP DesignJet 200, 220, 600, and 650C do not support any environment variables. 2 Supported on the model C3198B only. 1055CM Y Y (Y) ns Y Y Y Y Y ns Y ns Y Y Y Y Y Y Y ns ns ns Y Y Y (Y) Y Y EN Product-Specific Feature Support A-41 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 264
Table A-5. PJL Environment Variables for HP DesignJets Environment Variable Variable Values 2000CP ns Y Y Y Y Y Y Y Y Y Y Y Y ns ns Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y ns ns ns ns ns ns A-42 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 265
HP LaserJet IIISi printer does not support any PJL status readback commands, environment variable commands, or device attendance commands. For an example that uses the PJL features found in the HP LaserJet IIISi printer, see the "Using the ENTER Command" example in Chapter 4. EN Product-Specific - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 266
Switching Printers supporting printer language switching: HP LaserJet 4, 4M, 4 Plus, 4M Plus, 4V, 4MV, 4Si, 4SiMx, 4ML, 4P, 4MP, 4PJ, 4LJ Pro, 4000 series, 5, 5M, 5P, 5MP, 6P, 6MP, 5Si, 5SiMx, 5Si Mopier, HP Color LaserJet, HP Color LaserJet 5, 5M, 2100 series, 4500 series, 5000 series, 8000 series - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 267
error is returned for "buffer overflow" instead of the normal 10010 error code. HP LaserJet 4PJ and 4LJ Pro printers return the 10010 error code.) Reading the 10010 or 30010 error clears the status buffer; if you receive either error, resend the status request. EN Product-Specific Feature Support - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 268
6P, 6MP, 5Si, 5SiMx, 5Si Mopier, HP Color LaserJet, HP Color LaserJet 5, 5M, LaserJet 1100 series, 2100 series, 4500 series, 5000 series, 8000 series, 8100 series, 8500 series Four conditions may cause the printer to reconfigure user memory: • When the printer language changes, either implicitly or - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 269
configure resource saving on HP LaserJet 4 Plus, 4M Plus, 4V, and 4MV printers. For HP LaserJet 4Si/4SiMx and 5Si/5SiMx printers, resource saving is only configurable from the control panel. Printer-Specific Job Boundaries Printers that support PJL job boundaries: HP LaserJet 4, 4M, 4 Plus, 4M Plus - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 270
that support the TIMEOUT variable: HP LaserJet 4, 4M, 4 Plus, 4M Plus, 4V, 4MV, 4Si, 4SiMx, 4ML, 4P, 4MP, 4PJ, 4LJ Pro, 4LC, 4000 series, 5, 5M, 5P, 5MP, 6P, 6MP, 5Si, 5SiMx, 5Si Mopier, 2100 series, 4500 series, 5000 series, 8000 series, 8100 series, 8500 series These printers have a timeout - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 271
which it then appends to the partial page already in the printer. (This works the same way as the HP LaserJet III printer, which does not have a job timeout.) If PJL data is received instead, the partial page is printed before the new PJL job is executed. EN Product-Specific Feature Support A-49 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 272
PJL Job Security Printers that support PJL job security: HP LaserJet 4/4M Plus, 4V, 4MV, 4Si, 4SiMx, 4000 series, 5, 5M, 5Si, 5SiMx, 5Si Mopier, 2100 series, 4500 series, 5000 series, 8000 series, 8100 series, 8500 series (5P, 5MP, 6P, 6MP, 2100: password only), The printers listed above provide two - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 273
differences and how they affect the use of PJL. • No device attendance commands are supported-these printers rely on unsolicited status to inform the user. • No NVRAM (HP LaserJet 4L/5L/6L only)-because these printers are designed to conserve energy and do not have a power switch, they are never - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 274
it recognizes the printer language, the printer backs up to the beginning of the sampled print data and switches to the printer language determined to be most appropriate. Then the printer begins to parse the data in the newly selected printer language. A-52 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 275
is defaulted to SLOW. Printer Environment Printers that support printer environment variables: HP DeskJet 1600C, 1600M Unlike most PJL variables, the following environment variable defaults are not stored in the printer's NVRAM. The primary use is to set job-specific parameters like those available - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 276
not support USTATUS or INFO, only the requested status information will come back from the printer. Commands That Affect Printer Memory Printers affected by memory reconfiguration: HP DeskJet 1600C, 1600M Three conditions may cause the printer to reconfigure user memory: • When the printer language - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 277
saving. Printer Specific Job Boundaries Printers that support printer specific job boundaries: HP DeskJet 1200C, 1200CM, 1600C, 1600CM Unlike the LaserJet 4 family of printers, no implicit PJL job boundaries are recognized. There are no additional conditions which will cause the User Default - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 278
• The LaserJet 5Si Mopier printer has a top (correct-order) output tray, holding 500 pages, a side (100-sheet face-up) output tray, a multi-bin mailbox (5 bins) and a stapler bin. (See the following page for instructions on stapling or collating documents.) A-56 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 279
are used to specify the destination bin and control printer functions such as stapling and collating multiple copies. Specifying the Output Bin Documents are sent to specific output bins using the @PJL SET OUTBIN command. The HP LaserJet 5Si Mopier bin definitions are as follows: Bin Description - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 280
copy must be sent to the printer. The printer stores the job on the internal disk drive and then prints the desired number of collated copies without additional downloading. In order to print multiple LF> @PJL EOJ NAME = "Job #12345" %-12345X A-58 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 281
(REt) settings • Support for the CLEARABLEWARNINGS, COURIER, MPTRAY, REPRINT, and WIDEA4 environment variables I/O Buffer Variables Reconfiguring the size of the LaserJet 4000 and 5000 series I/O buffers via the data stream can be difficult. The user may try to send data to the printer while the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 282
for example, if you have a LaserJet 4000 or 5000 series printer with an optional tray, tray 1 (MP tray) would be 0, the first cassette number 2, the second cassette number 3, and the optional cassette number 5 (number 4 is reserved for the envelope feeder). A-60 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 283
Comments The HP LaserJet 1100 series printers have a PJL feature set very similar to the HP LaserJet 6L printer. Listed below User Default and PJL Current Environment settings are not modified as they are on most LaserJet printers. • For the LaserJet 1100 series printers Specific Feature Support A-61 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 284
of Tray 1 (the MP Tray). • The HP LaserJet 2100 series printers add the PCL-specific LINETERMINATION variable, which allows the carriage return, line feed, and form feed characters to be remapped (see the LINETERMINATION variable description in Chapter 6). A-62 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 285
readback at the start and end of jobs. • HP Color LaserJet 4500 series printers may remove the JOB DISPLAY = "display text" message This printer adds some new POWERSAVETIME values (1, 240, 480 minutes), and does not support the 15 and 180 minute values. EN Product-Specific Feature Support A-63 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 286
the HP LaserJet 4000 series printers. The HP LaserJet 8100 also adds support for a few more paper sizes (ROC8K, ROC16K, and JISEXEC) and adds job management features (PROOF and HOLD jobs - see Chapter 10 for more information on job management PJL commands). A-64 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 287
LaserJet 8500 Series Comments As part of its paper stacking flexibility, the HP Color LaserJet 8500 printer allows the user to switch the Mail Box Mode (MBM) to any of the following three settings: • Stacker • Separator • Mailbox The preferred way to change the Mail Box Mode is using the printer - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 288
A-66 Product-Specific Feature Support EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 289
B PJL Command Summary COMMENT @PJL COMMENT [] DEFAULT @PJL DEFAULT [LPARM : personality | IPARM : port] ~variable = value [] DINQUIRE @PJL DINQUIRE [LPARM : personality | IPARM : port] ~variable [] DINQUIRE Response @PJL DINQUIRE [LPARM:personality | IPARM:port] ~ - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 290
EOJ @PJL EOJ [NAME = "job name"] [] FSAPPEND @PJL FSAPPEND FORMAT:BINARY SIZE=integer ~NAME = "pathname" [] %-12345X FSDELETE @PJL FSDELETE NAME = "pathname" [] FSDIRLIST @PJL FSDIRLIST NAME = "pathname" ENTRY=integer ~COUNT=integer[] FSDIRLIST - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 291
FSQUERY @PJL FSQUERY NAME = "pathname" [] FSQUERY Response If pathname is a file: @PJL FSQUERY NAME="pathname" TYPE=FILE ~SIZE=integer If pathname is a directory: @PJL FSQUERY NAME="pathname" TYPE=DIR FSUPLOAD @PJL FSUPLOAD NAME = "pathname" OFFSET= SIZE=< - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 292
INQUIRE @PJL INQUIRE [LPARM : personality | IPARM : port] ~variable [] INQUIRE Response @PJL INQUIRE [LPARM:personality | IPARM:port] ~variable value JOB @PJL JOB [NAME="job name"][START=first ~page][END=last page][PASSWORD = number] OPMSG @PJL OPMSG DISPLAY = - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 293
key UEL %-12345X USTATUS @PJL USTATUS variable = value [] Unsolicited Status Message (not a response, but returned when printer events occur) @PJL USTATUS variable [1 or more lines of printable characters or followed by ] USTATUSOFF @PJL - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 294
B-6 PJL Command Summary EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 295
of the manual. The C code is then listed on the opposite page so that you can compare the C code with the generic code. The Printer Job Language Technical Reference Addendum, which includes product-specific information about newer products, as well as commands and variables added to PJL to support - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 296
: one in PCL and one in PostScript. The program first enters PCL, and then immediately enters HP-GL/2 to draw a box and print "PCL Print Job." Next, PostScript is entered and PostScript data is sent to the printer to draw a box and print "PostScript Job." %-12345X@PJL @PJL COMMENT - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 297
/* SWITCH.C (Switching Printer Languages) */ #include Job** \n"); fprintf(prn,"@PJL COMMENT **Enter PCL (& HP-GL/2)* \n"); fprintf(prn,"@PJL ENTER LANGUAGE = PCL \n"); fprintf(prn,"5 setlinewidth\r"); /** PostScript Code **/ fprintf(prn,"100 100 moveto\r"); fprintf - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 298
printer. In this example, the batch file acts as a spooler, using the RDYMSG command to display the file name while a print file is being downloaded PRN: COPY UEL /B PRN: @ECHO ON For the HP LaserJet 4000 printer, and newer printers, the RDYMSG DISPLAY method will not replace the front panel display - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 299
To use this batch file, type the name of the batch file, followed by the name of the print file, as follows: PRINTPJL printfilename The printfilename is displayed while the job is being downloaded to the printer. EN Programming Examples C-5 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 300
C-6 Programming Examples EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 301
included in this book, see the Printer Job Language Technical Reference Addendum, which includes product-specific information about newer products, as well as commands and variables added to PJL to support these newer products. Status Code Groupings PJL status codes are grouped as follows, with the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 302
, see the user and service manuals for each printer. Informational Messages (10xxx) * Status Code Control Panel Display String or Code Meaning 10001 00 READY (online) [Personality-specific ready message] (online) [PJL RDYMSG] (online) 68 READY/SERVICE (online) or PERFORM USER MAINTENANCE or 68 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 303
Code Meaning 04 SELF TEST 18 AUX IO INIT or 18 AUX IO NT RDY or 18 MIO INIT or 18 MIO NOT RDY or HP MIO1 INITIALIZING or HP MIO2 INITIALIZING or HP MIO1 NOT READY or HP MIO2 NOT READY or HP JOB FROM TRAY X (X = tray code) PRESS SELECT TO FORMFEED or DATA RECEIVED ACCESS DENIED NO JOB TO - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 304
with the same size paper. The printer goes offline and waits for someone to load paper. Foreground error messages are listed later in the chapter with letter-size paper. X = Tray Code 0 1 2 3 4 5 Tray MP Tray or Multi-Purpose Tray1 or Duplex tray Manual Feed PC Tray or Upper Cassette or Universal - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 305
YY = Media Code Media Size 00 Unknown Paper 01 Unknown Envelope 02 Letter Paper 03 Legal Paper 04 A4 Paper 05 Executive Paper 06 Ledger Paper Paper 21 A5-R Paper 22 Japan B5-R Paper 23 Exec-R Paper 24 A6 Paper 25 Foolscap Paper 26 Japan B6 Paper EN PJL Status Codes D-5 - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 306
following tables list the x and y values for these messages. For example, 12301 indicates the lower cassette tray is open. X = Tray Code 0 1 2 3 4 5 Tray MP Tray or Multi-Purpose Tray1 Manual Feed PC Tray or Upper Cassette or Universal Tray2 LC Tray or Lower Cassette or Universal Tray3 EE Tray or - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 307
values." For a description of the PJL command format, see "Format of PJL Commands" in Chapter 2.) Status Code Display String or Code Meaning 20001 Generic syntax error (entire PJL command ignored) 20002 Unsupported command 20004 Unsupported personality, system, or I/O port 20005 PJL command - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 308
Display String or Code Meaning 20011 String missing closing double-quote character 20012 Numeric value starts with a after option name (used for commands like SET that limit the number of options supported) 20025 Two decimal points in a numeric value 20026 Invalid binary value D-8 PJL Status - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 309
25012 25013 25014 25016 25017 25018 Display String or Code Meaning Generic warning error (part of the PJL command ignored) PJL prefix missing Alphanumeric loss due to value being out of range; the value used was the closest supported limit Value is of the correct type, but is out of range (value was - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 310
. As much of the command is executed as possible, depending on the current configuration of the printer. Status Code Display String or Code Meaning 27001 Generic semantic error 27002 EOJ command encountered without a previously matching JOB command. An EOJ command does not have a matching JOB - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 311
SAVED or 68 ERROR 30036 68 SERVICE or 68 NVRAM FULL CHECK CONFIGURATION or 68 NVRAM ERROR, SETTINGS NOT SAVED 30072 49 REMOVE PAGE 30076 PERSONALITY MEMORY OVERFLOW/ OUT OF MEMORY 30094 41.1 GENERAL MISPRINT ERROR * If creating applications for the HP LaserJet 4 and 5 printer families, see - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 312
GO KEY 30109 40 BAD SERIAL DATA FORMAT, PRESS GO KEY 30110 22 HP MIO ERROR, PRESS GO KEY 30111 22 PARALLEL IO ERROR, PRESS GO KEY 30112 22 SERIAL IO ERROR, PRESS GO KEY 30113 STOPPING CHECK LAST PAGE 30114 PRESS SELECT TO CANCEL JOB 30119 MEDIA FEED ERROR D-12 PJL Status Codes EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 313
32003 32004 32005 32006 32007 32008 32009 32010 32011 32012 32013 32014 32015 32016 32017 32018 32019 32020 32021 32022 Display String or Code Meaning General error Volume not available Disk full File not found No free file descriptors Invalid number of bytes File already exists Illegal name Can - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 314
Vol name out of range Bad FS Hardware failure Potential Operator Intervention Conditions (35xxx) This list specifies the set of PJL error codes and corresponding control panel display strings for conditions where operator intervention may be required. The device says "online" and continues to - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 315
Code Meaning 35041 W8 JOB 600/OFF 35042 W7 JOB 300/LGL* 35043 W5 JOB 300/LTR* 35044 W6 JOB 300/A4* 35045 W4 JOB 300/OFF* 35073 WM CHK MEM CNFIG or MEMORY SETTINGS CHANGED 35074 WM MEM CNFIG N/A 35075 USER MAINTENANCE some printers, the WM JOB 300 message (35081) may be used instead - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 316
40024 FE CARTRIDGE 40026 PC INSTALL or INSTALL TRAY 2 40038 16 LOW TONER or TONER LOW or TONER LOW, PRESS GO KEY 40046 FI INSERT CART 40047 FR REMOVE CART 40048 [PJL OPMSG] 40049 [PJL STMSG] 40050 50 SERVICE or 50 FUSER ERROR, CYCLE POWER 40051 51 ERROR or 51 PRINTER ERROR, CYCLE - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 317
59 ERROR 40061 61.x SERVICE 40062 62.x SERVICE 40063 63 SERVICE 40064 64 SERVICE or PRINTER ERROR, CYCLE POWER 40065 65 SERVICE 40066 External paper handling device failure 40067 67 SERVICE 40068 69 SERVICE 40069 70 ERROR 40070 71 ERROR 40071 72 SERVICE 40079 PRINTER MANUALLY - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 318
40142 40143 40144 40146 Bad duplexer connection DRUM ERROR REPLACE DRUM KIT DRUM LIFE OUT REPLACE DRUM KIT DRUM LIFE LOW REPLACE DRUM KIT TRANSFER KIT OUT REPLACE KIT TRANSFER KIT LOW REPLACE KIT WASTE TONER FULL REPLACE DRUM KIT INSTALL DRUM KIT REINSTALL TRANSFER BELT PRESS GO TO PRINT PRESS - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 319
available and loaded with the correct paper size. When this occurs, the printer goes offline until someone loads paper. The messages are in the format tray with legal-size paper. X = Tray Code 0 1 2 3 4 5 9 Tray Multi-Purpose Tray or Envelope Tray Manual Feed PC Tray or Universal Tray2 LC Tray - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 320
Code Media Size 11 DL Envelope 12 Japan B4 Paper 13 Japan B5 Paper 14 B5 Envelope 15 Custom Media Paper 16 J-Postcard (or JB4 paper-LaserJet 6P, LaserJet 2100) 17 J-RoundTrip Postcard (or JB5 paper- LaserJet 6P, LaserJet 2100) 18 A5 Paper (or JPostcard-LaserJet the printer goes - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 321
8 9 10 11 12 13 14 15 Tray Non-specific jam Paper feed 1, paper late jam Paper feed 2, paper late jam Fuser output, paper late jam Fuser output, paper stopped jam Face down output, paper late paper jam Fuser accordion jam Fuser accordion jam Printer could not auto eject paper EN PJL Status - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 322
paper handling devices. The messages are in the format 43xyy, where x is the number of the paper handling device and yy is the error code. x = Device 1 2 3 4 5 Paper Handling Device First device attached to PHC Second device attached to PHC Third device attached to PHC Fourth device attached to - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 323
jam in the paper input area 02 Paper jam in the paper output area (may need to open rear door of printer) 03 Paper jam underneath the top cover. Remove toner cartridge to clear. 04 Paper jam in the duplexer 05 Paper jam in the duplex front cover area 06 Paper jam in - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 324
hardware problem exists and the printer is working well enough to send status messages. Status Code Display String or Code Meaning 50000 General Hardware Failure 50001 ROM or RAM Error, ROM Checksum Failed (or interface error [DesignJet]) 50002 RAM Error, RAM Test Failed (or part malfunction - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 325
or EXTERNAL BINDING DEVICE HAS A MALFUNCTION 50026 DEVICE ERROR X.YY CYCLE POWER or AN EXTERNAL DEVICE HAS REPORTED A MALFUNCTION 50027 DUPLEX ERROR CHECK DUPLEX UNIT or DUPLEX UNIT GUIDE FAILED AND REQUIRES SERVICE 50028 55.XX ERROR PRESS SELECT KEY or COMMUNICATION FAILURE BETWEEN FORMATTER - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 326
Status Code Display String or Code Meaning 50029 64 PRINTER ERROR CYCLE POWER or VIDEO DMA TRANSFER TIMED OUT 50030 FAN MOTOR 5 FAILURE 50031 FAN MOTOR 6 FAILURE 50032 FAN MOTOR 7 FAILURE 50033 FAN MOTOR 8 FAILURE 505xx Firmware Error, Power Cycle 50599 Processor Error, Power Cycle - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 327
error conditions. If auto-continue is OFF and these same conditions occur, the printer goes off-line until the Continue or On Line key is pressed. Auto-continue mode can be configured using the printer's control panel or using PJL commands (refer to the user's manual for the specific PCL 5 printer - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 328
data. Control Code A control code is a non-printable ASCII character that initiates a printer function, for user or operator. A user default is a default value, stored in non-volatile RAM (in printers that have NVRAM), that is selectable using the control panel or the PJL DEFAULT command. Download - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 329
the next print job. Macro A macro is a collection of escape sequences, control codes, and data downloaded to the printer. Its execution can be initiated using a single command. Modified Print Environment Once a printer language, such as PCL, is entered, the current feature settings constitute the - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 330
languages. PCL and PostScript commands are each processed by separate firmware. New personalities can be added to some LaserJet printers using means such as cartridges or ROM SIMMs. PJL is not a personality (you cannot print using PJL). See "Personality Switching." Personality Switching The process - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 331
are the same as the User Default Environment. Applications then can printer language-specific exit command (when not between a JOB/EOJ pair), such as ^D for PostScript, and data stream idle timeouts (see Appendix A for information about job boundaries and timeouts for the HP LaserJet 4 and 5 printer - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 332
and PostScript are both printer languages-they both contain commands that enable the user to control where marks are printed on a page. Ready Message A ready message is displayed on the control panel display when no error conditions are present. When errors occur, an error message replaces the ready - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 333
default settings selected from the control panel or by way of the PJL DEFAULT command. The user default settings are stored in non-volatile memory (in those printers that have NVRAM). Those settings not selected using the control panel or PJL DEFAULT command are set to the factory default values - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 334
Glossary-8 EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 335
40, A-41, A- 42 DeskJet 1200C printer A-3 DeskJet 1200C/1600C family A-52 device attendance commands 8-1 device status 7-33 DEVICE variable 7-33 DINQUIRE command 7-10 example 7-12 example, language-specific 7-13 disk lock 5-11 DISKLOCK variable 5-11, 6-14 download Glossary-2 DUPLEX variable 6-14 EN - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 336
printer language-specific 6-7 summary 6-6 User Default 6-2, 6-3, 6-7 EOJ command 5-8, 6-9 errors, processing 2-9 Esc/P printer language 4-4, 6-21, 6-26 variables 6-33 ESC/P-specific hardware errors D-24 HOLD variable 6-15, 10-2, 10-6 HOLDKEY variable 6-15, 10-2 HOLDTYPE variable 6-15, 10-3 HP - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 337
printer-specific LaserJet 8000 series printers A-64 LaserJet 8500 series printers A-65 LaserJet IIISi printer 1-4, A-43 line spacing (FORMLINES) 6-15 line termination 3-3 LINETERMINATION variable 6-30 LOWTONER variable 6-18 LPARM 2-4 PCL 6-27 personality 6-12 POSTSCRIPT 6-31 M macro Glossary-3 manual - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 338
printer status 11-18 reset condition 6-8, Glossary-5 sample jobs 3-4 security 5-1, 5-10 services 11-2 status codes D-1 status requirements 7-3 syntax rules 2-5 using 3-1 well-formed jobs 3-3 white space in commands 2-6 PLANESINUSE variable 6-22 poorly formed print job Glossary-5 port-specific - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 339
-11 PRINTQUALITY variable 6-22 product-specific feature support A-1 programming examples C-1 programming tips 10-1, 11-1 PRTPSERRS variable 6-31 PTSIZE variable 6-30 Q QTY variable 6-22 R RDYMSG command 8-2 example 8-3 example (batch file) C-4 readback, printer status 1-3 readback, status 7-1 ready - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 340
TIMED command 7-40 USTATUSOFF command 7-42 utilities 11-5 V value 2-4 variable support A-6 variable types 2-7 variables environment 6-11 INFO VARIABLES command 7-25 PCL-specific 6-26, 6-27 PJL environment 6-12 PostScript-specific 6-31 vertical bar Glossary-1 W well-formed jobs 3-3 white space (WS - HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 341
- HP 1220 | HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 342
© 2003 Hewlett-Packard Development Company http://www.hp.com *5021-0380* *5021-0380* 5021-0380