ESC/ P Legacy Command Reference

Table Of Contents
ESC/P Legacy Command Reference
- 14 -
4. Control Code List
4. Control Code List
Paper feed commands (Refer to section 5.1 Paper feed commands.)
ASCII Code
Binary Code
Function
CR
0Dh
Carriage return
FF
0Ch
Form feed
LF
0Ah
Line feed
ESC 0
1Bh 30h
Specify line feed of 1/8 inch
ESC 2
1Bh 32h
Specify line feed of 1/6 inch
ESC 3
1Bh 33h
Specify line feed of n/180 inch
ESC A
1Bh 41h
Specify line feed of n/60 inch
ESC +
1Bh 2Bh
Specify line feed of n/360 inch
ESC J
1Bh 4Ah
Specify forward paper feed of n/180 inch
Print area setting commands (Refer to section 5.2 Print area setting commands.)
ASCII Code
Binary Code
Function
ESC C
1Bh 43h
Specify page length in lines
ESC C 0
1Bh 43h 00h
Specify page length in inches
ESC N
1Bh 4Eh
Specify skip perforation
ESC O
1Bh 4Fh
Cancel skip perforation
Tab setting commands (Refer to section 5.3 Tab setting commands.)
ASCII Code
Binary Code
Function
ESC B
1Bh 42h
Specify vertical tab position
VT
0Bh
Perform vertical tab
ESC D
1Bh 44h
Specify horizontal tab position
HT
09h
Perform horizontal tab
Print position setting commands (Refer to section 5.4 Print position setting commands.)
ASCII Code
Binary Code
Function
ESC l
1Bh 6Ch
Specify left margin
ESC Q
1Bh 51h
Specify right margin
BS
08h
Backspace
ESC $
1Bh 24h
Specify absolute position
ESC \
1Bh 5Ch
Specify relative position