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
55
ESC i D 2D bar code (DataMatrix)
[ASCII] ESC i D data
[Decimal] 27 105 68 data
[Hexadecimal] 1B 69 44 data
・ Format
ESC i D [parameters] [bar code data] \\\
① ② ③
① Parameters
Unlike with 1D bar codes, all parameters must be specified in order, starting from the
top.
If a value other than those listed is entered for a parameter, that parameter is set to its
default value.
1. Cell size
[1-byte decimal] 4
[1-byte decimal] 6
[1-byte decimal] 8
[1-byte decimal] 10
[1-byte decimal] 12
Specifies the dot size per cell side.
Prints 4 dots per cell side. (default value)
Prints 6 dots per cell side.
Prints 8 dots per cell side.
Prints 10 dots per cell side.
Prints 12 dots per cell side.
2. Symbol type
[1-byte decimal] 0
[1-byte decimal] 1
ECC200 square (default value)
ECC200 rectangular
3. Vertical size
[1-byte decimal] 0
[1-byte decimal] 10
[1-byte decimal] 12
[1-byte decimal] 14
[1-byte decimal] 16
[1-byte decimal] 18
[1-byte decimal] 20
[1-byte decimal] 22
[1-byte decimal] 24
[1-byte decimal] 26
[1-byte decimal] 32
[1-byte decimal] 36
[1-byte decimal] 40
[1-byte decimal] 44
[1-byte decimal] 48
[1-byte decimal] 52
[1-byte decimal] 64
● ECC200 square
Vertical no. of cells: AUTO (default value)
Vertical no. of cells: 10 cells
Vertical no. of cells: 12 cells
Vertical no. of cells: 14 cells
Vertical no. of cells: 16 cells
Vertical no. of cells: 18 cells
Vertical no. of cells: 20 cells
Vertical no. of cells: 22 cells
Vertical no. of cells: 24 cells
Vertical no. of cells: 26 cells
Vertical no. of cells: 32 cells
Vertical no. of cells: 36 cells
Vertical no. of cells: 40 cells
Vertical no. of cells: 44 cells
Vertical no. of cells: 48 cells
Vertical no. of cells: 52 cells
Vertical no. of cells: 64 cells










