Troubleshooting

Hex Quick Reference Table for ESC/P Commands

Use the table below as an aid to read printer hex dumps. This table is for quick reference only. The user’s guide contains a detailed description of the control codes.

Table 3-10. Hex. Codes for ESC/P Commands

 

 

Hex.

Dec.

ASCII

Command

 

 

 

 

 

 

 

 

 

 

 

07

07

BEL

Beeper

 

 

 

08

0 8

BS

Backspace

 

 

 

09

09

H T

Horizontal tab

 

 

 

 

O A

10

LF

Line feed

 

 

 

 

O B

11

V T

Vertical tab

 

 

 

 

o c

12

FF

Form feed

 

 

 

 

O D

13

CR

Carriage return

 

 

 

 

OE

14

s o

Select double-width mode (one line)

 

 

 

 

OF

15

SI

Select condensed mode

 

 

 

11

17

DC1

Select printer

 

 

 

1 2

18

DC2

Cancel condensed mode

 

 

 

13

19

DC3

Deselect printer

 

 

 

1 4

20

DC4

Cancel double-width mode

 

 

 

1 8

2 4

CAN

Cancel line

 

 

 

19

25

ESC EM n

Turn cut-sheet feeder on/off, select bin, eject sheet

 

 

 

2 0

32

ESC SP n

Set intercharacter space

 

 

 

2 1

33

E S C ! n

Master select

 

 

 

2 3

35

ESC #

Cancel MSB control

 

 

 

2 4

36

ESC $ nl n2

Set absolute horizontal print position (n = (nl + n2 x 256)/60”)

 

 

 

2 5

37

ESC %n

Select user-defined set

 

 

 

2 6

3 8

ESC & nn

Define user-defined characters

 

 

 

2 8 7 4

4 0 116

E S C ( t n n

Assign character table

 

 

 

 

2 A

42

ESC * mn

Select graphics mode

 

 

 

 

2 D

4 5

ESC - l/O

Turn underlining on/off

 

 

 

 

2 F

4 7

ESC/c

Select vertical tab channel (c = channel 0 - 7)

 

 

 

3 0

4 8

ESC 0

Select l/8-inch line spacing

 

 

 

3 1

49

ESC 1

Select 7/72-inch line spacing

 

 

 

32

50

ESC 2

Select l/6-inch line spacing

 

 

 

3 3

51

ESC3n

Set n/216-inch line spacing

 

 

 

3 4

52

ESC 4

Select italic mode

 

 

 

3 5

53

ESC 5

Cancel italic mode

 

 

 

3 6

54

ESC 6

Enable printable characters

 

 

 

37

55

ESC 7

E n a b l eupperc o n t r o l c o d e s

 

 

 

3 8

56

ESC 8

Disable paperout detection

 

 

 

39

57

ESC 9

Enable paper-out detection

 

 

 

 

3 A

58

E S C : O n O

Copy ROM to RAM (n = 0 copies Roman; n = 1 copies San serll

 

 

 

 

3 c

6 0

ESC <

Select unidirectional mode (one line)

 

 

 

 

 

 

 

 

 

 

E p s o n FX-870/1170

3-21