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
38
2-8) Graphics commands
ESC * Select bitmap 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
0≤n1≤255, 0≤n2≤11
In data,
if m=0, 1, 2, 3, 4 or 6,
the image data is n1 + n2 * 256 bytes,
and if m=32, 33, 38, 39 or 40,
the image data is (n1 + n2 * 256) * 3 bytes.
*The settings below is available for MW-120 TypeF, MW-140BT TypeF and MW-260.
if m=71, 72 or 73,
the image data is (n1 + n2 * 256) * 6 bytes.
[Description]
・ Selects the bitmap image according to the value of m, and outputs it.
・ 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 Dot density
of width
Dot density
of height
Resolution of
width dots
Resolution of
height dots
0 60 dpi 60 dpi 6 / 300 inch 6 / 300 inch
1 120 dpi 60 dpi 3 / 300 inch 6 / 300 inch
2 120 dpi 60 dpi 3 / 300 inch 6 / 300 inch
3 240 dpi 60 dpi 2 / 300 inch 6 / 300 inch
4 80 dpi 60 dpi 4 / 300 inch 6 / 300 inch
6 90 dpi 60 dpi 4 / 300 inch 6 / 300 inch
32 60 dpi 180 dpi 6 / 300 inch 2 / 300 inch
33 120 dpi 180 dpi 3 / 300 inch 2 / 300 inch
38 90 dpi 180 dpi 4 / 300 inch 2 / 300 inch
39 180 dpi 180 dpi 2 / 300 inch 2 / 300 inch
40 360 dpi 180 dpi 1 / 300 inch 2 / 300 inch
*The settings below are available for MW-120 TypeF, MW-140BT TypeF and MW-260.
71 180 dpi 360 dpi 2 / 300 inch 1 / 300 inch
72 360 dpi 360 dpi 1 / 300 inch 1 / 300 inch
73 360 dpi 360 dpi 1 / 300 inch 1 / 300 inch










