Control and ESCape Codes by Function

The following control codes are listed briefly for quick reference. For a more detailed explanation, see the page reference in Chapter 9. Variables are not included in this quick reference due to their complexity. For those codes that contain variables, such as ESC Q n for setting the right margin, see Chapter 9.

Printer Operation

 

ASCII

 

Dec.

Hex.

Description

 

Pg

 

 

ESC @

64

40

Initialize Printer

9-8

 

 

DC1

17

11

Select Printer

9-8

 

 

DC3

19

13

Deselect Printer

9-9

 

 

DEL

127

7F

Delete Character

9-9

 

 

ESC <

60

3C

Select Unidirectional Mode (one line)

s-s

 

 

ESC U

85

55

Turn Unidirectional Mode On/Off

S-10

 

 

ESC EM

25

19

Control Cut Sheet Feeder Mode

9-10

 

 

ESC =

61

3D

Set MSB to 0

 

9-11

 

 

ESC >

62

3E

Set MSB to 1

 

9-11

 

 

ESC #

35

23

Cancel MSB

Control

9-11

 

 

BEL

7

07

Beeper

 

9-12

 

 

Data Control

 

 

 

 

 

 

 

 

ASCII

 

Dec.

Hex.

Description

 

pg

 

 

CR

13

OD

Carriage Return

9.12

 

 

CAN

24

18

Cancel Line

 

9-12

 

 

Vertical Motion

 

 

 

 

 

 

 

 

ASCII

 

Dec.

Hex.

Description

 

pg

 

 

FF

12

OC

Form Feed

 

9-13

 

 

ESC C

67

43

Set Page Length in Lines

9-13

 

 

ESCCO

67

43

Set Page Length in Inches

9-13

 

 

ESC N

78

4E

Set Skip Over Perforation

9-14

 

 

ESC O

79

4F

Cancel Skip Over Perforation

9.14

 

 

LF

1 0

0A

Line Feed

 

9-14

 

 

ESC 0

4 8

30

Select 1/8-inch Line Spacing

9-15

 

 

ESC 2

50

32 Select 1/6-inch Line Spacing

9-15

 

 

ESC +

4 3

2 B

Set n/360-inch Line Spacing

9-15

 

 

ESC 3

51

33

Set n/180-inch Line Spacing

9-16

 

 

ESC A

 

41

Set n/60-inch Line Spacing

9-16

 

 

 

65

 

 

ESC J

 

74

4A

Perform n/180-inch Line Feed

9-16

 

 

VT

 

11

OB

Tab Vertically

9-17

 

 

ESC B

 

66

42

Set Vertical

Tabs

9-17

 

 

ESC b

 

98

62

Set Vertical

Tabs in Channels

9-18

 

 

ESC /

 

47

2F

Select Vertical Tab Channel

9-18