Command Summary
Using the command summary
The following section lists and describes all the ESC/P 2 commands by
topic. If a command has
no
parameters, it is merely listed. If it has
parameters,
they are explained. The parameters are indicated by
lowercase italicized letters, usually n. The examples below show how the
parameters are indicated.
ESC @ is a
command with no parameters.
ESC U 1/0 is a command
that uses 1 to turn the feature on and 0 to turn it off.
ESC $ n1 n2 is a command with two parameters.
ESC D nn is a
command with a variable number of parameters.
General operation
ASCII
Dec.
Hex.
Description
ESC @
ESC U 1/0
ESC EM n
64 40
Initialize Printer
85 55
Turn Unidirectional Mode On/Off
25 19
Control Paper Loading/Ejecting
n = “R” Eject a sheet
Paper feeding
ASCII
CR
FF
LF
ESC 0
ESC 2
ESC 3 n
ESC + n
Dec.
Hex.
13 0D
12
0C
10
0A
48
30
50
32
51
33
43
2B
Description
Carriage Return
Form Feed
Line Feed
Select 1/8-inch Line Spacing
Select 1 / 6-inch Line Spacing
Set n l 180-inch Line Spacing
Set n/360-inch Line Spacing
Appendix A-13