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 (C Specify page length
[ASCII] ESC ( C nL nH mL mH
[Decimal] 27 40 67 nL nH mL mH
[Hexadecimal] 1B 28 43 nL nH mL mH
[Parameters] nL=2,nH=0
0<(mL+mH * 256)<12000
[Description]
・Specifies the page length.
・ The unit is 1/300 inch (= 1 dot).
Page length = mL + mH * 256
・The current paper position is set as the TOF.
・The top and bottom margins are deleted with ESC ( c.
・All text content before this is cleared.
・The standard unit is not used.
・This command is available only with continuous length label.
Inch, mm, and dot conversion table
inch mm Number of dots
0 0 0
1 25.4 300
2 50.8 600
3 76.2 900
4 101.6 1200
5 127.0 1500
6 152.4 1800
7 177.8 2100
8 203.2 2400
9 228.6 2700
10 254.0 3000
11 279.4 3300
12 304.8 3600
13 330.2 3900
14 355.6 4200
15 381.0 4500
16 406.4 4800
17 431.8 5100
18 457.2 5400
19 482.6 5700
20 508.0 6000
58










