HP 5100 Printer Job Language - Technical Reference Manual
HP 5100 - LaserJet B/W Laser Printer Manual
UPC - 808736092500
View all HP 5100 manuals
Add to My Manuals
Save this manual to your list of manuals |
HP 5100 manual content summary:
- HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 2
. Centronics is a U.S. registered trademark of Centronics Data Computer Corporation. Bi-Tronics and HP Explorer Software are trademarks and PCL and Resolution Enhancement are registered trademarks of Hewlett-Packard Company. Epson is a registered trademark of Epson America, Inc. Harvard Graphics is - HP 5100 | Printer Job Language - Technical Reference Manual - Page 3
for significantly enhancing network printer operation. Non-Technical Users Non-technical users can use the features of PJL by using HP Explorer Software, or by using software that supports PJL. Since improperly used PJL commands can cause problems in a network situation, inexperienced users - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 5
Commands This chapter explains setting the printer to a known state. The status readback responses, using software tools to interpret status download, upload, delete, and append files. Chapter 10. Programming Tips This chapter demonstrates how to create well-formed jobs and discusses common problems - HP 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 8
typed. Items in brackets < > indicate a control code character (for example, for carriage return) or a special defined identifier. A vertical bar (|) indicates there is more than one optional parameter. Note Throughout this manual, the term printer also includes any relevant DesignJet plotters - HP 5100 | Printer Job Language - Technical Reference Manual - Page 9
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 Command 4-4 COMMENT Command 4-6 Methods of Printer Language Switching 4-8 5 Job Separation Commands JOB - HP 5100 | Printer Job Language - Technical Reference Manual - Page 10
6-9 PJL Environment Variables 6-10 General PJL Environment 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 11
PJL PJL Services 10-2 Print Data Generators 10-3 Printer Utilities 10-5 Spoolers 10-10 Requesting Printer Status 10-18 Using Status Readback in a Multi-User System . . . . . 10-18 A Product-Specific Feature Support PJL Feature Support A-2 PJL Environment Variable Support A-5 HP LaserJet IIISi - HP 5100 | Printer Job Language - Technical Reference Manual - Page 12
D-11 PJL File System Errors (32xxx D-13 Potential Operator Intervention Conditions (35xxx) D-14 Operator Intervention Conditions (40xxx D-16 Foreground Paper Loading (41xyy D-18 Paper Jam Messages (42xyy-LJ 5Si/5SiMx only) . . D-20 Optional Paper Handling Device Messages (43xyy) . D-22 LaserJet - HP 5100 | Printer Job Language - Technical Reference Manual - Page 13
1 Introduction to PJL What is PJL? Hewlett-Packard's Printer Job Language (PJL) was developed to give software applications more job-level printer control, and to provide printer status information to applications. PJL provides for the special needs of networks and other multi-user systems, in - HP 5100 | Printer Job Language - Technical Reference Manual - Page 14
Figure 1-1. PJL Resides Above Other Printer Languages Note Some HP printers, such as the LaserJet 4L, 5L, or 6L printers, do not support printer language switching or job separation. See Appendix A for feature support information. Using PJL, software applications can request information such as - HP 5100 | Printer Job Language - Technical Reference Manual - Page 15
. Better spooler control. PJL allows spoolers improved printer management, especially in a network environment. Who Should Use PJL? PJL is designed to be used by experienced programmers, such as software application developers and technical support personnel. Although PJL is not complicated, it - HP 5100 | Printer Job Language - Technical Reference Manual - Page 16
With Non-PJL Printers Because all HP printers do not support PJL, it is important to know what happens when PJL commands are sent to a non-PJL printer. PJL commands are recognized by the following HP printers: LaserJet IIISi, 4Si, 4SiMx, 5Si, 5SiMx, 5Si Mopier LaserJet 4000 series LaserJet 4V, 4MV - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 18
1-6 Introduction to PJL - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 20
following syntax conventions are used to describe the PJL commands in this manual: variables COMMANDS [ ] < > ~ | Items in italics the form feed character [ASCII 12].) This character indicates that the current line of code is a continuation of the previous line. For example, "This text belongs on - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 22
is effected by the command. For example, with the command modifier LPARM you can specify language-specific variables. A PJL command with a command modifier of LPARM : PCL only affects PCL-specific settings. A PJL command can contain only one command modifier. For example, in the command: @PJL SET - HP 5100 | Printer Job Language - Technical Reference Manual - Page 23
LANGUAGE = personality." The range of values varies with each specific command and each printer model. A PJL command may have no options, or one of the PJL command is not case-sensitive. For clarity, however, this manual shows other portions of PJL commands in uppercase to indicate portions that are - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 25
characters 65 through 90) and lowercase letters (97 through 122). Digits consist of numbers 0 through 9 (characters 48 through 57). Examples of valid alphanumeric variables include: LaserJet279 J1953 Examples of invalid alphanumeric variables include: 279LaserJet (Alphanumeric variables must begin - HP 5100 | 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 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 29
how the manual categorizes PJL commands into six groups of related commands. Each command has a brief description of its function to help familiarize you with the PJL language. Note Each PJL printer supports a different set of PJL commands. See Appendix A for printer-specific information. Overview - HP 5100 | Printer Job Language - Technical Reference Manual - Page 30
met to work correctly. Jobs that satisfy the following requirements are "well-formed" and work well with all PJL printers, both in single-computer/single-printer environments and network environments. Here are the requirements: All PJL jobs must begin and end with a UEL command (%-12345X). This - HP 5100 | Printer Job Language - Technical Reference Manual - Page 31
actually part of the previous line.) Example: Changing Control Panel Settings This example simulates using PJL to control printer features one PCL and one PostScript. The PCL job prints first, then PJL code switches the printer language to prepare for the PostScript job. %-12345X@PJL - HP 5100 | Printer Job Language - Technical Reference Manual - Page 32
know which PJL commands are supported by the printer you are using. See Appendix A for feature support information. Chapter 5 explains commands that enable you to create jobs for keeping track of printing status, and explain a non-printing mode that allows printing of specific pages of print jobs - HP 5100 | Printer Job Language - Technical Reference Manual - Page 33
Command Groupings by Functionality This manual categorizes the PJL commands into related groups. Each count, allows naming of the job, supports non-printing mode for printing portions of jobs. Where supported, it adds PJL password security. EOJ Tells printer the print job is complete, resets the - HP 5100 | Printer Job Language - Technical Reference Manual - Page 34
environment variable. Returns the portion of the command to the host computer. Requests a specified category of printer information, such as printer model number, printer memory available, configuration, page count, status, environment variables, and unsolicited status variables. Allows - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 36
3-8 Using PJL - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 38
stream sequence recognized by all printer languages in PJL printers. The UEL command instructs the active printer language to finish processing the UEL command. Printers that support I/O switching use the UEL command as one way to determine job boundaries, indicating when to perform I/O switching ( - HP 5100 | Printer Job Language - Technical Reference Manual - Page 39
Language Switching" later in this chapter). Instead of relying on implicit switching, use the ENTER command to specify the printer language, even if the printer has only one printer language. The following example demonstrates the use of the UEL command. Example: Using the UEL Command This example - HP 5100 | Printer Job Language - Technical Reference Manual - Page 40
does not receive 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 41
= ESCP command to explicitly select it. For any job containing personality-specific data, send the ENTER command if the intended printer language is known, instead of relying on the printer's ability to switch to the default printer language. This is true even if there is only one available - HP 5100 | Printer Job Language - Technical Reference Manual - Page 42
LF> Parameters: Parameter remarks Range Roman-8 character codes 33 through 255 and , starting with a code between the initial UEL command and the ENTER command. (Comments placed after the ENTER command are considered personality-specific data and are printed as determined by the active printer - HP 5100 | Printer Job Language - Technical Reference Manual - Page 43
Example: Using the COMMENT Command This example demonstrates using the COMMENT command to add clarity to your PJL command listings. %-12345X@PJL @PJL COMMENT CR> @PJL COMMENT ** D. Thiel- 10/22/92 ** @PJL COMMENT CR> @PJL @PJL @PJL JOB NAME = " - HP 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 46
4-10 Kernel Commands - HP 5100 | 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 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 50
can be determined by sending an INFO CONFIG command to the 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, if the LANG variable is set to Japanese, messages are - HP 5100 | Printer Job Language - Technical Reference Manual - Page 51
counts physical pages, not multi-copy collated pages. In this example, the JOB command: Informs the printer of the beginning of a print job. Names the print job "Jim's Job." Instructs the printer to begin printing on page three of the job. (Since the END option is missing, the job prints from - HP 5100 | Printer Job Language - Technical Reference Manual - Page 52
software application. The last section is sent by the spooler to end the job. When the last page is completely printed (in the output tray), the printer "%!PS-ADOBE .. PostScript print job ... ^D", a LaserJet printer using context-sensitive switching would still print properly (provided PostScript - HP 5100 | Printer Job Language - Technical Reference Manual - Page 53
Example: Nested JOB Commands This example shows a PCL job that was sent to spooler 1, which in turn was sent to spooler 2 (the nested jobs are indented). Note that the first job name is overwritten by the second job name ("Spooler 1 Job") when the second JOB command is processed. %-12345X@PJL - HP 5100 | Printer Job Language - Technical Reference Manual - Page 54
EOJ Command The EOJ command informs the printer that the job has completed. Use this command 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. - HP 5100 | Printer Job Language - Technical Reference Manual - Page 55
receives this command, it returns unsolicited job status information, if enabled, when the last page of the job exits the printer and is in the output tray. The EOJ command resets the page number associated with unsolicited page status. Resetting the page count associated with unsolicited page - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 57
by MINIMUM, plus the PRINT QUALITY and PAPER HANDLING menus. The MAXIMUM value locks out the menus locked by MODERATE plus the PRINTING and INFORMATION menus and the Job Cancel key (MAXIMUM has the same effect as the ON value). Disk Lock On printers which support Disk Lock, you can "lock" volume - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 59
COMMENT **Lock Volume 0** @PJL DEFAULT DISKLOCK = ON @PJL DINQUIRE DISKLOCK @PJL EOJ %-12345X Job Separation Commands 5-13 - HP 5100 | 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 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 63
6 Environment Commands Introduction Hewlett-Packard printers have many features you can set using printer commands or by pressing control panel keys. Since previous jobs can change feature settings to unwanted values, applications should set printer features affecting the print job to a desired - HP 5100 | Printer Job Language - Technical Reference Manual - Page 64
providing a base feature set which the application can modify if needed. After a printer language 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 65
explained in more detail below: Factory Default Environment - This environment consists of a group of feature settings that are permanently stored in the printer. The printer uses these settings when it is powered on for the first time after leaving the factory, and after the INITIALIZE command is - HP 5100 | Printer Job Language - Technical Reference Manual - Page 66
Figure 6-1. How Environments Affect the Print Job 6-4 Environment Commands - HP 5100 | Printer Job Language - Technical Reference Manual - Page 67
example, 5). Otherwise, the number of copies setting remains the same as set using the DEFAULT command or the control panel (in this example, 3). 4. If the printer language (such as PCL or PostScript) changes the number of copies setting to another value, such as 8, the newly specified - HP 5100 | Printer Job Language - Technical Reference Manual - Page 68
The table on the following page summarizes the characteristics of each print environment. For those printers without a control panel, disregard any mention of control panels. In these printers, User Default Environment features are controlled using just the DEFAULT command. Note See Appendix A for - HP 5100 | Printer Job Language - Technical Reference Manual - Page 69
Current Environment feature for the duration of the printer language job (until the printer language is changed or a printer language-specific reset is executed). The Modified Print Environment settings can be read if the active printer language supports this capability. Environment Commands 6-7 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 70
UEL command (when not between a JOB and EOJ command pair) @PJL INITIALIZE command @PJL RESET command @PJL JOB or EOJ command Control panel reset Other printer-specific events (see Appendix A for information about job boundaries) 6-8 Environment Commands - HP 5100 | Printer Job Language - Technical Reference Manual - Page 71
with only the 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 72
Environment Variables This section lists the PJL environment variables. General PJL environment variables (those not printer language-specific) are listed first, followed by printer language-specific variables. For most variables except the read-only variables, value settings can be modified using - HP 5100 | Printer Job Language - Technical Reference Manual - Page 73
printer language-specific. When you use these variables, do not use the LPARM : personality option. The range of values for each variable may differ for the various printer models. Appendix A lists the environment variables and indicates which printers support tray autoselect feature of the printer. - HP 5100 | Printer Job Language - Technical Reference Manual - Page 74
to 1. Returns the configuration for displaying clearable warnings (non-fatal error messages cleared by pressing the Continue key.) If the value is printer looks for context clues to determine which personality takes effect. When the personality is changed, memory is reconfigured and all downloaded - HP 5100 | Printer Job Language - Technical Reference Manual - Page 75
mode to enable/disable printing on both sides of the paper. OFF enables simplex and ON enables duplex printing. ON, 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 output. NONE, STAPLE Number - HP 5100 | Printer Job Language - Technical Reference Manual - Page 76
it is not installed, 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 77
4/4M, 4/4M Plus, 4V/4MV, 5/5M), envelope feeder (LaserJet 4Si/4SiMx), or tray 3 (5Si/ 5SiMx/5Si Mopier). INTRAY3SIZE is a valid variable only if currently installed. If it is not installed, the printer returns "?" instead of a paper size, indicating the variable is unknown. LETTER, LEGAL, A4, A3 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 78
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 multipurpose tray. PAPER, SPECIAL, TRANSPARENCY, GLOSSY ON, OFF CASSETTE, MANUAL, FIRST - HP 5100 | Printer Job Language - Technical Reference Manual - Page 79
bin. (For HP LaserJet 4Si, 4SiMx, 4000 series, 5Si, 5SiMx, 5Si Mopier printers, the UPPER software application. Sample Value Range PORTRAIT, LANDSCAPE UPPER, LOWER, OPTIONALOUT- PUTBIN1, . . . OPTIONALOUT- PUTBIN62 0 to 999 OFF, LETTER, LEGAL, A4, AUTO, ON DEVICE, SOFTWARE Environment Commands 6-17 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 80
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, COM10, C5, DL - HP 5100 | Printer Job Language - Technical Reference Manual - Page 81
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 a per-port basis (see "Port-Specific Variables - HP 5100 | Printer Job Language - Technical Reference Manual - Page 82
. If the amount of RAM installed is more than this threshold, the pages are reprinted. The ON setting causes the printer to reprint the job after a paper jam. The OFF setting disables reprinting. AUTO, OFF, ON Print resolution in dots per inch. When a job is sent, if there is not enough memory to - HP 5100 | Printer Job Language - Technical Reference Manual - Page 83
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 if any. In most cases, do not adjust this feature unless the printer times out during normal operation, in which case you can try extending the - HP 5100 | Printer Job Language - Technical Reference Manual - Page 84
Port-Specific Variables (LaserJet 4PJ Only) The following variable is I/O port-specific in the HP LaserJet 4PJ printer, and can be set and requested using PJL. This variable must be set using the IPARM : port option. For the HP LaserJet 4PJ, the valid values for port are SERIAL and PARALLEL. Port- - HP 5100 | Printer Job Language - Technical Reference Manual - Page 85
specific and can be set and requested using PJL. These variables must be set using the LPARM : PCL option. A sample value range is shown in this table. See Appendix A for the actual value range for each PJL printer the font source. For example, if there are 50 fonts in the font source and there is a - HP 5100 | Printer Job Language - Technical Reference Manual - Page 86
PCL-Specific Variables Variables Description Sample Value Range FONTNUMBER (continued) If the 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 5100 | Printer Job Language - Technical Reference Manual - Page 87
PCL-Specific Variables Variables Description FONTSOURCE The valid values for FONTSOURCE are: I (Internal Fonts) C, C1, C2 (Cartridge Fonts) S (Permanent Soft Fonts) M1, M2, M3, M4 (Fonts stored in one of the printer's ROM SIMM slots) Sample Value Range I, M1, M2, M3, M4, C, C1, C2, S (the - HP 5100 | Printer Job Language - Technical Reference Manual - Page 88
Variables PTSIZE SYMSET PCL-Specific Variables Description Sample Value Range Height of the default [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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 89
currently defined PostScript-specific variables. These jammed pages following a paper jam. The OFF setting boosts printer performance, but lost pages are not automatically printed after clearing the jam. OFF, ON PRTPSERRS This variable enables or disables the printing OFF, ON of a PostScript error - HP 5100 | Printer Job Language - Technical Reference Manual - Page 90
specific variables which are valid only for HP LaserJet 4PJ and 4LJPro printers, and optionally for HP LaserJet 4V and 4MV printers. These variables can be set using the LPARM : ESCP option. Note that HP LaserJet HP LaserJet 4V and 4MV printers and a menu reset or cold reset is performed, the printer - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 92
user to control that feature-this strategy prevents the user from being "locked out" of a particular feature. 3. Enter the desired printer language and use printer language commands to set all other environment variables to the desired settings. 4. If using a SET command to modify an environment - HP 5100 | Printer Job Language - Technical Reference Manual - Page 93
specific printer you are configuring, consider which environment features you can modify. The modifiable environment features for HP LaserJet 4 and 4M printers are listed below (see Appendix A for a list of environment variables supported by each PJL printer): COPIES FORMLINES PAPER MANUALFEED - HP 5100 | Printer Job Language - Technical Reference Manual - Page 94
that support the PASSWORD variable, the DEFAULT command will not take effect unless used within a secure job (a job with the correct password in the JOB command). Note In situations where the printer is shared by several users, such as networks, restrict the use of the DEFAULT command using - HP 5100 | Printer Job Language - Technical Reference Manual - Page 95
parameter is used to set port-specific variables. The HP LaserJet 4PJ is the only printer which supports port-specific variables. IPARM : port - This option must be used when setting port-specific variables. Valid values for port for the HP LaserJet 4PJ printer are SERIAL and PARALLEL. variable - HP 5100 | Printer Job Language - Technical Reference Manual - Page 96
also be supported) PARALLEL SERIAL Supported on LaserJet 4PJ only Valid variables for each printer are listed in Appendix A. Comments: The DEFAULT command enables you to specify default values for either general variables, which are used by all personalities, or personality-specific variables - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 98
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. In any case, the INITIALIZE command causes the PJL Current and User - HP 5100 | Printer Job Language - Technical Reference Manual - Page 99
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 models. See Appendix A for a list of - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 101
the following environment variables to their user default values. Note Because personalities can be dynamically added to some HP LaserJet printers, those printers support more personality-specific variables than those listed here. In addition, the allowable variables and range of values for each - HP 5100 | Printer Job Language - Technical Reference Manual - Page 102
Names BINDING ORIENTATION COPIES OUTBIN CPLOCK PAGEPROTECT DISKLOCK PAPER DUPLEX PASSWORD ECONOMODE PERSONALITY FINISH QTY FORMLINES REPRINT IMAGEADAPT RESOLUTION JOBOFFSET RET MANUALFEED TIMEOUT PCL-Specific Variables FONTNUMBER PTSIZE FONTSOURCE SYMSET PITCH PostScript - HP 5100 | Printer Job Language - Technical Reference Manual - Page 103
Example: Using the RESET Command The following example uses a RESET command after the print job to return the features to their previous state: %-12345X@PJL @PJL COMMENT Resets variables to @PJL COMMENT control panel settings @PJL SET RESOLUTION = 600 @PJL - HP 5100 | Printer Job Language - Technical Reference Manual - Page 104
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, and PostScript dictionaries - HP 5100 | Printer Job Language - Technical Reference Manual - Page 105
: 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 = value - this personalities may be supported PARALLEL SERIAL Supported on LaserJet 4PJ only Valid variables for each printer are listed in - HP 5100 | Printer Job Language - Technical Reference Manual - Page 106
either general variables which are used by all personalities, or printer language-specific variables. Printer language-specific variables must be specified using the LPARM : personality option. Features that are not printer language-specific cannot be specified with the LPARM option. All port - HP 5100 | Printer Job Language - Technical Reference Manual - Page 107
SET PAGEPROTECT = OFF @PJL SET RESOLUTION = 600 @PJL ENTER LANGUAGE = POSTSCRIPT %!PS-ADOBE ... PostScript print job - use ~POSTSCRIPT code to set all values that are ~not set using PJL... ^D %-12345X@PJL @PJL RESET %-12345X Related Commands - HP 5100 | Printer Job Language - Technical Reference Manual - Page 108
6-46 Environment Commands - HP 5100 | Printer Job Language - Technical Reference Manual - Page 109
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 your application successfully changed feature settings to your specifications. This chapter describes the requirements for using status - HP 5100 | Printer Job Language - Technical Reference Manual - Page 110
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 may - HP 5100 | Printer Job Language - Technical Reference Manual - Page 111
data between the "@PJL" header and the control code. Lines within the PJL status response begin with a specific keyword, as described in the command descriptions in this chapter, and end with the control codes. Future printers may support new keywords in the PJL status response. Your - HP 5100 | Printer Job Language - Technical Reference Manual - Page 112
parameter is used to set port-specific variables. The HP LaserJet 4PJ is the only printer which supports port-specific variables. The IPARM : port option must be used when setting port-specific variables. Valid values for port for the HP LaserJet 4PJ printer are SERIAL and PARALLEL. variable - This - HP 5100 | Printer Job Language - Technical Reference Manual - Page 113
. Parameter personality port variable value Variable Names PCL ESCP POSTSCRIPT (other personalities may be supported) PARALLEL SERIAL Supported on HP LaserJet 4PJ only Valid variables for each printer are listed in Appendix A. Acceptable values for each variable are also listed in Appendix - HP 5100 | 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 language-specific >%-12345X For the HP LaserJet 4 printer, a sample printer response for this example is as follows. Other PJL - HP 5100 | Printer Job Language - Technical Reference Manual - Page 115
LF> Example: Using INQUIRE for Printer Language-Specific Variables This example requests the PCL settings for 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 - HP 5100 | 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. - HP 5100 | Printer Job Language - Technical Reference Manual - Page 117
parameter is used to set port-specific variables. The HP LaserJet 4PJ is the only printer which supports port-specific variables. The IPARM : port option must be used when setting port-specific variables. Valid values for port for the HP LaserJet 4PJ printer are SERIAL and PARALLEL. variable - This - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 119
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 when - HP 5100 | Printer Job Language - Technical Reference Manual - Page 120
@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 600 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 121
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 DINQUIRE LPARM:PCL PITCH 10.00 - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 123
the ECHO Command This example sends the Testing 68394 10:57:06.4 message using the ECHO command. After the 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 124
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 printer. Returns PJL file system information. Identifies amount of memory - HP 5100 | Printer Job Language - Technical Reference Manual - Page 125
the more detailed INFO CONFIG command should be used (see the following discussion on "The CONFIG Category"). Some printers, such as the HP LaserJet 4ML printer, return "HP" in front of the model name, for example: @PJL INFO ID "HP LASERJET 4ML" Status Readback Commands 7-17 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 126
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 lower paper cassette installed, the INTRAY3 option is - HP 5100 | Printer Job Language - Technical Reference Manual - Page 127
current configuration information. The printer, a 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 trays: INTRAY1 MP, the multi-purpose tray, INTRAY2 PC, the paper cassette tray, and INTRAY3 LC - HP 5100 | Printer Job Language - Technical Reference Manual - Page 128
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 5100 | Printer Job Language - Technical Reference Manual - Page 129
INTRAY3 LC ENVELOPE TRAY OUT TRAYS [1 ENUMERATED] NORMAL FACEDOWN PAPERS [9 ENUMERATED] LETTER JOB PAGE TIMED FONT CARTRIDGE SLOTS [1 ENUMERATED] CARTRIDGE MEMORY=2097152 DISPLAY LINES=1 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 130
11:33:42.3 9-20-96 @PJL INFO FILESYS %-12345X A sample HP LaserJet 5 printer response for this example is shown below. Other printers SIZE FREE SPACE LOCATION LABEL STATUS A printer with no file system firmware will treat this command as a PJL INFO command with an - HP 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 133
CR> @PJL INFO STATUS %-12345X A sample HP LaserJet 4 printer response for this example is shown here. Other PJL printers may produce a different response. @PJL ECHO 17:45:22.5 05-17-92 @PJL INFO STATUS CODE=10001 DISPLAY="00 READY" ONLINE=TRUE - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 135
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=1 [2 RANGE] 1 999 PAPER=LETTER [9 ENUMERATED] LETTER LEGAL A4 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 136
[2 ENUMERATED] 300 600 PERSONALITY=AUTO [3 ENUMERATED] AUTO PCL POSTSCRIPT TIMEOUT=15 [2 RANGE] 5 300 MPTRAY=CASSETTE [3 ENUMERATED] MANUAL CASSETTE FIRST INTRAY1=UNLOCKED [2 ENUMERATED] UNLOCKED LOCKED INTRAY2=UNLOCKED [2 ENUMERATED] UNLOCKED LOCKED INTRAY3=UNLOCKED [2 ENUMERATED] UNLOCKED LOCKED - HP 5100 | Printer Job Language - Technical Reference Manual - Page 137
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 5100 | Printer Job Language - Technical Reference Manual - Page 138
USTATUS Category The INFO USTATUS command lists each type of unsolicited status supported by the printer, such as DEVICE, JOB, PAGE, and TIMED (see the can be used in the USTATUS command. In this example, the HP LaserJet 4 printer replies that there are 4 unsolicited status types: DEVICE, JOB, PAGE - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 140
know: Device status changes (such as printer open, paper jams, and paper out conditions) Job status changes (when a JOB command is encountered, the job completely prints, or the job is canceled) Page status changes (when each printed page reaches the output tray) Timed status (periodic status report - HP 5100 | Printer Job Language - Technical Reference Manual - Page 141
status changes plus notification of all PJL parser warnings and errors. The VERBOSE value should only be used during application development printer sends a status message every time a page reaches the output tray Disables unsolicited page status Enables timed unsolicited status so that the printer - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 143
lifting". The printer remains online during background paper tray status conditions. 15 These messages indicate output bin status, such as "output bin full." (15-000 to 15-999) The printer goes offline when the output bin is full. 20 This type of message denotes a PJL parser error. When this - HP 5100 | Printer Job Language - Technical Reference Manual - Page 144
loaded with the correct paper size. The printer is offline under these conditions. 42 and 44 These status codes indicate paper jam errors and their associated (42-000 to 44-999) error codes and control panel display strings. 43 Messages indicating PJL error codes and corresponding control (43 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 145
of a job is in the output tray and an EOJ command has been received, and when a job has been canceled (HP LaserJet 4000 series, 5, 5M, 5Si/ information associated with unsolicited EOJ status indicates the number of pages printed on paper. It does not include any page images that were processed in non - HP 5100 | 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 information about unsolicited job status during job cancellation, see the "Job Cancellation" section in Chapter 5. Example: Using Unsolicited Job Status This example - HP 5100 | Printer Job Language - Technical Reference Manual - Page 147
all 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 148
ESC>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 printer responses may vary. @PJL USTATUS PAGE 1 @PJL USTATUS PAGE 2 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 149
a timing window in your application. The "CODE=" portion indicates a status code number. See Appendix D for a complete list of status code numbers. panel appears in whichever language is being used. For those printers supporting Japanese printing, when the language is set to Japanese, strings - HP 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 152
and EOJ commands are used to reset the page count and inform the printer of the boundaries for the job-its beginning and end. The USTATUS PAGE sent prior to the JOB command. If a power failure or another problem interrupts the job, the unsolicited page status indicates the last completely printed - HP 5100 | Printer Job Language - Technical Reference Manual - Page 153
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 below. Other PJL printers may respond differently. @PJL USTATUS PAGE 26 Additional page status messages are sent - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 155
Attendance Commands Introduction PJL enables you to change messages displayed on the printer control panel. This capability is useful for alerting operators to perform specific actions, such as loading paper or pressing keys. This chapter describes the following three device attendance commands - HP 5100 | Printer Job Language - Technical Reference Manual - Page 156
be used in network environments to display the name of the printer. The command @PJL RDYMSG DISPLAY = "" (or performing a Menu Reset-" 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 5100 | Printer Job Language - Technical Reference Manual - Page 157
, use the INFO CONFIG command. When this command is used, the printer returns DISPLAY LINES=value and DISPLAY CHARACTER SIZE=value as part of the response message. For example, HP LaserJet 4 and 4M printers return DISPLAY LINES=1, DISPLAY CHARACTER SIZE=16, indicating that the displayed message - HP 5100 | Printer Job Language - Technical Reference Manual - Page 158
. To request the display limitations, use the INFO CONFIG command. The printer returns DISPLAY LINES=value and DISPLAY CHARACTER SIZE=value as part of the response message. For example, the HP LaserJet 4 and 4M printers return DISPLAY LINES=1, DISPLAY CHARACTER SIZE=16, indicating that the displayed - HP 5100 | Printer Job Language - Technical Reference Manual - Page 159
For the LaserJet 4000 printer, if LANG is set to POLISH, CZECH, or HUNGARIAN, messages are of the keys is pressed, the first page is printed. Then "LOAD PLAIN PAPER" is displayed. When the On Line or Continue key is pressed, the printer prints the rest of the job. %-12345X@PJL @PJL - HP 5100 | Printer Job Language - Technical Reference Manual - Page 160
to display the specified message, go offline, and return a status message indicating which key the operator pressed to 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, and to take a - HP 5100 | Printer Job Language - Technical Reference Manual - Page 161
. To request the display limits, use the INFO CONFIG command. The printer returns DISPLAY LINES=value and DISPLAY CHARACTER SIZE=value as part of the response message. For example, HP LaserJet 4 and 4M printers return DISPLAY LINES=1, DISPLAY CHARACTER SIZE=16, indicating that the displayed message - HP 5100 | 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 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 165
Examples of valid pathnames include: 0: 0:\ 0:\MyDir 0:\My/Dir\Gen/Dir 0:\dir0\file1 0:\DIR1\DIR2\File1 0:\DIR1\Prefix/Suffix Volume 0 Root directory on volume 0 \MyDir directory \Gen/Dir directory in \My/Dir directory file1 file in \dir0 directory File1 file in \DIR2 directory in \DIR1 directory - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 167
number is equivalent to the PJL File System error numbers (32xxx) listed in Appendix D, minus the 32 and the leading zeros. For example, if the printer returns FILEERROR=17, the error is equivalent to status code 32017 (Invalid parameter), meaning the FSDIRLIST command contained an invalid parameter - HP 5100 | Printer Job Language - Technical Reference Manual - Page 168
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, FSDOWNLOAD, FSINIT, FSMKDIR - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 170
system. This FSINIT command must be part of a secure job. Syntax: @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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 171
9-3. Example: Using the FSMKDIR Command The following two command lines demonstrate using the FSMKDIR command to create directories on the printer file system. @PJL FSMKDIR NAME = "0:\pcl" [] @PJL FSMKDIR NAME = "0:\pcl\macros" [] Related Commands: FSAPPEND, FSDELETE, FSDIRLIST - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 173
(32xxx) in 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 - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 175
. 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 FSUPLOAD command contained an illegal - HP 5100 | Printer Job Language - Technical Reference Manual - Page 176
to HP LaserJet 5, 5M, 5Si, 5Si MX, and 5Si Mopier printers to download and part of the preceding line. That is, there should be no carriage return or line feed control codes at the end of the preceding line. First Command %-12345X This PJL command causes the printer to exit the active printer - HP 5100 | Printer Job Language - Technical Reference Manual - Page 177
pcl\macros\a_macro" SIZE=29 *p900x1500YThis is the macro ~%-12345X This PJL command does several things. First, it specifies the download format to be binary (FORMAT:BINARY). Second, it specifies the macro's pathname on the file system (NAME = "0:\pcl\macros\a_macro"). Third, it - HP 5100 | Printer Job Language - Technical Reference Manual - Page 178
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 fonts or macros, or delete fonts or macros. 9-16 PJL File - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 180
9-18 PJL File System Commands - HP 5100 | Printer Job Language - Technical Reference Manual - Page 181
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 of this chapter categorizes PJL - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 183
WordPerfect, Harvard Graphics, and Lotus 1-2-3. Software applications of this type should work properly when the printer is under the direct control of every PJL job. Use to add explanations within PJL code. To select the correct printer language for the print job. To select a desired feature when - HP 5100 | Printer Job Language - Technical Reference Manual - Page 184
is the most common job format for Print Data Generators. %-12345X@PJL @PJL ENTER LANGUAGE = POSTSCRIPT %!PS-ADOBE ... PostScript code ... ^D ~%-12345X Jobs That Set Printer Features This example specifies two feature settings that cannot be selected using the specified - HP 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 187
Utility Examples The following three examples demonstrate the kind of PJL jobs used by Printer Utilities: Jobs that request information and perform printer setup Jobs that request information, set features, and print existing files Jobs that monitor printing status Jobs that Request Information - HP 5100 | Printer Job Language - Technical Reference Manual - Page 188
the job closes. %-12345X@PJL @PJL COMMENT Requesting features @PJL ECHO Job #53 11-17-92 08:52:03.7 [. . application discards any printer status readback information received before the ECHO response . .] @PJL INQUIRE RET @PJL INQUIRE PAGEPROTECT - HP 5100 | Printer Job Language - Technical Reference Manual - Page 189
status using the USTATUS DEVICE command. After unsolicited device status is enabled, the printer automatically sends a status response whenever the printer's status changes. %-12345X@PJL @PJL ECHO Acme #17 8-28-92 5:39:02.9 @PJL COMMENT Turn on unsolicited device ~status - HP 5100 | Printer Job Language - Technical Reference Manual - Page 190
in all PJL jobs). Spoolers perform one or more of the tray. Cancel jobs (HP LaserJet 5/5M, 5Si/5SiMx/5Si Mopier only)- The spooler can cancel the print job using the PML printer PAPER" and then wait until the user presses the Continue or On Line key. To display a message without taking the printer - HP 5100 | Printer Job Language - Technical Reference Manual - Page 191
printer language selection or printing banner pages, use the ENTER LANGUAGE command. (Performance PJL code. To modify the default value of a printer feature Use if responsible for printer language selection or banner a customized message and take the printer off-line until the operator presses the - HP 5100 | Printer Job Language - Technical Reference Manual - Page 192
used by spooling applications: Jobs that monitor job progress and confirm job completion Jobs that notify the user to load specific forms or paper Jobs that control printer resources and print selected pages Jobs that print a banner page followed by an applicationgenerated job (application specifies - HP 5100 | Printer Job Language - Technical Reference Manual - Page 193
PJL ECHO 12:07:54.5 07-26-92 [. application discards printer status readback data received before ECHO response .] @PJL USTATUS JOB = ON < @PJL USTATUS PAGE = OFF %-12345X When the printer processes the JOB command, the following unsolicited job status message is sent: @PJL - HP 5100 | Printer Job Language - Technical Reference Manual - Page 194
@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 page and job status as follows (assuming a 38-page job): @PJL USTATUS PAGE 38 @ - HP 5100 | Printer Job Language - Technical Reference Manual - Page 195
the User to Load Specific Forms or Paper This example displays a message to "LOAD FORM 1040" and takes the printer off-line. When @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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 196
example demonstrates a spooling application that prints a banner page, and then prints a PostScript job. The application that produced the print file specifies the printer language. %-12345X@PJL @PJL COMMENT Spooling Job with Banner @PJL JOB NAME = "Spooler #1" @PJL - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 198
discard unrecognizable lines. Lines within the PJL status response begin with a specific keyword, as described in the command description in Chapter 7, and end with the control codes. Future printers may support new keywords in the PJL status response. Your application should ignore those - HP 5100 | Printer Job Language - Technical Reference Manual - Page 199
each job. Using unsolicited PJL job status, 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 - HP 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 202
primary purposes (although there are other uses): printer driver configuration and monitoring device status. Since printer configuration does not change often (i.e. the amount of installed printer memory does not change frequently) using printer status readback to assist in initial configuration (or - HP 5100 | Printer Job Language - Technical Reference Manual - Page 203
printer requires intervention (e.g. fill paper trays). If the application enables unsolicited PJL device status, the printer will inform the application whenever the printer's status changes. Since the printer communication with the printer is available and supported solicited status queries - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 205
application later sends: %-12345X@PJL ECHO 08/27/92 09:57:46.5 ~6202323802 The printer accepts the query and responds with: @PJL ECHO 08/27/92 09:57:46.5 6202323802 One of the conditions I/O-switching printers use to determine when to switch to another I/O interface is the idle - HP 5100 | Printer Job Language - Technical Reference Manual - Page 206
a PJL EOJ command at the end of the job.) Old Printer Status Readback Responses Applications need to be designed to handle receiving printer status readback responses that were generated because of an action performed by a different application. For example, a word processing application may send - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 208
that enabled unsolicited status. Manufacturers of printer sharing devices can choose from the following 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 - HP 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 211
. Also, accept all responses from the printer that were generated because of actions performed by the application. 6. Do not be dependent on the timing characteristics of a single printer model. For example, the response time of the HP LaserJet 4 printer's built-in Bi-Tronics I/O interface will - HP 5100 | Printer Job Language - Technical Reference Manual - Page 212
10-32 Programming Tips - HP 5100 | Printer Job Language - Technical Reference Manual - Page 213
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 regarding the different Hewlett-Packard printers. Feature Support A-1 - HP 5100 | 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 5100 | 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 5100 | 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 Y4 Y4 Y4 Y4 Y4 USTATUSOFF Y Y Y Y Y 1 All DesignJets support HPGL2. All HP DesignJets except 2000CP and 2500CP support HPGL. Design- Jets 650C, 700, 750C, 750C Plus, 755CM, and - HP 5100 | Printer Job Language - Technical Reference Manual - Page 217
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 letters "Y" and "ns - HP 5100 | Printer Job Language - Technical Reference Manual - Page 218
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus 4V 4Si 4000 4L User Default and PJL Current Environment settings are modified (except for the LaserJet 4L, 5L, and 6L printers). It is recommended these variables not be changed on a job- - HP 5100 | 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 5100 | 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 ns ns ns ns ns RO ns RO ns ns ns ns ns ns ns RO ns ns ns A-8 Feature Support - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 222
PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 4 ns ns INTRAY6SIZE Tray-dependent ns ns ns ns RO ns ns ns INTRAY7SIZE Tray-dependent ns ns ns ns RO ns ns ns INTRAY8SIZE IOBUFFER 1 Tray-dependent ON ns and INQUIRE commands. A-10 Feature Support - HP 5100 | Printer Job Language - Technical Reference Manual - Page 223
PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ 4 LC ns ns ns INTRAY6SIZE Tray-dependent ns ns ns ns ns ns ns ns INTRAY7SIZE Tray-dependent ns ns ns ns ns ns ns ns INTRAY8SIZE IOBUFFER 1 Tray-dependent ON ns INQUIRE commands. Feature Support A-11 - HP 5100 | 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 ns ns ns ns ns SPECIAL ns ns ns ns ns ns ns ns PAPER ns ns ns ns ns ns ns ns A-12 Feature - HP 5100 | 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 ns ns ns ns ns Y SPECIAL ns ns ns ns ns ns ns Y PAPER ns ns ns ns ns ns ns Y 1 DeskJet 1600C - these variables are only available using the - HP 5100 | Printer Job Language - Technical Reference Manual - Page 226
A3 ns ns Y ns ns ns ns ns paper sizes; Com10, C5, DL, Monarch, and B5 are envelope sizes; JPOST and JPOSTD are Japanese post card sizes; CUSTOM is for feeding other sizes, such as 3 x 5 cards and labels [for the LaserJet 4V/4MV printer, 11.7" x 17.7" only]) JIS B4 JISB5 EXECUTIVE COM10 MONARCH - HP 5100 | Printer Job Language - Technical Reference Manual - Page 227
and JISB5 are A3 ns ns ns ns paper sizes; Com10, C5, DL, Monarch, and B5 are envelope sizes; JPOST and JPOSTD are Japanese post card sizes; CUSTOM is for feeding other sizes, such as 3 x 5 cards and labels [for the LaserJet 4V/4MV printer, 11.7" x 17.7" only]) JIS B4 JISB5 EXECUTIVE COM10 MONARCH - HP 5100 | Printer Job Language - Technical Reference Manual - Page 228
PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 4 Plus supported with the DEFAULT, DINQUIRE, and INQUIRE commands. 2 For the LaserJet 4PJ printer, PERSONALITY is a port-specific variable. For all other LaserJet printers, personality is not I/O port-specific - HP 5100 | Printer Job Language - Technical Reference Manual - Page 229
- these variables are only available using the DEFAULT and DINQUIRE commands. 3 For the 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 5Si Mopier. Feature Support A-17 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 230
Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 only be used with the DEFAULT, DINQUIRE, and INQUIRE commands. RESOURCESAVESIZE is a personality-specific variable. PCL-Specific Variables FONTSOURCE (I) YY YY YY Y Y M1,M2,M3 . . Mn Y A-18 Feature Support - HP 5100 | Printer Job Language - Technical Reference Manual - Page 231
PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ specific variable. 2 DeskJet 1600C - these variables are only available using the DEFAULT and DINQUIRE commands. 3 The LaserJet 4JL Pro printer does not support font SIMMs. 4 The DeskJet 1600C only supports - HP 5100 | Printer Job Language - Technical Reference Manual - Page 232
Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 Y Y Y Y Y YYY Y Y Y Y Y YYY Y Y 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 234
PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4 specific variable for the LaserJet 4PJ printer. For all other printers, it is a general variable. For all other printers, see the PERSONALITY variable in the tables on pages A-16 and A-17. A-22 Feature Support - HP 5100 | Printer Job Language - Technical Reference Manual - Page 235
Table A-2. PJL Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ 4 LC 5L 5P specific variable for the LaserJet 4PJ printer. For all other printers, it is a general variable. For all other printers, see the PERSONALITY variable in the tables on pages A-16 and A-17 - HP 5100 | 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 4ML 4P 4MP PostScript-Specific 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 5100 | Printer Job Language - Technical Reference Manual - Page 237
Environment Variables for HP LaserJet and DeskJet Printers Environment Variable 4PJ 4 LC 5L 5P Variable Values 4LJ Pro 6L 5MP PostScript-Specific Variables 1 printers. 6P 5Si 6MP 5SiMx, Mopier ns ns ns ns ns ns YY YY YY YY 5 1600C 5M ns ns ns ns ns ns Y ns Y ns Y ns Y ns Feature Support - HP 5100 | Printer Job Language - Technical Reference Manual - Page 238
LANDSCAPE Y Y Y Y Y PALETTESOURCE (DEVICE) Y Y Y Y Y SOFTWARE Y Y Y Y Y PAPERLENGTH 0 to 432000 Y Y Y Y Y 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 Y - HP 5100 | Printer Job Language - Technical Reference Manual - Page 239
LANDSCAPE Y Y Y Y Y Y PALETTESOURCE (DEVICE) Y Y Y Y Y Y SOFTWARE Y Y Y Y Y Y PAPERLENGTH 0 to 432000 Y Y Y Y Y ns ns ns (Y) Y2 ns ns 1 The HP DesignJet 200, 220, 600, and 650C do not support any environment variables. 2 Supported on the model C3198B only. Feature - HP 5100 | Printer Job Language - Technical Reference Manual - Page 240
, 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 attendance commands. For an example - HP 5100 | Printer Job Language - Technical Reference Manual - Page 241
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 perform context switching - HP 5100 | Printer Job Language - Technical Reference Manual - Page 242
switch to the correct printer language. This method improves performance and eliminates errors in printer language switching. It also guarantees that the correct language is always selected. Printer Status Readback Printers supporting printer status readback: HP LaserJet 4, 4M, 4 Plus, 4M Plus - HP 5100 | Printer Job Language - Technical Reference Manual - Page 243
but all volatile personality-specific resource information (such as fonts, macros, and PostScript dictionaries) are not lost (see "Resource Saving" below). If resource saving is disabled, these resources are erased. Resource Saving Printers that support resource saving: HP LaserJet 4 Plus, 4M Plus - HP 5100 | Printer Job Language - Technical Reference Manual - Page 244
4 Plus, 4M Plus, 4V, and 4MV printers. For HP LaserJet 4Si/4SiMx and 5Si/5SiMx printers, resource saving is only configurable from the control panel. Printer-Specific Job Boundaries Printers that support PJL job boundaries: HP LaserJet 4, 4M, 4 Plus, 4M Plus, 4V, 4MV, 4Si, 4SiMx, 4ML, 4P, 4MP - HP 5100 | Printer Job Language - Technical Reference Manual - Page 245
timeout duration, which is equal to five minutes or ten times the TIMEOUT value, whichever is greatest. BackwardCompatibility 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 246
a job timeout.) If PJL data is received instead, the partial page is printed before 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, (5P, 5MP, 6P, 6MP: password only) The - HP 5100 | 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 5100 | 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, job - HP 5100 | Printer Job Language - Technical Reference Manual - Page 249
reset is performed, the value is defaulted to SLOW. Printer Environment Printers that support printer environment variables: HP DeskJet 1600C, 1600M Unlike most PJL variables, the following environment variable defaults are not stored in the printer's NVRAM. The primary use is to set job-specific - HP 5100 | Printer Job Language - Technical Reference Manual - Page 250
in NVRAM COPIES PAGEPROTECT FORMLINES PAPER MEDIASOURCE PRINTQUALITY MEDIATYPE RENDERMODE ORIENTATION RESOLUTION Printer Status Readback Printers that support printer status readback: HP DeskJet 1600C, 1600M Because the DeskJet 1600C and 1600CM do not support USTATUS or INFO, only the - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 252
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 sources are provided (two 500-sheet paper cassettes and a 100-sheet multi-purpose tray). Input selection can be controlled by - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 254
saves network traffic because only one copy must be sent to the printer. The printer stores the job on the internal disk drive and then prints the desired number of collated copies without additional downloading. In @PJL EOJ NAME = "Job #12345" %-12345X A-42 Feature Support - HP 5100 | Printer Job Language - Technical Reference Manual - Page 255
printers. In addition to the LaserJet 5Si/5SiMx printer features, the LaserJet 4000 series printers have: 1200 dpi print resolution Support for the Czechoslovakian, Hungarian, and Russian languages Support for slightly different paper been proposed between the printer and this software, so that the - HP 5100 | Printer Job Language - Technical Reference Manual - Page 256
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 below) Other trays are dynamically assigned - HP 5100 | 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 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 260
INQUIRE @PJL INQUIRE [LPARM : personality | IPARM : port] ~variable [] INQUIRE Response @PJL INQUIRE [LPARM:personality | IPARM:port] variable value JOB @PJL JOB [NAME="job name"][START=first page][END=last page] ~[PASSWORD = number] OPMSG @PJL OPMSG DISPLAY = - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 262
B-6 PJL Command Summary - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 264
: one in PCL and one in PostScript. The program first enters PCL, and then immediately enters HP-GL/2 to draw a box and print "PCL Print Job." Next, PostScript is entered and PostScript data is sent to the printer to draw a box and print "PostScript Job." %-12345X@PJL @PJL COMMENT - HP 5100 | Printer Job Language - Technical Reference Manual - Page 265
/* SWITCH.C (Switching Printer Languages) */ #include Job** \n"); fprintf(prn,"@PJL COMMENT **Enter PCL (& HP-GL/2)* \n"); fprintf(prn,"@PJL ENTER LANGUAGE = PCL \n"); fprintf(prn,"5 setlinewidth\r"); /** PostScript Code **/ fprintf(prn,"100 100 moveto\r"); fprintf - HP 5100 | Printer Job Language - Technical Reference Manual - Page 266
This example demonstrates how to use a batch file to send PJL commands to the 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. To send PJL commands this way, first create an ASCII file named UEL - HP 5100 | Printer Job Language - Technical Reference Manual - Page 267
in applications. Status Code Groupings PJL status codes are grouped as follows, with the first two digits indicating a message category: Informational Messages (10xxx) Background Paper Mount (11xyy) Background Paper Tray Status (12xyy) Output Bin Status (15xxy) PJL Parser Errors (20xxx) PJL Parser - HP 5100 | Printer Job Language - Technical Reference Manual - Page 268
Paper Handling 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 269
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 FORMFEEDING PJL Status - HP 5100 | Printer Job Language - Technical Reference Manual - Page 270
to load the PC tray with letter-size paper. X = Tray Code 0 1 2 3 4 5 Tray MP Tray or Multi-Purpose Tray1 or Duplex tray Manual Feed PC Tray or Upper Cassette or Universal Tray2 LC Tray or Lower Cassette or Universal Tray3 EE Tray or Envelope Feeder Any HCI Tray YY = Media Code Media Size 00 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 271
11 DL Envelope 12 Japan B4 Paper 13 Japan B5 Paper 14 B5 Envelope 15 Custom Media Paper 16 J-Postcard 17 J-RoundTrip Postcard 18 A5 Paper 19 Letter-R Paper 20 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 272
or a tray is lifting. Background paper tray status messages are in the format 12xyy. The following tables list the x and y values for these messages. For example, 12301 indicates the lower cassette tray is open. X = Tray Code 0 1 2 3 4 5 Tray MP Tray or Multi-Purpose Tray1 Manual Feed PC Tray or - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 274
Parser Warnings This group of status codes denote PJL parser warnings, (25xxx) which indicates that part of the PJL command is ignored. Status Code 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 Display String or Code Meaning Generic warning error (part of the PJL command ignored) PJL - HP 5100 | 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 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 278
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 DATA - HP 5100 | Printer Job Language - Technical Reference Manual - Page 279
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 't change root File Descriptor obsolete Deleted No block device PJL Status Codes D-13 - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 281
Display String or Code Meaning 35041 W8 JOB 600/OFF 35042 W7 JOB 300/LGL * 35043 W5 JOB 300/LTR * 35044 W6 JOB 300/A4 * 35045 W4 JOB 300/OFF * 35073 WM CHK MEM CNFIG or MEMORY SETTINGS CHANGED 35074 WM MEM CNFIG N/A 35075 USER MAINTENANCE REQUESTED 35076 WM personality MEM FULL - HP 5100 | Printer Job Language - Technical Reference Manual - Page 282
window-DesignJet) 40022 13 PAPER JAM or REMOVE PAPER JAM 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 283
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 POWER 40065 65 SERVICE 40066 External paper - HP 5100 | Printer Job Language - Technical Reference Manual - Page 284
the X and Y values for these messages. For example, 41303 is a foreground paper loading message indicating to load the LC tray with legal-size paper. X = Tray Code 0 1 2 3 Tray Multi-Purpose Tray or Envelope Tray Manual Feed PC Tray or Universal Tray2 LC Tray or Universal Tray3 D-18 PJL Status - HP 5100 | Printer Job Language - Technical Reference Manual - Page 285
HCI Tray YY = Media Code Media Size 00 Unknown Paper 01 Unknown Envelope 02 Letter Paper 03 Legal Paper 04 A4 Paper 05 Executive Paper 06 Ledger Paper 07 A3 Paper 08 COM10 Envelope 09 Monarch Envelope 10 C5 Envelope 11 DL Envelope 12 Japan B4 Paper 13 Japan B5 Paper 14 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 286
YY = Media Code Media Size 22 Japan B5-R Paper 23 Exec-R Paper 24 A6 Paper 25 Foolscap Paper 26 Japan B6 Paper Paper Jam Messages (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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 287
11 12 13 14 15 Tray Non-specific jam Paper feed 1, paper late jam Paper feed 2, paper late jam Fuser output, paper late jam Fuser output, paper stopped jam Face down output, paper late jam Face down output, paper stopped jam 2-Sided turn around, paper late jam 2-Sided turn around, paper stopped jam - HP 5100 | Printer Job Language - Technical Reference Manual - Page 288
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 number of - HP 5100 | 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 290
Paper jam in the front door area 08 Paper jam in the left door area 09 Paper jam in the right door area Hardware Errors (50xxx) These status codes are sent out when a hardware problem exists and the printer is working well enough to send status messages. Status Code Display String or Code - HP 5100 | Printer Job Language - Technical Reference Manual - Page 291
50017 57.2 FAN FAILURE CALL SERVICE or FAN MOTOR 2 FAILURE 50018 57.2 FAN FAILURE CALL SERVICE or FAN MOTOR 3 FAILURE 50019 57.4 FAN FAILURE CALL SERVICE or FAN MOTOR 4 FAILURE 50020 UPPER INPUT TRAY LIFTER MALFUNCTION 50021 LOWER INPUT TRAY LIFTER MALFUNCTION 50022 58.3 PRINTER ERROR - HP 5100 | Printer Job Language - Technical Reference Manual - Page 292
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 5 FAILURE 50031 FAN - HP 5100 | 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 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 295
by 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 296
of the next print job. Macro A macro is a collection of escape sequences, control codes, and data downloaded to the printer. Its execution can be initiated using a single command. Modified Print Environment Once a printer language, such as PCL, is entered, the current feature settings constitute the - HP 5100 | Printer Job Language - Technical Reference Manual - Page 297
languages. PCL and PostScript commands are each processed by separate firmware. New personalities can be added to some LaserJet printers using means such as cartridges or ROM SIMMs. PJL is not a personality (you cannot print using PJL). See "Personality Switching." Personality Switching The process - HP 5100 | Printer Job Language - Technical Reference Manual - Page 298
printer-specific 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 299
poorly formed job. This manual describes how to create 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 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 300
prepares to accept the next PJL command. Unsolicited Status Unsolicited status (USTATUS) is printer status information sent as a result of certain printer events occurring, such as when the printer runs out of paper, a job finishes printing, or when a certain time period elapses. There are several - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 302
Glossary-10 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 303
10-30 DesignJet printers A-4, A-26 - A-27 DeskJet 1200C printer A-3 DeskJet 1200C/1600C family A-36 device attendance commands 8-1 device status 7-34 DEVICE variable 7-34 DINQUIRE command 7-9 disk lock 5-11 DISKLOCK variable 5-11, 6-13 download G-3 DUPLEX variable 6-13 Index-1 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 304
commands environment variable 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 language variables ESC - HP 5100 | 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 5100 | Printer Job Language - Technical Reference Manual - Page 306
variable 6-17 PaintJet XL300 printer 1-4, A-3 PAPER variable 6-18 PARALLEL variable 6-18 parser errors D-7 parser warnings D-8 parsing errors 2-10 password 5-3 password protection 5-10 PASSWORD variable 5-10, 6-18 PCL 5 Comparison Guide vii PCL-specific variables 6-22 - HP 5100 | Printer Job Language - Technical Reference Manual - Page 307
29,C-2 and performance 4-9 LaserJet IIISi A-28 printer languages other 1-5 PostScript 1-5 switching 3-3 printer model 7-17 printer resources 10-5 printer setup 6-30 printer sharing 10-18 printer sharing boxes 10-21 printer sharing devices 10-28 printer status readback - HP 5100 | Printer Job Language - Technical Reference Manual - Page 308
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 6-11 6-27 G-1 2-2 W well-formed jobs white space - HP 5100 | Printer Job Language - Technical Reference Manual - Page 309
system files and directories. 9-7 Downloads a file to the printer disk. 9-8 Initializes the PJL file system. 9-9 Creates a directory on the PJL file system. 9-10 Queries existence of directories/files, returns file sizes. 9-12 Uploads all or part of a file from the printer to the host. 7-16
Printer Job Language
Technical Reference Manual
Edition 10
E1097
HP Part No. 5021-0380
Printed in U.S.A.
10/97