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
- 5 -
1. Using ESC/P Legacy Commands
1. Using ESC/P Legacy Commands
Below is a description of the flow for creating documents.
Also refer to “2. Examples of Using ESC/P Legacy Commands”.
(1) Start ESC/P
1. Switch the command mode.
2. Initialize
- Switch command mode (ESC i a 0)
Note: ESC/P Legacy mode
- Initialize (ESC @)
(2) Format settings
2. Specify print area.
- Specify left/right margins (ESC I, ESC Q)
3. Specify the line feed amount.
- Specify line feed amount (ESC 0, ESC 2, ESC 3, ESC A)
4. Specify tab positions.
- Specify horizontal tab position (ESC D)
- Specify vertical tab position (ESC B)
(3) Print operations
1. Specify the print position.
- Specify the vertical position (VT, ESC J)
- Specify the horizontal position (ESC $, ESC \, HT, )
2. Transfer the print data
(one line).
- Transfer necessary text operation codes (see (4)),
bit images, (see (5))
3. End of the line.
- Feed the paper (CR, LF)
4. Repeat 1–3 above.
5. End of the page.
- Feed the page (FF)
6. Repeat 1–5 above.
7. End of the document.