ESC/ P Command Reference
Table Of Contents
- Chapter 1. General Information
- Chapter 2. Command information
- 2-1) Character/style selection commands
- 2-2) 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 Specify double printing
- ESC H Cancel double 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 half-width characters
- ESC SI Specify half-width characters
- DC2 Cancel half-width characters
- DC4 Cancel auto-cancelling double-width characters
- ESC - Apply/cancel underlining
- ESC ! Global formatting
- ESC SP Select character spacing for ANK characters
- ESC X Select alphanumeric/kana character size
- 2-3) Line feed amount commands
- 2-4) Horizontal movement commands
- 2-5) Vertical movement commands
- 2-6) Paper formatting
- 2-7) Printer control commands
- 2-8) Graphics commands
- 2-9) Advanced commands
- Chapter 3. Appendix
45
Numeric – N or n
Alphanumeric – A or a
2-byte code (Kanji characters) – K or k
Binary input – B or b + 4 digit numbers
The 4 digit numbers shows the actual numbers of binary characters.
For example, if you input 12 binary characters; B 0012 ( 0x30,0x30,0x31,0x32 )
<Examples>
1. Kanji characters
ESC i Q [other parameter] 1 K[kanji characters]\\\
2. Alphanumeric
ESC i Q [other parameter] 1 A012345678abcde\\\
3. Binary input
ESC i Q [other parameter] 1 B0005####\\\
The number of possible bar code data amount is different from model types or input method.
MODEL1: Alphanumeric 707 characters, numeric 1,167 characters, binary 486 byte, Kanji 299 characters
MODEL2: Alphanumeric 4,296 characters, numeric 7,089 characters, binary 2,953 byte, Kanji 1,817
characters
MicroQR: Alphanumeric 21 characters, numeric 35 characters, binary 15 byte, Kanji 9 characters
* Above is for the error correction level – “L7% high dense level”. It may be decreased if you set it for
higher level. Even though you set the level “L 7% high dense level”, the number of the characters may be
decreased because of the data compression.
[Data end sign]
For 2D bar codes, 3 backslashes ”\\\” should be required at end of the data.










