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
48
・No linkage
ESC i Q 0x04 0x02 0x00 0x00 0x00 0x00 0x02 0x00 “123456789”\\\
・With linkage (separated into three partitions) (The parity for character string “123456789”
is “0x31”.)
ESC i Q 0x04 0x02 0x01 0x01 0x03 0x31 0x02 0x00 “123”\\\
ESC i Q 0x04 0x02 0x01 0x02 0x03 0x31 0x02 0x00 “456”\\\
ESC i Q 0x04 0x02 0x01 0x03 0x03 0x31 0x02 0x00 “789”\\\
② [Bar code data]: Data for the bar code
If manual input is selected for parameter 8. Data input method, the following single-byte
letter must be entered in front of the bar code data.
When entering numerals: N or n
When entering alphanumeric characters: A or a
When entering kanji characters: K or k
When entering binary characters: B or b + 4-digit number string
With the four-digit number string, specify the number of binary characters to actually be
entered.
For example, if 12 binary characters are to be entered,
specify “B 0012 (0x30,0x30,0x31,0x32)".
Examples
1. With kanji characters:
ESC i Q [other parameters] 1 K <Enter kanji.>\\\
2. With alphanumeric characters:
ESC i Q [other parameters] 1 A012345678abcde\\\
3. With binary characters:
ESC i Q [other parameters] 1 B0005##### \\\
The number of bar code data characters that can be entered differs depending on the
model type and input method.
MODEL1: 707 alphanumeric characters, 1167 numerals, 486 bytes of binary characters,
299 kanji characters
MODEL2: 4296 alphanumeric characters, 7089 numerals, 2953 bytes of binary characters,
1817 kanji characters
Micro QR: 21 alphanumeric characters, 35 numerals, 15 bytes of binary data, 9 kanji










