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
23
ESC X Specify character size
[ASCII] ESC X n
[Decimal] 27 88 n
[Hexadecimal] 1B 58 n
[Parameters] 0≤n≤6 or 30h≤n≤36h
[Description]
・Specifies the character size.
・The character size can be set to AUTO or a fixed size (six sizes).
If n=0 (or 30h), the AUTO size is applied.
If n=1 (or 31h), the 4-point size is applied. (21 dots)
If n=2 (or 32h), the 6-point size is applied. (28 dots)
If n=3 (or 33h), the 9-point size is applied. (44 dots)
If n=4 (or 34h), the 12-point size is applied. (56 dots)
If n=5 (or 35h), the 18-point size is applied. (88 dots)
If n=6 (or 36h), the 24-point size is applied. (120 dots)
・Same as FS Y
ESC i f Apply/cancel a frame (global)
[ASCII] ESC i f
[Decimal] 27 105 102
[Hexadecimal] 1B 69 66
[Parameters] 0≤n≤1 or 30h≤n≤31h
[Description]
・Applies a frame around the entire text.
If n=0 (or 30h), the frame is cancelled.
If n=1 (or 31h), a frame is applied.
CAN Clear text
[ASCII] CAN
[Decimal] 24
[Hexadecimal] 18
[Parameters] None
[Description]
・Clears all text, image data and bar codes that were received.










