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
ESC @
DC1
DC3
DEL
ESC <
ESC U
ESC EM
ESC
=
ESC
>
ESC
#
BEL
Dec.
Hex.
Description
64
40
Initialize Printer
17
11
Select Printer
19 13 Deselect Printer
127
7F
Delete Character
Pg
9-8
9-8
9-9
9-9
60 3C
Select Unidirectional Mode (one line)
s-s
85 55
Turn Unidirectional Mode On/Off
S-10
25
19
Control Cut Sheet Feeder
Mode 9-10
61
3D
Set MSB to 0
9-11
62 3E
Set MSB to 1
9-11
35
23
Cancel MSB Control
9-11
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
10
0A
Line Feed
9-14
ESC 0
48
30
9-15
ESC 2
50
32
Select 1/6-inch Line Spacing
9-15
ESC +
43
2B
Set n/360-inch Line Spacing
9-15
Select 1/8-inch Line Spacing
ESC 3
51
33
Set
n/180-inch Line Spacing
9-16
ESC A
65
41
Set
n/60-inch Line Spacing
9-16
ESC J
VT
ESC
B
ESC
b
ESC /
74
4A Perform n/180-inch Line Feed
9-16
11
OB
Tab
Vertically
9-17
66
42
Set Vertical Tabs
9-17
98
62
Set
Vertical Tabs
in
Channels
9-18
47
2F
Select Vertical Tab Channel
9-18