Printer commands arranged by topic

The HP printer commands supported in HP LaserJet series emulation are listed below with the name or description, followed by the ASCII value and then the hexadecimal value abovethedecimal.(ThesymbolsetandGL/2modeareina shorter format.)

Note:

To use these printer commands, your software must allow you to do so. Consult your software reference manual or the software technical support department for assistance.

Name or description

 

Hexadecimal

 

 

 

 

 

ASCII

Decimal

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PCL mode control codes:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Backspace

BS

08

 

 

 

 

 

 

 

 

 

008

 

 

 

 

 

 

Line

feed

LF

0A

 

 

 

 

 

 

 

 

 

010

 

 

 

 

 

 

Form

feed

FF

0C

 

 

 

 

 

 

 

 

 

012

 

 

 

 

 

 

Carriagereturn

CR

0D

 

 

 

 

 

 

 

 

 

013

 

 

 

 

 

 

Shiftout

s o

0E

 

 

 

 

 

 

(selectsecondaryfont)

 

014

 

 

 

 

 

 

Shiftin

SI

0F

 

 

 

 

 

 

(select primary font)

 

015

 

 

 

 

 

 

Escape

ES

1B

 

 

 

 

 

 

 

 

 

027

 

 

 

 

 

 

Horizontaltab

HT

09

 

 

 

 

 

 

 

 

 

009

 

 

 

 

 

 

Space

SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Orientation:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Orientation

ESC&1#0

1B

26

6C

#

4F

 

 

 

027

038

108

#

079

Print

direction

ESC &a#P

1B

26

61

#

50

(3/P/Sionly)

 

027

038

097

#

080

B-34 HP Emulation Mode