HP PCL 5 Quick Reference Manual

Hp pcl 5 printer-accessory: quick reference.
Hide thumbs
P C L / PJ L
R e f e r e n c e S e t
Printer Language
Quick Reference


   Also See for HP PCL 5

   Summary of Contents for HP PCL 5

  • Page 1

    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...

  • Page 3

    SYMBOL SET ID = 0 MACRO • MACRO ID = 0 Feature support varies with each printer. See the PCL 5 Note: Comparison Guide for specific feature support information. * For these items, select User Default values using the printer driver or control panel (or remote control panel for LaserJet 4L, 5L, and 5P).

  • Page 4

    FILL TYPE = Solid (bi-directional) • USER-DEFINED LINE TYPE = Eight standard line types • ANCHOR CORNER = (0,0) plotter units • USER-DEFINED FILL TYPES = Solid fill • TRANSPARENCY MODE = On (transparency) • SCREENED VECTOR = No screening (continued) (HP-GL/2)

  • Page 5

    PITCH = 10 cpi • HEIGHT = 12 point • POSTURE = Upright • STROKE WEIGHT = Medium • TYPEFACE = HP-GL/2 stick • CHARACTER DIRECTION = Horizontal • CHARACTER DIRECTION MODE = Absolute • CHARACTER SIZE = Size transformation off •...

  • Page 6: Job Control, Printer Reset, Number Of Copies

    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.

  • Page 7: Unit Of Measure

    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.

  • Page 8: Page Size

    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.5" x 14") 6 - Ledger (11" x 17") 25 - A5 paper (148mm x 210mm) 26 - A4 paper (210mm x 297mm) 27 - A3 (297mm x 420mm)

  • Page 9: Page Orientation

    # = 0, 1 - All character codes processed as one-byte characters = 21 - Character codes processed as two-byte characters (see PCL 5 Comparison Guide ) = 31 - Character codes processed as two-byte characters (see PCL 5 Comparison Guide )

  • Page 10: Line Spacing

    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. Horizontal Motion Index (HMI) Designates the distance between columns.

  • Page 11: Horizontal Cursor Positioning Control Codes

    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.

  • Page 12: Vertical Cursor Positioning Control Codes

    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. ? &...

  • Page 13: Symbol Set

    10U - PC-8 1G - ISO 21: German 0U - ASCII See Table C-1 in the PCL 5 Comparison Guide for more symbol sets. Spacing Designates either a fixed or proportionally spaced font. ? ( s # P - Primary...

  • Page 14: Stroke Weight

    3 - Courier 4 - Helvetica 6 - Gothic 7 - Script See Table C-2 and C-3 in the PCL 5 Comparison Guide for more typeface values. Font Selection by ID # Selects a soft font using its specific ID #.

  • Page 15

    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.

  • Page 16

    21 - Deletes the macro association named by the current Macro ID. 100 - Media select Note: See the PCL 5 Printer Language Technical Reference Manual for additional information about the Font Descriptor command and the Character Descriptor command data fields.

  • Page 17: Define Symbol Set

    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.

  • Page 18: Macro Control

    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. ? &...

  • Page 19

    Logical Operation Specifies the logical operation (ROP3) to be performed. ? * l # O # = 0 - 255 (for specific operations refer to the PCL 5 Comparison Guide for the logical operation values) Pixel Placement Determines how pixels are rendered in images.

  • Page 20

    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.

  • Page 21

    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...

  • Page 22

    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.

  • Page 23

    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). 2 - Turn on scale mode (start raster at logical page left boundary) 3 - Turn on scale mode (start raster at cursor position)

  • Page 24

    Simple Color Creates a fixed-size palette whose color specifications cannot be modified. ? * r # U # = -3 - 3 planes, device CMY palette 1 - Single plane black and white palette 3 - 3 planes, device RGB palette Configure Image Data (CID) The CID command provides configuration information for palette creation and raster data transmission in a single escape sequence by:...

  • Page 25

    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.

  • Page 26

    Render Algorithm Selects an algorithm for rendering page marking entities on a given page. ? * t # J Continuous tone detail 300 lpi (device-best dither) Snap to primaries Snap black to white, color to black Device-best dither Error diffusion Monochrome device-best dither Monochrome error diffusion Cluster ordered dither...

  • Page 27

    Monochrome Print Mode Designates either the current rendering mode or a fast gray-scale equivalent. ? & b # M # = 0 Print in mixed render algorithm mode # = 1 Print everything in gray equivalent Set Status Readback Location Type Sets the location type for an inquire entity status request.

  • Page 28

    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...

  • Page 29

    Sets the picture frame anchor point to current PCL cursor position. ? * c 0 T HP-GL/2 Plot Horizontal Size Specifies the horizontal size of the HP-GL/2 drawing being imported into PCL. ? * c # K # = Horizontal size in inches...

  • Page 30

    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.

  • Page 31

    Lowers the logical “pen” to the page. PD [ X, Y... [,X,Y ] ] [;] Polyline Encoded Encodes common HP-GL/2 commands to increase throughput. PE [flag] [val] | coord pair... [flag] [val] | coord pair ; Flag = < – pen up...

  • Page 32

    Outlines the polygon resident in the polygon buffer. EP [;] Fill Polygon Fills the polygon specified in the polygon buffer with the current fill type. FP [fill method][;] fill method = 0 - Odd/Even fill HP-GL-2 INCR INTRM INCR END Polygon Group 1 - Non-zero winding fill...

  • Page 33

    4 = Cross-hatched 10 = Shading 11 = User-defined 21 = PCL Patterns 22 = PCL User- defined HP-GL/2 polygon mode) 1 (Closes current polygon or subpolygon and remains in polygon mode) 2 (Closes current polygon or subpolygon and exits polygon mode)

  • Page 34

    SM [ character][;] Select Pen Selects a pen for plotting. SP [ pen] [;] pen = 0 (white) 1 (black) Default is no pen. HP-GL/2 - Description - Butt (default) - Square - Triangular - Round - Mitered (default) - Mitered/beveled...

  • Page 35

    Pen Width Unit Selection Specifies whether pen width is defined in millimeters or as a percentage of P1/P2 distance. WU [ type] [;] type = 0 (millimeters) = 1 (percentage of P1/P2 distance) HP-GL/2 option 1 option 2 ignored ignored % shading ignored index no.

  • Page 36

    Pitch Height Posture Stroke Weight Typeface * See tables in Appendix C of the PCL 5 Comparison Guide . Character Fill Mode Specifies how outline fonts will be rendered. CF [ fill mode [,edge pen*]] [;] fill mode = 0 (solid fill and edged) 1 (edging with specified pen [or current pen if edge pen parameter not specified];...

  • Page 37

    ID = Font ID number assigned in PCL mode. Select Secondary Font ID Selects as secondary a font previously assigned a font ID number. FN font ID [;] font ID = Font ID number assigned in PCL mode. HP-GL/2 and P2 and P2...

  • Page 38

    Selects the font designated by AD. SA [;] Scalable or Bitmap Fonts Specifies the type of fonts to be used for labels. SB [ n] [;] n = 0 (Scalable fonts [default]) = 1 (Bitmap and scalable fonts) HP-GL/2 DT command).

  • Page 39

    Pitch Height Posture Stroke Weight Typeface * See tables in Appendix C of the PCL 5 Comparison Guide . Absolute Character Size Specifies an absolute character size (in centimeters). SI [ width, height] [;] Character Slant Specifies the slant at which labels are printed.

  • Page 40: Display Functions

    ? & s # C # = 0 - Enables End-Of-Line Wrap 1 - Disables End-Of-Line Wrap Display Functions Causes all escape sequences and control codes to be printed instead of executed. – Enables Display Functions – Disables Display Functions HP-GL/2...

  • Page 41

    Universal Exit Language Terminates operation of current language and returns control to PJL. Every job should begin and end with this command. <ESC> % –12345X Enter Language Causes PJL to enable the specified language. @PJL ENTER LANGUAGE Comment Allows one line of comment text to be entered in PJL. @PJL COMMENT comment text .

  • Page 42

    Initialize Resets current and default PJL variables to factory default values. @PJL INITIALIZE [<CR>]<LF> Reset Resets current PJL variables to default values. @PJL RESET [<CR>]<LF> Default Sets default value for environment variables. @PJL DEFAULT [LPARM : personality | IPARM : port ] ~ variable = value [<CR>] <LF>...

  • Page 43

    Status Readback (continued) Info Request a specified category of printer information. @PJL INFO category [<CR>]<LF> Response @PJL INFO category <CR><LF> [1 or more lines of printable characters or <WS> followed by] <CR><LF> <FF>] Echo Returns the “words” portion of the command to the host computer. @PJL ECHO [<Words>] [<CR>] <LF>...

  • Page 44

    Device Attendance Operator Message Displays specified message on control panel and takes printer offline. @PJL OPMSG DISPLAY = “message” [<CR>]<LF> 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” [<CR>]<LF> Status Message Displays specified message on printer control panel and takes printer offline.

  • Page 45

    PCL C O M M A N D S U M M A R Y Universal Exit Language Configuration (I/O) Printer Reset Number of Copies Simplex/Duplex Long-edge Offset Registration Short-edge Offset Registration Duplex Page Side Selection Job Separation Output Bin (Media Bin) Unit-of-Measure Page Control Page Size...

  • Page 46

    Horizontal Cursor Positioning Columns Decipoints Units-of-Measure Control Codes Carriage Return Space Backspace Horizontal Tab Vertical Cursor Positioning Rows Decipoints Units-of-Measure Half Line-Feed Control Codes Line-Feed Form-Feed Line Termination Push/Pop Cursor Position † Symbol Set † Spacing † Pitch † Height †...

  • Page 47

    Font Descriptor /Data Character Code Character Descriptor/Data Macro ID # (specify) Macro Control Source Transparency Mode Pattern Transparency Mode Pattern (Area Fill) ID Select Current Pattern User-Defined Pattern Set Pattern Reference Point Pattern Control Logical Operation Pixel Placement Rectangular Area Fill Graphics Horizontal Rectangle Size Decipoints Units-of-Measure...

  • Page 48

    Free Space Flush All Pages Echo Picture Frame Horizontal Size Picture Frame Vertical Size Set Picture Frame Anchor Point HP-GL/2 Plot Horizontal Size HP-GL/2 Plot Vertical Size Enter HP-GL/2 Mode Enter PCL Mode Color ? * r # U ? * v # W...

  • Page 49

    Config./Status Group (HP-GL/2) Default Values Initialize Input P1 and P2 Input Relative P1 and P2 Input Window Rotate Coordinate System Scale Vector Group (HP-GL/2) Arc Absolute Arc Relative Absolute Arc Three Point Bezier Absolute Bezier Relative Circle Plot Absolute Pen Down...

  • Page 50

    Edge Polygon Edge Rectangle Relative Edge Wedge Fill Polygon Polygon Mode Fill Rectangle Absolute Fill Rectangle Relative Fill Wedge Line and Fill Attributes Group (HP-GL/2) Anchor Corner Fill Type Line Attributes Line Type Pen Width Raster Fill Definition Symbol Mode...

  • Page 51

    Technical Drawing Extensions Group (HP-GL/2) Merge Control Pixel Placement End-Of-Line Wrap Display Functions - Enable - Disable MC[mode[,opcode]]; PP[mode]; Programming Hints ? & s # C...

  • Page 52


  • Page 54

    Printed on Recycled Paper Copyright© 1999 Hewlett-Packard Co. Printed in USA...

This manual also for:

1220 - laserjet b/w laser 3015 - laserjet b/w laser 3030 - laserjet b/w laser 3200se - laserjet all-in-one b/w laser 3330mfp - laserjet b/w laser 3380 - laserjet all-in-one b/w laser... Show all

Comments to this Manuals

Symbols: 0
Latest comments: