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 P Specify pica pitch
- ESC M Specify elite pitch
- ESC g Specify micron pitch
- ESC p Specify proportional characters
- ESC W Specify double width characters
- SO Specify auto-cancelling enlarged characters
- ESC SO Specify auto-cancelling enlarged characters
- SI Specify reduced characters
- ESC SI Specify reduced characters
- DC2 Cancel reduced characters
- DC 4 Cancel auto-cancelling double-width characters
- ESC – Applies/cancels underlining
- ESC ! Global formatting
- ESC SP Specify character spacing
- ESC X Specify character size
- Line feed commands
- Horizontal direction movement commands
- Vertical movement commands
- Paper formatting
- Printer control commands
- Graphics commands
- Advanced commands
- ESC i B Bar code
- ESC i Q 2D Bar code QR codes
- ESC i P QR code version setting
- ESC i V 2D bar code PDF417
- ESC i D 2D bar code DataMatrix control
- ESC i M 2D bar code MaxiCode control
- ESC i F Print downloaded data
- ESC i a Switch command mode
- ESC i S Request printer status
- ESC i L Select landscape orientation
- ESC i C Specify cutting
- ESC iXQ2 Select default character style
- ESC iXQ1 Retrieve default character style
- ESC iXk2 Select default font
- ESC iXk1 Retrieve default font
- ESC iXX2 Specify default character size
- ESC iXX1 Retrieve default character size
- ESC iX32 Specify default line feed
- ESC iX31 Retrieve default line feed
- ESC iXA2 Select default alignment
- ESC iXA1 Retrieve default alignment
- ESC iX(2 Specify default page length
- ESC iX(1 Retrieve default page length
- ESC iXL2 Select default landscape orientation
- ESC iXL1 Retrieve default landscape orientation
- ESC iXj2 Select default international character set
- ESC iXj1 Retrieve default international character set
- ESC iXm2 Select default character code table
- ESC iXm1 Retrieve default character code table
- Character codes
ESC i D 2D bar code DataMatrix control
[ASCII] ESC I D or d data
[Decimal] 27 105 68 or 100 data
[Hexadecimal] 1B 69 44 or 64 data
・ Format
ESC i D or d [Parameters] [Bar code data]
\\\
1 2 3
① Parameters
Unlike with 1D bar codes, it is necessary to specify all parameters from the top down.
If a value other than those listed is entered for a parameter, that parameter is set to its
default value.
80
1. C
ell size
[Decimal 1 byte] 3
[Decimal 1 byte] 4
[Decimal 1 byte] 5
[Decimal 1 byte] 6
[Decimal 1 byte] 8
[Decimal 1 byte] 10
Set the dot size per cell side.
Prints 3 dots per cell side. (default value)
Prints 4 dots per cell side.
Prints 5 dots per cell side.
Prints 6 dots per cell side.
Prints 8 dots per cell side.
Prints 10 dots per cell side.
2. Symbol type
[Decimal 1 byte] 0
[Decimal 1 byte] 1
ECC200 square (default value)
ECC200 rectangular
3. Vertical size
[Decimal 1 byte] 0
[Decimal 1 byte] 10
[Decimal 1 byte] 12
[Decimal 1 byte] 14
[Decimal 1 byte] 16
[Decimal 1 byte] 18
[Decimal 1 byte] 20
[Decimal 1 byte] 22
[Decimal 1 byte] 24
[Decimal 1 byte] 26
[Decimal 1 byte] 32
[Decimal 1 byte] 36
[Decimal 1 byte] 40
[Decimal 1 byte] 44
[Decimal 1 byte] 48
[Decimal 1 byte] 52
[Decimal 1 byte] 64
[Decimal 1 byte] 72
[Decimal 1 byte] 80
[Decimal 1 byte] 88
[Decimal 1 byte] 96
● 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
Vertical no. of cells: 72 cells
Vertical no. of cells: 80 cells
Vertical no. of cells: 88 cells
Vertical no. of cells: 96 cells










