Epson ESC/P Commands Arranged by Topic

Printer operation:

ASCII

Dec.

Hex.

Description

ESC @

64

40

Initialize Printer

DC1

17

11

Select Printer

DC3

19

13

Deselect Printer

ESC <

60

3C

Select Unidirectional Mode (one line)

ESC U 1/0

85

55

Turn Unidirectional Mode On/ Off

ESC =

61

3D

Set MSB to 0

ESC >

62

3E

Set MSB to 1

ESC #

35

23

Cancel MSB Control

BEL

7

07

Beeper

Data control:

ASCII

Dec.

Hex.

Description

CR

13

OD

Carriage Return

CAN

24

18

Cancel Line

DEL

127

7F

Delete Character

Vertical motion:

ASCII

Dec.

Hex.

Description

FF

12

0C

Form Feed

ESC Cn

67

43

Set Page Length in Lines

 

 

 

n = Number of lines

ESC C 0 n

67

43

Set Page Length in Inches

 

 

 

n = Number of lines

ESCNn

78

4E

Set Ship-Over-Perforation

 

 

 

n = Number of lines

ESC O

79

4F

Cancel Skip-Over-Perforation

Printer Commands and Character Tables B-3