Control Codes by Function

The following control codes are listed briefly for quick reference, For a more detailed explanation, see Appendix I. 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, refer to Appendix I.

Word Processing

 

Code

 

 

Dec

Hex

Function

 

 

 

ESC p

112

70

 

Select/Cancel

Proportional Mode

 

 

 

 

 

 

 

 

 

 

 

 

ESC k

107

 

 

6B

 

Select

Family

of

Typestyles

 

 

 

 

 

 

 

 

 

ESC (space)

32

20

 

Select

Character

Space

 

 

 

 

 

 

 

 

 

ESC $

36

24

 

Select

Absolute

Horizontal Tab

 

ESC

92

 

 

5C

 

Move Print Head

 

 

ESC a

97

61

 

Justification

 

 

 

ESC f

102

66

 

Set Print Position

 

 

 

 

 

 

 

 

 

 

 

 

Graphics

 

 

 

 

 

 

 

 

 

 

 

 

ESC K

 

75

 

 

4B

 

Select Single-Density Graphics Mode

 

ESC L

 

76

 

 

4C

 

Select Double-Density Graphics Mode

 

 

 

 

 

 

 

 

 

 

 

ESC Y

 

89

 

59

 

Select High-Speed Double-Density Graphics

 

 

 

 

 

 

 

 

 

Mode

 

 

 

 

ESC Z

90

 

 

5A

 

Select Quadruple-Density Graphics Mode

 

 

 

 

 

 

 

 

 

 

 

ESC

42

 

 

2A

 

Select

Graphics

Mode

 

 

 

 

 

 

 

 

 

ESC ?

63

 

 

3F

 

Reassign Graphics Mode

 

User-Defined

Characters

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC &

38

26

 

Define User-Defined Characters

 

ESC :

58

 

 

3A

 

Copy ROM into RAM

 

 

 

 

 

 

 

 

 

ESC %

37

25

 

Select User-Defined Set

 

 

 

 

 

 

 

 

 

 

 

 

Other Codes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC #

35

23

 

MSB Control

Sequence Cancel

 

ESC = (equal) 6 1

 

 

3 D

 

MSB = 0 Setting

 

 

 

 

 

 

 

 

 

 

ESC >

 

62

 

 

3E

 

MSB = 1 Setting

 

BEL

 

 

7

0 7

 

Beeper

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BS

 

 

8

0 8

 

Backspace

 

 

 

 

 

 

 

 

 

 

 

 

 

CR

 

 

13

 

 

0D

 

Carriage Return

 

 

 

 

 

 

 

 

 

 

 

 

 

DC1

 

 

17

 

 

1 1

 

Select

Printer

 

 

 

 

 

 

 

 

 

 

 

 

DC3

 

 

19

 

 

13

 

Deselect Printer

 

 

 

 

 

 

 

 

 

 

 

 

 

CAN

 

 

24

 

 

18

 

Cancel

Line

 

 

 

 

 

 

 

 

 

 

 

ESC EM

 

25

1

9

 

Cut Sheet Feeder Control

 

 

 

 

 

 

 

 

 

 

ESC <

 

 

60

 

 

3C

 

Select Unidirectional Mode (one line)

 

 

 

 

 

 

 

 

 

 

ESC @:

 

 

64

 

 

40

 

Initialize Printer

 

 

 

 

 

 

 

 

 

 

 

ESC U

 

 

85

 

 

55

 

Select

Unidirectional Mode

 

 

 

 

 

 

 

ESC s

 

 

115

 

 

73

 

Select Half-Speed Mode

 

DEL

 

 

127

 

 

7F

 

Delete

Character