ESC/ P Command Reference
Table Of Contents
- Control code list
- Print area
- Characters
- Print position
- Line feed amount
- Document creation flow
- Control command details
- Character/style selection commands
- Text printing commands
- ESC 4 Apply italic style
- ESC 5 Cancel italic style
- ESC E Apply bold style
- ESC F Cancel bold style
- ESC G Apply double-strike printing
- ESC H Cancel double-strike printing
- ESC W Specify double-width characters
- SI Specify compressed characters
- ESC SI Specify compressed characters
- DC2 Cancel compressed characters
- ESC - Apply/cancel underlining
- ESC ! Global formatting
- ESC X Specify character size
- ESC i f Apply/cancel a frame (global)
- CAN Clear text
- DEL Delete one character
- ESC CR Not available
- Line feed commands
- Horizontal movement commands
- Vertical movement commands
- Paper formatting
- Printer control commands
- Graphics commands
- Kanji commands
- Advanced commands
- ESC i B Bar code
- ESC i Q 2D bar code (QR Code)
- ESC i P Specify QR Code version
- ESC i V 2D bar code (PDF417)
- ESC i D 2D bar code (DataMatrix)
- ESC i M 2D bar code (MaxiCode)
- ESC i F Print transferred data
- ESC i a Switch command mode
- ESC i S Request printer status
- ESC i L Apply/cancel rotated printing
- ESC i C Specify cut setting
- ESC i U B Specify baud rate
- ESC i U b Specify bit length
- ESC i U P Specify parity setting
- ESC i U C Specify busy control
- Character code
- BROTHER PT-9800PCN/9700PC ESC/P specifications
13
Document creation flow
The flow for creating documents is shown below.
A Switch command mode (ESC i a) and Initialize (ESC @)
B Format settings
1. Apply/cancel rotated printing (ESC i L)
2. Specify line feed amount (ESC 0, ESC 2, ESC 3 and ESC A)
C Print operations
1. Specify print position
Specify vertical position (ESC J)
Specify horizontal position (ESC $, ESC \ and ESC a)
2. Transfer print data (one line)
If necessary, transfer text processing codes (see D), bit images, bar codes
and downloaded data (see E).
3. End of line and feed paper (CR and LF)
4. Repeat 1 through 3 described above.
5. End of page, Specify cut setting (ESC i C) and Page feed (FF)
6. Repeat 1 through 6 described above.
7. End of document










