Control Code List
Appendix C. Control Codes (Connected to a Parallel Port)
Control codes control the operation of the printer, however you do not need to
know about them for daily use. Refer to the following as necessary for questions
about controlling the printer.
C.1 Control Code List
The following lists control codes. For more information about control codes, see
C.2, “Overview of Control Codes.”
Function
Control Code
Code (Hexadecimal)
1
Null
NUL
00
2
Bell
BEL
07
3
Backspace
BS
08
4
Horizontal tab
HT
09
5
Line Feed
LF
0A
6
Vertical Tab
VT
0B
7
Form Feed
FF
0C
8
Carriage Return
CR
0D
9
Device Control 1 (Ready)
DC 1
11
10
Device Control 3 (Not Ready)
DC 3
13
11
Cancel
CAN
18
12
Space
SP
20
13
Set Image Data
ESC %1 n1 n2
1B,25,31 n1,n2
14
Set Image Data Enlargement
ESC %2 n1 n2
1B,25,32 n1,n2
15
Variable Jump
ESC %3 n1 n2
1B,25,33 n1,n2
16
Variable Back Jump
ESC %4 n1 n2
1B,25,34 n1,n2
17
Variable Line Feed
ESC %5 n1 n2
1B,25,35 n1, n2
18
Set Carriage Return
ESC %6 n1 n2
1B,25,36 n1,n2
19
Variable Reverse Line Feed
ESC %8 n1 n2
1B,25,38 n1,n2
20
Set Line Feed
ESC %9 n1 n2
1B,25,39 n1,n2
21
Set Bi-directional Printing Mode
ESC %B
1B,25,42
22
Set Uni-directional Printing
Mode
ESC %U
1B,25,55
23
Initialize
ESX 01 00 00
1B,7E,01,00,00
24
Set Character Pitch
ESX 02 00 01 n
1B,7E,02,00,00,n
25
Set Line Pitch
ESX 03 00 01 n
1B,7E,03,00,00,n
26
Set Page Length
ESX 04 n1 n2 c1 c2 (c3)
1B,7E,04,n1,12,c1,c2,(c3)
27
Font Style Selection
ESX 06 00 01 n
1B,7E,06,00,01,n
28
All Character Printing Specifica-
tion
ESX 08n1 n2 c1 c2 ... cn
1B, 7E, 08, n1, n2, c1, c2 ..., cn
Copyright IBM Corp. 1999
C-1
Summary of Contents for 5400-006
Page 6: ...vi IBM 5400 006 Printer Setup Instruction and Operator s Guide ...
Page 10: ...x IBM 5400 006 Printer Setup Instruction and Operator s Guide ...
Page 147: ...Parallel Port Basic Functions Chapter 4 IBM 5400 006 Features 4 15 ...
Page 154: ...Environmental Conditions 5 6 IBM 5400 006 Printer Setup Instruction and Operator s Guide ...
Page 208: ...ESC P C Character Set D 6 IBM 5400 006 Printer Setup Instruction and Operator s Guide ...
Page 210: ...E 2 IBM 5400 006 Printer Setup Instruction and Operator s Guide ...