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
39
ESC K 8-dot bitmap image (standard density)
[ASCII] ESC K n1 n2 data
[Decimal] 27 75 n1 n2 data
[Hexadecimal] 1B 4B n1 n2 data
[Parameters] 0≤n1≤255, 0≤n2≤3
In data, the image data is n1 + n2 * 256 bytes.
[Description]
Specifies that an 8-dot bitmap image (standard density) will be printed with the number of dot positions
defined by n1 and n2.
・ n1 and n2 indicate the number of dot positions. Specify their values as shown below.
n1: The remainder from dividing the number of dot positions by 256
n2: The quotient from dividing the number of dot positions by 256
ESC L 8-dot bitmap image (double density)
[ASCII] ESC L n1 n2 data
[Decimal] 27 76 n1 n2 data
[Hexadecimal] 1B 4C n1 n2 data
[Parameters] 0≤n1≤255, 0≤n2≤3
In data, the image data is n1 + n2 * 256 bytes.
[Description]
Specifies that an 8-dot bitmap image (double density) will be printed with the number of dot positions
defined by n1 and n2.
・ Specify n1 and n2 in the same way as with ESC K.
ESC Y 8-dot bitmap image (double speed, double density)
[ASCII] ESC Y n1 n2 data
[Decimal] 27 89 n1 n2 data
[Hexadecimal] 1B 59 n1 n2 data
[Parameters] 0≤n1≤255, 0≤n2≤3
In data, the image data is n1 + n2 * 256 bytes.
[Description]
・ Same as 8-dot bitmap image (double density).










