Electronic Support Center Homepage The Hewlett-Packard Homepage Feedback About This Site HP Copyright Information Search HP Search Support Electronic Support Center Home Page Electronic Support Center Help All-in-One Products  Fax Product Support Information Storage Large Format Printers Mobile Computing Network Connectivity Network Printing Personal Computing Printers Printer-Copiers Scanners Servers Electronic Support Center Homepage The Hewlett-Packard Homepage HP DESKJET 800 SERIES PRINTERS - PRINTER COMMANDS
HP Electronic Support Center - Top Banner
HP Electronic Support Center - Navigation


HP DESKJET 800 SERIES PRINTERS - PRINTER COMMANDS


 

 

NOTE: This document lists the HP DeskJet PCL printer commands for basic page formatting and font selection. If further information about PCL commands is needed, please contact the Customer Support Center (1-208-323-2551).

 

A Few Notes About using PCL commands:

 

* The commands are listed in hierarchical order and also give the decimal and hexadecimal equivalents.

 

* Values in the parentheses "(x)" identify the lower case of the termination character, which is used for combining commands.

 

* Ec represents the escape character for your software. In DOS, Edit Ec is represented by holding down the Ctrl key and pressing the letter P. Release both keys and press the Esc key.

 

* # and #...# represent variables that you will replace with the numbers needed to complete the commands required.

 

For example, to set the number of copies to 14, Ec&#X, replace the # or #...# with:

 

ASCII

14

Decimal

049 052

Hexadecimal

31 34

 

Use the following table to translate ASCII values into decimal or hexadecimal values:

 

ASCII value

Dec

Hex

Description

0

48

30

Zero

1

49

31

One

2

50

32

Two

3

51

33

Three

4

52

34

Four

5

53

35

Five

6

54

36

Six

7

55

37

Seven

8

56

38

Eight

9

57

39

Nine

.

46

2E

Period (point)

 

 

Printer Feature

Printer Command

Decimal Value

Hexadecimal Value

Printer Control

Reset

EcE

027 069

1B 45

Self Test

EcZ

027 122

1B 7A

Paper Input Control (Media Source)

Eject Page

Ec&l0H (h)

027 038 108 048 072 (104)

1B 26 6C 30 48 (68)

Feed from Tray

Ec&l1H (h)

027 038 108 049 072 (104)

1B 26 6C 31 48 (68)

Manual Feed

Ec&l2H (h)

027 038 108 050 072 (104)

1B 26 6C 32 48 (68)

Envelope Feed

Ec&l3H (h)

027 038 108 051 072 (104)

1B 26 6C 33 48 (68)

Underline

Single Fixed

Ec&d1D (d)

027 038 100 049 068 (100)

1B 26 64 31 44 (64)

Single Floating

Ec&d3D (d)

027 038 100 051 068 (100)

1B 26 64 33 44 (64)

Turn off

Ec&d@

027 038 100 064

1B 26 64 40

Line Termination

CR=CR;LF=LF; FF=FF

Ec&k0G (g)

027 038 107 048 071 (103)

1B 26 6B 30 47 (67)

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

Ec&k1G (g)

027 038 107 049 071 (103)

1B 26 6B 31 47 (67)

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

Ec&k2G (g)

027 038 107 050 071 (103)

1B 26 6B 32 47 (67)

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

Ec&k3G (g)

027 038 107 051 071 (103)

1B 26 6B 33 47 (67)

End Of Line Wrap

Turn on

Ec&s0C (c)

027 038 115 048 067 (99)

1B 26 73 30 43 (63)

Turn off

Ec&s1C (c)

027 038 115 049 067 (99)

1B 26 73 31 43 (63)

Transparent Print Mode

No of bytes

Ec&p#X[data] (x)

027 038 112 # 088 [data] (120)

1B 26 70 # 58 [data] (78)

Display Functions Mode

Turn on

EcY

027 089

1B 59

Turn off

EcZ

027 090

1B 5A

Page Control

Orientation

Portrait

Ec&l0O (o)

027 038 108 048 079 (111)

1B 26 6C 30 4F (6F)

Landscape

Ec&l1O (o)

027 038 108 049 079 (111)

1B 26 6C 31 4F (6F)

Reverse Portrait

Ec&l2O (o)

027 038 108 050 079 (111)

1B 26 6C 32 4F (6F)

Reverse Landscape

Ec&l3O (o)

027 038 108 051 079 (111)

1B 26 6C 33 4F (6F)

Page Size

Default Size

Ec&l1O (o)

027 038 108 048 065 (097)

1B 26 6C 30 41 (61)

Executive

Ec&l1A (a)

027 038 108 049 065 (097)

1B 26 6C 31 41 (61)

US Letter

Ec&l2A (a)

027 038 108 050 065 (097)

1B 26 6C 32 41 (61)

US Legal

Ec&l3A (a)

027 038 108 051 065 (097)

1B 26 6C 33 41 (61)

A5 ISO/JIS

Ec&l25A (a)

027 038 108 050 055 065 (097)

1B 26 6C 32 37 41 (61)

A4 ISO/JIS

Ec&l6A (a)

027 038 108 050 054 065 (097)

1B 26 6C 32 36 41 (61)

B5 JIS

Ec&l45A (a)

027 038 108 052 053 065 (097)

1B 26 6C 34 35 41 (61)

Card - 4 x 6

Ec&l74A (a)

027 038 108 055 052 065

1B 26 6C 37 34 41

Card - 5 x 8

Ec&l75A (a)

027 038 108 055 053 065

1B 26 6C 37 35 41

Card - A6 ISO/JIS

Ec&l24A (a)

027 038 108 050 052 065

1B 26 6C 32 34 41

Card - hagaki

Ec&l71A (a)

027 038 108 055 049 065

1B 26 6C 37 31 41

Com-10

Ec&l81A (a)

027 038 108 056 049 065 (097)

1B 26 6C 38 31 41 (61)

Int'l DL envelope

Ec&l90A (a)

027 038 108 057 048 065 (097)

1B 26 6C 39 30 41 (61)

Int'l C6 envelope

Ec&l92A (a)

027 038 108 057 050 065 (097)

1B 26 6C 39 32 41 (61)

US A2 Envelope

Ec&l109A (a)

027 038 108 049 048 057 065 (097)

1B 26 6C 31 30 39 41 (61)

Line Spacing

Lines per inch no. of lines

Ec&l#D (d)

027 038 108 # 068 (100)

1B 26 6C # 44 (64)

Page Length

# of Lines

(5-128)

Ec&l#P (p)

027 038 108 #...# 080 (112)

1B 26 6C #...# 50 (70)

Perforation Skip

On

Ec&l1L (l)

027 038 108 049 076 (108)

1B 26 6C 31 4C (6C)

Off

Ec&l0L (l)

027 038 108 048 076 (108)

1B 26 6C 30 4C (6C)

Top Margin

# of Lines

Ec&l#E (e)

027 038 108 #...# 069 (101)

1B 26 6C #...# 45 (65)

Text Length

# of Lines

Ec&l#F (f)

027 038 108 #...# 070 (102)

1B 26 6C #...# 46 (66)

Side Margins

Left (column no.)

Ec&a#L (l)

027 038 097 #...# 076 (108)

1B 26 61 #...# 4C (6C)

Right (column no.)

Ec&a#M (m)

027 038 097 #...# 077 (109)

1B 26 61 #...# 4D (6D)

Horizontal Motion Index (HMI)

# of 1/120" Increments

Ec&k#H (h)

027 038 107 #...# 072 (104)

1B 26 6B #...# 48 (68)

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

____________________________ X 120 = #

Desired Characters Per Line

Horizontal Position

# of Columns

Ec&a#C (c)

027 038 097 #...# 067 (99)

1B 26 61 #...# 43 (63)

# of Dots

Ec*p#X (x)

027 042 112 #...# 088 (120)

1B 2A 70 #...# 58 (78)

# of Decipoints

Ec&a#H h)

027 038 097 #...# 072 (104)

1B 26 61 #...# 48 (68)

Half Line Feed

Ec=

027 061

1B 3D

Vertical Motion Index (VMI)

# of 1/48" Increments

Ec&l#C (c)

027 038 108 #...# 067 (99)

1B 26 6C #...# 43 (63)

The Vertical Motion Index (VMI) command designates the distance between rows in 1/48 inch increments (the

vertical distance the cursor will move for a line feed operation). This command affects the line feed and half line

feed spacing. The factory default VMI is 8, which corresponds to 6 lines per inch. VMI can be selected from the

printer control panel or by sending a printer escape sequence: Ec&l#C . # is equal to a variable that is derived

from the following formula:

 

Vertical Printable Area

_____________________ X 48 = #

Desired Lines Per Page

 

Vertical Position

# of Rows

Ec&a#R (r)

027 038 097 #...# 082 (114)

1B 26 61 #...# 52 (72)

# of Dots

Ec*p#Y (y)

027 042 112 #...# 089 (121)

1B 2A 70 #...# 59 (79)

# of Decipoints

Ec&a#V (v)

027 038 097 #...# 086 (118)

1B 26 61 #...# 56 (76)

Font Selection

Character Set

PC-8

Ec(10U

027 040 049 048 085

1B 28 31 30 55

HP Roman8

Ec(8U

027 040 056 085

1B 28 38 55

PC-8 Danish/Norwegian

Ec(11U

027 040 049 049 085

1B 28 31 31 55

PC 850

Ec(12U

027 040 049 050 085

1B 28 31 32 55

ECMA-94 Latin 1

Ec(0N

027 040 048 078

1B 28 30 4E

German (ISO 21)

Ec(1G

027 040 049 071

1B 28 31 47

French (ISO 69)

Ec(1F

027 040 049 070

1B 28 31 46

Italian (ISO 15)

Ec(0I

027 040 048 073

1B 28 30 49

Spanish (ISO 17)

Ec(2S

027 040 050 083

1B 28 32 53

Swedish (ISO 11)

Ec(0S

027 040 048 083

1B 28 30 53

Norwegian1 (ISO 60)

Ec(0D

027 040 048 068

1B 28 30 44

ISO 4: United Kingdom

Ec(1E

027 040 049 069

1B 28 31 45

ANSI ASCII (ISO 6)

Ec(0U

027 040 048 085

1B 28 30 55

HP Legal

Ec(1U

027 040 049 085

1B 28 31 55

PC-8 Turkish

Ec(9T

027 040 057 084

1B 28 39 54

PC-852

Ec(17U

027 040 049 055 085

1B 28 31 37 55

ISO 8859/2 Latin 2

Ec(2N

027 040 050 078

1B 28 32 4E

ISO 8859/5 Latin 5

Ec(5N

027 040 053 078

1B 28 35 4E

Windows 3.1 Latin 1

Ec(19U

027 040 049 057 085

1B 28 31 39 55

Windows 3.1 Latin 2

Ec(9E

027 040 057 069

1B 28 39 45

Windows 3.1 Latin 5

Ec(5T

027 040 053 084

1B 28 35 54

Refer to the PCL-5 Comparison Guide for additional supported symbol sets.

Spacing

Proportional

Ec(s1P (p)

027 040 115 049 080 (112)

1B 28 73 31 50 (70)

Fixed

Ec(s0P (p)

027 040 115 048 080 (112)

1B 28 73 30 50 (70)

Print Pitch *

# Characters/

inch

Ec(s#H (h)

027 040 115 #...# 072 (104)

1B 28 73 #...# 48 (68)

Point Size (Character Height)

# of 1/72nd inch

Ec(s#V (v)

027 040 115 #...# 086 (118)

1B 28 73 #...# 56 (76)

Style*

Upright

Ec(s0S (s)

027 040 115 048 083 (115)

1B 28 73 30 53 (73)

Italic

Ec(s1S (s)

027 040 115 049 083 (115)

1B 28 73 31 53 (73)

Stroke Weight

Bold

Ec(s3B (b)

027 040 115 051 066 (98)

1B 28 73 33 42 (62)

Normal

Ec(s0B (b)

027 040 115 048 066 (98)

1B 28 73 30 42 (62)

Extra Black (optional)

Ec(s7B (b)

027 040 115 055 066 (98)

1B 28 73 37 42 (62)

Typeface

Courier

Ec(s3T (t)

027 040 115 051 084 (116)

1B 28 73 33 54 (74)

CG Times

Ec(s4101T (t)

027 040 115 052 049 048 049 084 (116)

1B 28 73 34 31 30 31 54

(74)

Letter Gothic

Ec(s6T (t)

027 040 115 054 084 (116)

1B 28 73 36 54 (74)

Univers

Ec(s52T (t)

027 040 115 053 050 084 (116)

1B 28 73 35 32 54 (74)

Times New Roman (R)

Ec(s517T (t)

027 040 115 053 049 055 084 (116)

1B 28 73 35 31 37 54 (74)

Arial (R)

Ec(s218T (t)

027 040 115 050 049 056 084 (116)

1B 28 73 32 31 38 54 (74)

Symbol

Ec(s302T (t)

027 040 115 051 048 050 084 (116)

1B 28 73 33 30 32 54 (74)

Wingdings

Ec(s2730T (t)

027 040 115 050 055 051 048 084 (116)

1B 28 73 32 37 33 30 54 (74)

Download Font Management

Font ID no.

Ec*c#D (d)

027 042 099 # 068 (100)

1B 2A 63 # 44 (64)

ASCII code no.

Ec*c#E (e)

027 042 099 # 069 (65)

1B 2A 63 # 45 (65)

Delete All

Ec*c0F (f)

027 042 099 048 070 (102)

1B 2A 63 30 46 (66)

Delete Temporary

Ec*c1F (f)

027 042 099 049 070 (102)

1B 2A 63 31 46 (66)

Delete last

Ec*c2F (f)

027 042 099 050 070 (102)

1B 2A 63 32 46 (66)

Make Temporary

Ec*c4F (f)

027 042 099 052 070 (102)

1B 2A 63 34 46 (66)

Make Permanent

Ec*c5F (f)

027 042 099 053 070 (102)

1B 2A 63 35 46 (66)

Create font number of bytes

Ec)s#W[data]

027 041 115 # 087 [data]

1B 29 73 # 57 [data]

Download chr. No. of bytes

Ec(s#W[data]

027 040 115 # 087 [data]

1B 28 73 # 57 [data]

Raster Graphics

Start Raster Graphics

At left most position

Ec*r0A

027 042 114 048 065

1B 2A 72 30 41

Current Cursor Position

Ec*r1A

027 042 114 049 065

1B 2A 72 31 41

End Raster Graphics

End Graphics

Ec*rbC

027 042 114 098 067

1B 2A 72 62 43

Resolution

75 dots per inch

Ec*t75R

027 042 116 055 053 082

1B 2A 74 37 35 52

150 dots per inch

Ec*t150R

027 042 116 049 053 048 082

1B 2A 74 31 35 30 52

300 dots per inch

Ec*t300R

027 042 116 051 048 048 082

1B 2A 74 33 30 30 52

600 dots per inch

Ec*t600R

027 042 116 054 048 048 082

1B 2A 74 36 30 30 52

Configure Raster Data

Ec*g#W

027 042 103 # 087

1B 2A 67 # 57

Set Raster Graphics Width

# of pixels

Ec*r#S

027 042 114 # 083

1B 2A 72 # 53

Add Raster Graphics Compression

Method0

Ec*b0M

027 042 098 048 077

1B 2A 62 30 4D

Method1

Ec*b1M

027 042 098 049 077

1B 2A 62 31 4D

Method2

Ec*b2M

027 042 098 050 077

1B 2A 62 32 4D

Method3

Ec*b3M

027 042 098 051 077

1B 2A 62 33 4D

Method9

Ec*b9M

027 042 098 057 077

1B 2A 62 39 4D

Seed Row Source

Ec*b#S

027 042 098 # 083

1B 2A 62 # 53

Transfer Raster Graphics

Number of byes

Ec*b#W[data]

027 042 098 # 087 [data]

1B 2A 62 # 57 [data]

Transfer graphics data by plane

Ec*b#V[data]

027 042 098 # 086 [data]

1B 2A 62 # 56 [data]

Relative Vertical Pixel Movement (formerly known as Y offset

# of dots

Ec*b#Y

027 042 098 # 089

1B 2A 62 # 59

Set Number of Raster Planes Per Row

Single plane palette

Ec*r1U

027 042 114 049 085

1B 2A 72 31 55

3 planes, CMY palette

Ec*r-3U

027 042 114 045 051 085

1B 2A 72 2D 33 55

3 planes, RGB palette

Ec*r3U

027 042 114 051 085

1B 2A 72 33 55

4 planes, KCMY palette

Ec*r-4U

027 042 114 045 052 085

1B 2A 72 2D 34 55

Custom Color Palette

Palette Configuration

Ec*d#W [data]

027 042 100 # 087 [data]

1B 2A 64 # 57 [data]

Color Text (graphics)

Foreground color

Ec*v#S

027 042 118 # 083

1B 2A 76 # 53

Graphics Image Improvement

Raster graphics depletion

Ec*o#D

027 042 111 # 068

1B 2A 6F # 44

 



PostScript (TM) is a trademark of
Adobe Systems Incorporated which may be
registered in certain jurisdictions.

Arial (R) is a U.S. registered trademark
of the Monotype Corporation.

Times New Roman (R) is a U.S. registered
trademark of the Monotype Corporation.

Copyright Ó Hewlett-Packard Co. 1997
This information is subject to change without notice and
is provided "as is" with no warranty.
Hewlett-Packard shall not be liable for any direct,
indirect, special, incidental or consequential damages
in connection with the use of this material.
FAQ

HP Support - Bottom Banner