HP 5100tn Printer Job Language - Technical Reference Manual
HP 5100tn - LaserJet B/W Laser Printer Manual
View all HP 5100tn manuals
Add to My Manuals
Save this manual to your list of manuals |
HP 5100tn manual content summary:
- HP 5100tn | Printer Job Language - Technical Reference Manual - Page 1
Printer Job Language Technical Reference Manual Edition 10 E1097 HP Part No. 5021-0380 Printed in U.S.A. 10/97 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 2
FOR A PARTICULAR PURPOSE. HewlettPackard shall not be liable for errors contained herein or for incidental consequential damages in connection with Centronics Data Computer Corporation. Bi-Tronics and HP Explorer Software are trademarks and PCL and Resolution Enhancement are registered trademarks of - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 3
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 10. In addition, users of this manual should be acquainted with the HP LaserJet printer language (PCL) and with LaserJet - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 4
the benefits of using PJL in application programs. It also covers compatibility with non-PJL printers, which includes 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 PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 5
Commands This chapter explains setting the printer to a known state. The DEFAULT, INITIALIZE, RESET, and SET commands are explained here download, upload, delete, and append files. Chapter 10. Programming Tips This chapter demonstrates how to create well-formed jobs and discusses common problems - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 6
supported by the different PJL printers. It also shows which environment variables are supported, and includes printer-specific information about several PJL printers Status Codes This appendix describes the status code information available when using status readback. Index This manual includes an - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 7
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 5100tn | Printer Job Language - Technical Reference Manual - Page 8
Manual Conventions This manual uses the following conventions: Items in italics indicate names optional parameters. The brackets themselves are not typed. Items in brackets < > indicate a control code character (for example, for carriage return) or a special defined identifier. A vertical bar - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 9
Contents Inside This Manual iii Manual Organization iv Related Documents vii Manual Conventions viii 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 Syntax Conventions 2-2 Format of PJL Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 10
Variables 6-11 Port-Specific Variables (LaserJet 4PJ Only 6-22 PCL-Specific Variables 6-23 PostScript-Specific Variables 6-27 ESC/P-Specific Variables 6-28 Setting the Printer to a Desired State 6-30 DEFAULT Command 6-32 INITIALIZE Command 6-36 RESET Command 6-39 SET Command 6-42 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 11
A-2 PJL Environment Variable Support A-5 HP LaserJet IIISi Comments A-28 Comments about HP LaserJet Printers A-29 LaserJet Printers With Reduced- Function Control Panels A-35 Color LaserJet Printer Comments A-36 HP DeskJet 1200C and 1600C Printer Family Comments A-36 HP LaserJet 5Si/ 5SiMx/5Si - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 12
Codes Status Code Groupings D-1 Informational Messages (10xxx D-2 Background Paper Loading (11xyy D-4 Background Paper Tray Status (12xyy D-6 Output Bin Status (15xxy D-6 PJL Parser Errors 43xyy) . D-22 LaserJet 4000 Series Paper Jam Messages (44xyy) . D-23 Hardware Errors (50xxx D-24 Glossary - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 13
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 control that cannot be accomplished with PCL, PostScript, or other printer languages. To provide this control, PJL functions "above" the level - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 14
message displayed on the control panel, or change feature settings in printers without a control panel, such as the HP LaserJet 6L printer. For those printers supporting more than one printer language, applications can print one job using PCL, and then print the next job using PostScript or another - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 15
. Learning to use PJL can be accomplished by reading the first three chapters of this manual and following the examples provided in the text. Better spooler control. PJL allows spoolers improved printer management, especially in a network environment. Who Should Use PJL? PJL is designed to be used - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 16
recognized by the following HP printers: LaserJet IIISi, 4Si, 4SiMx, 5Si, 5SiMx, 5Si Mopier LaserJet 4000 series LaserJet 4V, 4MV LaserJet 4, 4 Plus, 4M, 4M Plus, 5, 5M LaserJet 4L, 4ML, 4LJ Pro, 4LC, 5L, 6L LaserJet 4P, 4MP, 4PJ, 5P, 6P, 6MP Color LaserJet, Color LaserJet 5, 5M DeskJet 1200C, 1600C - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 17
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 5100tn | Printer Job Language - Technical Reference Manual - Page 18
1-6 Introduction to PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 19
chapter also describes the several different formats that PJL commands may take, giving examples of each. The chapter provides an explanation of how PJL-compatible printers handle illegal commands. PJL Command Syntax and Format 2-1 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 20
special identifiers they represent. For example, replace with the form feed character [ASCII 12].) This character indicates that the current line of code is a continuation of the previous line. For example, "This text belongs on the ~ same line." A vertical bar indicates there is more than one - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 21
following illustration is an example of a PJL command line containing the ENTER command: The table below lists the control codes and special identifiers used in this manual: ^D Horizontal tab character (ASCII 9). Line feed character (ASCII 10). Carriage - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 22
is one of the assigned PJL command names, such as ENTER, RDYMSG, or RESET. [command modifier : value] - The command modifier enables the user to variables. A PJL command with a command modifier of LPARM : PCL only affects PCL-specific settings. A PJL command can contain only one command modifier - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 23
varies with each specific command and each printer model. A PJL command may have no illustrates format number 4. The command sets the default PCL point size to 14.25. PJL Syntax Rules not case-sensitive. For clarity, however, this manual shows other portions of PJL commands in uppercase to - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 24
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 5100tn | Printer Job Language - Technical Reference Manual - Page 25
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 5100tn | Printer Job Language - Technical Reference Manual - Page 26
> is not within the valid range of characters for a string.) Note 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 27
-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 5100tn | Printer Job Language - Technical Reference Manual - Page 28
Invalid command: @PJL JOB START = 1 FINISH = HOME Note Any errors that occur during PJL parsing can be received by enabling device status as described in @PJL USTATUS DEVICE = VERBOSE command). Appendix D lists the status codes that are received by the host when an invalid command is received - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 29
(UEL) command allows the printer to alternate between interpreting PJL commands and printer language commands. (Although PCL and PostScript are shown in Figure 3-1, other printer languages can be involved.) PJL Code PCL Job PJL Code PostScript Job PJL Code Figure 3-1. PJL Commands Encapsulate - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 30
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 5100tn | Printer Job Language - Technical Reference Manual - Page 31
~%-12345X@PJL @PJL EOJ %-12345X Example: Switching Printer Languages This example contains two print jobs, 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 @PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 32
and the other chapters that pertain to your application. Also, be sure you 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 33
Command Groupings by Functionality This manual categorizes the PJL commands into related groups. Each ENTER Selects a printer language for processing the current job. JOB Informs printer of the start of a print job, resets the page count, allows naming of the job, supports non-printing mode for - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 34
affect online state. Displays specified message on printer control panel and takes printer offline. Displays specified message on printer control panel and takes printer offline. If status readback is enabled, returns name of the key (ON LINE, CONTINUE, or RESET) that operator presses to return the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 35
. FSDIRLIST Lists PJL file system files and directories. FSDOWNLOAD Downloads files to the printer mass storage system. FSINIT Initializes the printer mass storage file system. FSMKDIR Creates a directory on the printer mass storage file system. FSQUERY Queries existence of directories and - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 36
3-8 Using PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 37
allow applications to set job boundaries, add comments, and programmatically select printer languages. Besides programmatic printer language switching, you can configure some LaserJet printers to switch printer languages automatically between print jobs. Following the descriptions of the UEL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 38
by all printer languages in PJL printers. The UEL command instructs the active printer language to and end with the UEL command. Printers that support I/O switching use the UEL command as printer receives any characters, spaces, or control codes before @PJL, it enables the default printer language - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 39
, 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 enters PCL and prints a PCL job. Notice how the job begins and ends with the UEL command, and how the first UEL command is followed - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 40
the ENTER command 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, LaserJet 4, 4M, 4 Plus, 4M Plus, 4Si, 4SiMx, 4000 series, 5Si, 5Si MX, 5Si Mopier - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 41
printer language is specified, that language currently must be installed in the printer. If the printer receives a request for an invalid printer language, the printer Prepare for PCL Job @PJL ENTER LANGUAGE = PCL E . . . . PCL Job . . . . E ~ - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 42
of PJL commands. Comments may be placed anywhere in the PJL code between the initial UEL command and the ENTER command. (Comments placed considered personality-specific data and are printed as determined by the active printer language.) Like other PJL commands, the COMMENT command is terminated by - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 43
**** @PJL COMMENT **** ENHANCEMENT **** @PJL SET RET = OFF @PJL @PJL COMMENT ***** ENTERING PCL ***** @PJL ENTER LANGUAGE = PCL E . . . . PCL Job . . . . E ~%-12345X@PJL @PJL EOJ %-12345X Kernel Commands 4-7 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 44
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, LaserJet 4, 4M, 4 Plus - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 45
Although printers supporting context switching can select printer languages accurately, we recommend that every job containing printable data include an ENTER LANGUAGE command to explicitly select the correct printer language. This method improves performance and eliminates unintentional printer - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 46
4-10 Kernel Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 47
. The commands can be used to name a job, and they support a non-printing mode for printing selected pages within a job. When used in combination with status readback, the printer also can send status information regarding when the printer starts processing the job and when the job is complete. This - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 48
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 LaserJet 4000 series printers, the JOB command can be used to display a control panel message while printing the job - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 49
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 5100tn | Printer Job Language - Technical Reference Manual - Page 50
printer. The printer will return DISPLAY LINES = value and DISPLAY CHARACTER SIZE = value as part of the response. Note For HP LaserJet 4PJ, 4V, 4MV, 5Si, 5SiMx, 5Si Mopier printers a PJL JOB/EOJ command pair are treated as printer language resets; they default the print environment to the PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 51
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 JOB NAME = "Jim's Job" START = 3 @PJL ENTER LANGUAGE = PCL E . . . . PCL Job . . . . E ~%-12345X@PJL @PJL EOJ NAME - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 52
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 5100tn | Printer Job Language - Technical Reference Manual - Page 53
> @PJL JOB NAME = "Spooler 1 Job" @PJL SET RESOLUTION = 600 %-12345X@PJL @PJL ENTER LANGUAGE = PCL E . . PCL print job . .E ~%-12345X ~%-12345X@PJL @PJL EOJ NAME = "End Spooler 1 Job" %-12345X ~%-12345X@PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 54
end of 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 55
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 page status only affects future pages. Pages already - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 56
Job Security HP LaserJet 4/4M Plus, 4V, 4MV, 4Si, 4SiMx, 4000 series, 5, 5M, 5Si, 5SiMx, 5Si Mopier, 5P, 6P, and 6MP printers support the following types of PJL security: Password protection of default feature settings-this type of security prevents applications from modifying the printer's default - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 57
" PJL jobs (jobs with the correct non-zero PASSWORD value in the JOB command). For the printers that support the MINIMUM, MODERATE, and MAXIMUM values for CPLOCK, MINIMUM locks out the RESET, CONFIGURATION, and I/O menus. MODERATE locks out the menus locked by MINIMUM, plus the PRINT QUALITY and - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 58
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. %-12345X@PJL @PJL COMMENT ** - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 59
To write to volume 0 of the file system, you would send a job like the following. This job specifies the correct password with the JOB command, and then uses the DEFAULT command to unlock, and then later to lock the disk. %-12345X@PJL @PJL COMMENT **Unlock Volume 0** @PJL JOB - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 60
HP LaserJet 4000 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 described in this chapter, the following PJL information can be obtained from the printer - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 61
, 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 5100tn | Printer Job Language - Technical Reference Manual - Page 62
the RESULT value would be different. Job Cancellation Unsolicited Status As soon as the printer 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 63
known as print environments, and the PJL commands you use to set printer features to a desired state, such as: DEFAULT sets the default value for environment variables, storing these values in non-volatile RAM. INITIALIZE resets the current and default PJL variables to the factory default values - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 64
is entered, feature settings are recorded in the Modified Print Environment. Note HP LaserJet 4L, 5L, and 6L printers do not have NVRAM. The PJL Default and Current Environment settings are stored in RAM and are reset to the factory default values during a power cycle. 6-2 Environment Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 65
Environment settings are loaded into the Modified Print Environment whenever a personality is activated or a reset is received, including any printer language reset or PJL reset condition. Figure 6-1 illustrates how the environments interact, and how they affect the modified print environment - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 66
Figure 6-1. How Environments Affect the Print Job 6-4 Environment Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 67
PJL Current Environment until the next PJL reset condition occurs. (For printers with control panels, if the printer is currently not processing a job while panel (in this example, 3). 4. If the printer language (such as PCL or PostScript) changes the number of copies setting to another value, - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 68
feature setting then defaults to 3 after a PJL reset condition. All other features operate similarly-if any INITIALIZE or RESET MENU @PJL DEFAULT COPIES=3 @PJL SET COPIES = 4 @PJL ENTER LANGUAGE=PCL < printers without a control panel, disregard any mention of control panels. In these printers, - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 69
PCL 5 Comparison Guide. User Default Environment The User Default Environment is set to the factory default values when the printer initially is powered on-before printer after a printer language is entered. Printer language resets (such as the E command in PCL), any printer language switch, - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 70
conditions" are listed below. Note that PJL reset conditions differ from 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 Default values into the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 71
DEFAULT command. The Modified Print Environment settings are changed using printer language commands. These settings take effect for the duration of the printer language job. After a printer language-specific reset, such as E for PCL, the PJL Current Environment feature settings are loaded into - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 72
in Chapter 7.) Note Whenever possible, use printer language commands to set printer features. Use PJL commands only when there are no printer language commands available for a desired feature. When setting printer features with PJL, use the SET and RESET commands if you want to affect the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 73
may differ for the various printer models. Appendix A lists the environment variables and indicates which printers support each variable. Another method variables in the control panel sections of the user's manual for each printer. Note Some environment variables can be modified using the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 74
PCL 6 only, this variable controls the 2, 1 number of bits per pixel used when printing grayscale or color non-fatal error messages printer looks for context clues to determine which personality takes effect. When the personality is changed, memory is reconfigured and all downloaded fonts, PCL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 75
disk is read-only and it will not be possible to format the disk, download fonts, delete disk fonts, etc. If OFF, reading and writing are enabled. , OFF Default for the ECONOMODE toner-saving ON, OFF feature used in many of the LaserJet printers. Sets the LaserJet 5Si Mopier to staple the printed - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 76
, the printer returns "?" instead of LOCKED / UNLOCKED, indicating that the variable is unknown. LOCKED, UNLOCKED Returns the size of the paper currently installed in the MP tray (LaserJet 4/4M, 4/4M Plus, 4V/4MV), upper tray (LaserJet 4Si/4SiMx), or tray 1 (5/5M/5Si/5SiMx/5Si Mopier/4000 series - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 77
currently installed in the optional cassette (LaserJet 4/4M, 4/4M Plus, 4V/4MV, 5/5M), envelope feeder (LaserJet 4Si/4SiMx), or tray 3 (5Si the first optional input tray. INTRAY5SIZE is a valid variable only if the optional tray currently is installed. If it is not installed, the printer returns "?" - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 78
feedback display panel messages. Returns configuration for low-toner messages. If ON or CONTINUE, printer 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. Manual feed mode. Sets the margins for the plot - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 79
default output bin. (For HP LaserJet 4Si, 4SiMx, 4000 series, 5Si, 5SiMx, 5Si Mopier printers, the UPPER output bin is downloaded fonts, PCL macros, and PostScript dictionaries are lost (however, no I/O data is lost). Refer to "Commands that Affect Printer Memory" in Appendix A. Specifies how color - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 80
postcard sizes; CUSTOM is for feeding different sizes, but it varies with the printer: the LaserJet 4P/4MP printers interpret CUSTOM as odd sizes, such as 3 x 5 cards and labels; the LaserJet 4V/4MV printers interpret CUSTOM as 11.7" x 17.7" paper. LETTER, LEGAL, A5, A4, EXECUTIVE, LEDGER, A3 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 81
is changed, memory is reconfigured and all downloaded fonts, PCL macros, and PostScript dictionaries are lost (however, no I/O data is lost). Refer to "Commands that Affect Printer Memory" in Appendix A. AUTO, PCL, INSTALLED, POSTSCRIPT, ESCP For the LaserJet 4PJ, this variable is assigned on - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 82
a job. 1 to 999 Sets the render mode for the personality. COLOR, GRAYSCALE Determines whether pages are reprinted after a paper jam. When AUTO and all downloaded fonts, PCL macros, and PostScript dictionaries are lost (however, no I/O data is lost). Refer to "Commands that Affect Printer Memory" - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 83
since the default setting works well for almost every type of job. LIGHT, MEDIUM, DARK, ON, OFF, AUTO Duration of I/O timeouts in seconds. If the printer waits longer than the timeout value without receiving any data, it ends the print job and begins accepting data from other I/O ports, if any. In - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 84
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 4PJ, all downloaded fonts and PCL macros are lost (however, no I/O data is lost). Refer to "Commands that Affect Printer Memory" in Appendix A. PCL, - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 85
. 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 request these values from the printer. Note These variables are listed in alphabetical order - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 86
PCL-Specific Variables Variables Description Sample Value Range FONTNUMBER (continued) If numbered font). When the printer searches for the highest priority default-marked font, cartridges have the highest priority, then SIMMs, then internal default-marked fonts (downloaded soft fonts have the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 87
C2, S (the number of cartridge and SIMM slots varies by printer) The valid values for this variable depend on the currently installed font base. If a font source is specified which does not contain any fonts, then the value is ignored, causing a PJL 27001 error (if verbose unsolicited device status - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 88
Shift-JIS compatible parsing [WIN3.1J is only available in the HP LaserJet 4PJ, the HP LaserJet 4LJ Pro, and the HP LaserJet 4V/4MV when ESC/P is installed].) On the HP LaserJet 4LC printer, if the SYMSET is GB2312 then the default PCL text parsing method is set to GB-compatible parsing. [GB2312 is - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 89
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 boosts printer performance, - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 90
Note If ESC/P is installed in HP LaserJet 4V and 4MV printers and a menu reset or cold reset is performed, the printer defaults to FONTNUMBER = 0, FONTSOURCE = to AUTO or PCL. (Alternatively, in Japan, users can configure the printer for PCL using the PCLDEF.PJL file.) 6-28 Environment Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 91
Variable Description Sample Value Range CARRIAGERETURN Controls how ESC/P interprets the carriage return (CR), CRLF (CR) control character. The valid values for CARRIAGE- RETURN are: CR-CR maps to carriage return; CRLF-CR maps to carriage return and linefeed. CHARACTERSET Default character - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 92
printer. For features that must be set on a job-by-job basis, use printer language commands. If a feature cannot be set with a printer ensure that the printer is set to printer language. For example, a printer language; then use PCL or another printer language desired printer language and use printer - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 93
HP LaserJet 4 and 4M printers are listed below (see Appendix A for a list of environment variables supported by each PJL printer = 300 @PJL ENTER LANGUAGE = PCL E . . Use PCL to set copies, paper, orientation, line spacing, manual feed, and font selection- values not set using - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 94
when a PJL reset condition occurs. Use this command to change the default value for any environment setting. For printers that support the PASSWORD , or IOSIZEstatus, the printer memory is reconfigured. Reconfiguring printer memory erases all downloaded fonts, PCL macros, and PostScript dictionaries - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 95
- This optional parameter is used to set personality-specific environment variables. PCL is a valid personality. Other personalities, such as PostScript, can be is used to set port-specific variables. The HP LaserJet 4PJ is the only printer which supports port-specific variables. IPARM : port - This - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 96
PCL ESCP POSTSCRIPT (Other personalities may also be supported) PARALLEL SERIAL Supported on LaserJet 4PJ only Valid variables for each printer until a PJL reset condition occurs (see "PJL Reset Conditions" for a list of printer events that constitute a PJL reset). Consequently, if you - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 97
Example: Modifying User Default Settings This example sets page protection to LETTER for all personalities, and selects the PC8 symbol set for all PCL jobs. A RESET command follows the DEFAULT commands so that the PJL Current Environment defaults to the new settings. %-12345X@PJL @PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 98
has no parameters. Comments: The INITIALIZE command resets the following environment variables to their Factory Default values. Note Because personalities can be dynamically added to some HP LaserJet printers, these printers support more personality-specific variables than those listed here - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 99
TIMEOUT PCL-Specific Variables FONTNUMBER PTSIZE FONTSOURCE SYMSET PITCH PostScript-Specific Variables JAMRECOVERY PRTPSERRS ESC/P-Specific Variables ANKCONDENSE FONT CARRIAGERETURN TOPMARGIN CHARACTERSET Note The environment variables may vary with different HP LaserJet printer - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 100
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 6-38 Environment Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 101
the DEFAULT command example on page 6-35). 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 102
PAPER DUPLEX PASSWORD ECONOMODE PERSONALITY FINISH QTY FORMLINES REPRINT IMAGEADAPT RESOLUTION JOBOFFSET RET MANUALFEED TIMEOUT PCL-Specific Variables FONTNUMBER PTSIZE FONTSOURCE SYMSET PITCH PostScript-Specific Variables JAMRECOVERY PRTPSERRS ESC/P-Specific Variables - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 103
> @PJL COMMENT control panel settings @PJL SET RESOLUTION = 600 @PJL SET RET = MEDIUM @PJL ENTER LANGUAGE = PCL E . . . PCL job . . . E ~%-12345X@PJL @PJL COMMENT Reset to return to @PJL COMMENT control panel settings @PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 104
reset condition defaults the value. Use this command to create a job-specific environment. Note When the SET command changes the PAGEPROTECT or RESOLUTION status, printer memory is reconfigured (except for printer memory in the HP LaserJet 4L printer). This erases all downloaded fonts, PCL macros - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 105
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 PCL ESCP POSTSCRIPT Other personalities may be supported PARALLEL SERIAL Supported on LaserJet 4PJ only Valid variables for each printer - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 106
the LPARM : personality option. Features that are not printer language-specific cannot be specified with the LPARM option. RESET command after the job to reset features to the User Default (control panel) values. See the following example for a demonstration of how to use the RESET command to "clean - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 107
be set using the desired personality. After the job has been sent, the RESET command is issued to return all features to their default values. %-12345X@ %!PS-ADOBE ... PostScript print job - use ~POSTSCRIPT code to set all values that are ~not set using PJL... ^D %-12345X@PJL @PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 108
6-46 Environment Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 109
also can be programmed to send unsolicited status information to the application when printer events occur. For example, the printer can send status information indicating the printer door is open, toner is low, online/offline status, the text displayed on the control panel, and other pertinent - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 110
may receive an unsolicited status response after requesting printer status information. The application and printer must be in a printer environment that supports two-way communication between the application and the printer. Printer sharing devices, networks, and other printing system components - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 111
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 application should ignore those lines which it does not understand. The format of the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 112
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 - This parameter - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 113
names for each parameter. 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 114
supported, the command will return an appropriate error code if USTATUS DEVICE=VERBOSE is enabled. Note The LPARM : personality option must be used when requesting printer %-12345X For the HP LaserJet 4 printer, a sample printer response for this example is as follows. Other PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 115
@PJL @PJL COMMENT Requesting PCL Settings @PJL ECHO 12:22:23.9 11-05-92 @PJL INQUIRE LPARM : PCL PITCH @PJL INQUIRE LPARM : PCL PTSIZE @PJL INQUIRE LPARM : PCL SYMSET %-12345X For the HP LaserJet 4 printer, the response for this example is - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 116
@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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 117
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 default toner density setting. See Appendix A for a list of valid variables for each printer. - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 118
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 5100tn | Printer Job Language - Technical Reference Manual - Page 119
specific variable is not available because that port is not supported, the command will return an appropriate error code if USTATUS DEVICE=VERBOSE is enabled. Note The LPARM : personality option must be used when requesting printer language-specific information. The IPARM : port option must be used - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 120
-17-93 @PJL DINQUIRE RESOLUTION @PJL DINQUIRE PERSONALITY %-12345X For the HP LaserJet 4 printer, a sample response for this example is as follows. Responses from other PJL printers may vary. @PJL ECHO 08:10:33.7 04-17-93 @PJL DINQUIRE RESOLUTION - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 121
> @PJL ECHO 11:03:05.9 07-04-92 @PJL DINQUIRE LPARM : PCL PITCH @PJL DINQUIRE LPARM : PCL 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.9 07-04-92 @PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 122
. 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 printer until they are received, the current application may receive status messages that were requested by - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 123
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 5100tn | Printer Job Language - Technical Reference Manual - Page 124
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 5100tn | Printer Job Language - Technical Reference Manual - Page 125
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 5100tn | Printer Job Language - Technical Reference Manual - Page 126
information such as which printer languages are installed, how many input and output trays are installed, and how many font cartridge slots are in the printer. Variables appear in the response only if they are installed in the printer. For example, if a HP LaserJet 4 printer does not have the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 127
], beginning with a letter) Name of a printer feature, such as DUPLEX or FONT CARTRIDGE SLOTS. value numeric value Indicates a feature value HP LaserJet 4 printer in this case, responds with a list of features. For example, the returned information shows there is an envelope tray and three input - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 128
@PJL @PJL COMMENT Using @PJL INFO CONFIG @PJL ECHO 09:51:48.3 12-24-92 @PJL INFO CONFIG %-12345X A sample HP LaserJet 4 printer response for this example is shown on the following page. Other printers may respond differently. 7-20 Status Readback Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 129
@PJL ECHO 09:51:48.3 12-24-92 @PJL INFO CONFIG LANGUAGES [2 ENUMERATED] PCL POSTSCRIPT USTATUS [4 ENUMERATED] DEVICE JOB PAGE TIMED FONT CARTRIDGE SLOTS [1 ENUMERATED] CARTRIDGE MEMORY=2097152 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 130
%-12345X A sample HP LaserJet 5 printer response for this example is shown below. Other printers may respond differently. @PJL INFO FILESYS [2 FREE SPACE LOCATION LABEL STATUS A printer with no file system firmware will treat this command as a PJL INFO command with an - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 131
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 5100tn | Printer Job Language - Technical Reference Manual - Page 132
@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 5100tn | Printer Job Language - Technical Reference Manual - Page 133
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. Note For those printers supporting printer, in this case a HP LaserJet 4 printer, returns a status code - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 134
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 5100tn | Printer Job Language - Technical Reference Manual - Page 135
@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 5100tn | Printer Job Language - Technical Reference Manual - Page 136
] OFF LETTER LEGAL A4 RESOLUTION=600 [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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 137
A4 EXECUTIVE INTRAY3SIZE=LETTER [4 ENUMERATED READONLY] LETTER LEGAL A4 EXECUTIVE INTRAY4SIZE=COM10 [5 ENUMERATED READONLY] COM10 MONARCH C5 DL B5 LPARM:PCL FONTSOURCE=I [1 ENUMERATED] I LPARM:PCL FONTNUMBER=0 [2 RANGE] 0 50 LPARM:PCL PITCH=10.00 [2 RANGE] 0.44 99.99 Status Readback Commands 7-29 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 138
PCL SYMSET=ROMAN8 [31 ENUMERATED] ROMAN8 ISOL1 ISOL2 WIN30 LPARM:POSTSCRIPT PRTPSERRS=OFF [2 ENUMERATED] OFF ON USTATUS Category The INFO USTATUS command lists each type of unsolicited status supported by the printer . In this example, the HP LaserJet 4 printer replies that there are 4 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 139
@PJL ECHO 08:10:09.1 08-22-92 @PJL INFO USTATUS DEVICE=OFF [3 ENUMERATED] OFF ON VERBOSE JOB=OFF [2 ENUMERATED] OFF ON PAGE=OFF [2 ENUMERATED] OFF ON TIMED=0 [2 RANGE] 5 300 < - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 140
USTATUS command when you want to know: Device status changes (such as printer open, paper jams, and paper out conditions) Job status changes (when immediate response. Instead, unsolicited status messages are sent only when the printer status changes. Syntax: @PJL USTATUS variable = value [] - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 141
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 5100tn | Printer Job Language - Technical Reference Manual - Page 142
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 5100tn | Printer Job Language - Technical Reference Manual - Page 143
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 5100tn | Printer Job Language - Technical Reference Manual - Page 144
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 7-36 Status - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 145
an EOJ command has been received, and when a job has been canceled (HP LaserJet 4000 series, 5, 5M, 5Si/5SiMx/ 5Si Mopier only). This is useful for printer receives a JOB command, it resets the page count associated with the unsolicited page status and returns a job status message. Note Resetting - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 146
Note HP LaserJet 4000 series, 5Si, and 5SiMx printers, and the 5SiMx Mopier support job cancellation. For PCL E . . . PCL Job . . . E ~%-12345X ~%-12345X@PJL @PJL EOJ NAME = "JOB 14993" %-12345X A sample unsolicited HP LaserJet 4 printer - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 147
of the pages received before the EOJ command have been printed. To maximize performance, HP printers start processing the next job before the last page of the current job has been printed. Therefore, the printer may return unsolicited JOB and EOJ status messages in an order different than sent by - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 148
@PJL @PJL USTATUS PAGE = ON @PJL JOB @PJL ENTER LANGUAGE = PCL E . . . Four-page PCL Job . . . E ~%-12345X@PJL @PJL EOJ %-12345X A sample HP LaserJet 4 printer response for unsolicited page status is shown here. Other PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 149
in your application. The "CODE=" portion indicates a status code number. See Appendix D for a complete list of status code numbers. The "DISPLAY=" panel appears in whichever language is being used. For those printers supporting Japanese printing, when the language is set to Japanese, strings - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 150
seconds. %-12345X@PJL @PJL USTATUS TIMED = 30 %-12345X 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 151
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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 152
are used to reset the page count and inform the printer of the boundaries If a power failure or another problem interrupts the job, the unsolicited page JOB NAME = "1st Shot" @PJL ENTER LANGUAGE = PCL E ... 100-page PCL job ... E ~%-12345X@PJL @PJL EOJ - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 153
> E ...Same 100-page PCL job ...E ~%-12345X@PJL @PJL EOJ NAME = "End of Recovery" %-12345X In the job above, the first unsolicited page status message is sent after page 26 lands in the output tray. For a HP LaserJet 4 printer, the response appears as shown - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 154
@PJL USTATUS PAGE 100 @PJL USTATUS JOB END NAME="End of Recovery" PAGES=75 The unsolicited page status indicates that the 100th page printed (25 processed in non-printing mode and 75 printed pages). The job status indicates that the EOJ - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 155
. STMSG displays the specified "status message" on the printer control panel and takes the printer offline. It returns the name of the key that the operator pressed to put the printer back online. Note Some PJL printers do not support the device attendance commands. See Appendix A for a list - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 156
the name of the printer. The command @PJL RDYMSG DISPLAY = "" (or performing a Menu Reset-"09 Menu Reset") returns the display to toner low), the new ready message does not appear until these outstanding conditions are cleared. For HP LaserJet 4PJ, 4V, 4MV, 5Si, 5SiMx, and 5Si Mopier printers - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 157
Cyrillic (ISO 8859/51). For LANG=TURKISH, the display is in Latin 5 (ISO 8859/9). Some HP LaserJet printers may have a different 'S JOB" %-12345X@PJL @PJL ENTER LANGUAGE = PCL E . . . PCL Job . . .E ~%-12345X ~%-12345X@PJL @PJL COMMENT - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 158
printer to display the specified message and go offline. Use this command to display a message and halt printing until the operator presses the On Line, Continue, or Reset to 1 line of 16 characters. Note For HP LaserJet 4PJ, 4V, 4MV, 5Si, 5SiMx, 5Si Mopier printers, if the LANG variable is set to - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 159
LaserJet 4000 printer, if LANG is set to POLISH, CZECH, or HUNGARIAN, messages are displayed using the Latin 2 (ISO 8859/2) character set. If LANG is RUSSIAN, messages are displayed using Cyrillic (ISO 8859/51 LF> @PJL @PJL ENTER LANGUAGE = PCL E This is "Letterhead"(page 1)< - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 160
return the printer online. Use this command to display a customized message, to halt printing until the operator presses the On Line, Continue, or Reset key, characters 33 N/A and 35 - 255, , key ONLINE, RESET, N/A CONTINUE, or JOBCANCEL DISPLAY = "message" - The variable message - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 161
LaserJet 4000 printer, if LANG is set to POLISH, CZECH, or HUNGARIAN, messages are displayed using the Latin 2 (ISO 8859/2) character set. If LANG is RUSSIAN, messages are displayed using Cyrillic (ISO 8859/51 press Reset, and then wait until the Reset key is pressed. Some HP LaserJet printers may - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 162
Related Commands: The returned message, if the operator presses the Continue key, is: @PJL STMSG DISPLAY="LOAD FORM 1040" CONTINUE OPMSG, RDYMSG, INFO CONFIG 8-8 Device Attendance Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 163
capabilities for storing fonts, macros, electronic forms, and other information. The HP LaserJet 4000 series, 5Si, 5SiMx, and 5Si Mopier printers have an optional disk drive. The HP LaserJet 5, 5M, and 4000 series printers support flash memory, which is non-volatile memory contained in modules that - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 164
FSAPPEND Command The FSAPPEND command appends data to an existing file, or if the file doesn't exist, creates the file and loads it with the given data. Syntax: @PJL FSAPPEND FORMAT:BINARY SIZE=integer ~NAME = "pathname" [] %-12345X Parameters: Parameter SIZE=integer - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 165
file. Example: Using the FSAPPEND Command This example demonstrates using the FSAPPEND command to append a file. @PJL FSAPPEND FORMAT:BINARY ~NAME = "0:\pcl\macros\OurLogo" ~SIZE = 35 35 bytes of macro data%-12345X Related Commands: FSDELETE, FSDIRLIST, FSDOWNLOAD, FSINIT, FSMKDIR - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 166
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 5100tn | Printer Job Language - Technical Reference Manual - Page 167
(32xxx) in Appendix D for a complete list of error codes. Example: Using the FSDIRLIST Command This example demonstrates using the FSDIRLIST command to return a directory list from the printer's file system. @PJL FSDIRLIST NAME = "0:\pcl\macros" ENTRY=1 ~COUNT=25 A sample response would - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 168
: 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 5100tn | Printer Job Language - Technical Reference Manual - Page 169
. 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 5100tn | Printer Job Language - Technical Reference Manual - Page 170
@PJL FSINIT VOLUME = "pathname" [] Parameters: Parameter VOLUME = "pathname" Functional Range 0: or 1:* Default N/A * Volume 1: is only supported on the LaserJet 4000 printer. VOLUME = "pathname" - The variable pathname must be a volume. Example: Using the FSINIT Command This example - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 171
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, FSDOWNLOAD, FSINIT, FSQUERY, FSUPLOAD, INFO - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 172
returned. The returned number is equivalent to the PJL File System errors (32xxx) listed in Appendix D, only without the 32 and the leading zeros. For example, if the printer returns FILEERROR=7, the error is equivalent to status code 32007 (Illegal name), meaning the FSQUERY 9-10 PJL File System - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 173
Appendix D for a complete list of error codes. Example: Using the FSQUERY Command The following two command lines demonstrate using the FSQUERY command to check for the existence of a file and a directory on the printer's file system. @PJL FSQUERY NAME = "0:\pcl\file1" @PJL FSQUERY NAME - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 174
FSUPLOAD Command Syntax: The FSUPLOAD command uploads a file, or a part of a file, from the printer file system to the host. @PJL FSUPLOAD NAME = "pathname" ~OFFSET= SIZE=[] Response Syntax: If the pathname is valid: @PJL FSUPLOAD FORMAT: - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 175
(32xxx) in Appendix D for a complete list of error codes. Example: Using the FSUPLOAD Command This example demonstrates using the FSUPLOAD command to upload 512 bytes from a printer file, beginning with byte 25. @PJL FSUPLOAD NAME = "0:\pcl\filenumber5" ~OFFSET=25 SIZE = 512 Related - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 176
be sent to HP LaserJet 5, 5M, 5Si, 5Si MX, and 5Si Mopier printers to download and call a codes at the end of the preceding line. First Command %-12345X This PJL command causes the printer to exit the active printer language and give control to PJL. Second Command ~@PJL FSMKDIR NAME ="0:\pcl - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 177
this macro file (SIZE=29). Fourth, it contains the binary data to be downloaded (*p900x1500YThis is the macro). Fifth Command ~%-12345X@PJL ENTER LANGUAGE=PCL This command explicitly enters the PCL language. Sixth Command &f1Y The Macro ID command sets the current macro - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 178
The Printer Reset command causes the printer to print printer to exit the active printer language and return control to PJL. Eleventh Command ~@PJL DEFAULT DISKLOCK = ON This command sets the disk or flash memory to read-only. In this state, it is not possible to format the disk, download - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 179
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 5100tn | Printer Job Language - Technical Reference Manual - Page 180
9-18 PJL File System Commands - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 181
provides tips for creating efficient PJL jobs that eliminate potential problems. Note Improperly coded print jobs may work fine in a single-computer/single-printer environment running only one application, but cause problems in a multi-application or shared network environment. The first part - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 182
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 5100tn | Printer Job Language - Technical Reference Manual - Page 183
ENTER SET RESET Use before and after 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 it is not possible using the desired printer language (such as PCL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 184
... PostScript code ... ^D ~%-12345X Jobs That Set Printer Features This printer language: %-12345X@PJL @PJL SET RET = LIGHT @PJL SET RESOLUTION = 600 @PJL ENTER LANGUAGE = PCL E ... PCL print data ... E ~%-12345X@PJL @PJL RESET - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 185
and there is a bi-directional communication channel between the printer and the application. Monitor the printer status-Device status and timed status can inform the application of printer events such as printer open, paper out, or low toner. The USTATUS DEVICE and USTATUS TIMED commands are used - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 186
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 5100tn | Printer Job Language - Technical Reference Manual - Page 187
12345X@PJL @PJL COMMENT Requesting features @PJL ECHO 15:18:25.3 07-25-92 [. . application discards any printer status readback information received before the ECHO response . .] @PJL DINQUIRE RET @PJL DINQUIRE RESOLUTION [. . application receives status - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 188
using the SET command, and then sends an existing application print file to the printer. To restore the default values, the RESET command is issued before the job closes. %-12345X@PJL @PJL COMMENT Requesting features @PJL ECHO Job #53 11-17-92 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 189
LANGUAGE = PCL E . . . PCL file . . .E ~%-12345X@PJL @PJL COMMENT Reset PJL to restore @PJL COMMENT control panel defaults @PJL RESET %-12345X Jobs That Monitor Printing Status The following example enables unsolicited printer status - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 190
information when the last page of the job is printed and in the output tray. Cancel jobs (HP LaserJet 5/5M, 5Si/5SiMx/5Si Mopier only)- 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 enabled - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 191
PJL job. Use to add explanations within PJL code. To modify the default value of a printer feature. (NOTE: In shared environments, this feature display a customized message and take the printer off-line until the operator presses the On Line, Continue, or Reset key. To replace the control panel " - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 192
ECHO response should be discarded to ensure proper synchronization. STMSG To display a customized message and take the printer off-line until the operator presses the On Line, Continue, Job Cancel, or Reset key. Returns the name of the key that the operator pressed. USTATUSOFF To turn off all - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 193
E... PCL print data ...E ~%-12345X ~%-12345X@PJL @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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 194
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 5100tn | Printer Job Language - Technical Reference Manual - Page 195
E ... PCL print data ... E ~%-12345X ~%-12345X@PJL @PJL EOJ NAME = "Job #65432" %-12345X Jobs That Control Printer Resources and Print Selected Pages The following job prints 1 copy of pages 5 through 8 of the print job. The START command tells the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 196
E . . . PCL print job . . .E ~%-12345X ~%-12345X@PJL @PJL EOJ %-12345X Spooler Job That Prints a Banner Page Followed by an Application-Generated Job (Application specifies printer language) The following example demonstrates a spooling application - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 197
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 5100tn | Printer Job Language - Technical Reference Manual - Page 198
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 lines which it does not understand. Using Status Readback - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 199
, the I/O card could sent a network packet to an application on the client that supplied the job, notifying the user the job had been printed. Printer status readback allows many printer system components to solve user's needs. Figure 10-1. Sample Printing System Components Programming Tips 10-19 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 200
components can query the printer and expect a response back. Printer Status Readback and Printer Sharing Host computer #1 is directly connected to the printer via the bi-directional serial I/O link. If the software on the host computer supports bi-directional printer communication, applications on - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 201
sharing 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 202
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 5100tn | Printer Job Language - Technical Reference Manual - Page 203
and receives the expected response, then the application can assume bi-directional communication with the printer is available and supported solicited status queries will be answered in a timely fashion. However, under some conditions the application will send, or attempt to send, a PJL ECHO command - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 204
should not assume that because a query was sent and a response was not received in a timely fashion, that the printer system does not support bi-directional communication. Printer sharing devices may buffer the query and the response may be available, however the data buffered before the query may - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 205
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 5100tn | Printer Job Language - Technical Reference Manual - Page 206
status readback responses that were generated because of an action performed by a different application. For example, 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 chance to retrieve the response from the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 207
accepts the currently queued responses in the printer. When the printer discards responses, the printer inserts the PJL unsolicited "printer to host data buffer overflow" message: CE CODE=10010 DISPLAY="00 READY" Note Refer to the "HP LaserJet 4 and 5 Family Comments" section in Appendix A under - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 208
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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 209
that use unsolicited PJL device, job, page, or timed status need to work properly with printer sharing devices that do not support unsolicited printer-to-host responses. 3. A printer sharing device that can route solicited responses as described in 2 above, plus send all unsolicited responses - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 210
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 5100tn | Printer Job Language - Technical Reference Manual - Page 211
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 Bi-Tronics I/O interface will be different than the timing characteristics of a Bi-Tronics I/O interface - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 212
10-32 Programming Tips - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 213
. It includes a list of all the PJL commands, showing which commands are supported by each PJL printer. Also, a 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 214
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 Printers PJL Command Name IIISi 4/4M 4 Plus 4L 4ML 4P 4PJ 5P 5Si 5 4Si 4M Plus - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 215
Table A-1. PJL Feature Support for HP LaserJet, DeskJet, and PaintJet Printers PJL Command Name LaserJet Color LJ 4000 Series Color LJ DeskJet 1200C DeskJet 1600C 5/5M COMMENT Y Y Y Y DEFAULT Y ns ns Y DINQUIRE Y ns ns Y ECHO Y Y ns Y ENTER EOJ Y Y Y Y Y Y ns Y1 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 216
Table A-1. PJL Feature Support for HP DesignJet Printers/Plotters PJL Command Name 200, 230, 250C, 330, 600 220 350C ns ns Y OPMSG ns ns ns ns ns PJL ns ns ns ns ns RDYMSG ns ns ns ns ns RESET SET ns Y ns ns Y ns Y3 ns ns Y3 STMSG ns ns ns ns ns UEL Y Y Y - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 217
tables list all of the current environment variables for PJL, PCL 5 and PostScript, and show which features are supported by which printers (features for the LaserJet and DeskJet 1600C printers are shown in Table A-2; the DesignJet printers are shown in Table A-3 on pages A-26 and A-27 ). The - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 218
PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series 4ML 4P 4MP Environment settings are modified (except for the LaserJet 4L, 5L, and 6L printers). It is recommended these variables not be - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 219
for HP LaserJet and DeskJet Printers printers). It is recommended these variables not be changed on a job-by-job basis. 2 Only modifiable using the DEFAULT command. 3 DeskJet 1600C - these variables are only available using the DEFAULT and DINQUIRE commands. 4 The FINISH variable is only supported - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 220
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series 4ML 4P 4MP IMAGEADAPT INTRAY1 INTRAY2 INTRAY3 INTRAY1SIZE INTRAY2SIZE ns RO ns ns ns ns ns ns ns RO ns ns ns A-8 Feature Support - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 221
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ 4 LC 5L 5P Variable Values 4LJ Pro 6L 5MP IMAGEADAPT INTRAY1 INTRAY2 INTRAY3 DeskJet 1600C - these variables are only available using the DEFAULT and DINQUIRE commands. Feature Support A-9 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 222
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series 4ML 4P 4MP INTRAY3SIZE (LETTER) RO RO RO ns only be used with the DEFAULT, DINQUIRE, and INQUIRE commands. A-10 Feature Support - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 223
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ 4 LC 5L 5P 6P 5Si 5 1600C Variable Values 4LJ Pro 6L 5MP 6MP 5SiMx, 1 The IOBUFFER and IOSIZE variables can only be used with the DEFAULT, DINQUIRE, and INQUIRE commands. Feature Support A-11 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 224
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series 4ML 4P 4MP LANG DANISH ns ns ns ns Y ns Y Y GERMAN ns ns ns ns Y ns Y ns PAPER ns ns ns ns ns ns ns ns A-12 Feature Support - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 225
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ 4 LC 5L 5P 6P 5Si 5 1600C Variable Values 4LJ Pro 6L 5MP 6MP 5SiMx, 5M ns ns Y 1 DeskJet 1600C - these variables are only available using the DEFAULT and DINQUIRE commands. Feature Support A-13 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 226
HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series 4ML 4P 4MP MPTRAY MANUAL and labels [for the LaserJet 4V/4MV printer, 11.7" x 17.7" only Y ns ns ns 1 For LaserJet 4000 series printers, the MPTRAY variable can only be - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 227
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ 4 LC 5L 5P Variable Values 4LJ Pro 6L 5MP MPTRAY MANUAL CASSETTE FIRST ns ns ns Y1 ns ns ns Y1 ns ns ns Y1 ORIENTATION (PORTRAIT) Y YY Y LANDSCAPE Y YY Y OUTBIN (UPPER) ns ns ns ns - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 228
HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series COLOR 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 229
INSTALLED (ON) OFF 15 30 60 120 180 DRAFT NORMAL HIGH (1) to 999 COLOR GRAYSCALE ns ns ns ns ns ns ns (Y) ns ns ns ns ns Y LaserJet 4PJ printer, PERSONALITY is a port-specific variable. For all other LaserJet printers, personality is not I/O port-specific. 4 QTY is only supported on the HP LaserJet - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 230
HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series DEFAULT, DINQUIRE, and INQUIRE commands. RESOURCESAVESIZE is a personality-specific variable. PCL-Specific Variables FONTSOURCE (I) YY YY YY Y Y M1,M2,M3 . . Support - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 231
HP LaserJet and DeskJet Printers Y2 WIDEA4 (NO) ns ns ns ns Y ns Y ns YES ns ns ns ns Y ns Y ns PCL-Specific Variables FONTSOURCE (I) Y Y Y Y Y Y Y ns M1,M2,M3 .. Mn Y3 ns ns Y 3 The LaserJet 4JL Pro printer does not support font SIMMs. 4 The DeskJet 1600C only supports the values - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 232
HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series Y Y Y YYY Y Y Y Y Y YYY Y ns ns ns ns Y ns ns ns Y Y Y Y ns Y Y Y Y Y Y Y ns Y Y Y Y Y Y Y YYY Y (Y) (Y) (Y) (Y) Y (Y) (Y) (Y) A-20 Feature Support - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 233
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ 4 LC 5L 5P 6P 5Si 5 1600C Y ns Y1 Y YY Y Y Y Y Y1 Y Y Y (Y) Y Y Y Y1 1 DeskJet 1600C - these variables are only available using the DEFAULT and DINQUIRE commands. Feature Support A-21 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 234
HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series Variables ns ns ns ns ns ns ns ns PCL ns ns ns ns ns ns ns ns ESC/P- LaserJet 4PJ printer. For all other printers, it is a general variable. For all other printers - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 235
HP LaserJet and DeskJet Printers ns PCL Y ns printers, see the PERSONALITY variable in the tables on pages A-16 and A-17. 2 DeskJet 1600C - these variables are only available using the DEFAULT and DINQUIRE commands. 3 Only present when the optional ESC/P personality is installed. Feature Support - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 236
HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L Variable Values 4M 4MPlus 4MV 4SiMx Series PostScript is installed. PostScript is an option in some printers. ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns Y ns Y Y Y ns Y Y A-24 Feature Support - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 237
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ 4 LC 5L 5P Variable ns ns Y ON ns ns ns Y 1 Provided PostScript is installed. PostScript is an option in some printers. 6P 5Si 6MP 5SiMx, Mopier ns ns ns ns ns ns YY YY YY YY 5 1600C 5M - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 238
) ns ns ns ns ns INKEDAREA ns ns ns ns ns RENDERMODE (COLOR) ns Y ns Y Y GRAYSCALE ns Y ns Y Y RESOLUTION ( ns ns Y Y Y AUTO ns ns ns ns ns 1 The HP DesignJet 200, 220, 600, and 650C do not support any environment variables. 450C 455CA ns ns ns ns ns ns Y - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 239
Y Y RENDERMODE (COLOR) ns Y Y Y Y Y GRAYSCALE ns Y Y Y Y Y RESOLUTION (300) Y Y Y Y Y Y RET 600 ON OFF AUTO Y Y Y Y Y Y ns ns Y (Y2) ns ns ns ns Y Y2 ns ns ns ns (Y) Y2 ns ns 1 The HP DesignJet 200, 220, 600, and 650C do not support any environment - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 240
language for implicit switching, set SYS = to the desired language (PCL or PostScript) from the control panel. The LaserJet IIISi printer does not perform context switching. The HP LaserJet IIISi printer does not support any PJL status readback commands, environment variable commands, or device - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 241
description. Printer Language 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 Printers that - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 242
always selected. Printer Status Readback Printers supporting printer status readback: HP LaserJet 4, 4M, 4 Plus, 4M Plus, 4V, 4MV, 4Si, 4SiMx, 4L, 4ML, 4P, 4MP, 4PJ, 4LJ Pro, 4LC, 4000 series, 5, 5M, 5L, 5P, 5MP, 6L, 6P, 6MP, 5Si, 5SiMx, 5Si Mopier, HP Color LaserJet, HP Color LaserJet 5, 5M When - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 243
commands, or when the printer is reset using the RESET or INITIALIZE commands or printer memory erases all volatile personality-specific resource information, including downloaded fonts, PCL Saving Printers that support resource saving: HP LaserJet 4 Plus, 4M Plus, 4V, 4MV, 4Si, 4SiMx, 4000 series, - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 244
-Specific Job Boundaries Printers that support PJL job boundaries: 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, HP Color LaserJet, HP Color LaserJet 5, 5M The printers listed above handle - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 245
Mode Printers that support the backward-compatibility mode: HP LaserJet 4, 4M, 4 Plus, 4M Plus, 4V, 4MV, 4Si, 4SiMx, 4L, 4ML, 4P, 4MP, 4PJ, 4LJ Pro, 4LC, 4000 series, 5, 5M, 5L, 5P, 5MP, 6L, 6P, 6MP, 5Si, 5SiMx, 5Si Mopier, HP Color LaserJet, HP Color LaserJet 5, 5M If the printer detects PCL data - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 246
mode. In backward-compatibility mode, when a PCL printer language reset (E) is executed, instead of causing the the new PJL job is executed. 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, ( - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 247
differences and how they affect the use of PJL. No device attendance commands are supported-these printers rely on unsolicited status to communicate with 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 248
, use the PJL ENTER LANGUAGE command to specify PCL. EconoMode-a toner-saving feature that produces draft-like pages when top-quality printing is not necessary. Color LaserJet Printer Comments The Color LaserJet printer supports context-sensitive language switching, true end-of-job notification - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 249
explicitly switch to the correct printer language. This method improves performance and eliminates errors in printer language switching. It also front panel reset is performed, the value is defaulted to SLOW. Printer Environment Printers that support printer environment variables: HP DeskJet 1600C - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 250
, either using the SET, DEFAULT, or RESET commands. When the resolution is changed using either the SET or DEFAULT commands. Reconfiguring printer memory may erase all volatile personality-specific resource information, including downloaded fonts, PCL macros, and PostScript dictionaries (however no - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 251
None of the DeskJet 1200C or 1600C printer families support resource 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 252
HP LaserJet 5Si/ 5SiMx/5Si Mopier Comments HP LaserJet 5Si, 5SiMx, and 5Si Mopier printers have several features that differentiate them from most of the other LaserJet printers. The following features should be kept in mind when writing PJL code for these printers. Three standard paper input - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 253
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 5100tn | Printer Job Language - Technical Reference Manual - Page 254
printer. The printer stores the job on the internal disk drive and then prints the desired number of collated copies without additional downloading printer language's number of copies command in the data stream (such as the PCL > @PJL ENTER LANGUAGE = PCL E ... PCL print data ... E - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 255
The LaserJet 4000 series printers have a PJL feature set similar to the LaserJet 5Si/5SiMx printers. Listed below are some of the differences between the printers. In addition to the LaserJet 5Si/5SiMx printer features, the LaserJet 4000 series printers have: 1200 dpi print resolution Support for - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 256
of the echo, the application may assume there is a printer error. Paper Tray Configuration The LaserJet 4000 series paper tray configurations are set up as follows: Tray Number Description 0 Multi-purpose tray 1 Manual feed tray 2 Unknown tray 4 Envelope feeder x Other trays (see - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 257
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 5100tn | Printer Job Language - Technical Reference Manual - Page 258
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 5100tn | Printer Job Language - Technical Reference Manual - Page 259
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 5100tn | Printer Job Language - Technical Reference Manual - Page 260
= number] OPMSG @PJL OPMSG DISPLAY = "message" [] PJL @PJL [] RDYMSG @PJL RDYMSG DISPLAY = "message" [] RESET @PJL RESET [] SET @PJL SET [LPARM : personality | IPARM : port] ~variable = value [] STMSG @PJL STMSG DISPLAY = "message" [] B-4 PJL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 261
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 5100tn | Printer Job Language - Technical Reference Manual - Page 262
B-6 PJL Command Summary - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 263
is listed on the left-facing page in the generic format used throughout the rest 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 second example is a batch file that demonstrates the use of the RDYMSG command to create - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 264
PostScript is entered and PostScript data is sent to the printer to draw a box and print "PostScript Job." %-12345X@PJL @PJL COMMENT **Beginning of PCL Job** @PJL COMMENT **Enter PCL (& HP-GL/2)* @PJL ENTER LANGUAGE = PCL E%0BIN;SP1;PA1010,1010;PW2 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 265
PCL Job** \n"); fprintf(prn,"@PJL COMMENT **Enter PCL (& HP-GL/2)* \n"); fprintf(prn,"@PJL ENTER LANGUAGE = PCL PCL JOB & *** \n"); fprintf(prn,"@PJL COMMENT ** START OF POSTSCRIPT * \n"); fprintf(prn,"@PJL ENTER LANGUAGE = POSTSCRIPT \n"); fprintf(prn,"5 setlinewidth\r"); /** PostScript Code - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 266
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: ECHO @PJL RDYMSG DISPLAY = "%1" > PRN: ECHO @PJL ENTER LANGUAGE = PCL > PRN: COPY %1 /B PRN: COPY UEL /B PRN: ECHO @PJL COMMENT Restore READY - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 267
through 9. For example, if unsolicited status is enabled and the toner runs low, the following message is returned: @PJL USTATUS DEVICE CODE=10006 DISPLAY="16 TONER LOW" ONLINE=TRUE If you consult the status code table, code 10006 means "toner low." Note that since the string portion of the "DISPLAY - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 268
Device Errors (43xyy) LaserJet 4000 Series Paper Jam Information (44xyy) Hardware Errors (50xxx) The following pages list the status codes in numerical order, by groups. For a complete description of each control panel display string, see the user and service manuals for each printer. Informational - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 269
I/O 08 COLD RESET or RESTORING FACTORY SETTINGS 06 CONFIG PAGE or PRINTING CONFIGURATION PAGE PROCESSING JOB or PROCESSING JOB FROM ENV FEEDER or PROCESSING JOB FROM TRAY X (X = tray code) PRESS SELECT TO FORMFEED or DATA RECEIVED ACCESS DENIED NO JOB TO CANCEL CLEARING PAPER PATH PRINTING ERROR LOG - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 270
paper loading messages are sent when there are no alternate paper sources loaded 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 [41xyy].) Background paper loading messages are in the format 11xyy. The - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 271
YY = Media Code Media Size 01 Unknown Envelope 02 Letter Paper 03 Legal Paper 04 A4 Paper 05 Executive Paper 06 Ledger Paper 07 A3 Paper 08 A4-R Paper 21 A5-R Paper 22 Japan B5-R Paper 23 Exec-R Paper 24 A6 Paper 25 Foolscap Paper 26 Japan B6 Paper PJL Status Codes D-5 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 272
Tray or Upper Cassette or Universal Tray2 LC Tray or Lower Cassette or Universal Tray3 EE Tray or Envelope Feeder Any HCI Tray YY = Status Code 01 02 Tray Status Tray Open Tray Lifting Output Bin Status (15xxy) Output bin status messages occur when an output bin is full. The messages - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 273
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 5100tn | Printer Job Language - Technical Reference Manual - Page 274
of options supported) 20025 Two decimal points in a numeric value 20026 Invalid binary value PJL Parser Warnings This group of status codes denote PJL ignored. Status Code 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 Display String or Code Meaning Generic warning error (part of - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 275
not supported String empty, option ignored A Universal Exit Language command was expected but not found. PJL Semantic Errors (27xxx) This group of status codes denote PJL semantic errors. As much of the command is executed as possible, depending on the current configuration of the printer. Status - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 276
Display String or Code Meaning 27005 Can only use DEFAULT with this variable; cannot use SET. 27006 Attempted to pass a NULL string to a command or command option that requires - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 277
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 "Printer Status Readback" in the "HP LaserJet 4 and 5 Printer Family Comments" section in Appendix A. PJL Status Codes D-11 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 278
30103 BINDING AGENT MEDIA CAPACITY EXCEEDED 30104 EXTERNAL INPUT DEVICE PAPER PATH ERROR 30105 EXTERNAL OUTPUT DEVICE PAPER PATH ERROR 30106 EXTERNAL INPUT DEVICE OPERATIONAL ERROR 30107 EXTERNAL OUTPUT DEVICE OPERATIONAL ERROR 30108 40 HP MIO ERROR, PRESS GO KEY 30109 40 BAD SERIAL - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 279
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 5100tn | Printer Job Language - Technical Reference Manual - Page 280
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 5100tn | Printer Job Language - Technical Reference Manual - Page 281
Status Code Display String or Code Meaning 35041 W8 JOB 600/OFF 35042 W7 JOB 300/LGL * 35043 W5 JOB 300/LTR 2 is not initialized. Volume 2 will be indicated as either DISK, FLASH, or RAMDISK as appropriate.) * For some printers, the WM JOB 300 message (35081) may be used instead. PJL Status - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 282
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 5100tn | Printer Job Language - Technical Reference Manual - Page 283
or Code Meaning 40054 54 ERROR 40055 55 ERROR 40056 56 ERROR 40057 57 SERVICE or 57 MOTOR FAILURE, CALL SERVICE 40058 58 SERVICE or FAN MOTOR FAILURE, CALL SERVICE 40059 59 ERROR 40061 61.x SERVICE 40062 62.x SERVICE 40063 63 SERVICE 40064 64 SERVICE or PRINTER ERROR,CYCLE - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 284
Code Display String or Code Meaning 40100 56.2 ERROR PRESS SELECT KEY 40102 FINISHER ALIGN ERROR [BIN NAME] 40103 FINISH LIMIT REACHED [BIN NAME] 40104 INPUT DEVICE FEED PATH OPEN 40105 OUTPUT DEVICE DELIVERY PATH OPEN 40106 INPUT OPERATION ERROR X.YY 40107 OUTPUT OPERATION ERROR - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 285
15 Custom Media Paper 16 J-Postcard (or JB4 paper-LaserJet 6P) 17 J-RoundTrip Postcard (or JB5 paper- LaserJet 6P) 18 A5 Paper (or JPostcard-LaserJet 6P 19 Letter-R Paper (or JDoublePostCard- LaserJet 6P) 20 A4-R Paper (or A5 Paper-LaserJet 6P) 21 A5-R Paper PJL Status Codes D-19 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 286
LaserJet 5Si/ 5SiMx only) (42xyy) Foreground paper loading messages are sent when one of the paper input sources is out of paper and there is no other input source available and loaded with the correct paper size. When this occurs, the printer are jammed in the fuser output. D-20 PJL Status Codes - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 287
2-Sided turn around, paper late jam 2-Sided turn around, paper stopped jam 2-Sided path, paper late jam 2-Sided path, paper stopped jam External input device paper jam External output device paper jam Fuser accordion jam Fuser accordion jam Printer could not auto eject paper PJL Status Codes D-21 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 288
attached to PHC 5 Fifth device attached to PHC yy = Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Error Code Unable to communicate with the PHC Out of sequence packet Bad transaction Invalid status bits Invalid status code Invalid device specified Invalid tray specified Invalid bin specified Invalid - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 289
ACK Device(s) never ready during installation Negative ACK of ready tray LaserJet 4000 Series Paper Jam Messages (44xyy) This category contains unsolicited status error messages related to paper jams (for the LaserJet 4000 series printers only). The messages are in the format 44xyy, where x is the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 290
CYCLE POWER or LOW FUSER TEMPERATURE 50009 50.2 FUSER ERROR CYCLE POWER or FUSER TOOK TOO LONG TO WARM UP 50010 50.3 FUSER ERROR CYCLE POWER or FUSER TOO HOT 50011 50.4 FUSER ERROR CYCLE POWER or BAD FUSER 50012 51.1 ERROR PRESS SELECT KEY or BEAM DETECT MALFUNCTION D-24 PJL Status Codes - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 291
Display String or Code Meaning 50013 51.2 ERROR PRESS SELECT KEY or LASER MALFUNCTION 50014 52.1 ERROR PRESS SELECT KEY or SCANNER STARTUP FAILURE 50015 52.2 ERROR PRESS SELECT KEY or SCANNER ROTATION FAILURE 50016 57.1 FAN FAILURE CALL SERVICE or FAN MOTOR 1 FAILURE 50017 57.2 FAN FAILURE - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 292
Display String or Code Meaning 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 AND ENGINE 50029 64 PRINTER ERROR CYCLE POWER or VIDEO DMA TRANSFER TIMED OUT 50030 FAN MOTOR - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 293
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 5100tn | Printer Job Language - Technical Reference Manual - Page 294
control panel variable PERSONALITY is set to AUTO and the print job does not contain a PJL ENTER command before non-PJL data. Control Code A control code is a non-printable ASCII character that initiates a printer function, for example carriage return (), line feed (), and form feed (). - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 295
a 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 The process of transferring data, including soft fonts, macros, or raster data from a host computer to the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 296
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 modified print - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 297
can print. The printer uses different personalities (different firmware) to handle data from different printer 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 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 298
events, such as control panel reset, a 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 families.) Glossary-6 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 299
in the JOB command. For the LaserJet 4Si/4SiMx printers, secure jobs are able to use the DEFAULT and INITIALIZE commands. (The LaserJet 4 Plus, 4M Plus, 4V, 4MV, 4Si, 4SiMx, 4000 series, 5, 5M, 5P, 6P, 5Si, 5SiMx, and the 5Si Mopier are the only printers that support the password option of the JOB - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 300
as they are received. See "unsolicited status." Status Readback Sending printer status information from the printer to the host computer. Universal Exit Language (UEL) Command A PJL command, understood by all LaserJet personalities, that prompts the active personality to finish processing the - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 301
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. Glossary-9 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 302
Glossary-10 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 303
CHARACTERSET variable CLEARABLEWARNINGS variable collating multiple copies Color LaserJet printer command command format command modifier command code G-2 control codes 2-3 control panel lock 5-11 control panel messages, changing 5-2, 8-1 control panel settings 3-3 conventions, manual - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 304
support environment variables environments changing settings defaulting example (changing settings) Factory Default Modified Print PJL Current printer language-specific summary User Default EOJ command errors, processing ESC Esc/P printer 10 9-12 H hardware errors HP Explorer Software HT (horizontal - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 305
35 LaserJet 6P/6MP printers A-29, A-35 LaserJet IIISi printer 1-4, A-28 line feed character (LF) 2-3 line spacing (FORMLINES) 6-13 line termination 3-2 LOWTONER variable 6-16 LPARM 2-4 LPARM : PCL 6-23 LPARM : personality 6-11 LPARM : POSTSCRIPT 6-27 M macro manual organization - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 306
command set 4-1 prefix 2-5 processing invalid commands 2-9 programming tips 10-1 requesting printer status 10-18 reset condition 6-8, G-6 sample jobs 3-3 security 5-1, 5-10 services 10-2 status codes D-1 status requirements 7-2 syntax rules 2-5 using 3-1 well-formed jobs - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 307
RESET command example reset conditions, PJL resetting printer PJL 5-1 semantic errors D-9 semantic codes D-1 status messages 7-35 status readback 1-3, G-8 determining if available 10-23 LaserJet 4 A-30 old responses 10-26 unexpected responses 10-28 status readback and printer - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 308
PAGE command 7-39 USTATUS TIMED command 7-41 USTATUSOFF command 7-43 utilities 10-5 V value variable support variable types variables environment INFO VARIABLES command PCL-specific PJL environment PostScript-specific vertical bar vertical bar ( | ) 2-4 A-5 2-7 2-2 6-10 7-26 6-22 - 6-23 - HP 5100tn | Printer Job Language - Technical Reference Manual - Page 309
the current value for an environment variable. 5-2 Informs printer of the start of a print job, resets the page count, allows naming of the job, supports non-printing mode. 8-4 Displays message on control panel/takes printer offline. 8-2 Specifies a message that replaces the READY message
Printer Job Language
Technical Reference Manual
Edition 10
E1097
HP Part No. 5021-0380
Printed in U.S.A.
10/97