Printer Command Language (PCL): PCL5e HP Laserjet 4P

Printer Control Codes and  Escape Sequences

NOTE: the following PJL commands are not supported in the
SuperScript 660 and 660I: OPMSG, RDMSG, STMSG, and DEFAULT

Backspace BS Move one column left unless at left margin, in which case no action is taken
Line Feed LF Move to next print line while maintaining current column position.
Form Feed FF Move to first line at top of the next page while maintaining current column position.
Carriage Return CR Move to the left margin on the current print line.
Shift Out SU Select characters that follow from the current secondary font until receipt of a Shift In.
Shift In SI Select characters that follow from the current primary font until receipt of a Shift Out.
Escape EC Indicates the beginning of a special control sequence (escape sequence)
Horizontal Tab HT Move to next horizontal tab stop. The tab stops are at the left margin and every eight columns to the right of the left margin.
Space SP Move one column to the right unless already at the right margin.
Job Controls Command
Reset
Function Parameter Command Decimal Value Hexadecimal Value
Universal Exit
Language (UEL)
=== Ec%-12345X 027 037 049 050 51 052 054 088 1B 25 2D 31 32 33 34 35 58
Reset === Ec E 027 069 1B 45
Number of Copies # of copies (1-99) Ec &l#X 027 038 108 #…# 088 1B 26 6C #…# 58
Long-Edge (left) Offset Registration # of Decipoints (1/720") Ec &l#U 027 038 108 #…# 085 1B 26 6C #…# 55
Short-Edge (top) offset Registration # of Decipoints (1/720") Ec&l#Z 027 038 108 #…# 090 1B 26 6C #…# 5A
Unit of Measure # = Number of units per inch Ec&u#D 027 038 117 #…# 068 1B 26 75 #…#
Page Control Commands
Page Length and Size
Function Parameter Command Decimal Value Hexadecimal Value
Paper Source Eject Page
Paper Cassette
Manual Feed
Manual Envelope Feed
Ec&l0#H
Ec&l1H
Ec&l2H
Ec&l3H
027 038 108 048 072
027 038 108 049 072
027 038 108 050 072
027 038 108 051 072
1B 26 6C 30 48
1B 26 6C 31 48
1B 26 6C 32 48
1B 26 6C 33 48
Paper Size Executive
Letter
Legal
A4
B5
Monarch
COM 10
DL
C5
Custom
Ec&l1A
Ec&l2A
Ec&l3A
Ec&l26A
Ec&l100A
Ec&l80A
Ec&l81A
Ec&l90A
Ec&l91A
Ec&l101A
027 038 108 049 065
027 038 108 050 065
027 038 108 051 065
027 038 108 050 054 065
027 038 108 049 048 048 065
027 038 108 056 048 065
027 038 108 056 049 065
027 038 108 0057 048 065
027 038 108 057 049 065
027 038 108 049 048 049 065
1B 26 6C 31 41
1B 26 6C 32 41
1B 26 6C 33 41
1B 26 6C 32 35 41
1B 26 6C 31 30 30 41
1B 26 6C 38 30 41
1B 26 6C 38 31 41
1B 26 6C 39 30 41
1B 26 6C 30 31 41
1B 26 6C 31 30 31 41
Page Length # of Lines ( 5 - 128) Ec&l#P 027 038 108 #…# 080 1B 26 6C #…# 050
Orientation
Function Parameter Command Decimal Value Hexadecimal Value
Orientation Portrait
Landscape
Reverse Portrait
Reverse Landscape
Ec&l0O
Ec&l1O
Ec&l2O
Ec&l3O
027 038 106 048 079
027 038 106 049079
027 038 106 050 079
027 038 106 051 079
1B 26 6C 30 4F
1B 26 6C 31 4F
1B 26 6C 32 4F
1B 26 6C 33 4F
Print Direction # Degrees of Rotation (counter clockwise. 90 degrees increments only) Ec&a#P 027 038 097 #…# 1B 26 61 #…#
Margins and Text Length
Function Parameter Command Decimal Value Hexadecimal Value
Top Margin # of Lines Ec&l#E 027 038 108 #…# 069 1B 26 6C #…# 45
Text Length # of Lines Ec&l#F 027 038 108 #…# 070 1B 26 6C #…# 46
Left Margin # of Columns Ec&a#L 027 038 097 #…# 076 1B 26 61 #…# 4C
Right Margin # of Columns Ec&a#M 027 038 097 #…# 077 1B 26 61 #…# 4D
Clear Horizontal Margins Ec9 027 057 1B 39
Perforation and Skip Mode
Function Parameter Command Decimal Value Hexadecimal Value
Perforation
Skip
Disable
Enable
Ec&l0L
Ec&l1L
027 038 108 048 076
027 038 108 049 076
1B 26 6C 30 4C
1B 26 6C 31 4C
Horizontal Column Spacing
Function Parameter Command Decimal Value Hexadecimal Value
Horizontal Motion Index (HMI) # of 1/120" increments Ec&k#H 027 038 107 #…# 072 1B 26 6B #…# 48
The Horizontal Motion Index (HMI) command designates the distance between columns in 1/120 inch increments. When fixed pitch fonts are selected, all printable characters, including the space and backspace characters, are affected by HMI. When proportional fonts are selected, the HMI affects only the control code space character. The default HMI is equal to the pitch value in the font header. The printer escape sequence that you send is as follows: Ec&k#H. # is equal to a variable that is derived from the following formula: [Horizontal Printable Area/Desired Character per Line] X 120 = #
Function Parameter Command Decimal Value Hexadecimal Value
Line Spacing
(Lines per Inch)
1 line/inch
2 lines/inch
3 lines/inch
4 lines/inch
6 lines/inch
8 lines/inch
12 lines/inch
16 lines/inch
24 lines/inch
48 lines/inch
Ec&l1D
Ec&l2D
Ec&l2D
Ec&l4D
Ec&l6D
Ec&l8D
Ec&l12D
Ec&l16D
Ec&l24D
Ec&l48D
027 038 108 049 068
027 038 108 050 068
027 038 108 051 068
027 038 108 052 068
027 038 108 054 068
027 038 108 056 068
027 038 108 049 050 088
027 038 108 049 054 088
027 038 108 050 052 088
027 038 108 052 056 088
1B 26 6C 31 44
1B 26 6C 32 44
1B 26 6C 33 44
1B 26 6C 34 44
1B 26 6C 36 44
1B 26 6C 38 44
1B 26 6C 31 32 44
1B 26 6C 31 36 44
1B 26 6C 32 34 44
1B 26 6C 34 38 44
Cursor Positioning
Vertical and Horizontal
Function Parameter Command Decimal Value Hexadecimal Value
Vertical Position # of Rows
# of Dots
# of Decipoints
Ec&a#R
Ec*p#Y
Ec&a#V
027 038 097 #…# 082
027 042 112 #…# 089
027 038 097 #…# 067
1B 26 61 #…# 52
1B 2A 70 #…# 59
1B 26 71 #…# 56
Horizontal Position # of Columns
# of Dots
# of Decipoints
Eca#C
Ec*p#X
Ec&a#H
027 038 097 #…# 067
027 042 112 #…# 088
027 038 097 #…# 072
1B 26 6C #…# 43
1B 2A 70 #…# 58
1B 26 6C #…# 48
Half Line Feed Ec= 027 061 1B 3D
End-of-Line Termination
Line Termination CR=CR; LF=LF;
FF=FF

CR=CR+LF;LF=LF;
FF=FF

CR=CR;LF=CR+LF;
FF=CR+LF

CR=CR+LF;
LF=CR+LF;
FF=CR+FF

Ec&k0G


Ec&k1G


Ec&k2G


Ec&k3G

027 038 107 048 071


027 038 107 049 071


027 038 107 050 071


027 038 107 051 071

1B 26 6B 30 47


1B 26 6B 31 47


1B 26 6B 32 47


1B 26 6B 33 47

Push / Pop Position
Push / Pop Position Push
Pop
Ec&f0S
Ec&f1S
027 038 102 048 063
027 038 102 049 063
1B 26 66 30 53
1B 26 66 31 53
Font  Selection
Symbol Set Selection (1)
Function Parameter Command Decimal Value Hexadecimal Value
Primary Symbol Set ISO 60
Norwegian
ISO 4; UK
Windows 3.1 Latin 2
ISO 69;French
ISO 21;German
ISO 15;Italian
Microsoft Publishing
Desktop
PS Test
MC Text
Ventura International
Ventura US
Wingdings
PS Math
Ventura Math
Math-8
Symbol
ISO 8859-1
(ECMA-94) Latin1
ISO 8859-2 Latin 2
ISO 8859-9 Latin 5
ISO 11; Spanish
ISO 17; Spanish
Windows 3.11 Latin5
PC Turkish
ISO 6;ASCII
Legal
Windows 3.1 Latin 1
PC-8
PC-8 D/N
PC 850
Pi Font
PC-852
Windows 3.1
Latin 1 (ANSI)
Ec(0D

Ec(1E
Ec(9E
Ec(1F
Ec(1G
Ec(0I
Ec(6J
Ec(7J
Ec(10J
Ec(12J
Ec(13J
Ec(6M
Ec(579L
Ec(5M
Ec(6M
Ec(8M
Ec(19M
Ec(0N

Ec(2N
Ec(5N
Ec(0S
Ec(2S
Ec(5T
Ec(9T
Ec(0U
Ec(1U
Ec(9U
Ec(10U
Ec(11U
Ec(12U
Ec(15U
Ec(17U
Ec(19U
027 040 048 068

027 040 049 069
027 040 057 069
027 040 049 070
027 040 049 071
027 040 048 073
027 040 054 074
027 040 055 074
027 040 049 048 074
027 040 049 050 074
027 040 049 051 074
027 040 049 052 074
027 040 053 055 057 076
027 040 053 077
027 040 054 077
027 040 056 077
027 040 049 057 077
027 040 048 078

027 040 050 078
027 040 053 078
027 040 048 083
027 040 050 083
027 040 053 084
027 040 057 084
027 040 048 085
027 040 049 085
027 040 059 085
027 040 049 048 085
027 040 049 049 085
027 040 049 050 085
027 040 049 053 085
027 040 049 055 085
027 040 049 057 085
1B 28 30 44

1B 28 31 45
1B 28 39 45
1B 28 31 46
1B 28 31 47
1B 28 30 49
1B 28 36 4A
1B 28 37 4A
1B 28 31 30 4A
1B 28 31 32 4A
1B 28 31 33 4A
1B 28 31 34 4A
1B 28 35 37 39 4C
1B 28 35 4D
1B 28 36 4D
1B 28 38 4D
1B 28 31 39 4D
1B 28 28 30 4E

1B 28 32 4E
1B 28 35 4E
1B 28 30 53
1B 28 32 53
1B 28 35 54
1B 28 39 54
1B 28 30 55
1B 28 31 55
1B 28 38 55
1B 28 39 55
1B 28 31 30 55
1B 28 31 31 55
1B 28 31 35 55
1B 28 31 37 55
1B 28 31 39 55
(1) Additional symbol sets are supported Refer to the PCL-5 Comparison Guide from Hewlett Packard.
Spacing
Primary Spacing Fixed
Proportional
Ec(s0P
Ec(s1P
027 040 115 048 080
027 040 115 049 080
1B 28 73 30 50
1B 28 73 31 50
Pitch
Primary Pitch

Set Pitch Mode

# Characters/Inch
10
Compressed
(16.5 – 16.7)
Elite (12.0)
Ec(s#H
Ec&k0S
Ec&k2S

Ec&k4S
027 040 115 #…# 072
027 038 107 048 083
027 038 107 050 083

027 038 107 052 083
1B 28 73 #…# 48
1B 26 6B 30 53
1B 26 6B 32 53

1B 26 6B 34 53
Point Size
Function Parameter Command Decimal Value Hexadecimal Value
Primary Height # Points Ec(s#V 027 040 115 #…# 086 1B 28 73 #…# 56
Style (1)
Function Parameter Command Decimal Value Hexadecimal Value
Primary Style Upright (Solid)
Italic
Condensed
Condensed Italic
Compressed (Extra Condensed)
Expanded
Outline
Inline
Shadowed
Outline Shadowed
Ec(s0S
Ec(s1S
Ec(s4S
Ec(s5S
Ec(s8S

Ec(s24S
Ec(s32S
Ec(s64S
Ec(s128S
Ec(s160S

027 040 115 048 083
027 040 115 049 083
027 040 115 052 083
027 040 115 053 083
027 040 115 056 083

027 040 115 050 052 083
027 040 115 051 050 083
027 040 115 054 052 083
027 040 115 049 050 056 083
027 040 115 049 054 048 083

1B 28 73 30 53
1B 28 73 31 53
1B 28 73 34 53
1B 28 73 35 53
1B 28 73 38 53

1B 28 73 32 34 53
1B 28 73 33 32 53
1B 28 73 36 34 53
1B 28 73 31 32 38 53
1B 28 73 31 36 30 53

(1) Additional style values may be obtained from the related documentation provided with HP’s font products. PCL5 LaserJet printers allow you to specify complex structures (contours, outlines, shading, etc.) and widths as well as posture. Refer to the HP PCL 5 Printer Language Technical Reference Manual, available from Hewlett Packard.
Stroke Weight
Function Parameter Command Decimal Value Hexadecimal Value
Primary Font
Stroke Weight
Ultra Thin
Extra Thin
Thin
Extra Light
Light
Demi Light
Semi Light
Medium (book or text)
Semi Bold
Demi Bold
Bold
Extra Bold
Black
Extra Black
Ultra Black
Ec(s-7B
Ec(s-6B
Ec(s-5B
Ec(s-4B
Ec(s-3B
Ec(s-2B
Ec(s-1B
Ec(0B
Ec(s1B
Ec(s2B
Ec(s3B
Ec(s4B
Ec(s5B
Ec(s6B
Ec(s7B
027 040 115 045 055 066
027 040 115 045 054 066
027 040 115 045 053 066
027 040 115 045 052 066
027 040 115 045 051 066
027 040 115 045 050 066
027 040 115 045 049 066
027 040 115 048 066
027 040 115 049 066
027 040 115 050 066
027 040 115 051 066
027 040 115 052 066
027 040 115 053 066
027 040 115 054 066
027 040 115 055 066
1B 28 73 2D 37 42
1B 28 73 2D 36 42
1B 28 73 2D 35 42
1B 28 73 2D 347 42
1B 28 73 2D 33 42
1B 28 73 2D 32 42
1B 28 73 2D 31 42
1B 28 73 30 42
1B 28 73 31 42
1B 28 73 32 42
1B 28 73 33 42
1B 28 73 34 42
1B 28 73 35 42
1B 28 73 36 42
1B 28 73 37 42
Primary Typeface Family
Typeface
Family
Albertus
Antique Olive
Claredon
Coronet
Courier
Garamond Antiqua
Letter Gothic
Marigold
CG Omega
CG Times
Univers
Arial
Times New Roman
Symbol
Wingdings
Ec(s4362T
Ec(s4168T
Ec(s4140T
Ec(s4116T
Ec(s4099T
Ec(s4197T
Ec(s4102T
Ec(s4297T
Ec(s4113T
Ec(s4101T
Ec(s4148T
Ec(s16602T
Ec(s16901T
Ec(s16686T
Ec(s31402T
027 040 115 052 051 054 050 084
027 040 115 052 049 054 056 084
027 040 115 052 049 052 048 084
027 040 115 052 049 049 054 084
027 040 115 052 048 057 057 084
027 040 115 052 049 057 055 084
027 040 115 052 049 048 050 084
027 040 115 052 050 057 055 084
027 040 115 052 049 049 051 084
027 040 115 052 049 048 049 084
027 040 115 052 049 052 056 084
027 040 115 049 054 054 048 050 084
027 040 115 049 054 057 048 049 084
027 040 115 049 054 054 056 054 084
027 040 115 051 049 052 048 050 084
1B 28 73 34 33 36 32 54
1B 28 73 34 31 36 38 54
1B 28 73 34 31 34 30 54
1B 28 73 34 31 31 36 54
1B 28 73 34 30 39 39 54
1B 28 73 34 31 39 37 54
1B 28 73 34 31 30 32 54
1B 28 73 34 32 39 37 54
1B 28 73 34 31 31 33 54
1B 28 73 34 31 30 31 54
1B 28 73 34 31 34 38 54
1B 28 73 31 36 36 30 32 54
1B 28 73 31 36 39 30 31 54
1B 28 73 31 36 36 38 36 54
1B 28 73 31 31 34 30 32 54
Font Default
Font Default Primary Font
Secondary Font
Ec(3@
Ec)3@
027 040 051 064
027 041 051 064
1B 28 33 40
1B 29 33 40
Underline
Underline Enable Fixed
Enable Floating
Disable
Ec&d0D
Ec&d3D
Ec&d@
027 038 100 048 068
027 038 100 051 068
027 038 100 064
1B 26 64 30 44
1B 26 64 33 44
1B 26 64 40
Transparent print
Transparent
Print Data
# of Bytes Ec&p#X(Data) 027 038 112 #…# 088 1B 26 70 #…# 58
Font Management
Function Parameter Command Decimal Value Hexadecimal Value
Assign Font ID
Font and Character Control
Font ID #
Define All Fonts
Delete all temporary fonts
Delete last font ID specified
Delete last character specified
Make font temporary
Make font permanent
Copy/Assign the currently invoked font as temporary
Ec*c#D
Ec*c0F
Ec*c1F
Ec*c2F

Ec*c3F

Ec*c4F
Ec*c5F
Ec*c6F
027 042 099 #…# 068
027 042 099 048 070
027 042 099 049 070
027 042 099 050 070

027 042 099 051 070

027 042 099 052 070
027 042 099 053 070
027 042 099 054 070
1B 2A 63 #…# 44
1B 2A 63 30 46
1B 2A 63 31 46
1B 2A 63 32 46

1B 2A 63 33 46

1B 2A 63 34 46
1B 2A 63 35 46
1B 2A 63 36 46

Soft Symbol Set Management / Creation
Function Parameter Command Decimal Value Hexadecimal Value
Set Symbol Set

Define Symbol Set

Symbol Set Control

ID #

# of Bytes

Delete all symbol sets

Delete all temporary symbol sets

Delete current soft symbol set (last ID#)

Make current soft symbol set temporary

Make current soft symbol set permanent

Ec*c0R

Ec(#W(Data)

Ec*c0S

Ec*c1S


Ec*c2S

Ec*c4S

Ec*c5S

027 042 099 #…# 082

027 040 102 #…# 087

027 042 099 048 083

027 042 099 048 083


027 042 099 049 083


027 042 099 052 083


027 042 099 053 083

1B 2A 63 #…# 52

1B 28 66 #…# 57

1B 2A 63 30 53


1B 2A 63 3153

1B 2A 63 32 53


1B 2A 63 34 53



1B 2A 63 35 53

Font Selection by ID Number
Select font (with ID#) ID # primary font
ID # secondary font
Ec(#X
Ec)#X
027 040 #…# 068
027 041 #…# 068
1B 28 #...# 58
1B 29 #...# 58
Soft Font Creation
Font descriptor (font Header)
Download character
Character code
# of Bytes

# of Bytes
Character code # (decimal)
Ec)s#W(data)

Ec(s#W(Data)
Ec*c#E

027 041 115 #… # 087

027 040 115 #… # 087
027 042 099 #…# 069

1B 29 73 #…# 57

1B 28 73 #…# 57
1B 2A 63 #…# 45

Graphics
Raster Graphics
Function Parameter Command Decimal Value Hexadecimal Value
Raster Resolution 75 dots/inch
100 dots/inch
150 dots/inch
200 dots/inch
300 dots/inch
600 dots/inch
Ec*t75R
Ec*t100R
Ec*t150R
Ec*t200R
Ec*t300R
Ec*t600R
027 042 116 055 053 082
027 042 116 049 048 048 082
027 042 116 049 053 048 082
027 042 116 050 048 048 082
027 042 116 051048 048 082
027 042 116 054 048 048 082
1B 2A 74 37 35 52
1B 2A 74 31 30 30 52
1B 2A 74 31 35 30 52
1B 2A 74 32 30 30 52
1B 2A 74 33 30 30 52
1B 2A 74 36 30 30 52
Orientation
Raster Graphics
Raster graphic Presentation
Start Raster Graphics


Raster Y Offset

Set Raster
Compression
Mode


Transfer Raster
Data by row
End Raster
Graphics
Raster Height
Raster Width
Follows orientation
Follows physical page
Left Raster Graphics Margin
Current Cursor
# of Raster Lines of vertical movement
Unencoded
Run-Length Encoded
Tagged Image File Format
Delta Flow
Adaptive comprerssion
# of Bytes

Old version
Preferred
# Raster Rows
# Pixels of the Specified Resolution
Ec*r0F
Ec*r3F
Ec*r0A

Ec*r1A
Ec*b#Y

Ec*b0M
Ec*b1M
Ec*b2M
Ec*b3M
Ec*b5M
Ec*b#W(Data)

Ec*rB
Ec*rC
Ec*r#T
Ec*r#S

027 042 114 048 070
027 042 114 051 070
027 042 114 048 065

027 042 114 049 065
027 042 098 #…# 089

027 042 098 048 077
027 042 098 049 077
027 042 098 050 077
027 042 098 051 077
027 042 098 053 077
027 042 098 #…# 087

027 042 114 066
027 042 114 067
027 042 114 #…# 084
027 042 114 #…# 083

1B 2A 72 30 46
1B 2A 72 33 46
1B 2A 72 30 41

1B 2A 72 31 41
1B 2A 62 #…# 59

1B 2A 62 30 4D
1B 2A 62 31 4D
1B 2A 62 32 4D
1B 2A 62 33 4D
1B 2A 62 35 4D
1B 2A 62 #…# 57

1B 2A 72 42
1B 2A 72 43
1B 2A 72 #…# 54
1B 2A 72 #…# 53

The Print Model
Imaging
Function Parameter Command Decimal Value Hexadecimal Value
Select Current Pattern








Source Transparency Mode
Pattern Transparency Mode

Solid Black (default)

Solid White
HP-defined Shading Pattern
HP-defined Cross Hatched Pattern
User defined pattern

Transparent
Opaque
Transparent
Opaque

Ec*v0T

Ec*v1T
Ec*v2T

Ec*v3T
Ec*v4T


Ec*v0N
Ec*v1N
Ec*v0O
Ec*v1O

027 042 118 048 084

027 042 118 049 084
027 042 118 050 084

027 042 118 051 084
027 042 118 052 084


027 042 118 048 078
027 042 118 049 078
027 042 118 048 084
027 042 118 048 084

1B 2A 76 30 54

1B 2A 76 31 54
1B 2A 76 32 54

1B 2A 76 33 54
1B 2A 76 34 54


1B 2A 76 30 4E
1B 2A 76 31 4E
1B 2A 76 30 4F
1B 2A 76 31 4F
Rectangle Dimensions
Rectangle Width
(Horizontal size)

Rectangle Height
(Vertical size)

# of dots
# of decipoints
# of dots
# of decipoints
Ec*c#A
Ec*c#H
Ec*c#B
Ec*c# V
027 042 099 #…# 065
027 042 099 #…# 072
027 042 099 #…# 066
027 042 099 #…# 086
1B 2A 63 #…# 41
1B 2A 63 #…# 48
1B 2A 63 #…# 42
1B 2A 63 #…# 56
Rectangle Area Fill
Function Parameter Command Decimal Value Hexadecimal Value
Fill Rectangle Area

Pattern ID







Shading








Pattern

Solid Black
Erase
(Solid white fill)
Shaded Fill
Cross-hatched fill
User-defined
Current Pattern

% of shading or Type of Pattern or user Pattern ID
2% Gray
10% Gray
15% Gray
30% Gray
45% Gray
70% Gray
90% Gray
100% Gray


1 Horiz. Line
2 Vert. Lines
3 Diagonal Lines
4 Diagonal Lines
5 Diagonal Lines
6 Diagonal Lines

Ec*c0P

Ec*c1P
Ec*c2P
Ec*c3P
Ec*c4P
Ec*c5P

Ec*c#G

Ec*c2G
Ec*c10G
Ec*c15G
Ec*c30G
Ec*c45G
Ec*c70G
Ec*c90G
Ec*c100G


Ec*c1G
Ec*c2G
Ec*c3G
Ec*c4G
Ec*c5G
Ec*c6G

027 042 099 048 080

027 042 099 049 080
027 042 099 050 080
027 042 099 051 080
027 042 099 052 080
027 042 099 053 080

027 042 099 #…# 071

027 042 099 050 071
027 042 099 049 048 071
027 042 099 049 053 071
027 042 099 051 048 071
027 042 099 052 053 071
027 042 099 055 048 071
027 042 099 057 048 071
027 042 099 049 048 048 071


027 042 099 049 071
027 042 099 050 071
027 042 099 051 071
027 042 099 052 071
027 042 099 053 071
027 042 099 054 071

1B 2A 63 30 50

1B 2A 63 31 50
1B 2A 63 32 50
1B 2A 63 33 50
1B 2A 63 34 50
1B 2A 63 35 50

1B 2A 63 #...# 47

1A 2A 63 32 47
1A 2A 63 31 30 47
1A 2A 63 31 35 47
1A 2A 63 33 30 47
1A 2A 63 34 35 47
1A 2A 63 37 30 47
1A 2A 63 39 30 47
1A 2A 63 31 30 30 47


1A 2A 63 31 47
1A 2A 63 32 47
1A 2A 63 33 47
1A 2A 63 34 47
1A 2A 63 35 47
1A 2A 63 36 47

User Defined Pattern / Management Creation
Function Parameter Command Decimal Value Hexadecimal Value
Define Pattern # of Bytes Ec*cW(Data) 027 042 099 #…# 087 1B 2A 63 #…# 57
User-defined
Pattern Control
Delete all patterns

Delete all temporary
patterns
Delete current
pattern
Make pattern
Temporary
Make pattern
Permanent
Ec*c0Q

Ec*c1Q

Ec*c2Q

Ec*c4Q

Ec*c5Q
027 042 099 048 081

027 042 099 049 081

027 042 099 050 081

027 042 099 052 081

027 042 099 053 081
1B 2A 63 030 51

1B 2A 63 031 51

1B 2A 63 032 51

1B 2A 63 034 51

1B 2A 63 035 51
Set Pattern
Reference
Point
Rotate with
orientation
Follow physical page
Ec*p0R

Ec*p1R
027 042 112 048 082

027 042 112 049 082
1B 2A 70 30 52

1B 2A 70 31 52
Macros
Function Parameter Command Decimal Value Hexadecimal Value
Macro ID
Macro Control
Macro ID #
Start Macro Def.
Stop Macro Def.
Execute Macro
Call Macro
Enable Overlay
Disable Overlay
Delete Macros
Delete All Temp. Macros
Delete Macro ID
Make Temporary
Make Permanent
Ec&f#Y
Ec&f0X
Ec&f1X
Ec&f2X
Ec&f3X
Ec&f4X
Ec&f5X
Ec&f6X
Ec&f7X
Ec&f8X
Ec&f9X
Ec&f10X
027 038 102 #…# 089
027 038 102 048 088
027 038 102 049 088
027 038 102 050 088
027 038 102 051 088
027 038 102 052 088
027 038 102 053 088
027 038 102 054 088
027 038 102 055 088
027 038 102 056 088
027 038 102 057 088
027 038 102 049 048 088
1B 26 66 #…# 59
1B 26 66 30 58
1B 26 66 31 58
1B 26 66 32 58
1B 26 66 33 58
1B 26 66 34 58
1B 26 66 35 58
1B 26 66 36 58
1B 26 66 37 58
1B 26 66 38 58
1B 26 66 39 58
1B 26 66 31 30 58
Status Readback
Set Status
Readback
Location Type
Invalid
Location

Currently Selected
All Locations
Internal
Downloaded
Cartridge
User-installed ROM
(SIMMS)
Ec*s0T
Ec*s1T

Ec*s2T
Ec*s3T
Ec*s4T
Ec*s5T
Ec*s6T
Ec*s7T
027 042 115 048 084
027 042 115 049 084

027 042 115 050 084
027 042 115 051 084
027 042 115 052 084
027 042 115 053 084
027 042 115 054 084
027 042 115 055 084
1B 2A 73 30 54
1B 2A 73 31 54

1B 2A 73 32 54
1B 2A 73 33 54
1B 2A 73 34 54
1B 2A 73 35 54
1B 2A 73 36 54
1B 2A 73 37 54
Set Status
Readback
Locator Unit
All entities of the
Location Type
Entity 1 or Temporary
Entity 2 or Permanent
Entity 3
Entity 4
Ec*s0U

Ec*s0U
Ec*s0U
Ec*s0U
Ec*s0U
027 042 115 048 085

027 042 115 049 085
027 042 115 050 085
027 042 115 051 085
027 042 115 052 085
1B 2A 73 30 55

1B 2A 73 31 55
1B 2A 73 32 55
1B 2A 73 33 55
1B 2A 73 34 55
Inquire Status
Readback Entity
Font
Macro
User-defined Pattern
Symbol Set
Font Extended
Ec*s0I
Ec*s1I
Ec*s2I
Ec*s3I
Ec*s4I
027 042 115 048 073
027 042 115 049 073
027 042 115 050 073
027 042 115 051 073
027 042 115 052 073
1B 2A 73 30 49
1B 2A 73 31 49
1B 2A 73 32 49
1B 2A 73 33 49
1B 2A 73 35 49
Flush All Pages Flush All complete
pages
Flush all page data
Ec*s0F

Ec*s1F
027 042 115 048 070

027 042 115 048 070
1B 2A 73 30 46

1B 2A 73 31 46

HP GL/2: PCL5e HP Laserjet 4P

Control Codes and Escape Sequences


HP GL/2 Context Printer Commands


DUAL CONTEXT EXTENSIONS
COMMAND MNEMONIC PARAMETERS*
ENTER PCL MODE

RESET
PRIMARY FONT
SECONDARY FONT
SCALABLE OR BITMAPPED FONTS
Esc%#A

EscE
FI
FN
SB
0 Retain previous PCL cursor position
1 Use current HP-GL/2 pen position
None
Font_ID
Font_ID
0 - Scalable fonts only
1 - Bitmapped fonts allowed
PALETTE EXTENSIONS
*Parameters in brackets are optional
TRANSPARENCY MODE

SCREENED VECTORS
TR

SV
0 - Off (opaque)
1 - On (Transparent)
[screen type[,shading[,index]]]
VECTOR GROUP
*Parameters in brackets are optional
ARC ABSOLUTE
ARC RELATIVE
ABSOLUTE ARC THREE POINT
BEZIER ABSOLUTE
BEZIER RELATIVE
PLOT ABSOLUTE
PLOT RELATIVE
PEN DOWN
PEN UP
RELATIVE ARC THREE POINT
POLYUNE ENCODED
AA
AR
AT
BZ
BR
PA
PR
PD
PU
RT
PE
x_center,y_center,sweep_angle [,chord_angle];
x_increment,y_increment,sweep_angle [,chord_angle];
x_inter, y_inter, x_end, y_end [chord_angle];
x1y1x2y2x3y3…[x1y1x2y2x3y3]
x1y1x2y2x3y3…[x1y1x2y2x3y3]
[x,y…[x,y]];
[x,y…[x,y]];
[x,y…[x,y]];
[x,y…[x,y]];
x_incr_inter,y_incr_inter,x_incr_end,y_incr_end [;chord_angle;]
[flag[val]]coord pair…[flag[val][coord pair]];
POLGON GROUP
*Parameters in brackets are optional
CIRCLE
FILL RECTANGLE ABSOLUTE
FILL RECTANGLE RELATIVE
EDGE RECTANGLE ABSOLUTE
EDGE RECTANGLE RELATIVE
FILL WEDGE
EDGE WEDGE
POLYGON MODE
FILL POLYGON

EDGE POLGON
Cl
RA
RR
EA
ER
FW
EW
PM
FP

EP
Radius ['chord_angle];
x_coordinate, y_coordinate
x_increment, y_increment
x_coordinate, y_coordinate
x_increment, y_increment
radius,start_angle,sweep_angle[,chord_angle];
radius,start_angle,sweep_angle[,chord_angle];
polygon_definition;
0 - Odd/even
1 - Non-zero widing
None
CONFIGURATION AND STATUS GROUP
*Parameters in brackets are optional
COMMAND MNEMONIC PARAMETERS*
SCALE


INPUT WINDOW
INPUT P1 AND P2
INPUT RELATIVE P1 AND P2
DEFAULT VALUES
INITIALIZE
ROTATE COORDINATE SYSTEM
SC


IW
IP
IR
DF
IN
RO
[x1,x2,y1,y2[,type[,left,bottom]]];
or
[x1,xfactro,y1,yfactor,2];
[xLL,yLL,xUR,yUR];
[p1x,p1y[,p2x,p2y]];
[p1x,p1y[,p2x,p2y]];
None
[n];
[angle];
CHARACTER GROUP
*Parameters in brackets are optional
SELECT STANDARD FONT
SELECT ALTERNATE FONT
ABSOLUTE DIRECTION
RELATIVE DIRECTION
ABSOLUTE CHARCTER SIZE
RELATIVE CHARACTER SIZE
CHARACTER SLANT
EXTRA SPACE
STANDARD FONT DEFINITION
ALTERNATE FONT DEFINITION
CHARACTER FILL MODE
LABEL ORIGIN
LABEL
DEFINE LABEL TERMINATOR
CHARACTER PLOT
TRANSPARENT DATA
DEFINE VARIABLE TEXT PATH
SS
SA
DI
DR
SI
SR
SL
ES
SD
AD
CF
LO
LB
DT
CP
TD
DV


[run,rise];
[run,rise];
[width,height];
[width,height];
[tangent_of angle]'
[width,height};
[kind,value…[,kind,value]];
[kind,value…[,kind,value]];
[fill_model[,edge_pen]];
[position]
[char…char]_lbterm
[lbterm[,model]];
[spaces,lines];
[mode};
[pathe[,line]];
LINE AND FILL ATTRIBUTES GROUP
*Parameters in brackets are optional
LINE TYPE
LINE ATTRIBUTES
PEN WIDTH
PEN WIDTH UNIT SELECTION
SELECT PEN
SYMBOL MODE
FILL TYPE
ANCHOR CORNER
RASTER FILL DEFINITION

USER DEFINED LINE TYPE
LT
LA
PW
WU
SP
SM
FT
AC
RF

UL
[line_type[,pattern_length[,model]]];
[kind,value…[,kind,value]];
[width[,pen]];
[type];
[pen];(required:1 for black - recommended; 0 for white)
[char];
[fill_type[,option1[,option2]]];
[x_coordinate,y_coordinate];
[index[,width,height,pen_nbr…pen_nbr]];
(width and height must be less than 255)
[index[,gap1…gapn]];
CONFIGURATION AND STATUS GROUP
*Parameters in brackets are optional
SCALE


INPUT WINDOW
INPUT P1 AND P2
INPUT RELATIVE P1 AND P2
DEFAULT VALUES
SC


IW
IP
IR
DF
[x1,x2,y1,y2[,type[,left,bottom]]];
or
[x1,xfactor,y1,yfactor,2];
[xLL,yLL,xUR,yUR];
[p1x,p1y[,p2x,p2y]];
[p1x,p1y[,p2x,p2y]];
INITIALIZE

PJL System Table: PCL5e HP Laserjet 4P


Printer Control Codes and Escape Sequences

NOTE: the following PJL commands are not supported in the
SuperScript 660 and 660I: OPMSG, RDMSG, STMSG, and DEFAULT


PJL SYSTEM TABLE


Suggested Syntax Rules
[ ] Items in brackets "[…] indicates optional parameters.
< > Identifies a control code character
Special Identifiers
<HT> Horizontal tab character (ASCII 9).
<LF> Carriage return character (ASCII 10)
<CR> Carriage return character (ASCII 13)
<SP> Space character (ASCII 32)
<WS> White space
<ESC> Escape character (ASCII 27)
<FF> Form feed character (ASCII 12)
<Words> Printable characters (ASCII characters 33 through 126) and <WS>
PJL COMMANDS
COMMENT @PJL COMMENT <Words> [<CR>] <LF>
DEFAULT @PJL DEFAULT [LPARM:personality] variable = value]<CR>] <LF>
DINQUIRE @PJL DINQUIRE [LPARM:personality] variable [<CR>] <LF>
Response @PJL DINQUIRE [LPARM:personality] variable <CR> <LF> value <CR> <LF> <FF>
ENTER @PJL ECHO [<Words>] [<CR>] <LF>
EOJ @PJL EOJ [Name = job name} [<CR>] <LF>
INFO @PJL INFO read only variable [<CR>] <LF>
Response @PJL INFO read only variable <CR> <LF>
[1 or more lines of printable characters or <WS> followed by <CR> <LF> <FF>
INITIALIZE @PJL INITIALIZE [<CR>] <LF>
INQUIRE @PJL INQUIRE [LPARM: personality] variable [<CR>] <LF>
Response @PJL INQUIRE [LPARM: personality] <CR> <LF> value <CR> <LF> <FF>
JOB @PJL JOB [NAME = "job name"] [START = first page] [End = last page]]<CR>]<LF>
OPMSG @PJL OPMSG DISPLAY = "message" [<CR>] <LF>
RDYMSG @PJL RDYMSG DISPLAY = "message" [<CR>] <LF>
RESET @PJL RESET [<CR>} <LF>
SET @PJL SET [LPARM: personality] variable = value [<CR>} <LF>
STMSG @PJL STMSG DISPLAY ="message" [<CR>] <LF>
Response @PJL STMSG DISPLAY ="message" [<CR>] <LF> key <CR><LF><FF>
UEL/SPJL <ESC>%-12345X
USTATUS @PJL USTATUS variable = value [<CR>] <LF>
Response @PJL USTATUS variable = value [<CR>] <LF>
[1 or more lines of printable characters or <WS> followed by <CR> <LF> <FF>
USTATUSOFF @PJL USTATUSOFF [<CR>} <LF>
PJL @PJL [<CR>} <LF>
ENTER @PJL ENTER LANGUAGE = personality[<CR>] <LF>
EOJ @PJL EOJ NAME [NAME = job name] [<CR>] <LF>
INFO @PJL INFO read only variable [<CR.] <LF>
Response @PJL INFO read only variable <CR> <LF>
[1 or more lines of printable characters of <WS> followed by <CR> <LF> <FF>
INITIALIZE @PJL INITIALIZE [<CR>] <LF>
INQUIRE @PJL INQUIRE [LPARM: personality] variable [<CR>] <LF>
Response @PJL INQUIRE [LPARM: personality] variable <CR> <LF> value <CR> <LF> <FF>
JOB @PJL JOB [Name ="job name"] [START
OPMSG @PJL OPMSG DISPLAY = "message' [<CR>] <LF>
RDYMSG @PJL RDYMSG DISPLAY = "message" [<CR>] <LF>
RESET @PJL RESET [<CR>] <LF>
SET @PJL SET [LPARM: personality] variable = value [<CR>] <LF>
STMSG @PJL STMSG DISPLAY = "message" [<CR>] <LF>
Response @PJL STMSG DISPLAY = "message" <CR> <LF>
UEL/SPJL @PJL <ESC>%-12345X
USTATUS @PJL USTATUS variable = value [<CR>] <LF>
Response @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 @PJL [<CR>] <LF>