ESC/ P Legacy Command Reference
Table Of Contents
- ESC/P Legacy Command Reference
- IMPORTANT - PLEASE READ CAREFULLY
- Contents
- Introduction
- What is ESC/P?
- 1. Using ESC/P Legacy Commands
- 2. Examples of Using ESC/P Legacy Commands
- 3. ESC/P Legacy Command Limitations
- 4. Control Code List
- 5. Control Command Details
- 5.1 Paper feed commands
- 5.2 Print area setting commands
- 5.3 Tab setting commands
- 5.4 Print position setting commands
- 5.5 Character selection commands
- 5.6 Character style commands
- ESC x Select text quality
- SI, ESC SI Specify reduced characters
- DC2 Cancel reduced characters
- SO, ESC SO Specify auto-canceling double-width characters
- DC4 Cancel auto-canceling double-width characters
- ESC W Specify/cancel double-width characters
- ESC w Specify/cancel double-height characters
- ESC E Apply bold style
- ESC F Cancel bold style
- ESC G Apply double-strike printing
- ESC H Cancel double-strike printing
- ESC – Apply/cancel underlining
- ESC SP Specify character spacing
- ESC q Select character style
- ESC 4 Apply italic
- ESC 5 Cancel italic
- ESC ! Global formatting
- 5.7 Character definition commands
- 5.8 Supplemental function commands
- 5.9 Others
- 5.10 Advanced commands
- Appendix A: Character Code Tables
- Appendix B: Introducing the Brother Developer Center
- brother US ENG
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