HP P C L / PJ L R e f e r e n c e S e t PCL 5 Printer Language Technical Quick Reference Guide Printed on Recycled Paper Copyright© 1999 Hewlett-Packard Co.
Learn.
Learn.
Learn.
Learn.
Learn.fm Page 4 Tuesday, June 22, 1999 8:17 AM Job Control Universal Exit Language Causes the printer to exit the current language and return control to PJL. ?% – 1 2 3 4 5 X Configuration (AppleTalk) Allows the user to configure the printer I/O to receive PCL jobs over AppleTalk I/O. ? & b # W [Key][value] # = Number of bytes of [key]/[value] data (count space ). Printer Reset Restores the User Default Environment, deletes temporary fonts and macros, and prints any remaining data.
Learn.fm Page 5 Tuesday, June 22, 1999 8:17 AM Job Control (continued) Duplex Page Side Selection Prints the logical page on the specified physical page side. ?&a#G # = 0 - Select next side 1 - Select front side 2 - Select back side If a non-duplex printer receives this command, it performs a page eject. Job Separation Toggles the printer's job separation mechanism. ?&l1T Output Bin Selects the output paper bin for paper output.
Learn.fm Page 6 Tuesday, June 22, 1999 8:17 AM Page Control Page Size Designates the physical paper size which in turn defines the logical page. ?&l#A # = 1 - Executive (7.25" x 10.5") 2 - Letter (8.5" x 11") 3 - Legal (8.
Learn.fm Page 7 Tuesday, June 22, 1999 8:17 AM Page Control (continued) Page Orientation Designates the logical page position with respect to the physical page. ?&l#O # = 0 - Portrait 1 - Landscape 2 - Reverse Portrait 3 - Reverse Landscape Print Direction Rotates the logical page coordinate system counterclockwise in 90 degree increments with respect to the orientation of the current logical page.
Learn.fm Page 8 Tuesday, June 22, 1999 8:17 AM Page Control (continued) Top Margin Designates number of lines between top of logical page to top of text area. ?&l#E # = Number of lines Clear Horizontal Margins Resets left and right margins to their default settings. ?9 Horizontal Motion Index (HMI) Designates the distance between columns. (The value field # is valid to 4 decimal places.) ?&k#H # = Number of 1/120 inch increments Vertical Motion Index (VMI) Designates the distance between rows.
Learn.fm Page 9 Tuesday, June 22, 1999 8:17 AM Cursor Positioning Cursor positioning can be either absolute or relative. Absolute positioning specifies the cursor move distances referenced from the left edge of the logical page and the top margin. Relative positioning specifies cursor move distances referenced from the current cursor position. Relative moves are indicated by using signed numbers (e.g. # = +15 or –122); absolute moves are indicated by unsigned numbers (e.g. # = 15 or 122).
Learn.fm Page 10 Tuesday, June 22, 1999 8:17 AM Cursor Positioning (continued) Vertical Cursor Positioning (Rows) Moves the cursor to a new row in the same column (row distances are determined by the VMI setting). ?&a#R # = Row number Vertical Cursor Positioning (Decipoints) Moves the cursor to a new vertical position along the y-axis. ?&a#V # = Decipoint position (1/720 inch), valid to 4 decimal places. Vertical Cursor Positioning (PCL units) Moves the cursor to a new dot position along the y-axis.
Learn.fm Page 11 Tuesday, June 22, 1999 8:17 AM Font Selection Any number of fonts may be printed per page, limited only by memory. Symbol Set Designates the set of symbols or characters contained in a font.
Learn.fm Page 12 Tuesday, June 22, 1999 8:17 AM Font Selection (continued) Style Designates the font style. ? ( s # S - Primary ? ) s # S - Secondary # = 0 - Upright 1 - Italic 4 - Condensed 5 - Condensed Italic 8 - Compressed, Extra Condensed 24 - Expanded 32 - Outline 64 - Inline 128 - Shadowed 160 - Outline Shadowed Stroke Weight Designates the thickness or weight of the stroke that composes the characters of a font.
Learn.fm Page 13 Tuesday, June 22, 1999 8:17 AM Font Selection (continued) Select Default Font Sets all font characteristics (except orientation) to those of the default font. ? ( 3 @ Default primary font characteristics ? ) 3 @ Default secondary font characteristics Transparent Print Data Provides printing access to all characters in a font including those defined as unprintable. ? & p # X [transparent data ] # = Number of bytes of transparent print data. Underline Controls automatic text underlining.
Learn.fm Page 14 Tuesday, June 22, 1999 8:17 AM Font Management Font ID # Specifies an identification number (ID #) for use in subsequent font management commands. ?*c#D # = ID # (0 through 32767) Font Control Provides the means for manipulating soft fonts within the printer.
Learn.fm Page 15 Tuesday, June 22, 1999 8:17 AM User-Defined Symbol Set Symbol Set ID Code Assigns an identification code to a user-defined symbol set. ?*c#R # = Symbol set ID code. Define Symbol Set Downloads symbol set definition data for a user-defined symbol set. ? ( f # W [symbol set definition data] # = Number of symbol set definition bytes. Symbol Set Control Provides a means for manipulating user-defined symbol sets.
Learn.fm Page 16 Tuesday, June 22, 1999 8:17 AM Macros Macro ID # Specifies an ID # for a macro for use in subsequent macro commands. ?&f#Y # = Macro ID # (0 through 32767) Macro Control Provides the mechanism for definition, invocation, and deletion of macros.
Learn.fm Page 17 Tuesday, June 22, 1999 8:17 AM Print Model Source Transparency Mode Sets the source image's transparency mode to transparent or opaque. ?*v#N # = 0 - Transparent (default) 1 - Opaque Pattern Transparency Mode Sets the pattern's transparency mode to transparent or opaque. ?*v#O # = 0 - Transparent (default) 1 - Opaque Pattern (Area Fill) ID Specifies the level of shading, type of cross-hatch, or user-defined pattern to select via Select Pattern command.
Learn.fm Page 18 Tuesday, June 22, 1999 8:17 AM Rectangular Area Fill Graphics Horizontal Rectangle Size (Decipoints or Dots) Specifies the rectangular fill area width in decipoints or dots. ? * c # H - Decipoints # = Number of decipoints (1/720 inch) ? * c # A - Dots # = Number of dots (see Unit of Measure Command) Vertical Rectangle Size (Decipoints or Dots) Specifies the rectangular fill area height in decipoints or dots.
Learn.fm Page 19 Tuesday, June 22, 1999 8:17 AM Rectangular Area Fill Graphics (continued) Fill Rectangular Area Causes the defined rectangular area to be filled with the specified rule pattern. ?*c#P # = 0 - Solid area fill 1 - Solid white area fill 2 - Shading fill 3 - Cross-hatch pattern fill 4 - User-defined pattern 5 - Current pattern User Defined Pattern Downloads binary data that defines a user-defined pattern.
Learn.fm Page 20 Tuesday, June 22, 1999 8:17 AM Raster Graphics Raster Graphics Resolution Designates the graphics resolution for raster data operations. ?*t#R #= 75 - 75 dots-per-inch 100 - 100 dots-per-inch 150 - 150 dots-per-inch 200 - 200 dots-per-inch 300 - 300 dots-per-inch 600 - 600 dots-per-inch Raster Graphics Presentation Mode Specifies the presentation of the raster image on the logical page. ?*r#F # = 0 - image printed in the current print direction.
Learn.fm Page 21 Tuesday, June 22, 1999 8:17 AM Raster Graphics (continued) Start Raster Graphics Specifies the left raster graphics margin. ?*r#A # = 0 - sets left graphics margin at X-position 0. 1 - sets left graphics margin to the current column (current X-position).
Learn.fm Page 22 Tuesday, June 22, 1999 8:17 AM Color Simple Color Creates a fixed-size palette whose color specifications cannot be modified.
Learn.fm Page 23 Tuesday, June 22, 1999 8:17 AM Color (continued) Push / Pop Palette Pushes or pops the palette from the palette stack. The last item pushed is the first item popped. ?*p#P # = 0 - Push (save) palette = 1 - Pop (restore) palette Select Palette Selects a new active palette by ID. The previously active palette is unchanged. ?&p#S # = Palette ID number Palette Control ID Specifies the ID to be used by the Palette Control command.
Learn.fm Page 24 Tuesday, June 22, 1999 8:17 AM Color (continued) Render Algorithm Selects an algorithm for rendering page marking entities on a given page.
Learn.fm Page 25 Tuesday, June 22, 1999 8:17 AM Color (continued) Monochrome Print Mode Designates either the current rendering mode or a fast gray-scale equivalent. ?&b#M #=0 #=1 Print in mixed render algorithm mode Print everything in gray equivalent Status Readback Set Status Readback Location Type Sets the location type for an inquire entity status request.
Learn.fm Page 26 Tuesday, June 22, 1999 8:17 AM Status Readback (continued) Inquire Status Readback Entity Identifies the entity type and causes the printer to create a status response. ?*s#I # = 0 - Font 1 - Macro 2 - User-defined pattern 3 - Symbol set 4 - Font extended Free Space Returns the amount of total available user memory and the largest block available. ?*s1M Flush All Pages Suspends accepting I/O data until all pages currently in printer are printed.
Learn.fm Page 27 Tuesday, June 22, 1999 8:17 AM Picture Frame Picture Frame Horizontal Size in Decipoints Specifies the horizontal dimension of the area to be allocated for rendering an HP-GL/2 plot. ?*c#X # = Horizontal size in decipoints Picture Frame Vertical Size in Decipoints Specifies the vertical dimension of the area to be allocated for rendering an HP-GL/2 plot.
Learn.fm Page 28 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Configuration and Status Group Default Values Sets most programmable HP-GL/2 features to default conditions. DF [;] Initialize Sets all programmable HP-GL/2 features to default conditions. IN [;] Input P1 and P2 Establishes new or default locations for the scaling points P1 and P2.
Learn.fm Page 29 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Vector Group Arc Absolute Draws an arc using absolute coordinates. AA XCTR,YCTR,sweep angle [,chord angle] [;] Arc Relative Draws an arc using relative coordinates. AR XINCR,YINCR,sweep angle[,chord angle] [;] Absolute Arc Three Point Draws an arc from the current pen location through two absolute points. AT XINTRM,YINTRM,XEND,YEND [,chord angle] [;] Bezier Absolute Draws a Bezier curve using absolute coordinates.
Learn.fm Page 30 Tuesday, June 22, 1999 8:17 AM HP-GL-2 Vector Group (continued) Plot Relative Enables movement relative to the current pen location. PR [ X,Y... [,X,Y ] ] [;] Pen Up Lifts the logical “pen” from the page. PU [ X,Y...[ ,X,Y ] ] [;] Relative Arc Three Point Draws an arc from the current pen location through two relative points. RT XINCR INTRM,YINCR INTRM,XINCR END, YINCR END[,chord angle] [;] Polygon Group Edge Rectangle Absolute Outlines a rectangle defined with absolute coordinates.
Learn.fm Page 31 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Polygon Group (continued) Polygon Mode Allows creation of user-defined polygons in the polygon buffer. PM polygon definition [;] polygon definition = 0 (Clears polygon buffer and enters polygon mode) 1 (Closes current polygon or subpolygon and remains in polygon mode) 2 (Closes current polygon or subpolygon and exits polygon mode) Fill Rectangle Absolute Fills a rectangle specified with absolute coordinates.
Learn.fm Page 32 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Line and Fill Attributes Group (continued) Line Attributes Specifies how line ends and joins are shaped. LA [ kind, value...[,kind, value ] ] [;] Attribute = Line Ends = = = = Line Joins = = = = = = Miter Limit = Kind, Value - Description 1, 1 - Butt (default) 2 - Square 3 - Triangular 4 - Round 2, 1 - Mitered (default) 2 - Mitered/beveled 3 - Triangular 4 - Round 5 - Beveled 6 - No join applied 3, 1 to 32,767 - Max.
Learn.fm Page 33 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Line and Fill Attributes Group (continued) Screened Vectors Selects type of area fill for vectors (lines, hatch lines, arcs, circles, edges of polygons, rectangles, and wedges). SV [ screen type [,option1[,option2]]][;] screen type = 0= 1= 2= 21 = 22 = description No screening Shaded fill User defined PCL Patterns PCL User-defined Patterns option 1 ignored % shading index no.
Learn.fm Page 34 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Character Group Alternate Font Definition Specifies an alternate font for labeling. AD [ kind, value...[,kind, value ] ] [;] Kind 1 2 3 4 5 6 7 Attribute Symbol Set Font spacing Pitch Height Posture Stroke Weight Typeface Value * 0 (fixed); 1 (prop.) characters per inch font point size 0 (upright); 1 (italic) 0 (medium); 3 (bold)* * * See tables in Appendix C of the PCL 5 Comparison Guide.
Learn.fm Page 35 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Character Group (continued) Relative Label Direction Specifies the slope of labels relative to P1 and P2 locations. DR [ run,rise] [;] run = percentage of distance between P1X and P2X rise = percentage of distance between P1Y and P2Y. Define Label Terminator Defines the character that “turns off” labeling.
Learn.fm Page 36 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Character Group (continued) Label Prints text using the currently selected font. LB text . . . text lblterm [;] text . . . text = Any characters. lblterm = Label terminator (default Ext or defined with DT command). Label Origin Specifies the positioning of the characters within a label. LO [ position] [;] position = Number indicating label position relative to current cursor position (see command description in PCL5 Technical Reference Manual).
Learn.fm Page 37 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Character Group (continued) Standard Font Definition Specifies the standard font for printing labels. SD [ kind, value...[,kind, value ] ] [;] Kind 1 2 3 4 5 6 7 Attribute Symbol Set Font spacing Pitch Height Posture Stroke Weight Typeface Value * 0 (fixed); 1 (prop.) characters per inch font point size 0 (upright); 1 (italic) 0 (medium); 3 (bold)* * * See tables in Appendix C of the PCL 5 Comparison Guide.
Learn.fm Page 38 Tuesday, June 22, 1999 8:17 AM HP-GL/2 Technical Drawing Extensions Group Merge Control Specifies the logical operation (ROP3) to be performed. MC[mode[,opcode]]; mode = 0 - opcode value ignored (ROP set to 252 [default]) 1 - opcode value used as ROP value opcode = logical operation (ROP3 value) Pixel Placement Specifies either grid intersection or grid-centered pixel placement.
Learn.fm Page 39 Tuesday, June 22, 1999 8:17 AM PJL Kernel Universal Exit Language Terminates operation of current language and returns control to PJL. Every job should begin and end with this command. % –12345X Enter Language Causes PJL to enable the specified language. PCL @PJL ENTER LANGUAGE = POSTSCRIPT [CR] others Comment Allows one line of comment text to be entered in PJL. @PJL COMMENT comment text . . .
Learn.fm Page 40 Tuesday, June 22, 1999 9:05 AM PJL Environment Initialize Resets current and default PJL variables to factory default values. @PJL INITIALIZE [] Reset Resets current PJL variables to default values. @PJL RESET [] Default Sets default value for environment variables. @PJL DEFAULT [LPARM : personality | IPARM : port] ~ variable = value [] Set Sets the environment variable for the duration of a PJL job.
Learn.fm Page 41 Tuesday, June 22, 1999 8:17 AM PJL Status Readback (continued) Info Request a specified category of printer information. @PJL INFO category [] Response @PJL INFO category [1 or more lines of printable characters or followed by] ] Echo Returns the “words” portion of the command to the host computer. @PJL ECHO [] [] Response @PJL ECHO [] Ustatus Allows printer to send unsolicited status messages.
Learn.fm Page 42 Tuesday, June 22, 1999 8:17 AM PJL Device Attendance Operator Message Displays specified message on control panel and takes printer offline. @PJL OPMSG DISPLAY = “message” [] Ready Message Specifies a message that replaces the READY message on the printer control panel. Doesn't affect on-line state. @PJL RDYMSG DISPLAY = “message” [] Status Message Displays specified message on printer control panel and takes printer offline.
Learn.
Learn.
Learn.
Learn.
Learn.fm Page 47 Tuesday, June 22, 1999 8:17 AM Config.
Learn.
Learn.
Learn.
Learn.
HP P C L / PJ L R e f e r e n c e S e t PCL 5 Printer Language Technical Quick Reference Guide Printed on Recycled Paper Copyright© 1999 Hewlett-Packard Co.