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
Graphics commands
ESC * Select bit image
[ASCII] ESC * m n1 n2 Data
[Decimal] 27 42 m n1 n2 Data
[Hexadecimal] 1B 2A m n1 n2 Data
[Parameters] m=0,1,2,3,4,6,32,33,38,39,40,71,72,73
0≤n1≤255, 0≤n2≤11
The image data is n1 + n2*256 bytes when m = 0,1,2,3,4,6;
(n1+n2*256)*3 bytes when m = 32,33,38,39,40
(n1+n2*256)*6 bytes when m = 71,72,73
[Description]
・Selects and outputs a bit image according to the value of m.
・n1 and n2 indicate the number of dot positions.
n1: the remainder from dividing the number of dot positions by 256.
n2: the quotient from dividing the number of dot positions by 256.
m Horizontal dot density Vertical dot density Horizontal dot resolution Vertical dot resolution
0 60DPI 60DPI 6/300 inch 6/300 inch
1 120DPI 60DPI 3/300 inch 6/300 inch
2 120DPI 60DPI 3/300 inch 6/300 inch
3 240DPI 60DPI 2/300 inch 6/300 inch
4 80DPI 60DPI 4/300 inch 6/300 inch
6 90DPI 60DPI 4/300 inch 6/300 inch
32 60DPI 180DPI 6/300 inch 2/300 inch
33 120DPI 180DPI 3/300 inch 2/300 inch
38 90DPI 180DPI 4/300 inch 2/300 inch
39 180DPI 180DPI 2/300 inch 2/300 inch
40 360DPI 180DPI 1/300 inch 2/300 inch
71 180DPI 360DPI 2/300 inch 1/300 inch
72 360DPI 360DPI 1/300 inch 1/300 inch
73 360DPI 360DPI 1/300 inch 1/300 inch
60
・Horizont
ally neighboring dots are not omitted.
(Limitations) A maximum of 63 can be used with this command.










