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

 

 

ESC s

115

73

Turn Half-weed Mode On/Off

9-9

 

L

 

 

Select Unidirectional Mode (one line)

9-9

 

 

ESC <

60

3C

 

 

ESC U

85

55

Turn Unidirectional Mode On/Off

9-10

 

 

ESC 8

56

38

Disable

Paper

Out

Detection

9-10

 

 

ESC 9

57

39

Enable

Paper

Out

Detection

9-10

 

 

ESC EM

25

19

Turn Cut Sheet Feeder Mode On/Off

9-11

 

 

BEL

7

07

Beeper

 

 

 

9-11

 

Data Control

ASCII

Dec.

Hex.

Description

Pg.

CR

13

0D

Carriage

Return

9-12

CAN

24

18

Cancel

Line

9-12

DEL

127

7F

Delete Character

9-12

Vertical Motion

I

I

I

I

I

t

I

I

I

I

I