Commands Arranged by Topic

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/Data Control

 

 

Code

Dec

Hex

Function

Page

 

 

 

 

ESC @

6 4

4 0

Initialize Printer

9-9

 

 

 

 

DC1

17

11

SelectPrinter

9-9

 

 

 

 

DC3

1 9

13

Deselect Printer

9-10

 

 

 

 

 

 

 

 

 

 

 

 

 

DEL

127

7F

Delete Character

9-10

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC <

60

3C

Select Unidirectional Mode (one line)

9-10

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC U

85

55

Turn Unidirectional Mode On/Off

9-11

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC EM

2 5

1 9

Turn Cut Sheet Feeder On/Off

9-11

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC =

61

3D

Set MSB to 0

9-12

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC >

6 2

3 E

Set MSB to 1

9-12

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC #

3 5

23

Cancel MSB Control

9-12

 

 

 

 

 

 

 

 

 

 

 

 

 

BEL

7

07

Beeper

9 - 1 2

 

 

 

 

CR

1 3

0D

Carriage Return

9-13

 

 

 

 

CAN

2 4

1 8

Cancel Line

9-13

 

 

 

 

 

 

 

 

 

 

 

 

Vertical Motion/Horizontal Motion

 

 

 

 

 

FF

12

0C

Form Feed

9-14

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC C

67

43

Select Page Length in Lines

9-14

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC C 0

67

43

Select Page Length in Inches

9-14

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC N

78

4E

Set Skip Over Perforation

9-15

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC o

79

4F

Cancel Skip Over Perforation

9-15

 

 

 

 

 

 

 

 

 

 

 

 

 

LF

10

0A

Line Feed

9-15

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC 0

48

30

Select 1/8-inch Line Spacing

9-16

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC 2

50

32

Select 1/6-inch Line Spacing

9-16

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC 3

51

33

Select n/180-inch Line Spacing

9-16

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC A

65

41

Select n/60-inch Line Spacing

9-17

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC J

74

4A

Perform n/180-inch Line Feed

9-17

 

 

 

 

 

 

 

 

 

 

 

 

 

VT

11

0B

Tab Vertically

9-17

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC B

66

42

Select Vertical Tabs

9-18

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC b

98

62

Select Vertical Tabs In Channels

9-18

 

 

 

 

ESC /

47

2 F

Select Vertical Tab Channel

9-18

 

 

 

 

ESC I

108

6C

Set Left Margin

9-19

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC Q

8 1

51

Set Right Margin

9-19

 

 

 

 

B S

8

08

B a c k s p a c e

9-20

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC $

3 6

24

Set Absolute Print Position

9-20

 

 

 

 

ESC \

92

5 C

Set Relative Print Position

9-21

 

 

 

 

HT

9

09

Tab Horizontally

9-21

 

 

 

 

ESC D

68

44

Set Horizontal Tabs

9 - 2 2