background image

Printer Job Language
Technical Reference Manual

Edition 10
E1097

HP Part No. 5021-0380
Printed in U.S.A.   10/97

Summary of Contents for 4600 - Color LaserJet Laser Printer

Page 1: ...Printer Job Language Technical Reference Manual Edition 10 E1097 HP Part No 5021 0380 Printed in U S A 10 97 ...

Page 2: ...d trademark of Centronics Data Com puter 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 a registered trade mark of Software Publishing Corporation IBM is a registered trademark and ProPrinter is a trademark of International...

Page 3: ... 2 and 3 and with the programming tips in Chapter 10 In addition users of this manual should be acquainted with the HP LaserJet printer language PCL and with LaserJet printer features Application Developers This PJL Technical Reference Manual provides developers with all the information necessary to add PJL to their applications Examples are used throughout the manual to help developers write effi...

Page 4: ...n 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 command syntax The chapter also explains the formats that PJL commands follow and describes what happens when the printer receives an illegal command Chapter 3 Using PJL This chapter explains ho...

Page 5: ...OFF This chapter also covers the processes involved in job recovery and monitoring the printer control panel Chapter 8 Device Attendance Commands Chapter 8 describes the commands used to display messages on the printer control panel the RDYMSG OPMSG and STMSG commands Chapter 9 PJL File System Commands Chapter 9 describes the commands used for managing a printer based disk drive or other printer b...

Page 6: ...der and shows the format of each command Appendix C Programming Examples Appendix C shows an example of a PJL job in both the generic format used in the rest of this manual and in the C programming language The appendix also includes a batch file that modifies the control panel display message during job processing Appendix D Status Codes This appendix describes the status code information availab...

Page 7: ...ctor 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 information It identifies feature differences between the PCL 5 printers and how the printers implement the commands described in the PCL 5 Printer Language Technical Reference Manual PCL PJ...

Page 8: ...o in text are also in uppercase Items in square brackets indicate optional parameters The brackets themselves are not typed Items in brackets indicate a control code character for example CR 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...

Page 9: ... Variables 2 7 Processing Invalid Commands 2 9 3 Using PJL Overview of How Commands are Used 3 1 PJL Job Requirements 3 2 Some Sample PJL Jobs 3 3 What s Next 3 4 Command Groupings by Functionality 3 5 4 Kernel Commands Universal Exit Language UEL Command 4 2 ENTER Command 4 4 COMMENT Command 4 6 Methods of Printer Language Switching 4 8 5 Job Separation Commands JOB Command 5 2 EOJ Command 5 8 PJ...

Page 10: ...riables 6 23 PostScript Specific Variables 6 27 ESC P Specific Variables 6 28 Setting the Printer to a Desired State 6 30 DEFAULT Command 6 32 INITIALIZE Command 6 36 RESET Command 6 39 SET Command 6 42 7 Status Readback Commands Printer Status Requirements 7 2 Synchronizing Status Readback Responses 7 2 Format of Status Readback Responses 7 3 INQUIRE Command 7 4 DINQUIRE Command 7 9 ECHO Command ...

Page 11: ... 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 Comments A 28 Comments about HP LaserJet Printers A 29 LaserJet Printers With Reduced Function Control Panels A 35 Color LaserJet Printer Comments A 36 HP DeskJet 1200C and 1600C Printer Family Comments...

Page 12: ...rnings 25xxx D 8 PJL Semantic Errors 27xxx D 9 Auto Continuable Conditions 30xxx 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 4000 Series Paper Jam Messages 44xyy D...

Page 13: ...anel functions that previously could not be controlled without pressing control panel keys For the HP printers HP LaserJet HP DeskJet and HP DesignJet that support it PJL allows job level control that cannot be accomplished with PCL PostScript or other printer languages To provide this control PJL functions above the level of PCL and other printer languages providing four major functions Printer l...

Page 14: ... can be used to change control panel settings and modify the message displayed on the control panel or change feature settings in printers without a control panel such as the HP LaserJet 6L printer For those printers supporting more than one printer language applications can print one job using PCL and then print the next job using PostScript or another printer language without any operator interv...

Page 15: ...ords or abbreviated words Learning to use PJL can be accomplished by reading the first three chapters of this manual and following the examples provided in the text Better spooler control PJL allows spoolers improved printer management especially in a network environment Who Should Use PJL PJL is designed to be used by experienced programmers such as software application developers and technical s...

Page 16: ...cular printer On the other hand all PCL 4 printers and all PCL 5 printers not listed above do not support PJL When PJL commands are sent to a non PJL printer the results differ depending on which commands are used and which printer language is used The following paragraphs explain what happens when PCL and PostScript jobs containing PJL commands are sent to non PJL printers Note For best results d...

Page 17: ...n the same page as the PCL job A good portion of the job may be unusable due to unpredictable page breaks and overprinted text on the first page PostScript Jobs When non PJL printers are running in PostScript mode PJL commands cause a PostScript error and prevent the job from printing Pressing the printer s Continue key removes the error message but the error causes the printer to discard the Post...

Page 18: ...1 6 Introduction to PJL ...

Page 19: ...entions used to describe PJL command syntax This 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 ...

Page 20: ...r such as CR for carriage return or a special defined identifier The table on the next page lists the control codes and special identifiers used in the PJL syntax The and symbols themselves are not typed but are replaced with the control codes or special identifiers they represent For example replace FF with the form feed character ASCII 12 This character indicates that the current line of code is...

Page 21: ...haracter ASCII 10 CR Carriage return character ASCII 13 SP Space character ASCII 32 ESC Escape character ASCII 27 FF Form feed character ASCII 12 WS White space a result of one or more SP or HT words Printable characters Roman 8 characters 33 through 255 and WS starting with a printable character D PostScript end of file indication It is not part of PJL but is used to end PostScript examples PJL C...

Page 22: ... Format 4 PJL command command modifier value option name value CR LF This format is used for all of the other PJL commands and is described in more detail below command command is one of the assigned PJL command names such as ENTER RDYMSG or RESET command modifier value The command modifier enables the user to specify what is effected by the command For example with the command modifier LPARM you ...

Page 23: ...lowing are the rules governing the use of PJL commands The PJL prefix PJL always must be uppercase The remainder of the PJL command is not case sensitive For clarity however this manual shows other portions of PJL commands in uppercase to indicate portions that are not variable and that should be typed as shown such as the first three words in the following command PJL STMSG DISPLAY message CR LF ...

Page 24: ...PJL ENTER LANGUAGE personality If white space is shown in any other place in the command it is optional see the examples below If white space is not shown between two portions of a command white space 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 spa...

Page 25: ...48 through 57 Examples of valid alphanumeric variables include LaserJet279 J1953 Examples of invalid alphanumeric variables include 279LaserJet Alphanumeric variables must begin with a letter J 1953 Space characters ASCII 32 are not allowed in alphanumeric variables Numeric variables Any number consisting of digits with one optional decimal point and an optional or sign preceding the first digit O...

Page 26: ...les of valid strings include HT This is a valid string Tabs are allowed in strings Print job 4655 Examples of invalid strings include This is not a valid string Strings cannot contain quotation marks This is also not CR valid CR 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 Las...

Page 27: ...lue portion of the JOB command s NAME option is a string and requires double quotes around the value as shown below In the second example below the JOB command is ignored since the string April Paychecks contains the opening but not the required closing quotes Valid command PJL JOB NAME April Paychecks LF Invalid command PJL JOB NAME April Paychecks LF Syntax warnings and semantic warnings are iss...

Page 28: ... Valid command PJL JOB START 1 LF Invalid command PJL JOB START 1 FINISH HOME LF Note Any errors that occur during PJL parsing can be received by enabling device status as described in Chapter 7 send the PJL USTATUS DEVICE VERBOSE command Appendix D lists the status codes that are received by the host when an invalid command is received and unsolicited verbose device status is enabled 2 10 PJL Com...

Page 29: ...ou with the PJL language Note Each PJL printer supports a different set of PJL commands See Appendix A for printer specific information Overview of How Commands are Used As previously explained PJL resides above other printer languages such as PCL and PostScript PJL commands encapsulate the printer language jobs as shown in Figure 3 1 The Universal Exit Language UEL command allows the printer to a...

Page 30: ...ters are allowed between the UEL command and the PJL prefix The UEL command at the job end must not be followed by anything except the first character of the next job Line Termination a line feed character LF is required to terminate all PJL commands except the UEL command A carriage return can precede the terminating line feed however the carriage return is optional and is ignored No blank comman...

Page 31: ...on Enhancement technology setting ESC 12345X PJL COMMENT Start Job CR LF PJL JOB NAME Sample Job 1 CR LF PJL SET COPIES 3 CR LF PJL SET RET OFF CR LF PJL ENTER LANGUAGE PCL CR LF ESC E PCL job ESC E ESC 12345X PJL CR LF PJL EOJ CR LF ESC 12345X Example Switching Printer Languages This example contains two print jobs one PCL and one PostScript The PCL job prints first then PJL code switches the pri...

Page 32: ...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 Chapter 6 describes commands that enable you to change control panel settings and default configuration settings The commands in ...

Page 33: ...TER Selects a printer language for processing the current job Job Separation Commands Chapter 5 JOB Informs printer of the start of a print job resets the page 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 page count Environment Commands Chapter 6 DEFAULT S...

Page 34: ...ables USTATUS Allows printer to send unsolicited status messages for device status changes end of job status and pages printed Status can be sent at specified time intervals USTATUSOFF Turns off all unsolicited status Device Attendance Commands Chapter 8 RDYMSG Specifies a message that replaces the READY message on the printer control panel Does not affect online state OPMSG Displays specified mes...

Page 35: ...RLIST 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 files and returns file sizes FSUPLOAD Uploads all or part of a file from the printer to the host Using PJL 3 7 ...

Page 36: ...3 8 Using PJL ...

Page 37: ...mmands Together these commands provide a minimum set of tools necessary to implement job control These commands 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 ...

Page 38: ... and relinquishes control to PJL If PJL is active any unprocessed PJL commands are discarded and the printer is ready to accept the next PJL command Note If the printer is processing a PostScript job and TBCP is enabled the UEL command causes the printer to exit PostScript and enable PJL Remember that All jobs must start and end with the UEL command Printers that support I O switching use the UEL ...

Page 39: ...PCL and prints a PCL job Notice how the job begins and ends with the UEL command and how the first UEL command is followed immediately by the PJL prefix ESC 12345X PJL COMMENT PCL Job CR LF PJL ENTER LANGUAGE PCL CR LF ESC E PCL Job ESC E ESC 12345X If the print job was a PostScript job instead the following would be sent ESC 12345X PJL COMMENT PostScript CR LF PJL ENTER LANGUAGE POSTSCRIPT CR LF ...

Page 40: ...ection in Chapter 7 Comments The ENTER command must be positioned immediately before any personality specific data The selected personality begins parsing immediately after the LF that terminates in the ENTER command If the printer 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 print...

Page 41: ...anguage the printer consumes the data stream until it finds the next UEL command and then discards the data The printer also posts an invalid personality clearable warning message W2 INVALID PERS and if enabled returns a status message Note In spooling applications performance is not adversely affected if both the application file and the spooler send the ENTER command Example Using the ENTER Comm...

Page 42: ... ENTER command Comments placed after the ENTER command are considered personality specific data and are printed as determined by the active printer language Like other PJL commands the COMMENT command is terminated by a line feed character You cannot extend comments onto the next line Comments longer than one line require a separate COMMENT command for each line See the following page for an examp...

Page 43: ... D Thiel 10 22 92 CR LF PJL COMMENT CR LF PJL CR LF PJL CR LF PJL JOB NAME Using Comments CR LF PJL CR LF PJL CR LF PJL COMMENT TURNING OFF CR LF PJL COMMENT RESOLUTION CR LF PJL COMMENT ENHANCEMENT CR LF PJL SET RET OFF CR LF PJL CR LF PJL COMMENT ENTERING PCL CR LF PJL ENTER LANGUAGE PCL CR LF ESC E PCL Job ESC E ESC 12345X PJL CR LF PJL EOJ CR LF ESC 12345X Kernel Commands 4 7 ...

Page 44: ...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 4M Plus 4Si 4SiMx 4000 series 5Si 5SiMx 5Si Mopier 4ML 4P 4MP 4V 4MV 5P 6P 6MP DesignJet plotters and printers only If the printer is set to automatically select a printer language see the printer user s manual and the print job does not explic...

Page 45: ...ANGUAGE command to explicitly select the correct printer language This method improves performance and eliminates unintentional printer language switching which can potentially cause data loss Performance is not adversely affected if both the application and the spooler send the ENTER LANGUAGE command Figure 4 1 Switching Printer Languages Kernel Commands 4 9 ...

Page 46: ...4 10 Kernel Commands ...

Page 47: ...an 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 chapter also describes PJL security and job cancellation and their relationship to the JOB command Job Separation Comma...

Page 48: ...series printers the JOB command can be used to display a control panel message while printing the job Note The JOB and EOJ commands always are used in pairs Do not use one without the other Syntax PJL JOB NAME job name START first page END last page PASSWORD number DISPLAY display text CR LF Parameters NAME job name The command option NAME tags the print job with a job name The variable job name c...

Page 49: ...d of job is encountered before the END page printing terminates Additionally if the START page is greater than the END page no pages are printed PASSWORD number The command option PASSWORD allows the application to modify the NVRAM variables if the password matches the active password variable Using PJL the NVRAM variables are modified using either the DEFAULT or INITIALIZE commands some printer l...

Page 50: ...2 ISO 8859 2 character set If LANG is RUSSIAN messages are displayed using Cyrillic ISO 8859 51 For LANG TURKISH the display is in Latin 5 ISO 8859 9 Comments When a JOB command is received the printer does not recognize the UEL command as a PJL job boundary until an EOJ command is received UEL commands within a PJL JOB EOJ command pair are treated as printer language resets they default the print...

Page 51: ... job multiple times using the START and END options to print collated copies Using the SET command or a printer language number of copies command to print multiple copies of selected pages causes unexpected results because the printer 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...

Page 52: ...en the last page is completely printed in the output tray the printer returns unsolicited status information notifying the spooler that the job is complete ESC 12345X PJL CR LF PJL COMMENT Beginning of Job CR LF PJL JOB NAME TF s Monitor Job CR LF PJL USTATUS JOB ON CR LF ESC 12345X PJL CR LF PJL ENTER LANGUAGE POSTSCRIPT CR LF PS ADOBE PostScript print job D ESC 12345X ESC 12345X PJL CR LF PJL EO...

Page 53: ...2345X PJL CR LF PJL JOB NAME Printing Job Sent From Spooler 2 CR LF ESC 12345X PJL CR LF PJL COMMENT Printing a PCL job CR LF PJL JOB NAME Spooler 1 Job CR LF PJL SET RESOLUTION 600 CR LF ESC 12345X PJL CR LF PJL ENTER LANGUAGE PCL CR LF ESC E PCL print job ESC E ESC 12345X ESC 12345X PJL CR LF PJL EOJ NAME End Spooler 1 Job CR LF ESC 12345X ESC 12345X PJL CR LF PJL EOJ NAME End Spooler 2 Job CR L...

Page 54: ...d syntax The job name string need not be the same name used in the JOB command If the NAME option is included the unsolicited end of job status includes the job name if unsolicited job status is enabled Comments The EOJ command marks the end of the job started with the previous JOB command The EOJ command Resets the PJL Current Environment variables to their default NVRAM values as if the printer ...

Page 55: ...n Unsolicited Job Status When the printer 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 status only affects future pages Pages already processed but not yet...

Page 56: ...tialize the file system unless specified in a secure job All types of security are set using the DEFAULT command and queried using DINQUIRE or INQUIRE Password Protection of Default Feature Settings You can use a password to protect the printer s default features by sending the PJL DEFAULT PASSWORD number command specifying a number between 1 and 65 535 the 0 value disables password protection Onc...

Page 57: ... 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 0 by sending the PJL DEFAULT DISKLOCK ON command When locked you cannot write to volume 0 of the file system It becomes read only to prevent actions such as formatting downloading fonts to the disk deleting disk fonts etc If not locked the disk is read write The DIS...

Page 58: ...SSWORD 7654 CR LF PJL DEFAULT PASSWORD 1776 CR LF PJL DINQUIRE PASSWORD CR LF PJL DEFAULT CPLOCK ON CR LF PJL DINQUIRE CPLOCK CR LF PJL EOJ CR LF ESC 12345X To unlock the control panel you would send a job similar to the following job This job specifies the correct password with the JOB command and then uses the DEFAULT command to unlock the control panel ESC 12345X PJL CR LF PJL COMMENT Unlock Co...

Page 59: ...ater to lock the disk ESC 12345X PJL CR LF PJL COMMENT Unlock Volume 0 CR LF PJL JOB PASSWORD 1776 CR LF PJL DEFAULT DISKLOCK OFF CR LF PJL DINQUIRE DISKLOCK CR LF PJL ENTER LANGUAGE POSTSCRIPT CR LF PS ADOBE PostScript print job D ESC 12345X PJL CR LF PJL COMMENT Lock Volume 0 CR LF PJL DEFAULT DISKLOCK ON CR LF PJL DINQUIRE DISKLOCK CR LF PJL EOJ CR LF ESC 12345X Job Separation Commands 5 13 ...

Page 60: ...the printer responds to the PJL JOB command with an PJL USTATUS JOB START response If job ID reporting is enabled by sending PJL SET JOBID ON the printer response includes a job ID number that is associated with the job name supplied in the JOB command For example if the printer receives the following command PJL JOB NAME job name If unsolicited job status and job ID reporting are enabled the prin...

Page 61: ...the following table RESULT Value Description OK The last page of the job was sent to the output bin USER_CANCELED The job was canceled from the control panel HOST_CANCELED The job was canceled from a host system RESOURCE_CANCELED The job was canceled because a resource was not available for example the media was not loaded Using the previous example if the printer receives the following command co...

Page 62: ... name CR LF ID 346 CR LF RESULT USER_CANCELED FF The job name provided in the NAME option of the PJL USTATUS JOB CANCELED response is the current job name if a current job name is available The current job name is the job name retained in the printer at the time the last PJL JOB command was processed The current job name could also have been supplied and or modified using PostScript If a job name ...

Page 63: ...f PJL and printer language commands This chapter describes sets of printer features known as print environments and the PJL commands you use to set printer features to a desired state such as DEFAULT sets the default value for environment variables storing these values in non volatile RAM INITIALIZE resets the current and default PJL variables to the factory default values RESET resets the current...

Page 64: ... complete reset is needed The User Default Environment holds the settings modified with the DEFAULT command or set from the control panel The print environment defaults to the User Default values when various printer conditions occur such as the end of a PJL job a PJL reset condition or when certain PJL commands are executed The PJL Current Environment contains the current PJL feature settings Whe...

Page 65: ...ppropriate menu PJL Current Environment This environment contains the current PJL feature settings Current settings are based on the User Default values and any settings modified using the SET command These values default to the User Default values when a PJL reset condition occurs Modified Print Environment This environment is active as soon as a printer language is entered At that time the PJL C...

Page 66: ...Figure 6 1 How Environments Affect the Print Job 6 4 Environment Commands ...

Page 67: ... with control panels if the printer is currently not processing a job while the feature is changed from the control panel the printer treats the feature change as a PJL reset condition and loads the newly changed value into non volatile RAM 3 If the PJL job uses the SET COPIES 5 command to change the number of copies the PJL Current Environ ment value changes to the selected setting for example 5 ...

Page 68: ...nvironment Setting Factory Default User Default PJL Current Modified Print After PJL INITIALIZE or RESET MENU 1 1 1 1 PJL DEFAULT COPIES 3 1 3 1 1 PJL SET COPIES 4 1 3 4 4 PJL ENTER LANGUAGE PCL LF ESC l5X 1 3 4 5 ESC 12345X 1 3 3 3 Environment Summary As indicated previously each print environment differs in relation to how it is stored how the settings are changed and how the PJL Current Environ...

Page 69: ...ET command These values override feature settings until the next PJL reset condition The INITIALIZE command loads the Factory Default settings into the PJL Current Environment PJL Current Environment settings can be read using the INQUIRE command Modified Print Environment Printer Language Specific Active as soon as printer receives any printer language commands such as PCL or PostScript commands ...

Page 70: ... more powerful They load the User Default values into the PJL Current Environment and also into the Modified Print Environment In this document the term PJL reset condition refers to any of the following events Power on 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 Append...

Page 71: ...vironment settings can be changed using the SET command These settings take effect until the next PJL reset condition The control panel settings User Default Environment can be changed using the control panel or the DEFAULT command In printers without a control panel the default settings are modified with only the DEFAULT command The Modified Print Environment settings are changed using printer la...

Page 72: ...ters containing NVRAM INITIALIZE defaults all environments to the Factory Default settings You can request value settings for printer features using the following two commands INQUIRE requests the PJL Current Environment settings DINQUIRE requests the User Default control panel settings The INQUIRE and DINQUIRE commands are discussed in Chapter 7 Note Whenever possible use printer language command...

Page 73: ... Chapter 7 for more information You can find valuable information about environment variables in the control panel sections of the user s manual for each printer Note Some environment variables can be modified using the DEFAULT command but not the SET command some can be SET but not modified using DEFAULT and some are read only variables Appendix A lists environment variables including read only v...

Page 74: ...laying clearable warnings non fatal error messages cleared by pressing the Continue key If the value is set to JOB then clearable warnings generated by a job are displayed only until the start of the next job If the value is ON then clearable warnings are displayed until the user presses the Continue key JOB ON CONTEXT SWITCH Enables disables the use of implicit personality switching If a job is s...

Page 75: ...be possible to format the disk download fonts delete disk fonts etc If OFF reading and writing are enabled This variable can only be set by a secure job using the DEFAULT command and only queried using the DINQUIRE command ON OFF DUPLEX Sets the default mode to enable disable printing on both sides of the paper OFF enables simplex and ON enables duplex printing ON OFF ECONOMODE Default for the ECO...

Page 76: ...NTRAY3 Returns the auto selection lock status for the optional cassette LaserJet 4 4M 4 4M Plus 4V 4MV or envelope feeder LaserJet 4Si 4SiMx INTRAY3 is a valid variable only if installed If it is not installed the printer returns instead of LOCKED UNLOCKED indicating that the variable is unknown LOCKED UNLOCKED INTRAY1SIZE Returns the size of the paper currently installed in the MP tray LaserJet 4...

Page 77: ...talled in the first optional input tray INTRAY5SIZE is a valid variable only if the optional tray currently is installed If it is not installed the printer returns instead of a tray size indicating the variable is unknown LETTER LEGAL A4 A3 LEDGER JISB4 JISB5 EXECUTIVE CUSTOM INTRAY6SIZE INTRAY7SIZE INTRAY8SIZE Returns the paper size currently installed in these optional input trays INTRAYxSIZE is...

Page 78: ...played if OFF or STOP printer goes offline and waits until On Line or Continue key is pressed ON OFF STOP CONTINUE MANUALFEED Manual feed mode ON OFF MARGINS Sets the margins for the plot The SMALLER and EXTENDED values are used only with roll feed plotters to reduce the amount of waste media between plots NORMAL SMALLER EXTENDED MEDIASOURCE Sets the default location of the input media for the cur...

Page 79: ...omplex images especially HP GL 2 images The variable can be set to any legal value at any time regardless of the current amount of free memory or the currently set resolution When a job is sent if there is not enough memory to print correctly with the current resolution and page protection configuration the system temporarily overrides the resolution and or page protect values to run the job In th...

Page 80: ...M 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 MONARCH B5 CUSTOM JISB4 JISB5 JPOST JPOSTD and others see Appendix A PAPERLENGTH Sets the length of the paper in decipoints 1 720th of an inch 0 to 432000 PAPERWIDTH Sets the width of the paper in decipoints 1 720th of an inch 0 to 4320...

Page 81: ... memory is reconfigured and all downloaded fonts PCL macros and PostScript dictionaries are lost however no I O data is lost Refer to Commands that Affect Printer Memory in Appendix A For the LaserJet 4PJ this variable is assigned on a per port basis see Port Specific Variables For the DeskJet 1200C setting this variable to INSTALLED causes the printer to select the default personality from those ...

Page 82: ...auses the printer to reprint the job after a paper jam The OFF setting disables reprinting AUTO OFF ON RESOLUTION Print resolution in dots per inch When a job is sent if there is not enough memory to run with the current resolution and page protection configuration the system temporarily overrides the resolution and or page protect values to run the job When the resolution is changed memory is rec...

Page 83: ...GHT MEDIUM DARK ON OFF AUTO TIMEOUT Duration of I O timeouts in seconds If the printer waits longer than the timeout value without receiving any data it ends the print job and begins accepting data from other I O ports if any In most cases do not adjust this feature unless the printer times out during normal operation in which case you can try extending the timeout duration See the Timeouts descri...

Page 84: ...on Sample Value Range PERSONALITY Personality for implicit switching implicit switching refers to switching to the default personality without explicitly doing so with the PJL ENTER command Note that the value string PCL ESCP and so on for each installed personality is defined by the personality itself When the personality is changed memory is reconfigured and all downloaded fonts and PCL macros a...

Page 85: ... and SYMSET is SYMSET first then FONTSOURCE then FONTNUMBER PCL Specific Variables Variables Description Sample Value Range FONTNUMBER Font number The valid range for this variable depends on the currently set font source If the font source contains a default marked font the values start at 0 otherwise the values start at 1 The upper limit depends on the number of installed fonts in the font sourc...

Page 86: ...ority default marked font cartridges have the highest priority then SIMMs then internal default marked fonts downloaded soft fonts have the highest priority but there cannot be a default marked soft font NOTE the recommended order for setting FONT NUMBER FONTSOURCE and SYMSET is SYMSET first then FONTSOURCE then FONTNUMBER Also if the currently set font source is S while the currently set font num...

Page 87: ...ighest priority font source containing a default marked font if the currently set font source is C C1 or C2 and the cartridge is removed from the printer if the currently set font source is S and all soft fonts are deleted if the currently set font source is S while the currently set font number is the highest numbered soft font and any soft font is deleted NOTE the recommended order for setting F...

Page 88: ... JIS compatible parsing WIN3 1J is only available in the HP LaserJet 4PJ the HP LaserJet 4LJ Pro and the HP LaserJet 4V 4MV when ESC P is installed On the HP LaserJet 4LC printer if the SYMSET is GB2312 then the default PCL text parsing method is set to GB compatible parsing GB2312 is only available in the HP LaserJet 4LC printer ROMAN8 ISOL1 ISOL2 ISOL5 PC8 PC8DN PC850 PC852 PC8TK WINL1 WINL2 WIN...

Page 89: ... ADOBEMBT ON enabled the printer formats a PostScript page in strips This method does not require as much memory and will not result in loss of detail in images however it is a little slower and can require up to 20 more formatting time With ADOBEMBT set to AUTO the printer will select either full frame depending on the selected page size and the amount of memory available or ADOBE MBT For example...

Page 90: ...et is performed the printer defaults to FONTNUMBER 0 FONTSOURCE I SYMSET ROMAN8 and PERSONALITY AUTO To re establish ESC P as the default personality set ESC P as the default personality using PJL or the control panel in Japan users can send the ESCPDEF PJL file To print Japanese via PCL using the MS Mincho or MS Gothic typefaces set the SYMSET to WIN31J FONTSOURCE to the SIMM slot containing the ...

Page 91: ...acter set used for 1 byte printing Valid values for CHARACTERSET are KANA Use katakana character set EG Use extended graphics character set KANA EG TOPMARGIN Valid values for TOPMARGIN are TM19MM sets top margin to 19 mm TM6MM sets top margin to 6 mm TM19MM TM6MM ANKCONDENSE Enables or disables whether alphanumeric kana ANK characters are printed in condensed mode by default ON OFF FONT Default fo...

Page 92: ...rt PJL and to default the print environment to the User Default Environment settings 2 Use the SET command to modify any currently defined envi ronment variables that cannot be set using the desired printer language For example use PJL to set variables such as RET or PAGE PROTECTION that cannot be set with a printer language then use PCL or another printer language to set the remaining environment...

Page 93: ...FONTSOURCE PTSIZE FONTNUMBER SYMSET PITCH PRTPSERRS PERSONALITY and TIMEOUT do not affect the printed output and gener ally should not be used Of these HP LaserJet 4 and 4M features only RET PAGEPROTECT and RESOLUTION affect the printed output and cannot be set using the printer language in this case PCL These features are set using PJL as the following lines show ESC 12345X PJL CR LF PJL SET RET ...

Page 94: ...red by several users such as networks restrict the use of the DEFAULT command using PJL security mechanisms This recommendation allows a standard print environment to be used and avoids having default features changed by different print jobs Instead if a printer feature must be changed from the default for a particular print job use the SET command In this way jobs can be successfully printed in a...

Page 95: ...ecific variables Valid values for port for the HP LaserJet 4PJ printer are SERIAL and PARALLEL variable value This parameter sets one of the environment variables to the specified value For example the PJL DEFAULT RESOLUTION 600 command sets the default resolution to 600 dots per inch See Appendix A for a list of variables and values for each printer If you need a more detailed description of a pa...

Page 96: ...latile RAM in those printers that have a control panel and NVRAM However these values do not affect the print environment until a PJL reset condition occurs see PJL Reset Conditions for a list of printer events that constitute a PJL reset Consequently if you want the default values to take effect immediately send a RESET command after sending the DEFAULT command s A separate DEFAULT command must b...

Page 97: ...all PCL jobs A RESET command follows the DEFAULT commands so that the PJL Current Environment defaults to the new settings ESC 12345X PJL CR LF PJL COMMENT User Defaults CR LF PJL DEFAULT PAGEPROTECT LETTER CR LF PJL DEFAULT LPARM PCL SYMSET PC8 CR LF PJL RESET CR LF ESC 12345X Related Commands RESET SET JOB EOJ UEL Environment Commands 6 35 ...

Page 98: ...e correct password in the JOB command Note In situations where the printer is shared by several users such as networks restrict the INITIALIZE command This recommendation allows a standard print environment to be used and avoids having default features changed by different print jobs In this way jobs may be successfully printed in any order since they are not affected by settings from previous job...

Page 99: ...iables 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 valid variables or send the INFO VARIABLES command to request this information directly from the printer Env...

Page 100: ...mmand This example initializes the printer ESC 12345X PJL CR LF PJL COMMENT Initialize settings to CR LF PJL COMMENT factory defaults CR LF PJL INITIALIZE CR LF ESC 12345X Related Commands DEFAULT RESET SET 6 38 Environment Commands ...

Page 101: ...Data Generators The RESET command must also be sent after the DEFAULT command if the new default values are to take effect immediately within the same job see the DEFAULT command example on page 6 35 The RESET command resets the following environment variables to their user default values Note Because personalities can be dynamically added to some HP LaserJet printers those printers support more p...

Page 102: ...ONALITY FINISH QTY FORMLINES REPRINT IMAGEADAPT RESOLUTION JOBOFFSET RET MANUALFEED TIMEOUT PCL Specific Variables FONTNUMBER PTSIZE FONTSOURCE SYMSET PITCH PostScript Specific Variables JAMRECOVERY PRTPSERRS ESC P Specific Variables ANKCONDENSE FONT CARRIAGERETURN TOPMARGIN CHARACTERSET 6 40 Environment Commands ...

Page 103: ...COMMENT Resets variables to CR LF PJL COMMENT control panel settings CR LF PJL SET RESOLUTION 600 CR LF PJL SET RET MEDIUM CR LF PJL ENTER LANGUAGE PCL CR LF ESC E PCL job ESC E ESC 12345X PJL CR LF PJL COMMENT Reset to return to CR LF PJL COMMENT control panel settings CR LF PJL RESET CR LF ESC 12345X Related Commands DEFAULT INITIALIZE SET Environment Commands 6 41 ...

Page 104: ... all processed data is printed before memory reconfiguration occurs Refer to Commands that Affect Printer Memory in Appendix A Syntax PJL SET LPARM personality IPARM port variable value CR LF LPARM personality This optional parameter is used to set personality specific environment variables For example you can use this option to set the PCL symbol set PCL is a valid personality other personalities...

Page 105: ...nt Variables section earlier in this chapter Note The permissible environment variables and range of values for each variable may not be the same in all HP LaserJet printer models See Appendix A for a list of valid variables and the range of values for each variable or send the INFO VARIABLES command to request this information directly from the printer Parameters Parameter Variable Names personal...

Page 106: ...mand do not affect the User Default Environment values Feature settings changed with the SET command are valid until the next PJL reset condition A separate SET command must be sent for each environment variable you specify The command may be used to set any environment variable except CPLOCK DISKLOCK PASSWORD and the read only variables See the Environment Variables section of this chapter for a ...

Page 107: ...mand is issued to return all features to their default values ESC 12345X PJL CR LF PJL COMMENT Setting PostScript Job CR LF PJL COMMENT to Desired State CR LF PJL SET RET MEDIUM CR LF PJL SET PAGEPROTECT OFF CR LF PJL SET RESOLUTION 600 CR LF PJL ENTER LANGUAGE POSTSCRIPT CR LF PS ADOBE PostScript print job use POSTSCRIPT code to set all values that are not set using PJL D ESC 12345X PJL CR LF PJL...

Page 108: ...6 46 Environment Commands ...

Page 109: ...ine that your application successfully changed feature settings to your specifications This chapter describes the requirements for using status readback and explains the following status readback commands INQUIRE requests the current value PJL Current Environment for a specified environment variable DINQUIRE requests the default value User Default Environment for a specified environment variable E...

Page 110: ...pon starting up an application should use the ECHO command as described in the ECHO command section later in this chapter If unsolicited status is enabled applications should properly handle receiving unsolicited status responses at any time In particular be aware that applications may receive an unsolicited status response after requesting printer status information The application and printer mu...

Page 111: ...ur application should be able to read all the data between the PJL header and the FF 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 CR LF control codes Future printers may support new keywords in the PJL status response Your application should ignore those lines which it does not understand T...

Page 112: ...ersonalities such as POSTSCRIPT can be added as hardware options Use the PJL INFO CONFIG command to request the personalities installed in a particular printer IPARM port This optional 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 fo...

Page 113: ...ts If your application has status readback capabilities you can request the current setting of any valid environment variable Since the INQUIRE command returns only the value for one feature you can send multiple INQUIRE commands to request information about more than one feature If you need information about many variables the PJL INFO VARIABLES command returns the PJL Current Environment setting...

Page 114: ...M port option must be used when requesting port specific information Example Using INQUIRE to Request Feature Settings This example requests the current print environment settings for RET PAGEPROTECT RESOLUTION PERSONALITY and TIMEOUT The printer response for this example is listed below ESC 12345X PJL CR LF PJL COMMENT Inquiring About CR LF PJL COMMENT Environment Settings CR LF PJL ECHO 02 18 23...

Page 115: ... Language Specific Variables This example requests the PCL settings for pitch point size and symbol set ESC 12345X PJL CR LF PJL COMMENT Requesting PCL Settings CR LF PJL ECHO 12 22 23 9 11 05 92 CR LF PJL INQUIRE LPARM PCL PITCH CR LF PJL INQUIRE LPARM PCL PTSIZE CR LF PJL INQUIRE LPARM PCL SYMSET CR LF ESC 12345X For the HP LaserJet 4 printer the response for this example is shown on the followi...

Page 116: ...FF PJL INQUIRE LPARM PCL PITCH CR LF 10 00 CR LF FF PJL INQUIRE LPARM PCL PTSIZE CR LF 12 00 CR LF FF PJL INQUIRE LPARM PCL SYMSET CR LF ROMAN8 CR LF FF Related Commands DINQUIRE ECHO INFO SET DEFAULT USTATUS 7 8 Status Readback Commands ...

Page 117: ...s such as POSTSCRIPT can be added as hardware options Use the PJL INFO CONFIG command to request the personalities installed in a particular printer IPARM port This optional 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 ...

Page 118: ...if you sent the DINQUIRE LOWTONER command the returned value is either ON or OFF or CONTINUE STOP indicating whether or not you want the printer to stay online when the toner is low See Appendix A for valid variable values Parameters Parameter Variable Names personality PCL ESCP POSTSCRIPT other personalities may be supported port PARALLEL Supported on HP LaserJet 4PJ only SERIAL variable Valid va...

Page 119: ...he variable the response is PJL DINQUIRE LPARM personality IPARM port variable CR LF CR LF FF If a printer language specific variable is not available because that printer language is not installed or is invalid or if a port specific variable is not available because that port is not supported the command will return an appropriate error code if USTATUS DEVICE VERBOSE is enabled Note The LPARM per...

Page 120: ...ng Default Settings CR LF PJL ECHO 08 10 33 7 04 17 93 CR LF PJL DINQUIRE RESOLUTION CR LF PJL DINQUIRE PERSONALITY CR LF ESC 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 CR LF FF PJL DINQUIRE RESOLUTION CR LF 600 CR LF FF PJL DINQUIRE PERSONALITY CR LF AUTO CR LF FF 7 12 Status Readbac...

Page 121: ...gs CR LF PJL ECHO 11 03 05 9 07 04 92 CR LF PJL DINQUIRE LPARM PCL PITCH CR LF PJL DINQUIRE LPARM PCL SYMSET CR LF ESC 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 CR LF FF PJL DINQUIRE LPARM PCL PITCH CR LF 10 00 CR LF FF PJL DINQUIRE LPARM PCL SYMSET CR LF ROMAN8 CR LF FF Related Commands INQUIRE E...

Page 122: ...meter should be unique such as the time indicated by the real time clock at the moment the ECHO command is issued A unique message eliminates the possibility of duplicate messages being echoed by different applications The maximum length for words 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...

Page 123: ...ay receive unsolicited status information at any time Example Using the ECHO Command This example sends the Testing 68394 10 57 06 4 message using the ECHO command After the application receives the Testing 68394 response all succeeding solicited messages received during the current job are those requested by the current application ESC 12345X PJL CR LF PJL COMMENT Using the ECHO command CR LF PJL...

Page 124: ...ters Category Description ID Provides the printer model number such as LaserJet 4 CONFIG Provides configuration information such as how many and which paper sizes are available in this printer FILESYS Returns PJL file system information MEMORY Identifies amount of memory available PAGECOUNT Returns the number of pages printed by the print engine STATUS Provides the current printer status VARIABLES...

Page 125: ...to identify the type of printer used For the HP LaserJet 4 printer the INFO ID command prompts the printer to return the following response PJL INFO ID CR LF LASERJET 4 CR LF FF Note To maintain compatibility with future printers applications should not use the INFO ID command to identify printer features Instead the more detailed INFO CONFIG command should be used see the following discussion on ...

Page 126: ...of the returned information is PJL INFO CONFIG CR LF feature value value feature information CR LF HT returned option attribute CR LF feature value value feature information CR LF HT returned option attribute CR LF FF The returned information can list multiple features with the format of the feature information enclosed in brackets For value feature information the square brackets in the format in...

Page 127: ...he returned data such as TIMED describing a type of USTATUS attribute alphanumeric or numeric value or string Adds more information about a particular returned option such as INTRAY1 MP indicating that tray 1 is a multipurpose MP tray Example Using the INFO CONFIG Command This example requests the current configuration information The printer a HP LaserJet 4 printer in this case responds with a li...

Page 128: ...L INFO CONFIG CR LF PJL ECHO 09 51 48 3 12 24 92 CR LF PJL INFO CONFIG CR LF ESC 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 ...

Page 129: ...RS 9 ENUMERATED CR LF LETTER CR LF LEGAL CR LF A4 CR LF EXECUTIVE CR LF MONARCH CR LF COM10 CR LF DL CR LF C5 CR LF B5 CR LF LANGUAGES 2 ENUMERATED CR LF PCL CR LF POSTSCRIPT CR LF USTATUS 4 ENUMERATED CR LF DEVICE CR LF JOB CR LF PAGE CR LF TIMED CR LF FONT CARTRIDGE SLOTS 1 ENUMERATED CR LF CARTRIDGE CR LF MEMORY 2097152 CR LF DISPLAY LINES 1 CR LF DISPLAY CHARACTER SIZE 16 CR LF FF Status Readb...

Page 130: ... example is shown below Other printers may respond differently If the mass storage device is not present but the file system firmware is or if there are not initialized volumes the reply will be as follows A printer with no file system firmware will treat this command as a PJL INFO command with an unknown category and will respond with the reply PJL INFO FILESYS CR LF CR LF FF PJL INFO FILESYS 2 T...

Page 131: ...ee Space command ESC s1M See the PCL 5 Printer Language Technical Reference Manual for more information about PCL status readback Example Using the INFO MEMORY Command ESC 12345X PJL CR LF PJL COMMENT Using PJL INFO MEMORY CR LF PJL ECHO 14 51 48 3 12 18 92 CR LF PJL INFO MEMORY CR LF ESC 12345X A sample HP LaserJet 4 printer response for this example is shown below Other printers may respond diff...

Page 132: ... PAGECOUNT Command ESC 12345X PJL CR LF PJL COMMENT Using PJL INFO PAGECOUNT CR LF PJL ECHO 06 53 29 3 1 25 93 CR LF PJL INFO PAGECOUNT CR LF ESC 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 CR LF PAGECOUNT 183933 CR LF FF 7 24 Status Readback Commands ...

Page 133: ...ich correspond to a control panel message are displayed on the control panel using the JIS X0201 76 character set Example Using the INFO STATUS Command This example requests status information The printer in this case a HP LaserJet 4 printer returns a status code 10001 the message displayed on the control panel 00 READY and the online status ONLINE TRUE ESC 12345X PJL CR LF PJL COMMENT Using PJL I...

Page 134: ...ne portion of the returned information is a list of font sources see the following example This list varies depending on which font sources such as ROM SIMMs and cartridges are installed Only those font sources which are installed and contain valid fonts appear on the list For example the S option appears only if one or more permanent soft fonts currently exist The FONTNUMBER range lists the range...

Page 135: ... 600 ESC 12345X PJL CR LF PJL COMMENT Using the PJL INFO CR LF PJL COMMENT VARIABLES Command CR LF PJL ECHO 07 22 03 8 12 03 92 CR LF PJL INFO VARIABLES CR LF ESC 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 CR LF FF PJL INFO VARIABLES COPIES 1 2 RANGE 1 999 PAPER LETTER 9 EN...

Page 136: ...TED 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 CLEARABLEWARNINGS ON 2 ENUMERATED READONLY JOB ON AUTOCONT OFF 2 ENUMERATED READONLY OFF ON 7 28 Status Readback Commands ...

Page 137: ...H C5 DL B5 INTRAY2SIZE LETTER 4 ENUMERATED READONLY LETTER LEGAL A4 EXECUTIVE INTRAY3SIZE LETTER 4 ENUMERATED READONLY LETTER LEGAL A4 EXECUTIVE INTRAY4SIZE COM10 5 ENUMERATED READONLY COM10 MONARCH C5 DL B5 LPARM PCL FONTSOURCE I 1 ENUMERATED I LPARM PCL FONTNUMBER 0 2 RANGE 0 50 LPARM PCL PITCH 10 00 2 RANGE 0 44 99 99 Status Readback Commands 7 29 ...

Page 138: ...licited status see the USTATUS Command section later in this chapter Example Using the INFO USTATUS Command This example requests information about the unsolicited status variables These are variables that 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 and TIMED The current setting for each type of unso...

Page 139: ...OFF 3 ENUMERATED CR LF OFF CR LF ON CR LF VERBOSE CR LF JOB OFF 2 ENUMERATED CR LF OFF CR LF ON CR LF PAGE OFF 2 ENUMERATED CR LF OFF CR LF ON CR LF TIMED 0 2 RANGE CR LF 5 CR LF 300 CR LF FF Related Commands INQUIRE ECHO SET DEFAULT USTATUS Status Readback Commands 7 31 ...

Page 140: ...tus changes when a JOB command is encoun tered 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 at a specified time interval Note Unlike solicited status the USTATUS command does not have an immediate response Instead unsolicited status messages are sent only when the printer status changes Synta...

Page 141: ...ables unsolicited device status JOB ON Enables unsolicited job status so that the printer sends a status message every time a job begins ends or is canceled OFF Disables unsolicited job status PAGE ON Enables unsolicited page status so that the printer sends a status message every time a page reaches the output tray OFF Disables unsolicited page status TIMED 5 to 300 Enables timed unsolicited stat...

Page 142: ...an be turned off using the USTATUSOFF command DEVICE Variable The USTATUS DEVICE value command prompts the printer to send status messages when device changes occur When DEVICE ON the printer 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 t...

Page 143: ...goes offline when the output bin is full 20 20 000 to 20 999 This type of message denotes a PJL parser error When this type of error occurs the entire command line is ignored 25 25 000 to 25 999 These messages are PJL parser errors When this type of message occurs only part of the PJL command is ignored instead of the whole command as happens with 20 xxx errors 27 27 000 to 27 999 These messages a...

Page 144: ...with the correct paper size The printer is offline under these conditions 42 and 44 42 000 to 44 999 These status codes indicate paper jam errors and their associated error codes and control panel display strings 43 43 000 to 43 999 Messages indicating PJL error codes and corresponding control panel display strings for optional external paper handling devices 50 50 000 to 50 999 Hardware errors Ex...

Page 145: ...d and the printer receives a JOB command it resets the page count associated with the unsolicited page status and returns a job status message Note Resetting the page count associated with unsolicited page status affects only future pages Pages that are already processed but not yet printed are not affected The PAGES number of pages information associated with unsolicited EOJ status indicates the ...

Page 146: ... job The indented lines indicate a job sent to the spooler from another application ESC 12345X PJL CR LF PJL USTATUS JOB ON CR LF PJL JOB NAME JOB 14993 CR LF ESC 12345X PJL CR LF PJL ENTER LANGUAGE PCL CR LF ESC E PCL Job ESC E ESC 12345X ESC 12345X PJL CR LF PJL EOJ NAME JOB 14993 CR LF ESC 12345X A sample unsolicited HP LaserJet 4 printer response for this example is as shown here For other pri...

Page 147: ...not arrive at the host until after the JOB status message of the second job PAGE Variable The USTATUS PAGE ON command is used to notify the application that a particular page finished printing This is useful for applications such as spoolers where it is beneficial to monitor the job on a page by page basis For job recovery described later in this chapter it is helpful to know which pages are compl...

Page 148: ...CR LF PJL USTATUS PAGE ON CR LF PJL JOB CR LF PJL ENTER LANGUAGE PCL CR LF ESC E Four page PCL Job ESC E ESC 12345X PJL CR LF PJL EOJ CR LF ESC 12345X A sample HP LaserJet 4 printer response for unsolicited page status is shown here Other PJL printer responses may vary PJL USTATUS PAGE CR LF 1 CR LF FF PJL USTATUS PAGE CR LF 2 CR LF FF PJL USTATUS PAGE CR LF 3 CR LF FF PJL USTATUS PAGE CR LF 4 CR ...

Page 149: ...his use 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 The DISPLAY portion of the returned status indicates the message currently displayed on the control panel The ONLINE portion indicates whether the printer is online or offline Note The string portion of the DISPLAY string status message is localized ...

Page 150: ... PJL CR LF PJL USTATUS TIMED 30 CR LF ESC 12345X A sample HP LaserJet 4 printer response is shown below Other PJL printers may respond differently PJL USTATUS TIMED CR LF CODE 10001 CR LF DISPLAY 00 READY CR LF ONLINE TRUE CR LF FF Related Commands INFO ECHO INQUIRE DINQUIRE SET USTATUSOFF 7 42 Status Readback Commands ...

Page 151: ...FF CR LF Parameters There are no parameters for this command Example Using the USTATUSOFF Command This example uses the USTATUSOFF command to disable all unsolicited status before specifying the desired unsolicited status which in this case is DEVICE status ESC 12345X PJL CR LF PJL USTATUSOFF CR LF PJL USTATUS DEVICE ON CR LF ESC 12345X Related Commands USTATUS Status Readback Commands 7 43 ...

Page 152: ...PAGE commands are 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 page Note The USTATUS JOB command is not strictly required for job recovery However it is useful for tracking jobs by name not just page number The following example uses the command to show the difference between the page count ...

Page 153: ...2345X PJL CR LF PJL COMMENT Recovering Crashed Job CR LF PJL USTATUS JOB ON CR LF PJL USTATUS PAGE ON CR LF PJL JOB NAME 2nd Try START 26 CR LF PJL ENTER LANGUAGE PCL CR LF ESC E Same 100 page PCL job ESC E ESC 12345X PJL CR LF PJL EOJ NAME End of Recovery CR LF ESC 12345X In the job above the first unsolicited page status message is sent after page 26 lands in the output tray For a HP LaserJet 4 ...

Page 154: ...ery CR LF PAGES 75 CR LF FF 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 command was received and that 75 pages were printed in the recovery job 7 46 Status Readback Commands ...

Page 155: ...00 READY message on the printer control panel The RDYMSG command does not affect the online state OPMSG displays a specified operator message on the printer control panel and takes the printer offline STMSG displays the specified status message on the printer control panel and takes the printer offline It returns the name of the key that the operator pressed to put the printer back online Note Som...

Page 156: ...son printing the current job or other pertinent information while a job is printing It also can be used in network environments to display the name of the printer The command PJL RDYMSG DISPLAY or performing a Menu Reset 09 Menu Reset returns the display to the normal ready message Note This command replaces the lowest priority 00 READY message If any higher priority message is displayed for examp...

Page 157: ...d message is limited to 1 line of 16 characters Example Using the RDYMSG Command This example simulates a spooler that prints a job from another application The spooler uses the RDYMSG command to display the name of the person printing the job while the job is printing After the job is printed the spooler restores the normal ready message The indented command lines indicate those sent by the print...

Page 158: ... two display characters blink To avoid blinking begin the message with two blank spaces Some HP LaserJet printers may have a different limit for the number of display lines and number of display characters 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 LaserJe...

Page 159: ...anel and halts processing until the operator presses the On Line or Continue key Once one 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 ESC 12345X PJL CR LF PJL JOB NAME JOB 111753 CR LF PJL OPMSG DISPLAY LOAD LETTERHEAD CR LF PJL CR LF PJL ENTER LANGUAGE PCL CR LF ESC E This is...

Page 160: ...iable message can be any combination of printable characters except quotation marks character 34 and spaces or horizontal tab characters with a limit of 1 line of 16 characters see comments below The message variable is a string and must be enclosed in double quotes as shown in the command syntax key This variable is returned with the status response after the operator presses one of three control...

Page 161: ...sed Some HP LaserJet printers may have a different limit for the number of display lines and number of display characters 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 disp...

Page 162: ...The returned message if the operator presses the Continue key is PJL STMSG DISPLAY LOAD FORM 1040 CONTINUE FF Related Commands OPMSG RDYMSG INFO CONFIG 8 8 Device Attendance Commands ...

Page 163: ...lash memory However users in some environments might not have a mass storage management application The PJL file system commands described in this chapter are provided so as to make use of printer based mass storage when a mass storage management application is not available The PJL file system commands described in this chapter are used the same on both types of printer mass storage printer disk ...

Page 164: ...ee character extension The pathname may contain up to 100 Roman 8 characters per item in the range 01 through 255 but the first and last characters must not be a space character character 32 or character 229 Each item is delimited by the backslash character If more than one backslash character is used such as the file system treats it as one backslash The maximum number of characters in a pathname...

Page 165: ...ory 0 DIR1 Prefix Suffix Prefix Suffix file in DIR1 directory binary data This is the binary file data to be appended or used to create a new file Example Using the FSAPPEND Command This example demonstrates using the FSAPPEND command to append a file PJL FSAPPEND FORMAT BINARY NAME 0 pcl macros OurLogo SIZE 35 CR LF 35 bytes of macro data ESC 12345X Related Commands FSDELETE FSDIRLIST FSDOWNLOAD ...

Page 166: ...DIR CR LF FF If the pathname is invalid PJL FSDIRLIST NAME pathname CR LF FILEERROR number CR LF FF Parameters NAME pathname for the FSDIRLIST command pathname must be a directory not a file For a complete description of the NAME parameter see the NAME pathname description on pages 9 2 and 9 3 ENTRY integer Every file or subdirectory that has been created on the file system is considered an entry ...

Page 167: ...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 See PJL File System Errors 32xxx in Appendix D for a complete list of error codes Example Using the FSDIRLIST Command This example demonstrates using the FSDIRLIST command to return a directory list from...

Page 168: ...pages 9 2 and 9 3 Example Using the FSDELETE Command This example demonstrates using the FSDELETE command to delete a file from the printer s file system PJL FSDELETE NAME 0 pcl macros Name HP Logo Application ABC Manufacturer XYZ Version 7 9 Date 8 17 94 CR LF Related Commands FSAPPEND FSDIRLIST FSDOWNLOAD FSINIT FSMKDIR FSQUERY FSUPLOAD INFO FILESYS Parameter Functional Range Default NAME pathna...

Page 169: ... a complete description of the NAME parameter see the NAME pathname description on pages 9 2 9 3 binary data This is the binary file data to be downloaded such as font files and macro data 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 A...

Page 170: ... the LaserJet 4000 printer VOLUME pathname The variable pathname must be a volume Example Using the FSINIT Command This example demonstrates using the FSINIT command to initialize volume 0 of the printer file system PJL FSINIT VOLUME 0 CR LF Related Commands FSAPPEND FSDELETE FSDIRLIST FSDOWNLOAD FSMKDIR FSQUERY FSUPLOAD INFO FILESYS Parameter Functional Range Default VOLUME pathname 0 or 1 N A 9 ...

Page 171: ...e the NAME pathname description on pages 9 2 and 9 3 Example Using the FSMKDIR Command The following two command lines demonstrate using the FSMKDIR command to create directories on the printer file system PJL FSMKDIR NAME 0 pcl CR LF PJL FSMKDIR NAME 0 pcl macros CR LF Related Commands FSAPPEND FSDELETE FSDIRLIST FSDOWNLOAD FSINIT FSQUERY FSUPLOAD INFO FILESYS Parameter Functional Range Default N...

Page 172: ...mber CR LF FF Parameters NAME pathname For a complete description of the NAME parameter see the NAME pathname description on pages 9 2 and 9 3 Printer Responses The printer response indicates the number of bytes in the queried files If the pathname is invalid a FILEERROR number is returned The returned number is equivalent to the PJL File System errors 32xxx listed in Appendix D only without the 3...

Page 173: ...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 CR LF PJL FSQUERY NAME 0 pcl macro CR LF Related Commands FSAPPEND FSDELETE FSDIRLIST FSDOWNLOAD FSINIT FSMKDIR FSUPLOAD INFO FILESYS PJL File System Commands 9 11 ...

Page 174: ...JL FSUPLOAD NAME pathname CR LF FILEERROR number CR LF FF Parameters NAME pathname For the FSUPLOAD command the variable pathname must be a file name not a directory For a complete description of the NAME parameter see NAME pathname on pages 9 2 to 9 3 OFFSET integer The offset variable specifies the offset from the beginning of the file indicating the point to begin uploading Parameter Functional...

Page 175: ...ted 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 NAME variable See PJL File System Errors 32xxx in Appendix D for a complete list of error codes Example Using the FSUPLOAD Command This example demonstrates using the FSUPLOAD command t...

Page 176: ...acro ESC 12345X ESC 12345X PJL ENTER LANGUAGE PCL CR LF ESC f1Y ESC n8W a_macro ESC f4X ESC E ESC 12345X PJL DEFAULT DISKLOCK ON CR LF Note The symbol indicates that this text string is 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 ESC 12345X This PJL command causes the printer to exit the active prin...

Page 177: ...plicitly enters the PCL language Sixth Command ESC f1Y The Macro ID command sets the current macro ID to 1 Seventh Command ESC n8W a_macro The Alphanumeric ID command associates the current macro ID to the string ID which is a_macro In this example the string name must be the same filename used with the FSDOWNLOAD command in the fourth command sequence The Alphanumeric ID command needs to know the...

Page 178: ... printer to print and eject the page It also restores the User Default Environment and deletes temporary fonts and macros Tenth Command ESC 12345X This PJL command causes the printer to exit the active printer language and return control to PJL Eleventh Command PJL DEFAULT DISKLOCK ON CR LF This command sets the disk or flash memory to read only In this state it is not possible to format the disk ...

Page 179: ...ing either the Disk Directory page or the Flash Directory page in the Test menu Note A file system command sequence can be typed in a text editor and copied to the printer but there are some places where binary data needs to be sent This is not a problem as long as there is an ASCII character equivalent to the necessary decimal value For example the decimal value for Escape is 027 There is an ASCI...

Page 180: ...9 18 PJL File System Commands ...

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 applications into three general types and provides guidance and examples for each type The remainder of the chapte...

Page 182: ...ntrol print jobs generated by other applications Many applications provide more than one of the services listed above For example a Spooler can be used to monitor the printer and provide control over printer 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 servi...

Page 183: ... only use PJL commands when a corresponding command does not exist in the printer language This is recommended so that the application does not override feature settings and adversely affect future jobs To change feature settings for the duration of the job or until the next PJL reset condition use the SET command Do not use the PJL INITIALIZE command for Print Data Generators Commands Used by Pri...

Page 184: ...ENTER command It is the most common job format for Print Data Generators ESC 12345X PJL CR LF PJL ENTER LANGUAGE POSTSCRIPT CR LF PS ADOBE PostScript code D ESC 12345X Jobs That Set Printer Features This example specifies two feature settings that cannot be selected using the specified printer language ESC 12345X PJL CR LF PJL SET RET LIGHT CR LF PJL SET RESOLUTION 600 CR LF PJL ENTER LANGUAGE PCL...

Page 185: ...t control of the printer 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 to monitor printer status Applications can continuously monitor the printer for c...

Page 186: ...E In shared environments this feature should be used by system administrators only Printer utilities that are equipped for bi directional communications can request printer status using the following commands INQUIRE To request the current setting for a particular feature DINQUIRE To request the default setting for a particular feature INFO To find the printer model printer configuration memory av...

Page 187: ...er application that cannot select PJL features In this example the DEFAULT command is used instead of the SET command so that changes apply to all future print jobs Note Since this application uses the DEFAULT command it changes the User Default Environment and control panel settings In multi user situations it should be used only by printer administrators to avoid unexpected results by other user...

Page 188: ...s the RESET command is issued before the job closes ESC 12345X PJL CR LF PJL COMMENT Requesting features CR LF PJL ECHO Job 53 11 17 92 08 52 03 7 CR LF application discards any printer status readback information received before the ECHO response PJL INQUIRE RET CR LF PJL INQUIRE PAGEPROTECT CR LF PJL INQUIRE RESOLUTION CR LF ESC 12345X application receives status readback from the INQUIRE comman...

Page 189: ...Monitor Printing Status The following example enables unsolicited printer 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 ESC 12345X PJL CR LF PJL ECHO Acme 17 8 28 92 5 39 02 9 CR LF PJL COMMENT Turn on unsolicited device status CR LF PJL USTATUS DEVICE ON CR LF ESC 12345X Pr...

Page 190: ... HP LaserJet 5 5M 5Si 5SiMx 5Si Mopier only The spooler can cancel the print job using the PML printer language or a user can cancel the job using the control panel If unsolicited job status is enabled the printer notifies the application that the job has indeed been canceled Monitor job progress If you want the spooler to monitor the page by page progress of a job enable the page status with the ...

Page 191: ... add explanations within PJL code DEFAULT To modify the default value of a printer feature NOTE In shared environments this feature should be used by system administrators only ENTER Use if responsible for printer language selection or banner printing JOB EOJ Use to monitor printing status name jobs print portions of a job mark job boundaries OPMSG To display a customized message and take the prin...

Page 192: ...otification as each page lands in the output tray USTATUS JOB To monitor job progress Sends status message when job has completed Spooler Examples The following examples show jobs 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 pri...

Page 193: ...ion CR LF PJL ECHO 12 07 54 5 07 26 92 CR LF application discards printer status readback data received before ECHO response PJL USTATUS JOB ON CR LF PJL USTATUS PAGE ON CR LF PJL JOB NAME Monitoring Job CR LF ESC 12345X PJL CR LF PJL ENTER LANGUAGE PCL CR LF ESC E PCL print data ESC E ESC 12345X ESC 12345X PJL CR LF PJL EOJ NAME End of Monitor Job CR LF PJL USTATUS JOB OFF CR LF PJL USTATUS PAGE ...

Page 194: ...nted the host receives unsolicited page and job status as follows assuming a 38 page job PJL USTATUS PAGE 38 FF PJL USTATUS JOB END NAME End of Monitor Job PAGES 38 FF The unsolicited page status indicates that the 38th page printed The job status indicates that the EOJ command was received and that 38 pages were printed The page count is incremented by one for each simplex page formatted and by t...

Page 195: ... Print Selected Pages The following job prints 1 copy of pages 5 through 8 of the print job The START command tells the printer to process pages in non printing mode until the specified page in this case page 5 The END command specifies the last page to print If the END command is not included the job prints from page 5 through the end of the document If you need to print more than one copy of eac...

Page 196: ... language The following 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 ESC 12345X PJL CR LF PJL COMMENT Spooling Job with Banner CR LF PJL JOB NAME Spooler 1 CR LF PJL ENTER LANGUAGE PCL CR LF ESC E Banner Page Data ESC E ESC 12345X ESC 12345X PJL CR LF PJL ENTER LANG...

Page 197: ...e 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 ESC 12345X PJL CR LF PJL JOB NAME Spooler 2 CR LF PJL ENTER LANGUAGE PCL CR LF ESC E Banner Page Data ESC E ESC 12345X PCL or PostScript print data ESC 12345X PJL CR LF PJL EOJ CR LF ESC 12345X Programmi...

Page 198: ...per Common printing system components include the host computer applications on the host computer the operating system used by the host computer the cable connecting the host computer to the printer and the printer Other printing system components can include printer sharing boxes network servers spoolers running on network servers and I O cards installed in the printer For printer status readback...

Page 199: ...d could sent a network packet to an application on the client that supplied the job notifying the user the job had been printed Printer status readback allows many printer system components to solve user s needs Figure 10 1 Sample Printing System Components Programming Tips 10 19 ...

Page 200: ...r In this example the network clients spool print jobs to a network server they can not interact directly with the printer Given the printing system as shown in Figure 10 1 not all of the printing system 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 ...

Page 201: ... sharing boxes is to forward all data received from the printer to all attached host computers and let the applications on each host computer ignore any impertinent data as described in the Handling Unexpected Printer Responses section in this chapter The printer in this example is also attached directly to a network via a network interface card installed into the printer s MIO interface Network s...

Page 202: ...twork clients 6 and 7 cannot receive any printer responses due to the underlying network operating system However the printer sharing box the I O card installed in the printer and spoolers running on network servers 4 and 5 can all query the printer and expect a printer response although the response will not be immediate if the printer is processing a print job from a different I O interface Prin...

Page 203: ...t send soft fonts if the printer already has the font then if printer status readback is unavailable the application should assume worst case i e the font is not in the printer when generating print jobs In summary the application should be designed to take advantage of printer status readback if available but still function if it is unavailable Determining If Printer Status Readback is Available ...

Page 204: ...The common choices are 1 printer busy continue retrying until printer status readback is available 2 printer busy on a long printer job temporarily do not use printer status readback or 3 printer status readback unavailable due to host printer configuration do not use printer status readback After obtaining the user s response the application can continue as appropriate Printer Status Readback and...

Page 205: ...command at a later time or 3 stop trying to send the command making sure the next command the application sends to the printer is the UEL command This is done so the parser inside the printer properly recognizes all commands following the previously sent partial UEL command The printer will properly recognize the UEL command even if the command appears after a partial UEL command For example assum...

Page 206: ...and the application should send 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 a query to the printer but because the user turned off the host computer t...

Page 207: ...e responses until the host 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 Printer Status Readback for the exact printer to host buffer overflow message sent by...

Page 208: ...r as shown in Figure 10 1 do not have sufficient information to allow the printer sharing device to properly route printer status readback responses to the host computer the one running the application that queried the printer In particular unsolicited PJL status is difficult for the printer sharing device to properly route since the unsolicited status response may be received by the printer shari...

Page 209: ... interface All solicited printer re sponses received after the PJL ECHO response should be sent to the currently active I O interface The printer sharing device should consume the PJL ECHO response which was a result of the PJL ECHO command injected by the printer sharing device Applications that use unsolicited PJL device job page or timed status need to work properly with printer sharing devices...

Page 210: ...uery list Also if the application can not proceed until the response is received then a watchdog timer should be set so that some event will be guaranteed to occur in case the application does not receive a timely response Whenever a solicited response is received the response should be compared to the list of outstanding solicited queries If there is no match then the solicited response should be...

Page 211: ...ter I O Switching section 2 Check status readback availability as described in the Determining if Printer Status Readback is Available section 3 Synchronize with the printer to host data stream as de scribed in the Old Printer Status Readback Responses section 4 Do not have more than five outstanding queries before ac cepting printer status readback responses This prevents response data loss as de...

Page 212: ...10 32 Programming Tips ...

Page 213: ... list of all the PJL commands showing which commands are supported by each PJL printer Also a list of environment variables shows the range of environment variables supported by each printer The final portion of the appendix describes some important product specific information regarding the different Hewlett Packard printers Feature Support A 1 ...

Page 214: ... FSQUERY FSUPLOAD ns ns ns ns ns ns ns ns Mopier only ns FSDELETE ns ns ns ns ns ns ns ns Y Y FSDOWNLOAD ns ns ns ns ns ns ns ns Y Y FSINIT ns ns ns ns ns ns ns ns Y Y FSMKDIR ns ns ns ns ns ns ns ns Y Y INFO ns Y1 Y Y1 Y Y Y Y Y Y INITIALIZE ns Y Y Y Y Y Y Y Y Y INQUIRE ns Y Y Y Y Y Y Y Y Y JOB ns Y Y ns Y Y Y Y Y Y OPMSG ns Y Y ns ns Y Y NO Y Y PJL Y Y Y Y Y Y Y Y Y Y RDYMSG ns Y Y ns ns Y Y NO ...

Page 215: ...OWNLOAD Y ns ns ns ns FSINIT Y ns ns ns ns FSMKDIR Y ns ns ns ns INFO Y Y1 ns ns ns INITIALIZE Y ns ns ns ns INQUIRE Y RET only ns ns ns JOB Y NAME only ns Y2 ns OPMSG Y ns ns ns ns PJL Y Y Y Y Y RDYMSG Y ns ns ns ns RESET Y ns ns Y ns SET Y RET only ns Y ns STMSG Y ns ns ns ns UEL Y Y Y Y Y USTATUS Y Y3 ns ns ns USTATUSOFF Y Y ns ns ns 1 Supports only these INFO categories CONFIG ID PAGECOUNT UST...

Page 216: ...G ns ns ns ns ns PJL ns ns ns ns ns RDYMSG ns ns ns ns ns RESET ns Y ns ns Y SET ns Y3 ns ns Y3 STMSG ns ns ns ns ns UEL Y Y Y Y Y USTATUS 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 2500CP also support PostScript when it is installed 2 All DesignJets except the 600 and 650C...

Page 217: ...re 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 indicate the feature is supported and not supported respectively The letters RO indicate it is supported as a read only variable Factory default values are shown in parentheses Printers that do not support the SET or DEFAULT commands such as the LaserJet IIISi printer do not support any ...

Page 218: ...ns ns ns Y ns ns ns CPLOCK 2 OFF ns Y Y Y Y ns ns ns ON ns Y Y Y Y ns ns ns MINIMUM ns ns ns ns Y ns ns ns MODERATE ns ns ns ns Y ns ns ns MAXIMUM ns ns ns ns Y ns ns ns DENSITY 1 1 to 5 3 RO RO ns ns Y1 Y1 Y1 Y1 DISKLOCK 2 OFF ns ns Y ns Y ns ns ns ON ns ns Y ns Y ns ns ns DUPLEX OFF ns Y ns Y Y ns ns ns ON ns Y ns Y Y ns ns ns ECONOMODE OFF ns Y Y ns Y Y Y Y ON ns Y Y ns Y Y Y Y FINISH NONE ns n...

Page 219: ...Y Y ns MINIMUM ns ns ns ns ns ns ns ns MODERATE ns ns ns ns ns ns ns ns MAXIMUM ns ns ns ns ns ns ns ns DENSITY 1 1 to 5 3 Y1 Y1 Y1 Y2 Y2 Y RO ns DISKLOCK 2 OFF ns ns ns ns ns Y Y ns ON ns ns ns ns ns Y Y ns DUPLEX OFF ns ns ns ns ns Y Y ns ON ns ns ns ns ns Y Y ns ECONOMODE OFF Y Y Y Y Y Y Y ns ON Y Y Y Y Y Y Y ns FINISH NONE ns ns ns ns ns Y4 ns ns STAPLE ns ns ns ns ns Y4 ns ns FORMLINES 5 to 1...

Page 220: ...RO RO RO ns ns ns A4 RO RO RO RO RO ns ns ns EXECUTIVE RO RO RO RO RO ns ns ns LEDGER ns ns RO ns ns ns ns ns A3 ns ns RO ns ns ns ns ns JISB4 ns ns RO ns ns ns ns ns JISB5 ns ns RO ns RO ns ns ns CUSTOM ns ns RO ns RO ns ns ns COM10 RO RO RO ns RO ns ns ns MONARCH RO RO RO ns RO ns ns ns C5 DL RO RO RO ns RO ns ns ns B5 RO RO RO ns RO ns ns ns JPOST ns ns RO ns ns ns ns ns JPOSTD ns ns RO ns ns n...

Page 221: ...IZE LETTER ns ns ns ns ns RO RO ns LEGAL ns ns ns ns ns RO RO ns A4 ns ns ns ns ns RO RO ns EXECUTIVE ns ns ns ns ns RO RO ns LEDGER ns ns ns ns ns RO ns ns A3 ns ns ns ns ns RO ns ns JISB4 ns ns ns ns ns RO ns ns JISB5 ns ns ns ns ns RO ns ns CUSTOM ns ns ns ns ns RO ns ns COM10 ns ns ns ns ns RO RO ns MONARCH ns ns ns ns ns RO RO ns C5 DL ns ns ns ns ns RO RO ns B5 ns ns ns ns ns RO RO ns JPOST ...

Page 222: ... ns ns ns ns ns INTRAY5SIZE LETTER ns ns ns ns RO ns ns ns LEGAL ns ns ns ns RO ns ns ns A4 ns ns ns ns RO ns ns ns A3 ns ns ns ns ns ns ns ns LEDGER ns ns ns ns ns ns ns ns JISB4 ns ns ns ns ns ns ns ns EXEC ns ns ns ns RO ns ns ns JISB5 ns ns ns ns RO ns ns ns CUSTOM ns ns ns ns RO ns ns ns INTRAY6SIZE Tray dependent ns ns ns ns RO ns ns ns INTRAY7SIZE Tray dependent ns ns ns ns RO ns ns ns INTR...

Page 223: ...TD ns ns ns ns ns RO ns ns INTRAY5SIZE LETTER ns ns ns ns ns RO ns ns LEGAL ns ns ns ns ns RO ns ns A4 ns ns ns ns ns RO ns ns A3 ns ns ns ns ns RO ns ns LEDGER ns ns ns ns ns RO ns ns JISB4 ns ns ns ns ns RO ns ns EXEC ns ns ns ns ns ns ns ns JISB5 ns ns ns ns ns ns ns ns CUSTOM ns ns ns ns ns ns ns ns INTRAY6SIZE Tray dependent ns ns ns ns ns ns ns ns INTRAY7SIZE Tray dependent ns ns ns ns ns ns...

Page 224: ...H ns ns ns ns Y ns Y Y SWEDISH ns ns ns ns Y ns Y Y TURKISH ns ns ns ns Y ns Y Y JAPANESE ns ns ns ns Y ns ns ns CHINESE ns ns ns ns ns ns ns ns CZECH ns ns ns ns Y ns ns ns HUNGARIAN ns ns ns ns Y ns ns ns RUSSIAN ns ns ns ns Y ns ns ns LOWTONER ON RO ns ns ns ns ns ns ns OFF RO ns ns ns ns ns ns ns CONTINUE ns RO RO RO Y ns ns ns STOP ns RO RO RO Y ns ns ns MANUALFEED OFF Y Y Y Y Y Y Y Y ON Y Y ...

Page 225: ... ns ns TURKISH ns ns ns Y Y Y ns ns JAPANESE Y ns ns ns ns Y ns ns CHINESE ns Y ns ns ns ns ns ns CZECH ns ns ns ns ns ns ns ns HUNGARIAN ns ns ns ns ns ns ns ns RUSSIAN ns ns ns ns ns ns ns ns LOWTONER ON ns ns ns ns ns ns ns ns OFF ns ns ns ns ns ns ns ns CONTINUE ns ns ns ns ns Y RO ns STOP ns ns ns ns ns Y RO ns MANUALFEED OFF Y Y Y Y Y Y Y ns ON Y Y Y Y Y Y Y ns MEDIASOURCE TRAY1 ns ns ns ns ...

Page 226: ...ve JISB4 and JISB5 are 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 LETTER2 Y Y Y Y Y Y Y Y LEGAL Y Y Y Y Y Y Y Y A42 Y Y Y Y Y Y Y Y LEDGER ns ns Y ns ns ns ns ns A3 ns ns Y ns ns ns ns ns JIS B4 ns ns Y ns ns ns ns ns JISB5 n...

Page 227: ...egal Ledger A3 A4 Executive JISB4 and JISB5 are 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 LETTER Y Y Y Y Y Y Y Y LEGAL Y Y Y Y Y Y Y Y A4 Y Y Y Y Y Y Y Y LEDGER ns ns ns ns ns Y ns ns A3 ns ns ns ns ns Y ns ns JIS B4 ns ns n...

Page 228: ...ns ns 180 ns Y Y Y Y ns ns ns PRINTQUALITY DRAFT ns ns ns ns ns ns ns ns NORMAL ns ns ns ns ns ns ns ns HIGH ns ns ns ns ns ns ns ns QTY 1 to 999 ns ns ns ns Y ns ns ns RENDERMODE COLOR ns ns ns ns ns ns ns ns GRAYSCALE ns ns ns ns ns ns ns ns REPRINT AUTO ns ns ns ns Y ns ns ns ON ns ns ns ns Y ns ns ns OFF ns ns ns ns Y ns ns ns RESOLUTION 300 Y Y Y Y Y ns RO Y 600 Y Y Y Y Y ns ns Y 1200 ns ns n...

Page 229: ... Y Y2 180 ns ns ns ns ns Y Y Y2 PRINTQUALITY DRAFT ns ns ns ns ns ns ns Y2 NORMAL ns ns ns ns ns ns ns Y2 HIGH ns ns ns ns ns ns ns Y2 QTY 1 to 999 ns ns ns ns ns Y4 ns ns RENDERMODE COLOR ns ns ns ns ns ns ns Y2 GRAYSCALE ns ns ns ns ns ns ns Y2 REPRINT AUTO ns ns ns ns Y ns ns ns ON ns ns ns ns Y ns ns ns OFF ns ns ns ns Y ns ns ns RESOLUTION 300 Y Y Y Y Y Y Y Y 600 Y Y Y Y Y Y Y Y 1200 ns ns ns...

Page 230: ... Y Y Y Y ON ns ns ns Y ns ns ns ns TIMEOUT 5 to 300 15 Y Y Y Y Y ns Y Y WIDEA4 NO ns ns ns ns Y ns ns ns YES ns ns ns ns Y ns ns ns 1 These variables can only be used with the DEFAULT DINQUIRE and INQUIRE commands RESOURCESAVESIZE is a personality specific variable PCL Specific Variables FONTSOURCE I Y Y Y Y Y Y Y Y M1 M2 M3 Mn Y Y Y Y Y ns ns Y C Y Y ns ns ns ns ns ns C1 ns ns ns Y ns ns ns ns C2...

Page 231: ... ns ns ns Y ns Y ns PCL Specific Variables FONTSOURCE I Y Y Y Y Y Y Y ns M1 M2 M3 Mn Y3 ns ns Y Y Y Y ns C ns ns ns ns ns ns ns ns C1 ns ns ns ns ns ns ns ns C2 ns ns ns ns ns ns ns ns S Y Y Y Y Y Y Y ns FONTNUMBER 0 to n max depends on the font source Y Y Y Y Y Y Y ns PITCH 0 44 to 99 99 10 00 Y Y Y Y Y Y Y Y2 4 PTSIZE 4 00 to 999 75 12 00 Y Y Y Y Y Y Y ns 1 These variables can only be used with ...

Page 232: ...Y Y Y ISO21 Y Y Y Y Y Y Y Y ISO60 Y Y Y Y Y Y Y Y ISO69 Y Y Y Y Y Y Y Y ISOL1 Y Y Y Y Y Y Y Y ISOL2 Y Y Y Y Y Y Y Y ISOL5 Y Y Y Y Y Y Y Y ISOL6 ns ns ns ns Y ns ns ns LEGAL Y Y Y Y Y Y Y Y MATH8 Y Y Y Y ns Y Y Y MCTEXT Y Y Y Y Y Y Y Y MSPUBL Y Y Y Y ns Y Y Y PC775 ns ns ns ns Y ns ns ns PC8 Y Y Y Y Y Y Y Y PC850 Y Y Y Y Y Y Y Y PC852 Y Y Y Y Y Y Y Y PC8DN Y Y Y Y Y Y Y Y PC8TK Y Y Y Y Y Y Y Y PC10...

Page 233: ... ISO69 Y Y Y Y Y Y Y Y1 ISOL1 Y Y Y Y Y Y Y Y1 ISOL2 Y Y Y Y Y Y Y Y1 ISOL5 Y Y Y Y Y Y Y Y1 ISOL6 ns ns ns ns Y ns Y ns LEGAL Y Y Y Y Y Y Y Y1 MATH8 Y Y Y Y ns Y ns Y1 MCTEXT Y Y Y Y Y Y Y Y MSPUBL Y Y Y Y ns Y ns Y1 PC775 ns ns ns ns Y ns Y ns PC8 Y Y Y Y Y Y Y Y1 PC850 Y Y Y Y Y Y Y Y1 PC852 Y Y Y Y Y Y Y Y1 PC8DN Y Y Y Y Y Y Y Y1 PC8TK Y Y Y Y Y Y Y Y1 PC1004 ns ns ns ns Y ns Y ns PIFONT Y Y Y...

Page 234: ...ns ns ns ns ns ESC P Specific Variables CARRIAGE RETURN CR ns ns Y1 ns ns ns ns ns CRLF ns ns Y1 ns ns ns ns ns CHARACTER SET KANA ns ns Y1 ns ns ns ns ns EG ns ns Y1 ns ns ns ns ns TOPMARGIN TM19MM ns ns Y1 ns ns ns ns ns TM6MM ns ns Y1 ns ns ns ns ns ANKCONDENSE ON ns ns Y1 ns ns ns ns ns OFF ns ns Y1 ns ns ns ns ns FONT MSMINCHO ns ns Y1 ns ns ns ns ns MSGOTHIC ns ns Y1 ns ns ns ns ns 1 Only pr...

Page 235: ...Specific Variables CARRIAGE RETURN CR Y ns ns ns ns Y3 ns ns CRLF Y ns ns ns ns Y3 ns ns CHARACTER SET KANA Y ns ns ns ns Y3 ns ns EG Y ns ns ns ns Y3 ns ns TOPMARGIN TM19MM Y ns ns ns ns Y3 ns ns TM6MM Y ns ns ns ns Y3 ns ns ANKCONDENSE ON Y ns ns ns ns Y3 ns ns OFF Y ns ns ns ns Y3 ns ns FONT MSMINCHO Y ns ns ns ns Y3 ns ns MSGOTHIC Y ns ns ns ns Y3 ns ns 1 PERSONALITY is only a port specific va...

Page 236: ...Series 4L 4ML 4P 4MP PostScript Specific Variables1 ADOBEMBT OFF ns ns ns ns ns ns ns ns ON ns ns ns ns ns ns ns ns AUTO ns ns ns ns ns ns ns ns JAMRECOVERY OFF ns Y Y Y ns ns ns ns ON ns Y Y Y ns ns ns ns PRTPSERRS OFF Y Y Y Y Y ns Y Y ON Y Y Y Y Y ns Y Y 1 Provided PostScript is installed PostScript is an option in some printers A 24 Feature Support ...

Page 237: ...Mx Mopier 5 5M 1600C PostScript Specific Variables 1 ADOBEMBT OFF ns ns ns Y ns ns ns ns ON ns ns ns Y ns ns ns ns AUTO ns ns ns Y ns ns ns ns JAMRECOVERY OFF ns ns ns Y Y Y Y ns ON ns ns ns Y Y Y Y ns PRTPSERRS OFF ns ns ns Y Y Y Y ns ON ns ns ns Y Y Y Y ns 1 Provided PostScript is installed PostScript is an option in some printers Feature Support A 25 ...

Page 238: ...SCAPE Y Y Y Y Y Y Y PALETTESOURCE DEVICE Y Y Y Y Y Y Y SOFTWARE Y Y Y Y Y Y Y PAPERLENGTH 0 to 432000 Y Y Y Y Y Y Y PAPERWIDTH 0 to 432000 Y Y Y Y Y Y Y PRINTAREA FULLSIZE ns ns ns ns ns Y Y INKEDAREA ns ns ns ns ns Y Y RENDERMODE COLOR ns Y ns Y Y Y Y GRAYSCALE ns Y ns Y Y Y Y RESOLUTION 300 Y Y Y Y Y Y Y 600 ns ns ns ns ns ns ns RET ON ns ns Y Y Y Y Y OFF ns ns Y Y Y Y Y AUTO ns ns ns ns ns ns n...

Page 239: ... 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 Y PAPERWIDTH 0 to 432000 Y Y Y Y Y Y PRINTAREA FULLSIZE Y ns Y Y2 Y Y INKEDAREA Y ns Y Y2 Y Y RENDERMODE COLOR ns Y Y Y Y Y GRAYSCALE ns Y Y Y Y Y RESOLUTION 300 Y Y Y Y Y Y 600 Y Y Y Y Y Y RET ON ns ns Y Y2 ns ns OFF ns ns Y Y2 ns ns AUTO ns ns Y Y2 ns ns 1 The HP DesignJet 200 220 600 and 650C do not s...

Page 240: ...l panel setting must be set to ON To select a default printer language for implicit switching set SYS to the desired language PCL or PostScript from the control panel The LaserJet IIISi printer does not perform context switching The HP LaserJet IIISi printer does not support any PJL status readback commands environment variable commands or device attendance commands For an example that uses the PJ...

Page 241: ...mmediately before the printable data Note HP LaserJet 4PJ and 4LJ Pro printers perform implicit language switching but not context switching HP LaserJet 4V and 4MV printers cannot context switch into the ESC P language use explicit switching instead Under these conditions the printer samples the incoming printable data and looks for indications of a particular printing language Once it recognizes ...

Page 242: ...tus buffer overflows and instead of receiving requested status information you receive the 10010 error For the HP LaserJet 4 and 5 family printers except for the LaserJet 4PJ the 30010 error is returned for buffer overflow instead of the normal 10010 error code HP LaserJet 4PJ and 4LJ Pro printers return the 10010 error code Reading the 10010 or 30010 error clears the status buffer if you receive ...

Page 243: ...gured only when these conditions actually change the page protection resolution or printer language status For example if the resolution is at 600 dpi and an application sends the PJL SET RESOLUTION 600 command memory is not reconfigured If resource saving is enabled memory is reconfigured but all volatile personality specific resource information such as fonts macros and PostScript dictionaries a...

Page 244: ...ream idle timeout this occurs when a PJL job is in progress and there is no data received over the I O for a specified length of time To avoid a timeout use the PJL JOB or ENTER commands since using the JOB or ENTER commands increases the time the printer waits for I O data This increase is because the printer is processing a job with clearly indicated start of job and end of job data stream comma...

Page 245: ...after a job boundary it enters a backward compatibility mode that responds like an HP LaserJet III printer This lasts until the next job boundary is detected For backward compatibility mode to occur the PERSONALITY variable must be set to AUTO or PCL and the job must contain only PCL data if any PJL commands are received during the job the printer does not enter backward compatibility mode Printer...

Page 246: ... does not immediately end printing the partial page Instead the printer waits to see if the next job sent consists of more PCL data from the same I O port which it then appends to the partial page already in the printer This works the same way as the HP LaserJet III printer which does not have a job timeout If PJL data is received instead the partial page is printed before the new PJL job is execu...

Page 247: ...e different than those of other PJL printers This section describes those 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 never turned off Therefore they do...

Page 248: ...hat should be considered when using PJL with the DeskJet 1200C and 1600C family printers Support for the features described in this section varies The HP DeskJet 1200C and 1600C family printers that support a particular feature are listed at the beginning of each feature description Printer Language Switching Printers that perform context switching automatically switch printer languages when both ...

Page 249: ...y 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 Note The value of the PARALLEL feature as shipped from the factory is FAST When a front panel reset is performed the value is defaulted to SLOW Printer Environment Unlike most PJL variables the following enviro...

Page 250: ...er explicitly by using the ENTER command or implicitly When the page protection setting changes either using the SET DEFAULT or RESET commands When the resolution is changed using either the SET or DEFAULT commands Reconfiguring printer memory may erase all volatile personality specific resource information including downloaded fonts PCL macros and PostScript dictionaries however no I O data is lo...

Page 251: ...out capability which is used to recover when jobs are interrupted by situations such as host failures The timeout duration varies depending on the data received by the printer The TIMEOUT variable set using PJL establishes the I O timeout durations to wait before switching to another pending I O If the printer has not received printable data it will wait for the TIMEOUT duration before closing the...

Page 252: ... Jobs may be canceled using the printer control panel If unsolicited status is enabled when jobs are canceled the printer responds with a status message see the Job Cancellation section in Chapter 5 for more information A PCL and PostScript supported disk accessory is available for storing information such as fonts and macros Chapter 9 describes the PJL file system that manages the files on the pr...

Page 253: ...LOUTBIN3 First non stapling bin in mail box mode only bin in stacker and job separator modes OPTIONALOUTBIN2 Last non stapling bin bottom bin in mailbox mode OPTIONALOUTBIN6 Stapling Documents To staple a document include the following PJL command in the PJL header at the beginning of the job see the example on the following page PJL SET FINISH STAPLE To staple the output using this command the pr...

Page 254: ...the PCL command l X These commands produce uncollated copies Note When printing multiple copies of a job use the PJL SET QTY as early as possible in the job If the printer does not detect that a job is to be mopied by the end of the formatting of the second page to allow for one banner page the job will not be mopied The following example would print 5 collated stapled copies of a print job ESC 12...

Page 255: ... the printer while the I O buffers are being reconfigured which results in the data being consumed until the reconfiguration is complete While it is not anticipated that these commands will be used often it is expected that they will be used at least occasionally For this reason a special communication sequence has been proposed between the printer and this software so that the I O buffers may be ...

Page 256: ...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 at power up based on the tray s number for example if you have a LaserJet 4000 series printer with an optional tray tray 1 MP tray would be 0 the first cassette number 2 the second cassette number 3 a...

Page 257: ...ariable value CR LF DINQUIRE PJL DINQUIRE LPARM personality IPARM port variable CR LF DINQUIRE Response PJL DINQUIRE LPARM personality IPARM port variable CR LF value CR LF FF ECHO PJL ECHO words CR LF ECHO Response PJL ECHO words CR LF FF ENTER PJL ENTER LANGUAGE personality CR LF PJL Command Summary B 1 ...

Page 258: ...RLIST NAME pathname ENTRY integer COUNT integer CR LF FSDIRLIST Response PJL FSDIRLIST NAME pathname ENTRY integer CR LF filename TYPE FILE SIZE integer CR LF filename TYPE DIR CR LF FF FSDOWNLOAD PJL FSDOWNLOAD FORMAT BINARY SIZE integer NAME pathname CR LF binary data ESC 12345X FSINIT PJL FSINIT VOLUME pathname CR LF FSMKDIR PJL FSMKDIR NAME pathname CR LF B 2 PJL Command Summary ...

Page 259: ...LF FF FSUPLOAD PJL FSUPLOAD NAME pathname OFFSET number SIZE number CR LF FSUPLOAD Response If the pathname is valid PJL FSUPLOAD FORMAT BINARY NAME pathname OFFSET number SIZE number CR LF SIZE bytes of file data FF INFO PJL INFO category CR LF INFO Response PJL INFO category CR LF 1 or more lines printable characters or WS followed by CR LF FF INITIALIZE PJL INITIALIZE CR LF PJL Command Summary ...

Page 260: ... LF value CR LF FF JOB PJL JOB NAME job name START first page END last page PASSWORD number CR LF OPMSG PJL OPMSG DISPLAY message CR LF PJL PJL CR LF RDYMSG PJL RDYMSG DISPLAY message CR LF RESET PJL RESET CR LF SET PJL SET LPARM personality IPARM port variable value CR LF STMSG PJL STMSG DISPLAY message CR LF B 4 PJL Command Summary ...

Page 261: ...5X USTATUS PJL USTATUS variable value CR LF Unsolicited Status Message not a response but returned when printer events occur PJL USTATUS variable CR LF 1 or more lines of printable characters or WS followed by CR LF FF USTATUSOFF PJL USTATUSOFF CR LF PJL Command Summary B 5 ...

Page 262: ...B 6 PJL Command Summary ...

Page 263: ...ple 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 your own ready message while printing your job Programming Examples C 1 ...

Page 264: ...ENT Enter PCL HP GL 2 CR LF PJL ENTER LANGUAGE PCL CR LF ESC E ESC 0BIN SP1 PA1010 1010 PW2 2 PD5310 1010 5310 5310 1010 5310 1010 1010 PU PA2280 3040 SD1 277 2 1 4 20 5 0 6 0 7 4148 DT SS LBPCL Print Job ESC 0A FF ESC E ESC 12345X PJL CR LF PJL COMMENT END OF PCL JOB CR LF PJL COMMENT START OF POSTSCRIPT CR LF PJL ENTER LANGUAGE POSTSCRIPT CR LF 5 setlinewidth CR 100 100 moveto CR 0 300 rlineto C...

Page 265: ...SS LBPCL Print Job Print text fprintf prn 033 0A f 033E Exit HP GL 2 FF Esc E fprintf prn 033 12345X PJL n UEL PJL fprintf prn PJL COMMENT END OF PCL JOB n fprintf prn PJL COMMENT START OF POSTSCRIPT n fprintf prn PJL ENTER LANGUAGE POSTSCRIPT n fprintf prn 5 setlinewidth r PostScript Code fprintf prn 100 100 moveto r fprintf prn 0 300 rlineto r fprintf prn 300 0 rlineto r fprintf prn 0 300 rlinet...

Page 266: ...ve it as PRINTPJL BAT in the same directory as the UEL file The batch file uses the DOS ECHO command to send PJL commands and the DOS COPY command with the binary option to send the UEL file and the pre existing print file to the printer ECHO OFF CLS ECHO Printing the 1 Job COPY UEL B PRN ECHO PJL PRN ECHO PJL JOB PRN ECHO PJL RDYMSG DISPLAY 1 PRN ECHO PJL ENTER LANGUAGE PCL PRN COPY 1 B PRN COPY ...

Page 267: ...at since the string portion of the DISPLAY string is localized developers should use the CODE value 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 Warnings 25xxx...

Page 268: ... online or PERFORM USER MAINTENANCE or 68 NVRAM FULL SETTINGS NOT SAVED 10002 00 READY offline or Personality specific ready message offline or PJL RDYMSG off line or 68 READY SERVICE offline Form feeding printable data due to key press 10003 02 WARMING UP or initializing DesignJet 10004 05 SELF TEST or INTERNAL TEST 10005 07 RESET CLEARING MEMORY 10006 16 TONER LOW 10007 CANCELING JOB 10010 STATU...

Page 269: ...IST or PRINTING FONT LIST 10016 15 ENGINE TEST 10017 06 DEMO PAGE or PRINTING DEMO PAGE 10018 09 MENU RESET or RESETTING MENUS TO DEFAULTS 10019 09 RST ACTIVE IO or RESETTING ACTIVE IO 10020 09 RESET ALL I O 10021 08 COLD RESET or RESTORING FACTORY SETTINGS 10022 06 CONFIG PAGE or PRINTING CONFIGURATION PAGE 10023 PROCESSING JOB or PROCESSING JOB FROM ENV FEEDER or PROCESSING JOB FROM TRAY X X tra...

Page 270: ...ent when there are no alternate paper sources loaded with the same size paper The printer goes offline and waits for someone to load paper Foreground error messages are listed later in the chapter 41xyy Background paper loading messages are in the format 11xyy The following tables list the x and y values for these messages For example 11202 is a background paper loading message indicating to load ...

Page 271: ... COM10 Envelope 09 Monarch Envelope 10 C5 Envelope 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 PJL Status Codes D 5 ...

Page 272: ...ray or Upper Cassette or Universal Tray2 3 LC Tray or Lower Cassette or Universal Tray3 4 EE Tray or Envelope Feeder 5 Any HCI Tray YY Status Code Tray Status 01 Tray Open 02 Tray Lifting Output Bin Status 15xxy Output bin status messages occur when an output bin is full The messages are in the format 15xxy The following tables list the x and y values for these messages For example 15031 indicates...

Page 273: ...ne terminated by the Universal Exit Language command 20007 WS or CR LF missing after closing quotes 20008 Invalid character in an alphanumeric value 20009 Invalid character in a numeric value 20010 Invalid character at the start of a string alphanumeric value or numeric value 20011 String missing closing double quote character 20012 Numeric value starts with a decimal point 20013 Numeric value doe...

Page 274: ...value PJL Parser Warnings 25xxx This group of status codes denote PJL parser warnings which indicates that part of the PJL command is ignored Status Code Display String or Code Meaning 25001 Generic warning error part of the PJL command ignored 25002 PJL prefix missing 25003 Alphanumeric value too long 25004 String too long 25005 Numeric value too long 25006 Unsupported option name 25007 Option na...

Page 275: ...niversal 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 Code Display String or Code Meaning 27001 Generic semantic error 27002 EOJ command encountered without a previously matching JOB command An EOJ command do...

Page 276: ...y use DEFAULT with this variable cannot use SET 27006 Attempted to pass a NULL string to a command or command option that requires the string to contain at least one character 27007 Attempted to DEFAULT a variable which can only be SET D 10 PJL Status Codes ...

Page 277: ... 40 ERROR or 40 1 HP MIO 1 ERROR or 40 2 HP MIO 2 ERROR or 40 SER IO ERROR 30027 22 I O CONFIG ERROR or 22 SER IO ERROR 22 HP MIO 1 IO ERROR CHECK SETUP or 22 HP MIO 2 IO ERROR CHECK SETUP or 22 PARALLEL IO ERROR CHECK SETUP 30034 41 x ERROR or 41 3 PAPER ERROR 30035 68 ERROR CHECK CONFIGURATION or 68 NVRAM ERROR SETTINGS NOT SAVED or 68 ERROR 30036 68 SERVICE or 68 NVRAM FULL CHECK CONFIGURATION ...

Page 278: ...MENT 30103 BINDING AGENT MEDIA CAPACITY EXCEEDED 30104 EXTERNAL INPUT DEVICE PAPER PATH ERROR 30105 EXTERNAL OUTPUT DEVICE PAPER PATH ERROR 30106 EXTERNAL INPUT DEVICE OPERATIONAL ERROR 30107 EXTERNAL OUTPUT DEVICE OPERATIONAL ERROR 30108 40 HP MIO ERROR PRESS GO KEY 30109 40 BAD SERIAL DATA FORMAT PRESS GO KEY 30110 22 HP MIO ERROR PRESS GO KEY 30111 22 PARALLEL IO ERROR PRESS GO KEY 30112 22 SER...

Page 279: ...Invalid number of bytes 32006 File already exists 32007 Illegal name 32008 Can t delete root 32009 File operation attempted on a directory 32010 Directory operation attempted on a file 32011 Not same volume 32012 Read only 32013 Directory full 32014 Directory not empty 32015 Bad disk 32016 No label 32017 Invalid parameter 32018 No contiguous space 32019 Can t change root 32020 File Descriptor obso...

Page 280: ...rresponding control panel display strings for conditions where operator intervention may be required The device says online and continues to operate possibly with reduced functionality Data may be lost Status Code Display String or Code Meaning 35028 BAD MIO 35029 W1 IMAGE ADAPT or IMAGE ASSIST or MEMORY LOW PAGE SIMPLIFIED 35030 WA JOB ALTERED 35031 W2 INVALID PERS or REQUESTED LANGUAGE NOT AVAIL...

Page 281: ...5081 WM JOB 300 35082 WD DISK NOT INIT or Volume 0 NOT INIT Volume 0 will be indicated as either DISK FLASH or RAMDISK as appropriate 35084 WM JOB 600 LGL 35085 WM JOB 600 A3 35086 WM JOB 600 11x17 35087 WM JOB 300 A3 35088 WM JOB 300 11x17 35115 Volume 1 NOT INIT Volume 1 is not initialized Volume 1 will be indicated as either DISK FLASH or RAMDISK as appropriate 35117 Volume 2 NOT INIT Volume 2 ...

Page 282: ... DesignJet 40011 Accessing ink cartridges DesignJet 40019 REMOVE PAPER FROM bin name 40020 NO MICR TONER or INSTALL MICR TONER CARTRIDGE 40021 12 PRINTER OPEN OR NO EP CART or CLOSE PRINTER COVER or lower lever or lower 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 INS...

Page 283: ...g device failure 40067 67 SERVICE 40068 69 SERVICE 40069 70 ERROR 40070 71 ERROR 40071 72 SERVICE 40079 PRINTER MANUALLY TAKEN OFFLINE or OFFLINE or FORMFEEDING or SERVICE MODE or 00 OFFLINE 40080 EE INCOMPATIBLE or LC INCOMPATIBLE 40083 FS DISK FAILURE or 311 1 1 DISK FAILURE or Volume 0 FAILURE Volume 0 will be indicated as either DISK FLASH or RAMDISK as appropriate 40089 INCOMPLETE TRAY 3 INST...

Page 284: ...se face up output bin 40122 Duplexer must be installed 40123 Duplexer error remove duplexer 40124 Bad duplexer connection Foreground Paper Loading 41xyy Foreground paper loading messages are sent when one of the paper input sources is out of paper and there is no other input source available and loaded with the correct paper size When this occurs the printer goes offline until someone loads paper ...

Page 285: ...aper 08 COM10 Envelope 09 Monarch Envelope 10 C5 Envelope 11 DL Envelope 12 Japan B4 Paper 13 Japan B5 Paper 14 B5 Envelope 15 Custom Media Paper 16 J Postcard or JB4 paper LaserJet 6P 17 J RoundTrip Postcard or JB5 paper LaserJet 6P 18 A5 Paper or JPostcard LaserJet 6P 19 Letter R Paper or JDoublePostCard LaserJet 6P 20 A4 R Paper or A5 Paper LaserJet 6P 21 A5 R Paper PJL Status Codes D 19 ...

Page 286: ...er and there is no other input source available and loaded with the correct paper size When this occurs the printer goes offline until someone loads paper The messages are in the format 42xyy where x is the number of jammed pages that need to be cleared and yy is the location of the jam that was detected The following table lists the y values for these messages For example 42203 indicates 2 pages ...

Page 287: ...output paper late jam 6 Face down output paper stopped jam 7 2 Sided turn around paper late jam 8 2 Sided turn around paper stopped jam 9 2 Sided path paper late jam 10 2 Sided path paper stopped jam 11 External input device paper jam 12 External output device paper jam 13 Fuser accordion jam 14 Fuser accordion jam 15 Printer could not auto eject paper PJL Status Codes D 21 ...

Page 288: ...hed to PHC 3 Third device attached to PHC 4 Fourth device attached to PHC 5 Fifth device attached to PHC yy Code Error Code 1 Unable to communicate with the PHC 2 Out of sequence packet 3 Bad transaction 4 Invalid status bits 5 Invalid status code 6 Invalid device specified 7 Invalid tray specified 8 Invalid bin specified 9 Invalid number of special purpose bytes 10 Invalid number of NVEE bytes 11...

Page 289: ...ror messages related to paper jams for the LaserJet 4000 series printers only The messages are in the format 44xyy where x is the number of sheets in the printer and yy is the location of the jammed sheet x Description 0 9 Number of jammed sheets yy Jam Location 00 Paper jam in unknown location 01 Paper jam in the paper input area 02 Paper jam in the paper output area may need to open rear door of...

Page 290: ...ror ROM Checksum Failed or interface error DesignJet 50002 RAM Error RAM Test Failed or part malfunction DesignJet 50003 Engine Fuser Error 50004 Engine Beam Detect Error 50005 Engine Scanner Error 50006 Engine Fan Error 50007 Engine Communications Error 50008 50 1 FUSER ERROR CYCLE POWER or LOW FUSER TEMPERATURE 50009 50 2 FUSER ERROR CYCLE POWER or FUSER TOOK TOO LONG TO WARM UP 50010 50 3 FUSER...

Page 291: ...RVICE 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 CYCLE POWER or MULTIPURPOSE TRAY LIFTER MALFUNCTION 50023 59 1 PRINTER ERROR CYCLE POWER or MAIN MOTOR STARTUP FAILURE 50024 59 2 PRINTER ERROR CYCLE POWER or MAIN MOTOR ROTATION FAILURE 50025 FINISHER M...

Page 292: ...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 MOTOR 6 FAILURE 50032 FAN MOTOR 7 FAILURE 50033 FAN MOTOR 8 FAILURE 505xx Firmware Error Power Cycle 50599 Processor Error Power Cycle D 26 PJL Status Codes ...

Page 293: ...et printers with automatic I O switching if there is no current print job then automat ic I O switching is enabled and all I O ports are active Auto Continue If the auto continue mode is configured to ON the printer continues printing during certain non fatal er ror conditions If auto continue is OFF and these same conditions occur the printer goes off line until the Con tinue or On Line key is pr...

Page 294: ...abled the print job processed and then the automatic I O switching process repeats Configuration Configuration is the process of changing printer set tings The printer is configured using the control panel or PJL Context Sensitive Printer Language Selection Context sensitive printer language selection is a method of selecting a printer language by looking at the first portion of a job to discover ...

Page 295: ...r to the printer Environment See Print Environment Explicit Switching Explicit switching occurs when a printer language is ac tivated due to processing a PJL ENTER command Factory Default Factory defaults refer to the feature settings that are programmed into the printer at the factory These values are stored in read only memory and cannot be changed Factory default settings are in use unless you ...

Page 296: ...a downloaded to the printer Its execution can be initiated using a single command Modified Print Environment Once a printer language such as PCL is entered the current feature settings constitute the modified print environment Whenever a feature setting is altered using printer language commands the new setting is recorded in the Modified Print Environment Non Printing Mode Printing selected pages...

Page 297: ...ipt into images that the printer s operating system can print The printer uses different personalities different firmware to handle data from different printer languages PCL and PostScript commands are each processed by separate firmware New personalities can be added to some LaserJet print ers using means such as cartridges or ROM SIMMs PJL is not a personality you cannot print using PJL See Pers...

Page 298: ... UEL command PJL Reset Condition A PJL reset condition prompts the printer to load the User Default values into the PJL Current Environment which are then loaded into the Modified Print Environ ment In this document the term PJL reset condition refers to any of the following events a power on UEL command when not between a JOB EOJ command pair the PJL INITIALIZE PJL RESET PJL JOB or PJL EOJ comman...

Page 299: ...ontrol a printer PCL and PostScript are both printer lan guages they both contain commands that enable the user to control where marks are printed on a page Ready Message A ready message is displayed on the control panel dis play when no error conditions are present When errors occur an error message replaces the ready message until the situation is corrected or the printer auto continues The PJL ...

Page 300: ...e current job and exit the personality PJL also recognizes the UEL command and when received PJL discards any unprocessed partial PJL command and prepares to accept the next PJL command Unsolicited Status Unsolicited status USTATUS is printer status informa tion sent as a result of certain printer events occurring such as when the printer runs out of paper a job fin ishes printing or when a certai...

Page 301: ...ngs 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 ...

Page 302: ...Glossary 10 ...

Page 303: ...ary 3 5 B 1 commands grouped by application 3 5 COMMENT command 4 6 example 4 7 compatibility of PJL 1 4 compatibility with LaserJet III A 33 compatibility with PCL 1 4 compatibility with PostScript 1 5 configuration G 2 configuration information requesting 7 18 configuration status 7 1 context switching 4 8 context sensitive printer language selection G 2 context sensitive switching 4 3 CONTEXTSW...

Page 304: ... FONTNUMBER 7 26 FONTNUMBER variable 6 23 6 24 FONTSOURCE variable 6 25 foreground paper loading D 18 form feed character FF 2 3 format of PJL commands 2 4 FORMLINES variable 6 13 front panel control 1 3 FSAPPEND command 9 2 FSDELETE command 9 6 FSDIRLIST command 9 4 FSDOWNLOAD command 9 7 FSINIT command 5 10 9 8 FSMKDIR command 9 9 FSQUERY command 9 10 FSUPLOAD command 9 12 H hardware errors D 24...

Page 305: ...per jam messages D 23 LaserJet 4L printer A 35 LaserJet 4LC printer A 35 LaserJet 4ML printer A 35 LaserJet 4P printer 6 22 6 34 LaserJet 4PJ printer 2 8 6 19 6 26 8 2 8 4 8 7 A 2 LaserJet 5L printer A 35 LaserJet 5Si Mopier printer A 40 A 41 LaserJet 5Si 5SiMx printers A 40 A 41 LaserJet 6L printer 6 2 A 35 LaserJet 6P 6MP printers A 29 A 35 LaserJet IIISi printer 1 4 A 28 line feed character LF ...

Page 306: ... 6 7 G 6 environment variable support A 5 environment variables 6 10 See also environments feature comparison A 1 feature support A 2 file system commands 9 1 getting to desired state 6 30 handling unexpected responses 10 28 in multi user systems 10 18 introduction 1 1 job G 6 job requirements 3 2 job security 5 10 A 34 job separation commands 5 1 minimum command set 4 1 prefix 2 5 processing inva...

Page 307: ...1 RESOLUTION variable 6 20 resource saving A 31 RESOURCESAVE variable 6 20 RESOURCESAVESIZE variable 6 20 response data buffer overflow 10 27 RET variable 6 21 S sample printing system 10 21 security PJL 5 1 semantic errors D 9 semantic warnings 2 9 SET command 6 3 6 7 6 9 6 30 6 39 6 42 example 6 45 Shift JIS parsing 6 26 solicited status G 8 space SP character 2 3 space between characters 2 5 sp...

Page 308: ... determining choices 7 30 turning off 7 43 User Default Environment 6 2 6 7 G 8 See also environments using PJL 3 1 USTATUS command 2 10 5 4 7 32 USTATUS DEVICE command 7 34 USTATUS JOB command 7 37 USTATUS PAGE command 7 39 USTATUS TIMED command 7 41 USTATUSOFF command 7 43 utilities 10 5 V value 2 4 variable support A 5 variable types 2 7 variables 2 2 environment 6 10 INFO VARIABLES command 7 2...

Page 309: ... directories files returns file sizes FSUPLOAD 9 12 Uploads all or part of a file from the printer to the host INFO 7 16 Requests a specified category of printer information INITIALIZE 6 36 Resets current default PJL variables to factory defaults INQUIRE 7 4 Requests the current value for an environment variable JOB 5 2 Informs printer of the start of a print job resets the page count allows namin...

Reviews: