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
・With
linkage. [Three partitions] (The parity for the 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”
\\\
2 [Bar code data]: Bar code data
When manual input is selected in 8 (data input method of the parameters), the bar code
data must be preceded with one of the following single-byte alphanumeric characters.
Number input N or n
Alphanumeric input A or a
Kanji input K or k
Binary input B or b + 4 digits of numbers
Specify numbers of binary character that is input the “4 digits numbers”
For example, if you input 12 characters, it should be;
B 0012 (0x30,0x30,0x31,0x32)
<Example>
1. Kanji
ESC i Q [other parameters] 1 K kanji input
\\\
2. Alphanumeric input
ESC i Q [other parameters] 1 A012345678aBcDe
\\\
3. Binary input
ESC i Q [other parameters] 1 B0005####
\\\
The number of bar code data items that can be input depends on the model type and the
input type.
Model 1:
707 English alphanumeric characters, 1167 numbers, 486 binary bytes, 299 kanji
Model 2:
4296 English alphanumeric characters, 7089 numbers, 2953 binary bytes, 1817 kanji
Micro QR: 21 English alphanumeric characters, 35 numbers, 15 binary bytes, 9 kanji
Note:The numbers shown here is for high-density Level L 7% of Error correction level. If
you specify them on more than standard lebel, the number may decrease. And, even if you
Specify then on high-density level, it may decrease because of the treatment of
compression.
3
\\\: End of bar code
75
Three back slashes are necessary for end of 2D bar code.










