Printer Commands

Printer Commands
A
Printer Commands
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.
Printer Commands A-1
Table A-1.
HP PCL 5 Commands
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
JOB CONTROL COMMANDS
Reset
HEXADECIMAL VALUE
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
Number of Copies
# of Copies
?&l#X
(x)
027 038 108 #...# 088
(120)
1B 26 6C #...# 58
(78)
Simplex/Duplex
Print
Simplex
?&l0S
(s)
027 038 108 048 083
(115)
1B 26 6C 30 53
(73)
Long Edge
Binding
?&l1S
(s)
027 038 108 049 083
(115)
1B 26 6C 31 53
(73)
Short Edge
Binding
?&l2S
(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
—
?&l1T
(t)
027 038 108 049 084
(116)
1B 26 6C 31 54
(74)
Output (Media) Bin
Selection
Automatic selection
?&l0G
(g)
027 038 108 048 071
(103)
1B 26 6C 30 47
(67)
Upper Output Bin
(Bin #1)
?&l1G
(g)
027 038 108 049 071
(103)
1B 26 6C 31 47
(67)
Rear Output Bin1
(Bin #2)
?&l2G
(g)
027 038 108 050 071
(103)
1B 26 6C 32 47
(67)
Selects Bin #3
?&l3G
(g)
027 038 108 051 071
(103)
1B 26 6C 33 47
(67)
Selects Bin #4
?&l4G
(g)
027 038 108 052 071
(103)
1B 26 6C 34 47
(67)
Selects Bin #5
?&l5G
(g)
027 038 108 053 071
(103)
1B 26 6C 35 47
(67)
Selects Bin #6
?&l6G
(g)
027 038 108 054 071
(103)
1B 26 6C 36 47
(67)
Selects Bin #7
?&l7G
(g)
027 038 108 055 071
(103)
1B 26 6C 37 47
(67)
Selects Bin #8
?&l8G
(g)
027 038 108 056 071
(103)
1B 26 6C 38 47
(67)
Selects Bin #9
?&l9G
(g)
027 038 108 057 071
(103)
1B 26 6C 39 47
(67)
Selects Bin #10
?&l10G
(g)
027 038 108 049 048 071
(103)
1B 26 6C 31 30 47
(67)
Selects Bin #11
?&l11G
(g)
027 038 108 049 049 071
(103)
1B 26 6C 31 31 47
(67)
027 069
1B 45
Duplex
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.
A-2 Printer Commands
Table A-1.
FUNCTION
HP PCL 5 Commands (continued)
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)
Plain
?&l0M
(m)
027 038 108 048 077
(109)
1B 26 6C 30 4D
(6D)
Bond
?&l1M
(m)
027 038 108 049 077
(109)
1B 26 6C 31 4D
(6D)
Special
?&l2M
(m)
027 038 108 050 077
(109)
1B 26 6C 32 4D
(6D)
Glossy
?&l3M
(m)
027 038 108 051 077
(109)
1B 26 6C 33 4D
(6D)
Transparency
?&l4M
(m)
027 038 108 052 077
(109)
1B 26 6C 34 4D
(6D)
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)
Media Type
Negative Motion
PAGE CONTROL COMMANDS
Page Length and Size
Paper Source
Page Size
?&l0H
(h)
027 038 108 048 072
(104)
1B 26 6C 30 48
(68)
Main Paper Source ?&l1H
(h)
027 038 108 049 072
(104)
1B 26 6C 31 48
(68)
Manual Feed
?&l2H
(h)
027 038 108 050 072
(104)
1B 26 6C 32 48
(68)
Manual Envelope
Feed
?&l3H
(h)
027 038 108 051 072
(104)
1B 26 6C 33 48
(68)
Alternate Paper
Source
?&l4H
(h)
027 038 108 052 072
(104)
1B 26 6C 34 48
(68)
Optional Large
Paper Source
?&l5H
(h)
027 038 108 053 072
(104)
1B 26 6C 35 48
(68)
Eject Page
Envelope Feeder
?&l6H
(h)
027 038 108 054 072
(104)
1B 26 6C 36 48
(68)
Auto Select
?&l7H
(h)
027 038 108 055 072
(104)
1B 26 6C 37 48
(68)
Tray 1 (right tray)
?&l8H
(h)
027 038 108 056 072
(104)
1B 26 6C 38 48
(68)
Executive
?&l1A
(a)
027 038 108 049 065
(97)
1B 26 6C 31 41
(61)
Letter
?&l2A
(a)
027 038 108 050 065
(97)
1B 26 6C 32 41
(61)
Legal
?&l3A
(a)
027 038 108 051 065
(97)
1B 26 6C 33 41
(61)
Ledger
?&l6A
(a)
027 038 108 054 065
(97)
1B 26 6C 36 41
(61)
A3
?&l27A
(a)
027 038 108 050 055 065
(97)
1B 26 6C 32 37 41
(61)
A4
?&l26A
(a)
027 038 108 050 054 065
(97)
1B 26 6C 32 36 41
(61)
A5
?&l25A
(a)
027 038 108 050 053 065
(97)
1B 26 6C 32 35 41
(61)
A6
?&l24A
(a)
027 038 108 050 052 065
(97)
1B 26 6C 32 34 41
(61)
JIS B4 Paper
?&l46A
(a)
027 038 108 052 054 065
(97)
1B 26 6C 34 36 41
(61)
JIS B5 Paper
?&l45A
(a)
027 038 108 052 053 065
(97)
1B 26 6C 34 35 41
(61)
JIS B6 Paper
?&l44A
(a)
027 038 108 052 052 065
(97)
1B 26 6C 34 34 41
(61)
Hagaki Postcard
?&l71A
(a)
027 038 108 055 049 065
(97)
1B 26 6C 37 31 41
(61)
Oufuku-Hagaki
?&l72A
(a)
027 038 108 055 050 065
(97)
1B 26 6C 37 32 41
(61)
Monarch Envelope
?&l80A
(a)
027 038 108 056 048 065
(97)
1B 26 6C 38 30 41
(61)
COM 10 Envelope
?&l81A
(a)
027 038 108 056 049 065
(97)
1B 26 6C 38 31 41
(61)
DL Envelope
?&l90A
(a)
027 038 108 057 048 065
(97)
1B 26 6C 39 30 41
(61)
C5 Envelope
?&l91A
(a)
027 038 108 057 049 065
(97)
1B 26 6C 39 31 41
(61)
B5 Envelope
?&l100A
(a)
027 038 108 049 048 048 065
(97)
1B 26 6C 31 30 30 41
(61)
Custom
?&l101A
(a)
027 038 108 049 048 049 065
(97)
1B 26 6C 31 30 31 41
(61)
Printer Commands A-3
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
Orientation
HEXADECIMAL VALUE
Portrait
?&l0O
(o)
027 038 108 048 079
(111)
1B 26 6C 30 4F
(6F)
Landscape
?&l1O
(o)
027 038 108 049 079
(111)
1B 26 6C 31 4F
(6F)
Reverse Portrait
?&l2O
(o)
027 038 108 050 079
(111)
1B 26 6C 32 4F
(6F)
Reverse
Landscape
?&l3O
(o)
027 038 108 051 079
(111)
1B 26 6C 33 4F
(6F)
Print Direction
# Degrees of
?&a#P
Rotation (counterclockwise,
90° increments
only)
(p)
027 038 097 #...# 080
(112)
1B 26 61 #...# 50
(70)
Character Text
Path Direction
Horizontal
Vertical Rotated
?&c0T
?&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)
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
Perforation Skip
Disable
?&l0L
(l)
027 038 108 048 076
(108)
1B 26 6C 30 4C
(6C)
Enable
?&l1L
(l)
027 038 108 049 076
(108)
1B 26 6C 31 4C
(6C)
(104)
1B 26 6B #...# 48
(68)
Orientation
Margins and Text Length
027 057
1B 39
Perforation Skip Mode
Horizontal Column Spacing
Horizontal Motion
Index (HMI)
# of 1/120"
Increments
?&k#H
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
?&l1D
(d)
027 038 108 049 068
(100)
1B 26 6C 31 44
(64)
2 lines/inch
?&l2D
(d)
027 038 108 050 068
(100)
1B 26 6C 32 44
(64)
3 lines/inch
?&l3D
(d)
027 038 108 051 068
(100)
1B 26 6C 33 44
(64)
4 lines/inch
?&l4D
(d)
027 038 108 052 068
(100)
1B 26 6C 34 44
(64)
6 lines/inch
?&l6D
(d)
027 038 108 054 068
(100)
1B 26 6C 36 44
(64)
8 lines/inch
?&l8D
(d)
027 038 108 056 068
(100)
1B 26 6C 38 44
(64)
12 lines/inch
?&l12D
(d)
027 038 108 049 050 068
(100)
1B 26 6C 31 32 44
(64)
16 lines/inch
?&l16D
(d)
027 038 108 049 054 068
(100)
1B 26 6C 31 36 44
(64)
24 lines/inch
?&l24D
(d)
027 038 108 050 052 068
(100)
1B 26 6C 32 34 44
(64)
48 lines/inch
?&l48D
(d)
027 038 108 052 056 068
(100)
1B 26 6C 34 38 44
(64)
(h)
027 038 107 #...# 072
Vertical Line Spacing
ALPHANUMERIC ID
Alphanumeric ID
# of bytes
A-4 Printer Commands
?&n#W[operation]
[String]
027 038 110 #...# 087
1B 26 6E #...# 57
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
Vertical Position
Horizontal Position
PARAMETER
COMMAND
CURSOR POSITIONING
Vertical and Horizontal
DECIMAL VALUE
HEXADECIMAL VALUE
# 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)
# 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=CR+LF; LF=LF; FF=FF
?&k1G
(g)
027 038 107 049 071
(103)
1B 26 6B 31 47
(67)
CR=CR; LF=CR+LF; FF=CR+FF
?&k2G
(g)
027 038 107 050 071
(103)
1B 26 6B 32 47
(67)
CR=CR+LF; LF=CR+LF; FF=CR+FF
?&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 Selection1
Primary Symbol Set
1
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
Additional symbol sets are supported, refer to Table C-1 for a list of these symbol sets.
Printer Commands A-5
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
Primary Symbol Set
1
PARAMETER
COMMAND
DECIMAL VALUE
Symbol Set Selection1 - continued
DeskTop
?(7J
027 040 055 074
1B 28 37 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
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
?(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 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 1004
?(9J
027 040 057 074
1B 28 39 4A
PC 775
?(26U
027 040 050 054 085
1B 28 32 36 55
Windows Baltic
?(19L
027 040 049 076
1B 28 31 4C
ISO 8859-10: Latin 6
?(6N
027 040 054 078
1B 28 36 4E
Additional symbol sets are supported, refer to Table C-1 for a list of these symbol sets.
A-6 Printer Commands
HEXADECIMAL VALUE
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
Primary Symbol Set
PARAMETER
COMMAND
DECIMAL VALUE
Symbol Set Selection1 - continued
HEXADECIMAL VALUE
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-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
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)
(v)
027 040 115 #...# 086
(118) 1B 28 73 #...# 56
(76)
Point Size
Primary Height
1
# Points
?(s#V
Additional symbol sets are supported, refer to Table C-1 for a list of these symbol sets.
Printer Commands A-7
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
Primary Style
PARAMETER
COMMAND
Style
DECIMAL VALUE
HEXADECIMAL VALUE
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
A-8 Printer Commands
Ultra Thin
?(s–7B
(b)
027 040 115 045 055 066
(98)
1B 28 73 2D 37 42
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)
(62)
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
Typeface Family
PARAMETER
COMMAND
DECIMAL VALUE
Primary Typeface Family 1
HEXADECIMAL VALUE
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)
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)
GW-Kai
?(s37357T
(t)
027 040 115 051 055 051 053 055 084
(116) 1B 28 73 33 37 33 35 37 54
(74)
Courier
?(s4099T
(t)
027 040 115 052 048 057 057 084
(116) 1B 28 73 34 30 39 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)
Garamond Antiqua
?(s4197T
(t)
027 040 115 052 049 057 055 084
(116) 1B 28 73 34 31 39 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)
CG Omega
?(s4113T
(t)
027 040 115 052 049 049 051 084
(116) 1B 28 73 34 31 31 33 54
(74)
CG Times
?(s4101T
(t)
027 040 115 052 049 048 049 084
(116) 1B 28 73 34 31 30 31 54
(74)
Univers
?(s4148T
(t)
027 040 115 052 049 052 056 084
(116) 1B 28 73 34 31 34 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)
MS Mincho
?(s28752T
(t)
027 040 115 050 056 055 053 050 084
(116) 1B 28 73 32 38 37 35 32 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)
Times New Roman
?(s16901T
(t)
027 040 115 049 054 057 048 049 084
(116) 1B 28 73 31 36 39 30 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)
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)
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
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@
Text Parsing Method
1-Byte
1-Byte
1-Byte/2-Byte
1-Byte/2-Byte
1-Byte/2-Byte
?&t0P
?&t1P
?&t21P
?&t31P
?&t38P
Transparent Print
Data
# of Bytes
?&p#X[Data]
Underline
027 038 100 064
1B 26 64 40
TEXT PARSING METHOD
(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
1
027 038 112 #...# 088
1B 26 70 #...# 58
Additional typefaces are supported, refer to Table C-2 and C-3 for a list of these symbol sets.
Printer Commands A-9
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
FONT MANAGEMENT
DECIMAL VALUE
HEXADECIMAL VALUE
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)
027 042 099 #...# 082
(114) 1B 2A 63 #...# 52
(72)
027 040 102 #...# 087
1B 28 66 #...# 57
Soft Symbol Set Management / Creation
Set Symbol Set
ID #
?*c#R
Define Symbol Set
# of Bytes
?(f#W[Data]
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)
A-10 Printer Commands
(r)
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
Select font (with ID #)
PARAMETER
COMMAND
DECIMAL VALUE
Font Selection by ID Number
HEXADECIMAL VALUE
ID # primary font
?(#X
027 040 #...# 088
1B 28 #...# 58
ID # secondary font
?)#X
027 041 #...# 088
1B 29 #...# 58
SOFT FONT CREATION
# of bytes
?)s#W[Data]
Download character
# of bytes
?(s#W[Data]
Character code
Character code # (decimal)
?*c#E
Font descriptor
(font header)
027 041 115 #...# 087
(e)
1B 29 73 #...# 57
027 040 115 #...# 087
1B 28 73 #...# 57
027 042 099 #...# 069
(101) 1B 2A 63 #...# 45
(65)
(72)
GRAPHICS
Raster Graphics
Raster
75 dots/inch
?*t75R
(r)
027 042 116 055 053 082
(114) 1B 2A 74 37 35 52
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)
Printer Commands A-11
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
Raster Graphics Presentation
Start Raster Graphics
PARAMETER
COMMAND
Raster Graphics
DECIMAL VALUE
HEXADECIMAL VALUE
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)
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)
1B 2A 72 33 42
(61)
Scale mode (at CAP)
?*r3A
(a)
027 042 114 051 065
(97)
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)
# of Bytes
?*b#W[Data]
Transfer Raster Data (by row)
027 042 098 #...# 087
1B 2A 62 #...# 57
Transfer Raster Data (by plane) # of Bytes
?*b#V[Data]
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)
(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)
A-12 Printer Commands
027 042 062 #...# 086
1B 2A 98 #...# 56
1B 2A 74 #...# 56
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
Select Current Pattern
PARAMETER
COMMAND
THE PRINT MODEL
Imaging
DECIMAL VALUE
HEXADECIMAL VALUE
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)
Rectangle Height (Vertical
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)
# 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)
Printer Commands A-13
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
Rectangular Area Fill
DECIMAL VALUE
HEXADECIMAL VALUE
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)
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)
Fill Rectangular Area
Pattern
A-14 Printer Commands
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
USER DEFINED PATTERN / MANAGEMENT CREATION
HEXADECIMAL VALUE
Define (Download) Pattern
# of bytes
?*c#W[Data]
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)
027 042 099 #...# 087
1B 2A 63 #...# 57
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)
Printer Commands A-15
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
STATUS READBACK
DECIMAL VALUE
HEXADECIMAL VALUE
?*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)
?*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)
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 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)
Set Status Readback Location Type Invalid Location
Set Status Readback Location Unit All entities of the Location Type
Inquire Status Readback Entity
Flush All Pages
PROGRAMMING HINTS
End-of-Line Wrap
Display Functions
A-16 Printer Commands
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)
ON
?Y
027 089
1B 59
OFF
?Z
027 090
1B 5A
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
DECIMAL VALUE
PCL VECTOR GRAPHICS SWITCHING/SET-UP PICTURE FRAME
HEXADECIMAL VALUE
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
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 Horzontal 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)
(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)
Enter PCL Mode
Enter HP-GL/2 Mode
1B 2A 63 30 54
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
Printer Commands A-17
Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
COMMAND
COLOR COMMANDS
DECIMAL VALUE
HEXADECIMAL VALUE
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]
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 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)
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
(73)
Set Viewing Illumination
# of Bytes
?*i#W[Data]
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)
Push/Pop Palette
Render Algorithm
A-18 Printer Commands
027 042 108 #...# 087
1B 2A 6C #...# 57
(115)
027 042 105 #...# 087
1B 26 70 #...# 53
1B 2A 69 #...# 57
Table A-2.
HP-GL/2 Commands
COMMAND
MNEMONIC
Color Range
Number of Pens
Pen Color Assignment
Transparency Mode
CR
NP
PC
TR
Screened Vectors
SV
Arc Absolute
Arc Relative
Absolute Arc Three Point
Bezier Absolute
AA
AR
AT
BZ
Bezier Relative
BR
Circle
Plot Absolute
Plot Relative
Pen Down
Pen Up
Relative Arc Three Point
Polyline Encoded
CI
PA
PR
PD
PU
RT
PE
PARAMETERS*
PALETTE EXTENSIONS
[b_ref_red, w_ref_red, b_ref_grn, w_ref_grn, b_ref_blue, w_ref_blue];
[n];
[pen [,red, green, blue]];
0 - Off (opaque)
1 - On (transparent)
[screen_type[,shading[,index]]]
VECTOR GROUP
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];
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];
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];
radius [,chord angle];
[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]];
* Parameters in brackets are optional.
Printer Commands A-19
Table A-2.
HP-GL/2 Commands (continued)
COMMAND
Fill Rectangle Absolute
Fill Rectangle Relative
Edge Rectangle Absolute
Edge Rectangle Relative
Fill Wedge
Edge Wedge
Polygon Mode
Fill Polygon
Edge Polygon
* Parameters in brackets are optional.
A-20 Printer Commands
MNEMONIC
PARAMETERS*
POLYGON GROUP
RA
x_coordinate,y_coordinate;
RR
x_increment,y_increment;
EA
x_coordinate,y_coordinate;
ER
x_increment,y_increment;
WG
radius,start_angle,sweep_angle[,chord_angle];
EW
radius,start_angle,sweep_angle[chord_angle];
PM
polygon_definition;
FP
0- Odd/Even
1 - non-zero winding
EP
None
Table A-2.
HP-GL/2 Commands (continued)
FUNCTION
Select Standard Font
Select Alternate Font
Absolute Direction
Relative Direction
Absolute Character 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
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
MNEMONIC
PARAMETERS*
CHARACTER GROUP
SS
None
SA
None
DI
[run,rise];
DR
[run,rise];
SI
[width,height];
SR
[width,height];
SL
[tangent_of_angle];
ES
[width[,height]]
SD
[kind,value ... [,kind,value]];
AD
[kind,value ... [,kind,value]];
CF
[fill_mode[,edge_pen]];
LO
[position];
LB
[char ... [char]]1bterm
DT
[1bterm[,mode]];
CP
[spaces,lines];
TD
[mode];
DV
[path[,line]];
LINE AND FILL ATTRIBUTES GROUP
LT
[line_type[,pattern_length[,mode]]];
LA
[kind,value ... [,kind,value]];
PW
[width[,pen]];
WU
[type];
SP
[pen]; (required, 1 for black (recommended) or
0 for white)
SM
[char];
FT
[fill_type[,option1[,option2]]];
AC
[x_coordinate,y_coordinate];
RF
[index[,width,height,pen_nbr ... pen_nbr]];
(width and height must be less than 255)
UL
[index[,gap1 ... gapn]];
* Parameters in brackets are optional.
Printer Commands A-21
Table A-2.
HP-GL/2 Commands (continued)
FUNCTION
Advance Full Page
Scale
Input Window
Input P1 and P2
Input Relative P1 And P2
Default Values
Initialize
Replot
Rotate Coordinate System
Begin Plot
Chord Tolerance Mode
Download Character
Frame Advance
Media Type
Merge Control
Output Error
Output Hardclip Limits
Output Identification
Output P1 and P2
Output Status
Pixel Placement
Plot Size
Quality Level
* Parameters in brackets are optional.
A-22 Printer Commands
MNEMONIC
PARAMETERS*
CONFIGURATION AND STATUS GROUP
PG
[n];
SC
[x1,x2,y1,y2[,type[,left,bottom]]];
or
[x1,xfactor,y1,yfactor,2];
IW
[xLL,yLL,xUR,yUR];
IP
[p1x,p1y[,p2x,p2y]];
IR
[p1x,p1y[,p2x,p2y]];
DF
None
IN
[n];
RP
[n];
RO
[angle];
TECHNICAL GRAPHICS EXTENSION
BP
[kind, value...[,kind, value]];
CT
[mode];
DL
[charnum [[,up], x, y...[,up],x,y]];
FR
MT
[type];
MC
[mode [, opcod]];
OE
OH
OI
OP
OS
PP
[mode];
PS
[length [,width]];
QL
[quality level]
Table A-3.
Control Codes
Function
Symbol
Decimal
Value
Backspace
B
8
Move one column left unless at left margin, in
which case no action is taken.
Horizontal Tab
H
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.
S
T
Description
Printer Commands A-23
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising