hp-support-head-portlet

Actions
Loading...

Welcome to HP Customer Support

hp-contact-secondary-navigation-portlet

Actions
Loading...

hp-share-print-widget-portlet

Actions
Loading...
  • Information
    Looking for Site Help?

    Learn about the features of the HP Customer Support site and how to use them to meet your online support needs. Click Here

     

hp-concentra-wrapper-portlet

Actions
Loading...

HP Business Inkjet 2200 and 2600 Series Printer - PCL Printer Commands

Introduction
Hewlett Packard developed the PCL printer language to standardize access to printer features. The PCL language provides the highest level of communication between the system and the printer. It is independent of the host system, device driver, I/O interface and network communications. This document lists the HP Business Inkjet 2200 and 2600 series printers PCL printer commands for page formatting and font selection.
Using PCL printer commands
There are two general types of PCL Commands:
  • Control codes
  • Escape Sequences
A control code is a character that initiates a printer function. For example, the Carriage Return (CR), Line Feed (LF), or Form Feed (FF).
An Escape Sequence begins with the ASCII escape character ESC (decimal 27), followed by at least one other character. A PCL device-receiving Esc tries to interpret subsequent characters as a PCL command rather than as data to be printed. If the device does not recognize the command, it remains at the text processing level: syntactically correct, but unrecognized escape sequences are ignored; syntactically incorrect sequences are ignored and printed.
Syntax of escape sequences
There are two forms of PCL escape sequences:
  • Two-character escape sequences
  • Parameterized escape sequences
Two-character escape sequences
Two-character escape sequences have the following form: Esc X where X is a character that defines the operation to be performed.
  note:
“X” may be any character from the ASCII table within the range 48-126 decimal [“0” through “~”].
Parameterized escape sequences
Parameterized escape sequences have the following form:
  1. Esc X y z1 # z2 # z3…# Zn [data] (where y, #, zi (z1, z2, z3…) and [data] may be optional, depending on thecommand).
  2. X Parameterized Character: A character from the ASCII table within the range 33-47 decimal (“!” through “/”) indicating that the escape sequence is parameterized.
  3. Y Group Character: A character from the ASCII table within the range 96-126 decimal (“” through “~”) which specifies the group type of control being performed.
  4. #Value Field: A group of characters specifying a numeric value. The numeric value is represented as an ASCII string of characters within the range 48-57 decimal (“0” through “9”) that may be preceded by a plus (+) or minus (-) sign and may contain a fractional portion indicated by the digits after a decimal point (.). Numeric value fields are within the range of -32767 to 32767. If an escape sequence requires a value field and a value field is not specified, a value of zero is assumed.
  5. Zi Parameter Character: Any character from the ASCII table within the range of 96-126 decimal (“””through”~”). This character specifies the parameter to which the previous value field applies. This character is used when combining escape sequences.
  6. Zn Termination Character: Any character from the ASCII table within the range of 64-96 decimal (“@” through “~”). This character specifies the parameter to which the previous value field applies. This character terminates the escape sequence and is always capitalized, such as A, M, T, and so forth.
Feature support matrix
Function
Command
HP Business Inkjet
2200/2250
2600 series
2230/2280
MISCELLANEOUS
Configuration (Apple Talk)
Esc &b#W[data}
N1
N1
N1
JOB CONTROL
Universal Exit/Start of PJL (UEL)
Esc%-12345X
Y
Y
Y
Reset
EscE
Y
Y
Y
Number of Copies
Esc&l#x
Y
Y
Y
Simplex/Duplex Print
Esc&l#S
X
Y
X
Left (Long-Edge) Offset Registration
Esc&l#U
N2
N2
N2
Top (Short-Edge) Offset Registration
Esc&l#Z
Y
Y
Y
Unit of Measure
Esc&lu#D
Y
Y
Y
Mechanical Print Quality
Esc*o#Q
Y
Y
Y
Media Type
Esc&l#M
Y
Y
Y
Esc&l#N
X
X
X
Plain
Esc&l0M
Y
Y
Y
Premium Inkjet
Esc&l2M
Y
Y
Y
Photo
Esc&l3M
Y
Y
Y
Premium Transparency
Esc&l4M
Y
Y
Y
Design Gloss
Esc&l5M
Y
Y
Y
Premium plus Temporary
Esc&l6M
Y
Y
Y
Premium Photo
Esc&l7M
Y
Y
Y
Brochure Gloss
Esc&l8M
Y
Y
Y
Premium Heavy Inkjet
Esc&l9M
Y
Y
Y
Brochure Matte
Esc&l10M
Y
Y
Y
Bright White
Esc&l11M
Y
Y
Y
Color fast photo
Esc&l12M
Y
Y
Y
Design Heavy
Esc&l13M
Y
Y
Y
Premium Gloss
Esc&l14M
Y
Y
Y
Premium Matte
Esc&l15M
Y
Y
Y
Self Test
Escz
N3
N3
N3
Paper type
Esc&n5WdBond
X
X
X
Esc&n6WdPlain
X
X
X
Esc&n6Wdcolor
X
X
X
Esc&n6WdRough
X
X
X
Esc&n6WdHeavy
X
X
X
Esc&n6WdGloss
X
X
X
Esc&n7WdLabels
X
X
X
Esc&n7WdVellum
X
X
X
Esc&n8WdDefault
X
X
X
Esc&n9WdRecycled
X
X
X
Esc&n11WdLetterhead
X
X
X
Esc&n11WdCard Stock
X
X
X
Esc&n10WdCardstock
X
X
X
Esc&n11WdPrepunched
X
X
X
Esc&n11WdPreprinted
X
X
X
Esc&n13WdTransparency
X
X
X
Esc&n5WdCustomType
X
X
X
Set Page Length
Esc&l#P
Y
Y
Y
Note: Y = Supported; X = Not supported
N1 = Supports only setting of printer name; N2 = Supported for all paper sizes except custom. (If custom paper size is selected, the command is ignored.); N3 = Prints only a very rudimentary page.
PAGE CONTROL
Page (Job) size
Esc&l#A
Executive (1)
Y
Y
Y
Letter (2)
Y
Y
Y
Legal (3)
Y
Y
Y
Ledger (6)
X
X
X
JISEXEC (Foolscap) (10)
X
X
X
A5 (25)
Y
Y
Y
A4 (26)
Y
Y
Y
A3 (27)
X
Y
X
JIS B5 Paper (45)
Y
Y
Y
JIS B4 Paper (46)
X
Y
X
Monarch Envelope (80)
Y
Y
Y
Com-10 Envelope (81)
Y
Y
Y
Intl. DL Envelope (90)
Y
Y
Y
Intl. C5 Envelope (91)
Y
Y
Y
Intl B5 Envelope (100)
Y
Y
Y
Custom (101)
Y
Y
Y
Hagaki Postcard (71)
Y
Y
Y
Oufuku-Hagaki Postcard (72)
X
X
X
A6(24)
Y
X
Y
Intl. C6 Envelope (92)
Y
X
Y
A2 Envelope (109)
Y
X
Y
4*6 index card (74)
Y
X
Y
5*8 index card (75)
Y
X
Y
11* 17 (11)
X
Y
X
Statement (15)
X
Y
X
Super B (16)
X
Y
X
A2 Envelope (109)
X
Y
X
Envelope C4 (93)
X
Y
X
Envelope C6 (92)
X
Y
X
A6 Card (73)
X
Y
X
Orientation
Esc&l#O
Y
Y
Y
Page side Selection
Esc&l#G
Y
Y
Y
Job Separation
Esc&l1T
X
X
X
Finish Mode
Esc&b#F
X
X
X
Paper (Media) Source
Esc$l#H
In Tray (current tray)(0)
Y
Y
Y
1st Cassette (Main paper Src.) (1)
Y
Y
Y
Manual Feed Tray ( 2)
Y
Y
Y
Manual Feed Tray ( 3)
X
X
X
Multipurpose Tray (4)
N1
X
N1
2nd Cassette (Opt.Source ) (5)
X
Y
X
Envelope feeder (5)
X
X
X
Auto Select (7)
Y
Y
Y
3rd Cassette (8)
X
X
X
HCI Trays 2-21 (20-39)
X
X
X
Output (Media ) Bin
Esc$l#G
X
X
X
Automatic (O)
X
X
X
Destination Tray 1 (1)
X
X
X
Destination Tray 2 (2)
X
X
X
Destination Tray 3 (3)
X
X
X
Print Direction
Esc&a#P
Y
Y
Y
Character Text Path Direction
Esc&c#T
Y
Y
Y
Left Margin
Esc&a#L
Y
Y
Y
Right Margin
Esc&a#M
Y
Y
Y
Clear Horizontal Margins
Esc9
Y
Y
Y
Top Margin
Esc&l#E
Y
Y
Y
Text Length
Esc&l#F
Y
Y
Y
Perforation Skip
Esc&l#L
Y
Y
Y
Horizontal Motion Index
Esc&k#H
Y
Y
Y
Vertical Motion Index
Esc&l#C
Y
Y
Y
Line Spacing
Esc&l#D
Y
Y
Y
ALPHANUMERIC ID (Media selection by type/PCL mass storage command)
Alphanumeric ID
Esc&n#W[operation][string]
N2
N2
N2
CURSOR POSITIONING
Horizontal position
Esc&a#C
Y
Y
Y
Esc*p#X
Y
Y
Y
Esc&a#H
Y
Y
Y
Vertical Position
Esc&a#R
Y
Y
Y
Esc*p#Y
Y
Y
Y
Esc&a#V
Y
Y
Y
Half line feed
Esc=
Y
Y
Y
Line Termination
Esc&k#G
Y
Y
Y
Push/pop Position
Esc&f#S
Y
Y
Y
FONT SELECTION
The Primary font commands in this table can be changed to Secondary by replacing the left parenthesis “(“ in the command with a right parenthesis “)”.
Symbol Set (Primary)
Escc#A
Y
Y
Y
Spacing (Primary)
Esc(a#P
Pitch (Primary)
Esc(s#H
Y
Y
Y
Height (Primary)
Esc(s#V
Y
Y
Y
Style (Primary)
Esc(s#S
Y
Y
Y
Stroke Weight (Primary)
Esc(s#B
Y
Y
Y
Typeface (Primary)
Esc(s#T
Y
Y
Y
Font Selection by ID# (Pri.)
Esc(#X
Y
Y
Y
Select Default Font (Primary)
Esc(3@
Y
Y
Y
Underline
Esc&d#D
Y
Y
Y
Esc&d@
Y
Y
Y
Transparent Print Data
Esc&p#X[data]
Y
Y
Y
Text Parsing Method
Esc&t#P
Y
Y
Y
FONT MANAGEMENT
Assign Font ID #
Esc*c#D
Y
Y
Y
Font Control
Esc*c#F
Y
Y
Y
USER DEFINED SYMBOL SET
Symbol Set ID Code
Esc*c#R
Y
Y
Y
Define Symbol Set
Esc(f#W[data]
Y
Y
Y
Symbol Set Control
Esc*c#S
Y
Y
Y
SOFT FONT CREATION
Download Font
Esc)s#W
Y
Y
Y
Character Code
Esc*c#E
Y
Y
Y
Download Character
Esc(s#W[data]
Y
Y
Y
MACROS
Macro ID
Esc&f#Y
Macro Control
Esc&f#X
PRINT MODEL IMAGING
Source Transparency Mode
Esc*v#N
Y
Y
Y
Pattern Transparency Mode
Esc*v#O
Y
Y
Y
Area Fill (Pattern) ID
Esc*c#G
Y
Y
Y
Select Current Pattern
Solid Black (o)
Solid white (1)
Hp Shading Pattern (2)
Cross-hatch Pattern (3)
(HP-hatch Pattern)
User Defined Pattern (4)
Esc*v#T
Y
Y
Y
Logical Operation
Esc*l#O
Y
Y
Y
Pixel Placement
Esc*l#R
Y
Y
Y
USER-DEFINED PATTERN
Define (Download) Pattern
Esc*c#W[data]
Y
Y
Y
Range: 0-32767
Range: 0-65535
Y
Y
Y
Set Pattern Reference Point
Esc*p#R
Y
Y
Y
User Defined Pattern Control
Esc*c#Q
Y
Y
Y
RASTER GRAPHICS
Raster Resolution
75 Dots/Inch (75)
100 Dots/Inch (100)
150 Dots/Inch (150)
200 Dots/Inch (200)
300 Dots/Inch (300)
600 Dots/Inch (600)
Esc*t#R
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Graphics Presentation
Esc*r#F
Y
Y
Y
Raster Height (Source)
Esc*r#T
Y
Y
Y
Raster Height (Destination)
Esc*t#V
Y
Y
Y
Raster Width (Source)
Esc*r#S
Y
Y
Y
Raster Width (Destination)
Esc*t#H
Y
Y
Y
Scale Algorithm
Esc*t#K
Y
Y
Y
Start Raster Graphics
At logical page left limit (O)
At CAP (1)
At Logic page left Limit, scaling ON (2)
At CAP, scaling ON (3)
Esc*r#A
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
X Offset
Esc*b#X
Y
Y
Y
Y Offset
Esc*b#Y
Y
Y
Y
Set Compression Mode
Unencoded (O)
Y
Y
Y
Run-Length Encoded (1)
Y
Y
Y
TIFF Encoded (2)
Y
Y
Y
Delta Row Encoded (3)
Y
Y
Y
Mode 5 Adaptive (5)
Y
Y
Y
Replacement Delta Row (9)
X
X
X
Transfer Raster (Row/Block)
Esc*b#W[data]
Y
Y
Y
Transfer Raster (Plane)
Esc*b#V[data]
Y
Y
Y
End Graphics
Version B
Esc*rB
Y
Y
Y
Version C (Preferred)
Esc*rC
Y
Y
Y
RECTANGULAR AREA FILL
Horizontal Rectangle Size
Esc*c#A
Y
Y
Y
Esc*c#H
Y
Y
Y
Vertical Rectangle Size
Esc*c#B
Y
Y
Y
Esc*c#V
Y
Y
Y
Pattern ID (Area Fill ID)
Esc*c#G
1-100 for shading
Y
Y
Y
1-6 for cross-hatch
Y
Y
Y
0-32767 for User-defined
Y
Y
Y
Fill Rectangle Area
Esc*c#P
Black (solid) (o)
Y
Y
Y
(Solid) White (erase) (1)
Y
Y
Y
Shaded (gray) (2)
Y
Y
Y
Cross-hatch Pattern (3)
Y
Y
Y
User-defined Pattern (4)
Y
Y
Y
Current Pattern (5)
Y
Y
Y
STATUS READBACK
Set Status Readback Location Type
Esc*s#T
Y
Y
Y
Set Status Readback Location Unit
Esc*s#U
Y
Y
Y
Inquire Status Readback Entity
Esc*s#I
Y
Y
Y
Free Space
Esc*s1M
Y
Y
Y
Flush All Pages
Esc&r#F
X
X
X
Echo
Esc*s#X
Y
Y
Y
PICTURE FRAME (For Vector Graphics)
Picture Frame Horiz. Size
Esc*c#X
Y
Y
Y
Picture Frame Vert. Size
Esc*s#Y
Y
Y
Y
Set Picture Frame Anchor Point
Esc*cOT
Y
Y
Y
HP-GL/2 Horiz. Plot Size
Esc*c#K
Y
Y
Y
HP-GL/2 Vert. Plot Size
Esc*c#L
Y
Y
Y
Enter HP-GL/2
Esc%#B
Y
Y
Y
_Stand-alone plotter (-1)
X
X
X
_Previous HP-GL (O)
Y
Y
Y
_Current PCL CAP (1)
Y
Y
Y
_Current PCL coordinates and old HP-GL/2 (2)
X
X
X
_Current PCL coordinates and current CAP (3)
X
X
X
Enter PCL Mode
Esc%#A
Y
Y
Y
PROGRAMMING HINTS
Display Functions
On
EscY
Y
Y
Y
Off
EscZ
Y
Y
Y
End-of-line Wrap
Esc&s#C
Y
Y
Y
PCL 5 COLOR COMMANDS
Assign Color Index
Esc*v#I
Y
Y
Y
Color Component 1
Esc*v#A
Y
Y
Y
Color Component 2
Esc*v#B
Y
Y
Y
Color Component 3
Esc*v#C
Y
Y
Y
Color Lookup Tables
Esc*l#W[data]
X
X
X
Configure Image Data
Esc*v#W[data]
Y
Y
Y
Download Dither Matrix
Esc*m#W
X
X
X
Driver Function Config.
Esc*o3W643
Y
Y
Y
Esc*o3W646
Y
Y
Y
Esc*o3W647
X
X
X
Foreground Color
Esc*v#S
Y
Y
Y
Gamma Correction
Esc*t#I
X
X
X
Monochrome Print Mode
Esc&b#M
Y
Y
Y
Palette Control ID
Esc&p#I
Y
Y
Y
Palette Control
Esc&p#C
Y
Y
Y
Push/Pop Pallette
Esc*p#P
Y
Y
Y
Render Algorithm
Esc*t#J
X
X
X
Range: 0-6
X
X
X
Range: 9-10
X
X
X
Range: 11-14
X
X
X
Range: 15-19
X
X
X
Select Palette
Esc&p#S
Y
Y
Y
Set Viewing Illuminant
Esc*I#W[data]
X
X
X
Simple Color
Esc*r#U
Y
Y
Y
HP/GL 2 GRAPHICS
HP-GL/2 - Commands Listed in Table A-2 except as shown below
Y
Y
Y
Advance Full Page
PG
X
X
X
Bezier
BR, BZ
Y
Y
Y
Begin Plot
BP
X
X
X
Chord Tolerance Mode
CT
X
X
X
(Relative) Color Range
CR
Y
Y
Y
Download Character
DL
X
X
X
Fill Type
FT
Odd/Even
Y
Y
Y
Non-Zero Winding
Y
Y
Y
Frame Advance
FR
X
X
X
Label Origin
LO
1-9/11-19
Y
Y
Y
21
Y
Y
Y
Media Type
MT
X
X
X
Merge Control
MC
Y
Y
Y
Number of Pens
NP
Y
Y
Y
Output Error
OE
X
X
X
Output Hardcopy Limits
OH
X
X
X
Output Identification
OI
X
X
X
Output P1 and P2
OP
X
X
X
Output Status
OS
X
X
X
Pen Color Assignment
PC
Y
Y
Y
Pixel Placement
PP
Y
Y
Y
Plot Size
PS
X
X
X
Quality Level
QL
X
X
X
Replot
RP
X
X
X
Note: Y = Supported; X= Not supported
N1 = Selects Optional Tray; N2 = Supports except PCL association file and media type selection.

hp-feedback-input-portlet

Actions
Loading...

hp-online-communities-portlet

Actions
Loading...

Ask the community!


Support Forum

Support Forum

Join the conversation! Find Solutions, ask questions, and share advice with other HP product owners. Visit now


hp-feedback-banner-portlet

Actions
Loading...

hp-country-locator-portlet

Actions
Loading...
Country: Flag Ireland

hp-detect-load-my-device-portlet

Actions
Loading...