Epson ESC/P Commands Arranged by Topic

ESC 1

 

Select 7/72-inch Line Spacing

Format:

 

 

ASCII code:

ESC

1

Decimal:

27

49

Hexadecimal:

1B

31

Comments:

Sets the line spacing to 7/72 of an inch for subsequent line feed commands. The 1 is the character one and not lowercase L or ASCII code 1.

ESC 2

 

Select l/6-inch Line Spacing

Format:

 

 

ASCII code:

ESC

2

Decimal:

27

50

Hexadecimal:

1B

32

Comments:

Sets the line spacing to l/6 of an inch for subsequent line feed commands. The 2 is the character two and not ASCII code 2. This is the default at power on.

ESC 3

 

 

Select n/216-inch Line Spacing

Format:

 

 

 

ASCII code:

ESC

3

n

Decimal:

27

51

n

Hexadecimal:

1B

33

n

Comments:

Sets the line spacing to n/216 of an inch for subsequent line feed commands. The 3 is the character three and not ASCII code 3. The value of n must be from 0 to 255.

9-16 Command Summary