Introduction
This appendix lists HP printer language commands. Table A-1 lists
PCL 5 commands in hierarchical order and gives the decimal and
hexadecimal equivalents of each. Table A-2 lists HP-GL/2
commands, where as Table A-3 lists control codes.
Note
Values in parentheses “(x)” identify the lower case of the termination
character which is used for combining commands.
Note
For information about products newer than those included in this
book, see the PCL5 Comparison Guide Addendum, which includes
product-specific information about newer products, as well as
commands and variables added to support these newer products.
A-2 Printer Commands
ENWW
Table A-1. HP PCL5 Commands
1
For HP LaserJet 5Si/5SiMx printers,
?&l2G
selects the “printer left/face up bin,” which is not available when the High Capacity Output (HCO)
is attached.
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
JOB CONTROL COMMANDS
Reset
Configuration
(AppleTalk)
Key/Value data pair
?
&b#W[data]
027 038 098 #...# 87
1B 26 62 #...# 57
Universal Exit
Language (ULE)
—
?
%–12345X
027 037 045 049 050 051 052 053 088
1B 25 2D 31 32 33 34 35 58
Reset
—
?
E
027 069
1B 45
Number of Copies
# of Copies
?
&
l
#X
(x)
027 038 108 #...# 088
(120) 1B 26 6C #...# 58
(78)
Simplex/Duplex Print
Simplex
?
&
l
0S
(s)
027 038 108 048 083
(115) 1B 26 6C 30 53
(73)
Duplex
Long Edge Binding
?
&
l
1S
(s)
027 038 108 049 083
(115) 1B 26 6C 31 53
(73)
Short Edge Binding
?
&
l
2S
(s)
027 038 108 050 083
(115) 1B 26 6C 32 53
(73)
Long-Edge (Left)
Offset Registration
# of Decipoints
(1/720")
?
&
l
#U
(u) 027 038 108 #...# 085
(117) 1B 26 6C #...# 55
(75)
Short-Edge (Top)
Offset Registration
# of Decipoints
(1/720")
?
&
l
#Z
(z)
027 038 108 #...# 090
(122) 1B 26 6C #...# 5A
(7A)
Page Side Selection
Next Side
?
&a0G
(g) 027 038 097 048 071
(103) 1B 26 61 30 47
(67)
Front Side
?
&a1G
(g) 027 038 097 049 071
(103) 1B 26 61 31 47
(67)
Back Side
?
&a2G
(g) 027 038 097 050 071
(103) 1B 26 61 32 47
(67)
Job Separation
—
?
&
l
1T
(t)
027 038 108 049 084
(116) 1B 26 6C 31 54
(74)
Output (Media) Bin
Automatic selection
?
&
l
0G
(g) 027 038 108 048 071
(103) 1B 26 6C 30 47
(67)
Selection
Upper Output Bin
(Bin #1)
?
&
l
1G
(g) 027 038 108 049 071
(103) 1B 26 6C 31 47
(67)
Rear Output Bin1
(Bin #2)
?
&
l
2G
(g) 027 038 108 050 071
(103) 1B 26 6C 32 47
(67)
Selects Bin #3
?
&
l
3G
(g) 027 038 108 051 071
(103) 1B 26 6C 33 47
(67)
Selects Bin #4
?
&
l
4G
(g) 027 038 108 052 071
(103) 1B 26 6C 34 47
(67)
Selects Bin #5
?
&
l
5G
(g) 027 038 108 053 071
(103) 1B 26 6C 35 47
(67)
Selects Bin #6
?
&
l
6G
(g) 027 038 108 054 071
(103) 1B 26 6C 36 47
(67)
Selects Bin #7
?
&
l
7G
(g) 027 038 108 055 071
(103) 1B 26 6C 37 47
(67)
Selects Bin #8
?
&
l
8G
(g) 027 038 108 056 071
(103) 1B 26 6C 38 47
(67)
Selects Bin #9
?
&
l
9G
(g) 027 038 108 057 071
(103) 1B 26 6C 39 47
(67)
Selects Bin #10
?
&
l
10G
(g) 027 038 108 049 048 071
(103) 1B 26 6C 31 30 47
(67)
Selects Bin #11
?
&
l
11G
(g) 027 038 108 049 049 071
(103) 1B 26 6C 31 31 47
(67)
Self-Test
—
?
Z
027 090
1B 5A
Finish Mode
Matte
?
&b0F
(f)
027 038 098 048 070
(102) 1B 26 62 30 46
(66)
Glossy
?
&b1F
(f)
027 038 098 049 070
(102) 1B 26 62 31 46
(66)
Driver Function
Config.
Vivid
?
*o3W643
027 042 111 051 087 054 052 051
1B 2A 6F 33 57 36 34 33
Screen Match
?
*o3W646
027 042 111 051 087 054 052 054
1B 2A 6F 33 57 36 34 36
Load Calibration Tbl
?
*o3W647
027 042 111 051 087 054 052 055
1B 2A 6F 33 57 36 34 37
ENWW
Printer Commands A-3
Table A-1. HP PCL5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
Unit of
Measure
# Number of units per
inch
?
&u#D
(d)
027 038 117 #...# 068
(100) 1B 26 75 #...# 44
(64)
Mechanical
Print Quality
Normal
?
*o0Q
(q)
027 042 111 048 081
(113) 1B 2A 6F 30 51
(71)
Better
?
*o1Q
(q)
027 042 111 049 081
(113) 1B 2A 6F 31 51
(71)
Best
?
*o2Q
(q)
027 042 111 050 081
(113) 1B 2A 6F 32 51
(71)
Media Type
Plain
?
&
l
0M
(m)
027 038 108 048 077
(109) 1B 26 6C 30 4D
(6D)
Bond
?
&
l
1M
(m)
027 038 108 049 077
(109) 1B 26 6C 31 4D
(6D)
Special
?
&
l
2M
(m)
027 038 108 050 077
(109) 1B 26 6C 32 4D
(6D)
Glossy
?
&
l
3M
(m)
027 038 108 051 077
(109) 1B 26 6C 33 4D
(6D)
Transparency
?
&
l
4M
(m)
027 038 108 052 077
(109) 1B 26 6C 34 4D
(6D)
Negative
Motion
Contains negative
motion
?
&a0N
(n)
027 038 097 048 078
(110) 1B 26 61 30 4E
(6E)
Does not contain
negative motion
?
&a1N
(n)
027 038 097 049 078
(110) 1B 26 61 31 4E
(6E)
PAGE CONTROL COMMANDS
Page Length and Size
Paper
Source
Eject Page
?
&
l
0H
(h)
027 038 108 048 072
(104) 1B 26 6C 30 48
(68)
Main Paper Source
?
&
l
1H
(h)
027 038 108 049 072
(104) 1B 26 6C 31 48
(68)
Manual Feed
?
&
l
2H
(h)
027 038 108 050 072
(104) 1B 26 6C 32 48
(68)
Manual Envelope Feed
?
&
l
3H
(h)
027 038 108 051 072
(104) 1B 26 6C 33 48
(68)
Alternate Paper Source
?
&
l
4H
(h)
027 038 108 052 072
(104) 1B 26 6C 34 48
(68)
Optional Large Paper
Source
?
&
l
5H
(h)
027 038 108 053 072
(104) 1B 26 6C 35 48
(68)
Envelope Feeder
?
&
l
6H
(h)
027 038 108 054 072
(104) 1B 26 6C 36 48
(68)
Auto Select
?
&
l
7H
(h)
027 038 108 055 072
(104) 1B 26 6C 37 48
(68)
Tray 1 (right tray)
?
&
l
8H
(h)
027 038 108 056 072
(104) 1B 26 6C 38 48
(68)
Page Size
Executive
?
&
l
1A
(a)
027 038 108 049 065
(97)
1B 26 6C 31 41
(61)
Letter
?
&
l
2A
(a)
027 038 108 050 065
(97)
1B 26 6C 32 41
(61)
Legal
?
&
l
3A
(a)
027 038 108 051 065
(97)
1B 26 6C 33 41
(61)
Ledger
?
&
l
6A
(a)
027 038 108 054 065
(97)
1B 26 6C 36 41
(61)
A3
?
&
l
27A
(a)
027 038 108 050 055 065
(97)
1B 26 6C 32 37 41
(61)
A4
?
&
l
26A
(a)
027 038 108 050 054 065
(97)
1B 26 6C 32 36 41
(61)
A5
?
&
l
25A
(a)
027 038 108 050 053 065
(97)
1B 26 6C 32 35 41
(61)
A6
?
&
l
24A
(a)
027 038 108 050 052 065
(97)
1B 26 6C 32 34 41
(61)
JIS B4 Paper
?
&
l
46A
(a)
027 038 108 052 054 065
(97)
1B 26 6C 34 36 41
(61)
JIS B5 Paper
?
&
l
45A
(a)
027 038 108 052 053 065
(97)
1B 26 6C 34 35 41
(61)
JIS B6 Paper
?
&
l
44A
(a)
027 038 108 052 052 065
(97)
1B 26 6C 34 34 41
(61)
Hagaki Postcard
?
&
l
71A
(a)
027 038 108 055 049 065
(97)
1B 26 6C 37 31 41
(61)
Oufuku-Hagaki
?
&
l
72A
(a)
027 038 108 055 050 065
(97)
1B 26 6C 37 32 41
(61)
Monarch Envelope
?
&
l
80A
(a)
027 038 108 056 048 065
(97)
1B 26 6C 38 30 41
(61)
COM 10 Envelope
?
&
l
81A
(a)
027 038 108 056 049 065
(97)
1B 26 6C 38 31 41
(61)
DL Envelope
?
&
l
90A
(a)
027 038 108 057 048 065
(97)
1B 26 6C 39 30 41
(61)
C5 Envelope
?
&
l
91A
(a)
027 038 108 057 049 065
(97)
1B 26 6C 39 31 41
(61)
B5 Envelope
?
&
l
100A
(a)
027 038 108 049 048 048 065
(97)
1B 26 6C 31 30 30 41
(61)
Custom
?
&
l
101A
(a)
027 038 108 049 048 049 065
(97)
1B 26 6C 31 30 31 41
(61)
A-4 Printer Commands
ENWW
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
Orientation
Orientation
Portrait
?
&
l
0O
(o)
027 038 108 048 079
(111)
1B 26 6C 30 4F
(6F)
Landscape
?
&
l
1O
(o)
027 038 108 049 079
(111)
1B 26 6C 31 4F
(6F)
Reverse Portrait
?
&
l
2O
(o)
027 038 108 050 079
(111)
1B 26 6C 32 4F
(6F)
Reverse
Landscape
?
&
l
3O
(o)
027 038 108 051 079
(111)
1B 26 6C 33 4F
(6F)
Print Direction
# Degrees of
Rotation
(counter-
clockwise,
90° increments
only)
?
&a#P
(p)
027 038 097 #...# 080
(112)
1B 26 61 #...# 50
(70)
Character Text
Path Direction
Horizontal
Vertical Rotated
?
&c
0
T
?
&c–1T
(t)
(t)
027 038 099 048 084
027 038 099 045 049 084
(116)
(116)
1B 26 63 30 54
1B 26 63 2D 31 54
(74)
(74)
Margins and Text Length
Top Margin
# of Lines
?
&
l
#E
(e)
027 038 108 #...# 069
(101)
1B 26 6C #...# 45
(65)
Text Length
# of Lines
?
&
l
#F
(f)
027 038 108 #...# 070
(102)
1B 26 6C #...# 46
(66)
Left Margin
# of Columns
?
&a#L
(l)
027 038 097 #...# 076
(108)
1B 26 61 #...# 4C
(6C)
Right Margin
# of Columns
?
&a#M
(m) 027 038 097 #...# 077
(109)
1B 26 61 #...# 4D
(6D)
Clear Horizontal
Margins
—
?
9 027
057
1B 39
Perforation Skip Mode
Perforation Skip
Disable
?
&
l
0L
(l)
027 038 108 048 076
(108)
1B 26 6C 30 4C
(6C)
Enable
?
&
l
1L
(l)
027 038 108 049 076
(108)
1B 26 6C 31 4C
(6C)
Horizontal Column Spacing
Horizontal Motion
Index (HMI)
# of 1/120"
Increments
?
&k#H
(h)
027 038 107 #...# 072
(104)
1B 26 6B #...# 48
(68)
Vertical Line Spacing
Vertical Motion
Index (VMI)
# of 1/48"
Increments
?
&
l
#C
(c)
027 038 108 #...# 067
(99)
1B 26 6C #...# 43
(63)
Line Spacing
(Lines per inch)
1 line/inch
?
&
l
1D
(d)
027 038 108 049 068
(100)
1B 26 6C 31 44
(64)
2 lines/inch
?
&
l
2D
(d)
027 038 108 050 068
(100)
1B 26 6C 32 44
(64)
3 lines/inch
?
&
l
3D
(d)
027 038 108 051 068
(100)
1B 26 6C 33 44
(64)
4 lines/inch
?
&
l
4D
(d)
027 038 108 052 068
(100)
1B 26 6C 34 44
(64)
6 lines/inch
?
&
l
6D
(d)
027 038 108 054 068
(100)
1B 26 6C 36 44
(64)
8 lines/inch
?
&
l
8D
(d)
027 038 108 056 068
(100)
1B 26 6C 38 44
(64)
12 lines/inch
?
&
l
12D
(d)
027 038 108 049 050 068
(100)
1B 26 6C 31 32 44
(64)
16 lines/inch
?
&
l
16D
(d)
027 038 108 049 054 068
(100)
1B 26 6C 31 36 44
(64)
24 lines/inch
?
&
l
24D
(d)
027 038 108 050 052 068
(100)
1B 26 6C 32 34 44
(64)
48 lines/inch
?
&
l
48D
(d)
027 038 108 052 056 068
(100)
1B 26 6C 34 38 44
(64)
ALPHANUMERIC ID
Alphanumeric ID
# of bytes
?
&n#W[operation]
[String]
027 038 110 #...# 087
1B 26 6E #...# 57
ENWW
Printer Commands A-5
Table A-1. HP PCL 5 Commands (continued)
1
Additional symbol sets are supported, refer to Table C-1 for a list of these symbol sets.
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
CURSOR POSITIONING
Vertical and Horizontal
Vertical Position
# of Rows
?
&a#R
(r)
027 038 097 #...# 082 (114) 1B 26 61 #...# 52
(72)
# of Units
?
*p#Y
(y)
027 042 112 #...# 089 (121) 1B 2A 70 #...# 59
(79)
# of Decipoints
?
&a#V
(v)
027 038 097 #...# 086 (118) 1B 26 61 #...# 56
(76)
Horizontal Position
# of Columns
?
&a#C
(c)
027 038 097 #...# 067 (99)
1B 26 61 #...# 43
(63)
# of Units
?
*p#X
(x)
027 042 112 #...# 088 (120) 1B 2A 70 #...# 58
(78)
# of Decipoints
?
&a#H
(h)
027 038 097 #...# 072 (104) 1B 26 61 #...# 48
(68)
Half Line Feed
?
=
027 061
1B 3D
End-of-Line Termination
Line Termination
CR=CR; LF=LF; FF=FF
?
&k0G
(g)
027 038 107 048 071 (103) 1B 26 6B 30 47
(67)
CR=CRLF; LF=LF; FF=FF
?
&k1G
(g)
027 038 107 049 071 (103) 1B 26 6B 31 47
(67)
CR=CR; LF=CRLF; FF=CRFF
?
&k2G
(g)
027 038 107 050 071 (103) 1B 26 6B 32 47
(67)
CR=CRLF; LF=CRLF; FF=CRFF
?
&k3G
(g)
027 038 107 051 071 (103) 1B 26 6B 33 47
(67)
Push/Pop Position
Push/Pop Position
Push
?
&f0S
(s)
027 038 102 048 083 (115) 1B 26 66 30 53
(73)
Pop
?
&f1S
(s)
027 038 102 049 083 (115) 1B 26 66 31 53
(73)
FONT SELECTION
Symbol Set Selection
1
Primary Symbol Set
ISO 60: Norwegian 1
?
(0D
027 040 048 068
1B 28 30 44
ISO 4: United Kingdom
?
(1E
027 040 049 069
1B 28 31 45
Windows 3.1 Latin 2
?
(9E
027 040 057 069
1B 28 39 45
ISO 69: French
?
(1F
027 040 049 070
1B 28 31 46
ISO 21: German
?
(1G
027 040 049 071
1B 28 31 47
ISO 15: Italian
?
(0I
027 040 048 073
1B 28 30 49
Microsoft Publishing
?
(6J
027 040 054 074
1B 28 36 4A
A-6 Printer Commands
ENWW
Table A-1. HP PCL 5 Commands (continued)
1
Additional symbol sets are supported, refer to Table C-1 for a list of these symbol sets.
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
Symbol Set Selection
1
- continued
Primary Symbol Set
DeskTop
?
(7J
027 040 055 074
1B 28 37 4A
PC 1004
?
(9J
027 040 057 074
1B 28 39 4A
PS Text
?
(10J
027 040 049 048 074
1B 28 31 30 4A
MC Text
?
(12J
027 040 049 050 074
1B 28 31 32 4A
Ventura International
?
(13J
027 040 049 051 074
1B 28 31 33 4A
Ventura US
?
(14J
027 040 049 052 074
1B 28 31 34 4A
Ventura ITC Zapf Dingbats
?
(9L
027 040 057 076
1B 28 39 4C
PS ITC Zapf Dingbats
?
(10L
027 040 049 048 076
1B 28 31 30 4C
ITC Zapf Dingbats Series 100
?
(11L
027 040 049 049 076
1B 28 31 31 4C
ITC Zapf Dingbats Series 200
?
(12L
027 040 049 050 076
1B 28 31 32 4C
ITC Zapf Dingbats Series 300
?
(13L
027 040 049 051 076
1B 28 31 33 4C
ITC Zapf Dingbats MS
?
(14L
027 040 049 052 076
1B 28 31 34 4C
Windows Baltic
?
(19L
027 040 049 076
1B 28 31 4C
Wingdings
?
(579L
027 040 053 055 057 076
1B 28 35 37 39 4C
PS Math
?
(5M
027 040 053 077
1B 28 35 4D
Ventura Math
?
(6M
027 040 054 077
1B 28 36 4D
Math-8
?
(8M
027 040 056 077
1B 28 38 4D
Symbol and SymbolPS
?
(19M
027 040 049 057 077
1B 28 31 39 4D
ISO 8859-1 (ECMA-94) Latin 1
?
(0N
027 040 048 078
1B 28 30 4E
ISO 8859-2: Latin 2
?
(2N
027 040 050 078
1B 28 32 4E
ISO 8859-9: Latin 5
?
(5N
027 040 053 078
1B 28 35 4E
ISO 8859-10: Latin 6
?
(6N
027 040 054 078
1B 28 36 4E
ISO 8859-15: Latin 9
?
(9N
027 040 057 078
1B 28 39 4E
ISO 11: Swedish
?
(0S
027 040 048 083
1B 28 30 53
ISO 17: Spanish
?
(2S
027 040 050 083
1B 28 32 53
Windows 3.1 Latin 5
?
(5T
027 040 053 084
1B 28 35 54
PC 775
?
(26U
027 040 050 054 085
1B 28 32 36 55
ENWW
Printer Commands A-7
Table A-1. HP PCL 5 Commands (continued)
1
Additional symbol sets are supported, refer to Table C-1 for a list of these symbol sets.
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
Symbol Set Selection
1
- continued
Primary Symbol Set PC Turkish
?
(9T
027 040 057 084
1B 28 39 54
ISO 6: ASCII
?
(0U
027 040 048 085
1B 28 30 55
Legal
?
(1U
027 040 049 085
1B 28 31 55
Roman-9
?
(4U
027 040 052 085
1B 28 34 55
Roman-8
?
(8U
027 040 056 085
1B 28 38 55
Windows 3.0 Latin 1
?
(9U
027 040 057 085
1B 28 39 55
PC-8
?
(10U
027 040 049 048 085
1B 28 31 30 55
PC-8 D/N
?
(11U
027 040 049 049 085
1B 28 31 31 55
PC-850
?
(12U
027 040 049 050 085
1B 28 31 32 55
PC-858
?
(13U
027 040 049 051 085
1B 28 31 33 55
Pi Font
?
(15U
027 040 049 053 085
1B 28 31 35 55
PC-852
?
(17U
027 040 049 055 085
1B 28 31 37 55
Windows 3.1 Latin 1 (ANSI)
?
(19U
027 040 049 057 085
1B 28 31 39 55
Windows 3.1J(Japanese)
?
(19K
027 040 049 057 075
1B 28 31 39 4B
Spacing
Primary Spacing
Fixed
?
(s0P
(p)
027 040 115 048 080
(112)
1B 28 73 30 50
(70)
Proportional
?
(s1P
(p)
027 040 115 049 080
(112)
1B 28 73 31 50
(70)
Pitch
Primary Pitch
# Characters/inch
?
(s#H
(h)
027 040 115 #...# 072
(104)
1B 28 73 #...# 48
(68)
Set Pitch Mode
10.0
?
&k0S
(s)
027 038 107 048 083
(115)
1B 26 6B 30 53
(73)
Compressed (16.5-16.7)
?
&k2S
(s)
027 038 107 050 083
(115)
1B 26 6B 32 53
(73)
Elite (12.0)
?
&k4S
(s)
027 038 107 052 083
(115)
1B 26 6B 34 53
(73)
Point Size
Primary Height
# Points
?
(s#V
(v)
027 040 115 #...# 086
(118)
1B 28 73 #...# 56
(76)
A-8 Printer Commands
ENWW
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
Style
Primary Style
Upright (Solid)
?
(s0S
(s)
027 040 115 048 083
(115)
1B 28 73 30 53
(73)
Italic
?
(s1S
(s)
027 040 115 049 083
(115)
1B 28 73 31 53
(73)
Condensed
?
(s4S
(s)
027 040 115 052 083
(115)
1B 28 73 34 53
(73)
Condensed Italic
?
(s5S
(s)
027 040 115 053 083
(115)
1B 28 73 35 53
(73)
Compressed (Extra
Condensed)
?
(s8S
(s)
027 040 115 056 083
(115)
1B 28 73 38 53
(73)
Expanded
?
(s24S
(s)
027 040 115 050 052 083
(115)
1B 28 73 32 34 53
(73)
Outline
?
(s32S
(s)
027 040 115 051 050 083
(115)
1B 28 73 33 32 53
(73)
Inline
?
(s64S
(s)
027 040 115 054 052 083
(115)
1B 28 73 36 34 53
(73)
Shadowed
?
(s128S
(s)
027 040 115 049 050 056 083 (115)
1B 28 73 31 32 38 53
(73)
Outline Shadowed
?
(s160S
(s)
027 040 115 049 054 048 083 (115)
1B 28 73 31 36 30 53
(73)
Additional style values may be obtained from the related documentation provided with HP’s font products.
PCL 5 LaserJet Printers allows the specification of complex structures (contours, outlines, shading, etc.) and widths as well as posture.
Refer to the PCL 5 Printer Language Technical Reference Manual.
Stroke Weight
Primary Font
Stroke Weight
Ultra Thin
?
(s–7B
(b)
027 040 115 045 055 066
(98)
1B 28 73 2D 37 42
(62)
Extra Thin
?
(s–6B
(b)
027 040 115 045 054 066
(98)
1B 28 73 2D 36 42
(62)
Thin
?
(s–5B
(b)
027 040 115 045 053 066
(98)
1B 28 73 2D 35 42
(62)
Extra Light
?
(s–4B
(b)
027 040 115 045 052 066
(98)
1B 28 73 2D 34 42
(62)
Light
?
(s–3B
(b)
027 040 115 045 051 066
(98)
1B 28 73 2D 33 42
(62)
Demi Light
?
(s–2B
(b)
027 040 115 045 050 066
(98)
1B 28 73 2D 32 42
(62)
Semi Light
?
(s–1B
(b)
027 040 115 045 049 066
(98)
1B 28 73 2D 31 42
(62)
Medium (book or text)
?
(s0B
(b)
027 040 115 048 066
(98)
1B 28 73 30 42
(62)
Semi Bold
?
(s1B
(b)
027 040 115 049 066
(98)
1B 28 73 31 42
(62)
Demi Bold
?
(s2B
(b)
027 040 115 050 066
(98)
1B 28 73 32 42
(62)
Bold
?
(s3B
(b)
027 040 115 051 066
(98)
1B 28 73 33 42
(62)
Extra Bold
?
(s4B
(b)
027 040 115 052 066
(98)
1B 28 73 34 42
(62)
Black
?
(s5B
(b)
027 040 115 053 066
(98)
1B 28 73 35 42
(62)
Extra Black
?
(s6B
(b)
027 040 115 054 066
(98)
1B 28 73 36 42
(62)
Ultra Black
?
(s7B
(b)
027 040 115 055 066
(98)
1B 28 73 37 42
(62)
ENWW
Printer Commands A-9
Table A-1. HP PCL 5 Commands (continued)
1
Additional symbol sets are supported, refer to Table C-2 and C-3 for a list of these symbol sets.
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
Primary Typeface Family
1
Typeface
Family
LinePrinter
?
(s0T
(t)
027 040 115 048 084
(116)
1B 28 73 30 54
(74)
Albertus
?
(s4362T
(t)
027 040 115 052 051 054 050 084
(116)
1B 28 73 34 33 36 32 54
(74)
Antique Olive
?
(s4168T
(t)
027 040 115 052 049 054 056 084
(116)
1B 28 73 34 31 36 38 54
(74)
Arial
?
(s16602T
(t)
027 040 115 049 054 054 048 050 084 (116)
1B 28 73 31 36 36 30 32 54 (74)
ITC Avant Garde
Gothic
?
(s24607T
(t)
027 040 115 050 052 054 048 055 084 (116)
1B 28 73 32 34 36 30 37 54 (74)
ITC Bookman
?
(s24623T
(t)
027 040 115 050 052 054 050 051 084 (116)
1B 28 73 32 34 36 32 33 54 (74)
ITC Zapf Chancery
?
(s45099T
(t)
027 040 115 052 053 048 057 057 084 (116)
1B 28 73 34 35 30 39 39 54 (74)
Clarendon
?
(s4140T
(t)
027 040 115 052 049 052 048 084
(116)
1B 28 73 34 31 34 30 54
(74)
Coronet
?
(s4116T
(t)
027 040 115 052 049 049 054 084
(116)
1B 28 73 34 31 31 36 54
(74)
Courier
?
(s3T
(t)
027 040 115 051 084
(116)
1B 28 73 33 54
(74)
Courier
?
(s4099T
(t)
027 040 115 052 048 057 057 084
(116)
1B 28 73 34 30 39 39 54
(74)
CourierPS
?
(s24579T
(t)
027 040 115 050 052 053 055 057 084 (116)
1B 28 73 32 34 35 37 39 54 (74)
ITC Zapf Dingbats
?
(s4141T
(t)
027 040 115 052 049 052 049 084
(116)
1B 28 73 34 31 34 31 54
(74)
ITC Zapf Dingbats MS
?
(s45101T
(t)
027 040 115 052 053 049 048 049 084 (116)
1B 28 73 34 35 31 30 31 54 (74)
Garamond Antiqua
?
(s4197T
(t)
027 040 115 052 049 057 055 084
(116)
1B 28 73 34 31 39 37 54
(74)
MS Gothic
?
(s28825T
(t)
027 040 115 050 056 056 050 053 084 (116)
1B 28 73 32 38 38 32 35 54 (74)
Helvetica
?
(s24580T
(t)
027 040 115 050 052 053 056 048 084 (116)
1B 28 73 32 34 35 38 30 54 (74)
Helvetica Narrow
?
(s24580T
(t)
027 040 115 050 052 053 056 048 084 (116)
1B 28 73 32 34 35 38 30 54 (74)
GW-Kai
?
(s37357T
(t)
027 040 115 051 055 051 053 055 084 (116)
1B 28 73 33 37 33 35 37 54 (74)
Letter Gothic
?
(s4102T
(t)
027 040 115 052 049 048 050 084
(116)
1B 28 73 34 31 30 32 54
(74)
Marigold
?
(s4297T
(t)
027 040 115 052 050 057 055 084
(116)
1B 28 73 34 32 39 37 54
(74)
MS Mincho
?
(s28752T
(t)
027 040 115 050 056 055 053 050 084 (116)
1B 28 73 32 38 37 35 32 54 (74)
New Century Schlbk
?
(s24703T
(t)
027 040 115 050 052 055 048 051 084 (116)
1B 28 73 32 34 37 30 33 54 (74)
CG Omega
?
(s4113T
(t)
027 040 115 052 049 049 051 084
(116)
1B 28 73 34 31 31 33 54
(74)
Palatino
?
(s24591T
(t)
027 040 115 050 052 053 057 049 084 (116)
1B 28 73 32 34 35 39 31 54 (74)
SimHei
?
(s37110T
(t)
027 040 115 051 055 049 049 048 084 (116)
1B 28 73 33 37 31 31 30 54 (74)
SimSun
?
(s37058T
(t)
027 040 115 051 055 048 053 056 084 (116)
1B 28 73 33 37 30 35 38 54 (74)
Symbol
?
(s16686T
(t)
027 040 115 049 054 054 056 054 084 (116)
1B 28 73 31 36 36 38 36 54 (74)
SymbolPS
?
(s45358T
(t)
027 040 115 052 053 051 053 056 084 (116)
1B 28 73 34 35 33 35 38 54 (74)
CG Times
?
(s4101T
(t)
027 040 115 052 049 048 049 084
(116)
1B 28 73 34 31 30 31 54
(74)
Times New
?
(s16901T
(t)
027 040 115 049 054 057 048 049 084 (116)
1B 28 73 31 36 39 30 31 54 (74)
Times Roman
?
(s25093T
(t)
027 040 115 050 053 048 057 051 084 (116)
1B 28 73 32 35 30 39 33 54 (74)
Univers
?
(s4148T
(t)
027 040 115 052 049 052 056 084
(116)
1B 28 73 34 31 34 38 54
(74)
Wingdings
?
(s6826T
(t)
027 040 115 054 056 050 054 084
(116)
1B 28 73 36 38 32 36 54
(74)
Wingdings
?
(s31402T
(t)
027 040 115 051 049 052 048 050 084 (116)
1B 28 73 33 31 34 30 32 54 (74)
A-10 Printer Commands
ENWW
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
FONT DEFAULT
Font Default Primary Font
?
(3@
027 040 051 064
1B 28 33 40
Secondary Font
?
)3@
027 041 051 064
1B 29 33 40
UNDERLINE
Underline
Enable Fixed
?
&d0D
(d)
027 038 100 048 068
(100)
1B 26 64 30 44
(64)
Enable Floating
?
&d3D
(d)
027 038 100 051 068
(100)
1B 26 64 33 44
(64)
Disable
?
&d@
027 038 100 064
1B 26 64 40
TEXT PARSING METHOD
Text
Parsing
Method
1-Byte
1-Byte
1-Byte/2-Byte
1-Byte/2-Byte
1-Byte/2-Byte
?
&t0P
?
&t1P
?
&t21P
?
&t31P
?
&t38P
(p)
(p)
(p)
(p)
(p)
027 038 116 48 080
027 038 116 49 080
027 038 116 050 049 080
027 038 116 051 049 080
027 038 116 051 056 080
(112)
(112)
(112)
(112)
(112)
1B 26 74 30 50
1B 26 74 31 50
1B 26 74 32 31 50
1B 26 74 33 31 50
1B 26 74 33 38 50
(70)
(70)
(70)
(70)
(70)
TRANSPARENT PRINT DATA
Transparent
Print Data
# of Bytes
?
&p#X[Data]
027 038 112 #...# 088
1B 26 70 #...# 58
FONT MANAGEMENT
Assign Font
ID
Font ID #
?
*c#D
(d)
027 042 099 #...# 068
(100)
1B 2A 63 #...# 44
(64)
Font and
Character
Control
Delete all Fonts
?
*c0F
(f)
027 042 099 048 070
(102)
1B 2A 63 30 46
(66)
Delete all
temporary fonts
?
*c1F
(f)
027 042 099 049 070
(102)
1B 2A 63 31 46
(66)
Delete last font ID
specified
?
*c2F
(f)
027 042 099 050 070
(102)
1B 2A 63 32 46
(66)
Delete last
character
specified
?
*c3F
(f)
027 042 099 051 070
(102)
1B 2A 63 33 46
(66)
Make font
temporary
?
*c4F
(f)
027 042 099 052 070
(102)
1B 2A 63 34 46
(66)
Make font
permanent
?
*c5F
(f)
027 042 099 053 070
(102)
1B 2A 63 35 46
(66)
Copy/Assign the
currently invoked
font as temporary
?
*c6F
(f)
027 042 099 054 070
(102)
1B 2A 63 36 46
(66)
Soft Symbol Set Management / Creation
Set Symbol
Set
ID #
?
*c#R
(r)
027 042 099 #...# 082
(114)
1B 2A 63 #...# 52
(72)
Define
Symbol Set
# of Bytes
?
(f#W[Data]
027 040 102 #...# 087
1B 28 66 #...# 57
Symbol Set
Control
Delete all symbol
sets
?
*c0S
(s)
027 042 099 048 083
(115)
1B 2A 63 30 53
(73)
Delete all
temporary symbol
sets
?
*c1S
(s)
027 042 099 049 083
(115)
1B 2A 63 31 53
(73)
Delete current soft
symbol set (last
ID#)
?
*c2S
(s)
027 042 099 050 083
(115)
1B 2A 63 32 53
(73)
Make current soft
symbol set
temporary
?
*c4S
(s)
027 042 099 052 083
(115)
1B 2A 63 34 53
(73)
Make current soft
symbol set
permanent
?
*c5S
(s)
027 042 099 053 083
(115)
1B 2A 63 35 53
(73)
ENWW
Printer Commands A-11
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
Font Selection by ID Number
Select font (with
ID #)
ID # primary font
?
(#X
027 040 #...# 088
1B 28 #...# 58
ID # secondary font
?
)#X
027 041 #...# 088
1B 29 #...# 58
SOFT FONT CREATION
Font descriptor
(font header)
# of bytes
?
)s#W[Data]
027 041 115 #...# 087
1B 29 73 #...# 57
Download
character
# of bytes
?
(s#W[Data]
027 040 115 #...# 087
1B 28 73 #...# 57
Character code
Character code #
(decimal)
?
*c#E
(e)
027 042 099 #...# 069
(101)
1B 2A 63 #...# 45
(65)
GRAPHICS
Raster Graphics
Raster 75
dots/inch
?
*t75R
(r)
027 042 116 055 053 082
(114)
1B 2A 74 37 35 52
(72)
Resolution
100 dots/inch
?
*t100R
(r)
027 042 116 049 048 048 082
(114)
1B 2A 74 31 30 30 52
(72)
150 dots/inch
?
*t150R
(r)
027 042 116 049 053 048 082
(114)
1B 2A 74 31 35 30 52
(72)
200 dots/inch
?
*t200R
(r)
027 042 116 050 048 048 082
(114)
1B 2A 74 32 30 30 52
(72)
300 dots/inch
?
*t300R
(r)
027 042 116 051 048 048 082
(114)
1B 2A 74 33 30 30 52
(72)
600 dots/inch
?
*t600R
(r)
027 042 116 054 048 048 082
(114)
1B 2A 74 36 30 30 52
(72)
A-12 Printer Commands
ENWW
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
Raster Graphics
Raster Graphics
Presentation
Follows orientation
?
*r0F
(f)
027 042 114 048 070
(102)
1B 2A 72 30 46
(66)
Follows physical page
?
*r3F
(f)
027 042 114 051 070
(102)
1B 2A 72 33 46
(66)
Start Raster Graphics
Left Raster Graphics
Margin
?
*r0A
(a)
027 042 114 048 065
(97)
1B 2A 72 30 41
(61)
Current Cursor
?
*r1A
(a)
027 042 114 049 065
(97)
1B 2A 72 31 41
(61)
Scale mode (logical left
page boundary)
?
*r2A
(a)
027 042 114 050 065
(97)
1B 2A 72 32 41
(61)
Scale mode (at CAP)
?
*r3A
(a)
027 042 114 051 065
(97)
1B 2A 72 33 42
(61)
Raster Y Offset
# of Raster Lines of
vertical movement
?
*b#Y
(y)
027 042 098 #...# 089
(121)
1B 2A 62 #...# 59
(79)
Set Raster
Compression Mode
Unencoded
?
*b0M
(m)
027 042 098 048 077
(109)
1B 2A 62 30 4D
(6D)
Run-Length Encoded
?
*b1M
(m)
027 042 098 049 077
(109)
1B 2A 62 31 4D
(6D)
Tagged Image File
Format
?
*b2M
(m)
027 042 098 050 077
(109)
1B 2A 62 32 4D
(6D)
Delta Row
?
*b3M
(m)
027 042 098 051 077
(109)
1B 2A 62 33 4D
(6D)
Adaptive Compression
?
*b5M
(m)
027 042 098 053 077
(109)
1B 2A 62 35 4D
(6D)
Replacement Delta Row
?
*b9M
(m)
027 042 098 057 077
(109)
1B 2A 98 39 4D
(6D)
Transfer Raster Data
(by row)
# of Bytes
?
*b#W[Data]
027 042 098 #...# 087
1B 2A 62 #...# 57
Transfer Raster Data
(by plane)
# of Bytes
?
*b#V[Data]
027 042 062 #...# 086
1B 2A 98 #...# 56
End Raster Graphics
Old version Preferred
?
*rB
?
*rC
(b)
(c)
027 042 114 066
027 042 114 067
(98)
(99)
1B 2A 72 42
1B 2A 72 43
(62)
(63)
Raster Height (Source) # Raster Rows
?
*r#T
(t)
027 042 114 #...# 084
(116)
1B 2A 72 #...# 54
(74)
Raster Width (Source) # Pixels of the Specified
Resolution
?
*r#S
(s)
027 042 114 #...# 083
(115)
1B 2A 72 #...# 53
(73)
Raster Height
(Destination)
# of Decipoints
?
*t#H
(h)
027 042 116 #...# 072
(104)
1B 2A 74 #...# 48
(68)
Raster Width
(Destination)
# of Decipoints
?
*t#V
(v)
027 042 116 #...# 086
(118)
1B 2A 74 #...# 56
(76)
Scale Algorithm
Source with light
background
?
*t0K
(k)
027 042 116 048 075
(107)
1B 2A 74 30 4B
(6B)
Source with dark
background
?
*t1K
(k)
027 042 116 049 075
(107)
1B 2A 74 31 4B
(6B)
ENWW
Printer Commands A-13
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
THE PRINT MODEL
Imaging
Select Current Pattern
Solid Black (default)
?
*v0T
(t)
027 042 118 048 084
(116)
1B 2A 76 30 54
(74)
Solid White
?
*v1T
(t)
027 042 118 049 084
(116)
1B 2A 76 31 54
(74)
HP-defined Shading Pattern
?
*v2T
(t)
027 042 118 050 084
(116)
1B 2A 76 32 54
(74)
HP-defined Cross-hatched
Pattern
?
*v3T
(t)
027 042 118 051 084
(116)
1B 2A 76 33 54
(74)
User-defined Pattern
?
*v4T
(t)
027 042 118 052 084
(116)
1B 2A 76 34 54
(74)
Source Transparency
code
Transparent Opaque
?
*v0N
?
*v1N
(n)
(n)
027 042 118 048 078
027 042 118 049 078
(110)
(110)
1B 2A 76 30 4E
1B 2A 76 31 4E
(6E)
(6E)
Pattern Transparency
Mode
Transparent Opaque
?
*v0O
?
*v1O
(o)
(o)
027 042 118 048 079
027 042 118 049 079
(111)
(111)
1B 2A 76 30 4F
1B 2A 76 31 4F
(6F)
(6F)
Logical Operation
# = ROP3 input value
?
*
l
#O
(o)
027 042 108 #...# 079
(111)
1B 2A 6C #...# 4F (6F)
Pixel Placement
Grid Intersection
?
*v0R
(r)
027 042 108 048 082
(114)
1B 2A 6C 30 52
(72)
Pixel Placement
?
*v1R
(r)
027 042 118 049 082
(114)
1B 2A 76 31 52
(72)
Rectangle Dimensions
Rectangle Width
(Horizontal Size)
# of dots
?
*c#A
(a)
027 042 099 #...# 065
(97)
1B 2A 63 #...# 41
(61)
# of decipoints
?
*c#H
(h)
027 042 099 #...# 072
(104)
1B 2A 63 #...# 48
(68)
Rectangle Height
(Vertical Size)
# of dots
?
*c#B
(b)
027 042 099 #...# 066
(98)
1B 2A 63 # ... # 42 (62)
# of decipoints
?
*c#V
(v)
027 042 099 #...# 086
(118)
1B 2A 63 #...# 56
(76)
A-14 Printer Commands
ENWW
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
Rectangular Area Fill
Fill Rectangular Area
Solid Black
?
*c0P
(p)
027 042 099 048 080
(112)
1B 2A 63 30 50
(70)
Erase (solid white fill)
?
*c1P
(p)
027 042 099 049 080
(112)
1B 2A 63 31 50
(70)
Shaded Fill
?
*c2P
(p)
027 042 099 050 080
(112)
1B 2A 63 32 50
(70)
Cross-hatched Fill
?
*c3P
(p)
027 042 099 051 080
(112)
1B 2A 63 33 50
(70)
User-defined
?
*c4P
(p)
027 042 099 052 080
(112)
1B 2A 63 34 50
(70)
Current Pattern
?
*c5P
(p)
027 042 099 053 080
(112)
1B 2A 63 35 50
(70)
Pattern ID
% of Shading or Type of
Pattern or User Pattern ID
?
*c#G
(g)
027 042 099 #...# 071
(103)
1B 2A 63 #...# 47
(67)
Shading
2% Gray
?
*c2G
(g)
027 042 099 050 071
(103)
1B 2A 63 32 47
(67)
10% Gray
?
*c10G
(g)
027 042 099 049 048 071
(103)
1B 2A 63 31 30 47
(67)
15% Gray
?
*c15G
(g)
027 042 099 049 053 071
(103)
1B 2A 63 31 35 47
(67)
30% Gray
?
*c30G
(g)
027 042 099 051 048 071
(103)
1B 2A 63 33 30 47
(67)
45% Gray
?
*c45G
(g)
027 042 099 052 053 071
(103)
1B 2A 63 34 35 47
(67)
70% Gray
?
*c70G
(g)
027 042 099 055 048 071
(103)
1B 2A 63 37 30 47
(67)
90% Gray
?
*c90G
(g)
027 042 099 057 048 071
(103)
1B 2A 63 39 30 47
(67)
100% Gray
?
*c100G (g)
027 042 099 049 048 048 071 (103)
1B 2A 63 31 30 30 47 (67)
Pattern
1 Horiz. Line
?
*c1G
(g)
027 042 099 049 071
(103)
1B 2A 63 31 47
(67)
2 Vert. Lines
?
*c2G
(g)
027 042 099 050 071
(103)
1B 2A 63 32 47
(67)
3 Diagonal Lines
?
*c3G
(g)
027 042 099 051 071
(103)
1B 2A 63 33 47
(67)
4 Diagonal Lines
?
*c4G
(g)
027 042 099 052 071
(103)
1B 2A 63 34 47
(67)
5 Square Grid
?
*c5G
(g)
027 042 099 053 071
(103)
1B 2A 63 35 47
(67)
6 Diagonal Grid
?
*c6G
(g)
027 042 099 054 071
(103)
1B 2A 63 36 47
(67)
ENWW
Printer Commands A-15
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
USER DEFINED PATTERN / MANAGEMENT CREATION
Define (Download)
Pattern
# of bytes
?
*c#W[Data]
027 042 099 #...# 087
1B 2A 63 #...# 57
User-defined Pattern
Control
Delete all patterns
?
*c0Q
(q)
027 042 099 048 081
(113)
1B 2A 63 030 51
(71)
Delete all temporary
patterns
?
*c1Q
(q)
027 042 099 049 081
(113)
1B 2A 63 031 51
(71)
Delete current pattern
?
*c2Q
(q)
027 042 099 050 081
(113)
1B 2A 63 032 51
(71)
Make pattern temporary
?
*c4Q
(q)
027 042 099 052 081
(113)
1B 2A 63 034 51
(71)
Make pattern permanent
?
*c5Q
(q)
027 042 099 053 081
(113)
1B 2A 63 035 51
(71)
Set Pattern Reference
Rotate with orientation
?
*p0R
(r)
027 042 112 048 082
(114)
1B 2A 70 30 52
(72)
Point
Follow physical page
?
*p1R
(r)
027 042 112 049 082
(114)
1B 2A 70 31 52
(72)
MACROS
Macro ID
Macro ID #
?
&f#Y
(y)
027 038 102 #...# 089
(121)
1B 26 66 #...# 59
(79)
Macro Control
Start Macro Def.
?
&f0X
(x)
027 038 102 048 088
(120)
1B 26 66 30 58
(78)
Stop Macro Def.
?
&f1X
(x)
027 038 102 049 088
(120)
1B 26 66 31 58
(78)
Execute Macro
?
&f2X
(x)
027 038 102 050 088
(120)
1B 26 66 32 58
(78)
Call Macro
?
&f3X
(x)
027 038 102 051 088
(120)
1B 26 66 33 58
(78)
Enable Overlay
?
&f4X
(x)
027 038 102 052 088
(120)
1B 26 66 34 58
(78)
Disable Overlay
?
&f5X
(x)
027 038 102 053 088
(120)
1B 26 66 35 58
(78)
Delete Macros
?
&f6X
(x)
027 038 102 054 088
(120)
1B 26 66 36 58
(78)
Delete All Temp. Macros
?
&f7X
(x)
027 038 102 055 088
(120)
1B 26 66 37 58
(78)
Delete Macro ID
?
&f8X
(x)
027 038 102 056 088
(120)
1B 26 66 38 58
(78)
Make Temporary
?
&f9X
(x)
027 038 102 057 088
(120)
1B 26 66 39 58
(78)
Make Permanent
?
&f10X
(x)
027 038 102 049 048 088
(120)
1B 26 66 31 30 58 (78)
A-16 Printer Commands
ENWW
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
STATUS READBACK
Set Status Readback
Location Type
Invalid Location
?
*s0T
(t)
027 042 115 048 084
(116)
1B 2A 73 30 54
(74)
Currently Selected
?
*s1T
(t)
027 042 115 049 084
(116)
1B 2A 73 31 54
(74)
All Locations
?
*s2T
(t)
027 042 115 050 084
(116)
1B 2A 73 32 54
(74)
Internal
?
*s3T
(t)
027 042 115 051 084
(116)
1B 2A 73 33 54
(74)
Downloaded
?
*s4T
(t)
027 042 115 052 084
(116)
1B 2A 73 34 54
(74)
Cartridge
?
*s5T
(t)
027 042 115 053 084
(116)
1B 2A 73 35 54
(74)
User-installed ROM (SIMMs)
?
*s7T
(t)
027 042 115 055 084
(116)
1B 2A 73 37 54
(74)
Set Status Readback
Location Unit
All entities of the Location Type
?
*s0U
(u)
027 042 115 048 085
(117)
1B 2A 73 30 55
(75)
Entity 1 or Temporary
?
*s1U
(u)
027 042 115 049 085
(117)
1B 2A 73 31 55
(75)
Entity 2 or Permanent
?
*s2U
(u)
027 042 115 050 085
(117)
1B 2A 73 32 55
(75)
Entity 3
?
*s3U
(u)
027 042 115 051 085
(117)
1B 2A 73 33 55
(75)
Entity 4
?
*s4U
(u)
027 042 115 052 085
(117)
1B 2A 73 34 55
(75)
Inquire Status Readback
Entity
Font
?
*s0I
(i)
027 042 115 048 073
(105)
1B 2A 73 30 49
(69)
Macro
?
*s1I
(i)
027 042 115 049 073
(105)
1B 2A 73 31 49
(69)
User-defined Pattern
?
*s2I
(i)
027 042 115 050 073
(105)
1B 2A 73 32 49
(69)
Symbol Set
?
*s3I
(i)
027 042 115 051 073
(105)
1B 2A 73 33 49
(69)
Font Extended
?
*s4I
(i)
027 042 115 052 073
(105)
1B 2A 73 34 49
(69)
Flush All Pages
Flush All Complete Pages
?
&r0F
(f)
027 038 114 048 070
(120)
1B 26 72 30 46
(66)
Flush All Page Data
?
&r1F
(f)
027 038 114 049 070
(120)
1B 26 72 31 46
(66)
Free Memory Space
—
?
*s1M
(m)
027 042 115 049 077
(109)
1B 2A 73 31 4D
(6D)
Echo
# = Echo value (-32767 to 32767)
?
*s#X
(x)
027 042 115 #...# 088 (120)
1B 2A 73 #...# 58
(78)
PROGRAMMING HINTS
End-of-Line Wrap
Enabled
?
&s0C
(c)
027 038 115 048 067
(99)
1B 26 73 30 43
(63)
Disabled
?
&s1C
(c)
027 038 115 049 067
(99)
1B 26 73 31 43
(63)
Display Functions
ON
?
Y
027 089
1B 59
OFF
?
Z
027 090
1B 5A
ENWW
Printer Commands A-17
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
PCL VECTOR GRAPHICS SWITCHING/SET-UP PICTURE FRAME
Enter PCL Mode
Use previous PCL cursor
position
?
%0A
027 037 048 65
1B 25 30 41
Use current HP-GL/2pen
position for cursor position
?
%1A
027 037 049 65
1B 25 31 41
Enter HP-GL/2 Mode
Use previous HP-GL/2 pen
position
?
%0B
027 037 048 066
1B 25 30 42
Use current PCL cursor
position
?
%1B
027 037 049 066
1B 25 31 42
Stand-alone plotter mode
?
%–1B
027 037 045 049 066
1B 25 2D 31 42
Current PCL coordinate
system/old HP-GL pen position
?
%2B
027 037 050 066
1B 25 32 42
Current PCL coordinate
system/current PCL CAP
?
%3B
027 037 051 066
1B 25 33 42
HP-GL/2 Plot Horizontal
Size
Horizontal size in inches
?
*c#K
(k)
027 042 099 #...# 075
(107)
1B 2A 63 # ... # 4B (6B)
HP-GL/2 Plot Vertical
Size
Vertical size in inches
?
*c#L
(l)
027 042 099 #...# 076
(108)
1B 2A 63 #...# 4C
(6C)
Set Picture Frame
Anchor Point
Set anchor point to cursor
position
?
*c0T
(t)
027 042 099 048 084
(116)
1B 2A 63 30 54
(74)
Picture Frame Horizontal
Size
Decipoints
?
*c#X
(x)
027 042 099 #...# 088
(120)
1B 2A 63 #...# 58
(78)
Picture Frame Vertical
Size
Decipoints
?
*c#Y
(y)
027 042 099 #...# 089
(121)
1B 2A 63 #...# 59
(79)
DUAL CONTEXT EXTENSIONS
Enter PCL Mode
?
%#A
0 - Retain previous
PCL cursor
position
1 - Use current
HP-GL/2 pen
position
Reset
?
E None
Primary Font
FI
Font_ID
Secondary Font
FN
Font_ID
Scalable Or Bitmapped
Fonts
SB
0 - Scalable fonts
only
1 - Bitmapped fonts
allowed
A-18 Printer Commands
ENWW
Table A-1. HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
HEXADECIMAL VALUE
COLOR COMMANDS
Assign Color Index
Index Number
?
*v#I
(i)
027 042 118 #...# 073
(105) 1B 2A 76 #...# 49
(69)
Color Component One
1st Component
?
*v#A
(a)
027 042 118 #...# 065
(97)
1B 2A 76 #...# 41
(61)
Color Component Two
2nd Component
?
*v#B
(b)
027 042 118 #...# 066
(98)
1B 2A 76 #...# 42
(62)
Color Component Three
3rd Component
?
*v#C
(c)
027 042 118 #...# 067
(99)
1B 2A 76 #...# 43
(63)
Color Lookup Tables
# of Bytes
?
*
l
#W[Data]
027 042 108 #...# 087
1B 2A 6C #...# 57
Configure Image Data
# of Bytes
?
*v#W[Data]
027 042 118 #...# 087
1B 2A 76 #...# 57
Download Dither Matrix
# of Bytes
?
*v#I
(i)
027 042 118 #...# 073
(105)
1B 2A 76 #...# 49
(69)
Foreground Color
Index Number
?
*v#S
(s)
027 042 118 #...# 083
(115)
1B 2A 76 #...# 53
(73)
Gamma Correction
Gamma Number
?
*t#I
(i)
027 042 116 #...# 073
(105)
1B 2A 74 #...# 49
(69)
Monochrome Print Mode Mixed Rendering
?
&b0M
(m)
027 038 062 048 077
(109)
1B 26 98 30 4D
(6D)
Gray Equivalent
?
&b1M
(m)
027 038 062 049 077
(109)
1B 26 98 31 4D
(6D)
Palette Control ID
Palette ID #
?
&p#I
(i)
027 038 112 #...# 073
(105)
1B 26 70 #...# 49
(69)
Palette Control
Delete All Palettes in store
?
&p0C
(c)
027 038 112 048 067
(99)
1B 26 70 30 43
(63)
Delete All Palettes in stack
?
&p1C
(c)
027 038 112 049 067
(99)
1B 26 70 31 43
(63)
Delete Palette (last ID)
?
&p2C
(c)
027 038 112 050 067
(99)
1B 26 70 32 43
(63)
Copy Palette
?
&p6C
(c)
027 038 112 054 067
(99)
1B 26 70 36 43
(63)
Push/Pop Palette
Push Palette
?
*p0P
(p)
027 042 112 048 080
(112)
1B 2A 70 30 50
(70)
Pop Palette
?
*p1P
(p)
027 042 112 049 080
(112)
1B 2A 70 31 50
(70)
Render Algorithm
Continuous tone detail
?
*t0J
(j)
027 042 116 048 074
(106)
1B 2A 74 30 4A
(6A)
Snap to primaries
?
*t1J
(j)
027 042 116 049 074
(106)
1B 2A 74 31 4A
(6A)
Snap black/white, colors to
black
?
*t2J
(j)
027 042 116 050 074
(106)
1B 2A 74 32 4A
(6A)
Device best dither
?
*t3J
(j)
027 042 116 051 074
(106)
1B 2A 74 33 4A
(6A)
Error diffusion
?
*t4J
(j)
027 042 116 052 074
(106)
1B 2A 74 34 4A
(6A)
Monochrome device best
dither
?
*t5J
(j)
027 042 116 053 074
(106)
1B 2A 74 35 4A
(6A)
Monochrome error diffusion
?
*t6J
(j)
027 042 116 054 074
(106)
1B 2A 74 36 4A
(6A)
Cluster ordered dither
?
*t7J
(j)
027 042 116 055 074
(106)
1B 2A 74 37 4A
(6A)
Monochrome cluster ordered
?
*t8J
(j)
027 042 116 056 074
(106)
1B 2A 74 38 4A
(6A)
User-defined dither
?
*t9J
(j)
027 042 116 057 074
(106)
1B 2A 74 30 4A
(6A)
Monochrome user-defined
dither
?
*t10J
(j)
027 042 116 049 048 074 (106)
1B 2A 74 31 30 4A
(6A)
Ordered dither
?
*t11J
(j)
027 042 116 049 049 074 (106)
1B 2A 74 31 31 4A
(6A)
Monochrome ordered dither
?
*t12J
(j)
027 042 116 049 050 074 (106)
1B 2A 74 31 32 4A
(6A)
Noise ordered dither
?
*t13J
(j)
027 042 116 049 051 074 (106)
1B 2A 74 31 33 4A
(6A)
Monochrome noise ordered
dither
?
*t14J
(j)
027 042 116 049 052 074 (106)
1B 2A 74 31 34 4A
(6A)
Continuous tone smooth
?
*t15J
(j)
027 042 116 049 053 074 (106)
1B 2A 74 31 35 4A
(6A)
Mono. continuous tone detail
?
*t16J
(j)
027 042 116 049 054 074 (106)
1B 2A 74 31 36 4A
(6A)
Mono. continuous tone
smooth
?
*t17J
(j)
027 042 116 049 055 074 (106)
1B 2A 74 31 37 4A
(6A)
Continuous tone basic
?
*t18J
(j)
027 042 116 049 056 074 (106)
1B 2A 74 31 38 4A
(6A)
Mono. continuous tone basic
?
*t19J
(j)
027 042 116 049 057 074 (106)
1B 2A 74 31 39 4A
(6A)
Select Palette
Palette ID #
?
&p#S
(s)
027 038 112 #...# 083
(115)
1B 26 70 #...# 53
(73)
Set Viewing Illumination # of Bytes
?
*i#W[Data]
027 042 105 #...# 087
1B 2A 69 #...# 57
Simple Color
3-Plane Device CMY Palette
?
*r–3U
(u)
027 042 114 045 051 085 (117)
1B 2A 72 2D 33 55
(75)
1-Plane K Palette
?
*r1U
(u)
027 042 114 049 085
(117)
1B 2A 72 31 55
(75)
3-Plane Device RGB Palette
?
*r3U
(u)
027 042 114 051 085
(117)
1B 2A 72 33 55
(75)
ENWW
Printer Commands A-19
Table A-2. HP-GL/2 Commands
* Parameters in brackets are optional.
COMMAND
MNEMONIC
PARAMETERS*
PALETTE EXTENSIONS
Color Range
CR
[b_ref_red, w_ref_red, b_ref_grn, w_ref_grn, b_ref_blue, w_ref_blue];
Number of Pens
NP
[n];
Pen Color Assignment
PC
[pen [,red, green, blue]];
Transparency Mode
TR
0 - Off (opaque)
1 - On (transparent)
Screened Vectors
SV
[screen_type[,shading[,index]]]
VECTOR GROUP
Arc Absolute
AA
x_center,y_center,sweep_angle [,chord_angle];
Arc Relative
AR
x_increment,y_increment,sweep_angle [,chord_angle];
Absolute Arc Three Point
AT
x_inter,y_inter,x_end,y_end[,chord_angle];
Bezier Absolute
BZ
x1_control_pt, y1_control_pt
x2_control_pt, y2_control_pt
x3_control_pt, y3_control_pt ...
[x1_control_pt, y1_control_pt
x2_control_pt, y2_control_pt
x3_control_pt, y3_control_pt];
Bezier Relative
BR
x1_control_pt_increments,
y1_control_pt_increments,
x2_control_pt_increments,
y2_control_pt_increments,
x3_control_pt_increments,
y3_control_pt_increments ...
[x1_control_pt_increments,
y1_control_pt_increments,
x2_control_pt_increments,
y2_control_pt_increments,
x3_control_pt_increments,
y3_control_pt_increments];
Circle
CI
radius [,chord angle];
Plot Absolute
PA
[x,y ... [,x,y]];
Plot Relative
PR
[x,y ... [,x,y]];
Pen Down
PD
[x,y ... [,x,y]];
Pen Up
PU
[x,y ... [,x,y]];
Relative Arc Three Point
RT
x_incr_inter,y_incr_inter,x_incr_end,y_incr_end[,chord angle];
Polyline Encoded
PE
[flag[val]|coord pair ... [flag[val]|coord pair]];
A-20 Printer Commands
ENWW
Table A-2. HP-GL/2 Commands (continued)
* Parameters in brackets are optional.
COMMAND
MNEMONIC
PARAMETERS*
POLYGON GROUP
Fill Rectangle Absolute
RA
x_coordinate,y_coordinate;
Fill Rectangle Relative
RR
x_increment,y_increment;
Edge Rectangle Absolute
EA
x_coordinate,y_coordinate;
Edge Rectangle Relative
ER
x_increment,y_increment;
Fill Wedge
WG
radius,start_angle,sweep_angle[,chord_angle];
Edge Wedge
EW
radius,start_angle,sweep_angle[chord_angle];
Polygon Mode
PM
polygon_definition;
Fill Polygon
FP
0 - Odd/Even
1 - non-zero winding
Edge Polygon
EP
None
ENWW
Printer Commands A-21
Table A-2. HP-GL/2 Commands (continued)
* Parameters in brackets are optional.
FUNCTION
MNEMONIC
PARAMETERS*
CHARACTER GROUP
Select Standard Font
SS
None
Select Alternate Font
SA
None
Absolute Direction
DI
[run,rise];
Relative Direction
DR
[run,rise];
Absolute Character Size
SI
[width,height];
Relative Character Size
SR
[width,height];
Character Slant
SL
[tangent_of_angle];
Extra Space
ES
[width[,height]]
Standard Font Definition
SD
[kind,value ... [,kind,value]];
Alternate Font Definition
AD
[kind,value ... [,kind,value]];
Character Fill Mode
CF
[fill_mode[,edge_pen]];
Label Origin
LO
[position];
Label
LB
[char ... [char]]1bterm
Define Label Terminator
DT
[1bterm[,mode]];
Character Plot
CP
[spaces,lines];
Transparent Data
TD
[mode];
Define Variable Text Path
DV
[path[,line]];
LINE AND FILL ATTRIBUTES GROUP
Line Type
LT
[line_type[,pattern_length[,mode]]];
Line Attributes
LA
[kind,value ... [,kind,value]];
Pen Width
PW
[width[,pen]];
Pen Width Unit Selection
WU
[type];
Select Pen
SP
[pen]; (required, 1 for black (recommended) or 0 for white)
Symbol Mode
SM
[char];
Fill Type
FT
[fill_type[,option1[,option2]]];
Anchor Corner
AC
[x_coordinate,y_coordinate];
Raster Fill Definition
RF
[index[,width,height,pen_nbr ... pen_nbr]];
(width and height must be less than 255)
User Defined Line Type
UL
[index[,gap1 ... gapn]];
A-22 Printer Commands
ENWW
Table A-2. HP-GL/2 Commands (continued)
* Parameters in brackets are optional.
FUNCTION
MNEMONIC
PARAMETERS*
CONFIGURATION AND STATUS GROUP
Advance Full Page
PG
[n];
Scale
SC [x1,x2,y1,y2[,type[,left,bottom]]];
or
[x1,xfactor,y1,yfactor,2];
Input Window
IW
[xLL,yLL,xUR,yUR];
Input P1 and P2
IP
[p1x,p1y[,p2x,p2y]];
Input Relative P1 And P2
IR
[p1x,p1y[,p2x,p2y]];
Default Values
DF
None
Initialize IN
[n];
Replot
RP
[n];
Rotate Coordinate System
RO
[angle];
TECHNICAL GRAPHICS EXTENSION
Begin Plot
BP
[kind, value...[,kind, value]];
Chord Tolerance Mode
CT
[mode];
Download Character
DL
[charnum [[,up], x, y...[,up],x,y]];
Frame Advance
FR
Media Type
MT
[type];
Merge Control
MC
[mode [, opcod]];
Output Error
OE
Output Hardclip Limits
OH
Output Identification
OI
Output P1 and P2
OP
Output Status
OS
Pixel Placement
PP
[mode];
Plot Size
PS
[length [,width]];
Quality Level
QL
[quality level]
ENWW
Printer Commands A-23
Table A-3. Control Codes
Function
Symbol
Decimal Value
Description
Backspace
B
S
8
Move one column left unless at left margin, in which case no action is taken.
Horizontal Tab
H
T
9
Move to the next horizontal tab stop. The tab stops are at the left margin, and
every eight columns to the right of the left margin.
Line Feed
L
F
10
Move to the next print line while maintaining current column position.
Form Feed
F
F
12
Move to the first line at top of the next page while maintaining current column
position.
Carriage Return
C
R
13
Move to the left margin on the current print line.
Shift Out
S
O
14
Select characters that follow from the current secondary font until receipt of a
Shift In.
Shift In
S
I
15
Select characters that follow from the current primary font until receipt of a
Shift Out.
Escape
E
C
27
Indicates the beginning of a special control sequence (escape sequence).
Space
S
P
32
Move one column to the right unless already at the right margin, in which case
no action is taken.
A-24 Printer Commands
ENWW
ENWW