Table A-1.
HP PCL 5 Commands (continued)
FUNCTION
PARAMETER
Orientation
Portrait
Landscape
Reverse Portrait
Reverse
Landscape
Print Direction
# Degrees of
Rotation (counter-
clockwise,
90° increments
only)
Character Text
Horizontal
Path Direction
Vertical Rotated
Top Margin
# of Lines
Text Length
# of Lines
Left Margin
# of Columns
Right Margin
# of Columns
Clear Horizontal
—
Margins
Perforation Skip
Disable
Enable
Horizontal Motion
# of 1/120"
Index (HMI)
Increments
Vertical Motion In-
# of 1/48"
dex (VMI)
Increments
Line Spacing
1 line/inch
(Lines per 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
Alphanumeric ID
# of bytes
A-4 Printer Commands
COMMAND
Orientation
?&l0O
(o)
027 038 108 048 079
?&l1O
(o)
027 038 108 049 079
?&l2O
(o)
027 038 108 050 079
?&l3O
(o)
027 038 108 051 079
?&a#P
(p)
027 038 097 #...# 080
?&c0T
(t)
027 038 099 048 084
?&c–1T
(t)
027 038 099 045 049 084
Margins and Text Length
?&l#E
(e)
027 038 108 #...# 069
?&l#F
(f)
027 038 108 #...# 070
(l)
027 038 097 #...# 076
?&a#L
?&a#M
(m) 027 038 097 #...# 077
?9
027 057
Perforation Skip Mode
?&l0L
(l)
027 038 108 048 076
(l)
027 038 108 049 076
?&l1L
Horizontal Column Spacing
?&k#H
(h)
027 038 107 #...# 072
Vertical Line Spacing
?&l#C
(c)
027 038 108 #...# 067
?&l1D
(d)
027 038 108 049 068
?&l2D
(d)
027 038 108 050 068
?&l3D
(d)
027 038 108 051 068
?&l4D
(d)
027 038 108 052 068
?&l6D
(d)
027 038 108 054 068
?&l8D
(d)
027 038 108 056 068
?&l12D
(d)
027 038 108 049 050 068
?&l16D
(d)
027 038 108 049 054 068
(d)
027 038 108 050 052 068
?&l24D
?&l48D
(d)
027 038 108 052 056 068
ALPHANUMERIC ID
?&n#W[operation]
027 038 110 #...# 087
[String]
DECIMAL VALUE
(111)
(111)
(111)
(111)
(112)
(116)
(116)
(101)
(102)
(108)
(109)
(108)
(108)
(104)
(99)
(100)
(100)
(100)
(100)
(100)
(100)
(100)
(100)
(100)
(100)
HEXADECIMAL VALUE
1B 26 6C 30 4F
1B 26 6C 31 4F
1B 26 6C 32 4F
1B 26 6C 33 4F
1B 26 61 #...# 50
1B 26 63 30 54
1B 26 63 2D 31 54
1B 26 6C #...# 45
1B 26 6C #...# 46
1B 26 61 #...# 4C
1B 26 61 #...# 4D
1B 39
1B 26 6C 30 4C
1B 26 6C 31 4C
1B 26 6B #...# 48
1B 26 6C #...# 43
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
1B 26 6E #...# 57
(6F)
(6F)
(6F)
(6F)
(70)
(74)
(74)
(65)
(66)
(6C)
(6D)
(6C)
(6C)
(68)
(63)
(64)
(64)
(64)
(64)
(64)
(64)
(64)
(64)
(64)
(64)