HP LaserJet 4100 Printer series - Common PCL 5e printer commands

background image

Common PCL 5e printer commands

Common PCL 5e printer commands

Function

Command

Options (#)

Job control commands

Reset

?E

n/a

Number of copies

?&l#X

1 to 999

2-sided/1-sided printing

?&l#S

0 = Simplex (1-sided) printing
1 = Duplex (2-sided) with long edge binding
2 = Duplex (2-sided) with short edge binding

Page cont

rol comma

nds

Paper source

?&l#H

0 = prints or ejects current page
1 = Tray 2
2 = manual feed, paper
3 = manual feed, envelope
4 = Tray 1
5 = Tray 3
6 = Envelope Feeder
7 = auto select
8 = Tray 4
20-69 = external trays

Paper size

?&l#A

1 = Executive
2 = Letter
3 = Legal
25 = A5
26 = A4
45 = B5-JIS
80 = Monarch envelope
81 = Commercial 10 envelope
90 = DL ISO envelope
91 = C5 ISO envelope
100 = B5 ISO envelope
101 = Custom

Paper type

?&n#

5WdBond = Bond
6WdPlain = Plain
6WdColor = Color
7WdLabels = Labels
9WdRecycled = Recycled
11WdLetterhead = Letterhead
10WdCardstock = Cardstock
11WdPrepunched = Prepunched
11WdPreprinted = Preprinted
13WdTransparency = Transparency
#WdCustompapertype = Custom

1

Orientation

?&l#O

0 = Portrait
1 = Landscape
2 = Reverse Portrait
3 = Reverse Landscape

background image

240 Appendix D - Printer commands

EN

Page control commands (continued)

Top Margin

?&l#E

# = number of lines

Text Length (bottom margin)

?&l#F

# = number of lines from top margin

Left Margin

?&a#L

# = column number

Right Margin

?&a#M

# = column number from left margin

Horizontal Motion Index

?&k#H

1/120-inch increments (compresses print horizontally)

Vertical Motion Index

?&l#C

1/48-inch increments (compresses print vertically)

Line Spacing

?&l#D

# = lines per inch (1, 2, 3, 4, 5, 6, 12, 16, 24, 48)

Perforation Skip

?&l#L

0 = disable
1 = enable

Cursor Positioning

Vertical Position (Rows)

?&a#R

# = row number

Vertical Position (Dots)

?*p#Y

# = dot number (300 dots = 1 inch)

Vertical Position (Decipoints)

?&a#V

# = decipoint number (720 decipoints = 1 inch)

Horizontal Position (Columns)

?&a#C

# = column number

Horizontal Position (Dots)

?*p#X

# = dot number (300 dots = 1 inch)

Horizontal Position
(Decipoints)

?&a#H

# = decipoint number (720 decipoints = 1 inch)

pr

ogr

a

mming hi

nt

s

End of Line Wrap

?&s#C

0 = Enable
1 = Disable

Display Functions On

?Y

n/a

Display Functions Off

?Z

n/a

Language selection

Enter PCL 5e Mode

?%#A

0 = Use previous PCL 5e cursor position
1 = Use current HP-GL/2 pen position

Enter HP-GL/2 Mode

?%#B

0 = Use previous HP-GL/2 pen position
1 = Use current PCL 5e cursor position

Common PCL 5e printer commands (continued)

Function

Command

Options (#)

background image

EN

Understanding PCL 5e printer command syntax 241

Font selection

Symbol Sets

?(#

8U = HP Roman-8 Symbol Set
10U = IBM Layout (PC-8) (code page 437) Default Symbol Set
12U = IBM Layout for Europe (PC-850) (code page 850)
8M = Math-8
19U = Windows 3.1 Latin 1
9E = Windows 3.1 Latin 2 (commonly used in Eastern Europe)
5T = Windows 3.1 Latin 5 (commonly used in Turkey)
579L = Wingdings Font

Primary Spacing

?(s#P

0 = fixed
1 = proportional

Primary Pitch

?(s#H

# = characters/inch

Set Pitch Mode

2

?&k#S

0 = 10
4 = 12 (elite)
2 = 16.5 - 16.7 (compressed)

Primary Height

?(s#V

# = points

Primary Style

?(s#S

0 = upright (solid)
1 = italic
4 = condensed
5 = condensed italic

Primary Stroke Wt.

?(s#B

0 = medium (book or text)
1 = semi bold
3 = bold
4 = extra bold

Typeface

?(s#T

Print a PCL 5e font list to view the command for each internal
font (page 190).

1

For custom paper, replace “Custompapertype” with the name of the paper, and replace the “#” with the number of

characters in the name, plus 1.

2

The preferred method is to use the primary pitch command.

Common PCL 5e printer commands (continued)

Function

Command

Options (#)

background image

242 Appendix D - Printer commands

EN

background image

EN

FCC regulations 243

E