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
14
1-4) Status and Error handling
1-4-1) Status information:
When
your program issues the command “Status request”, MPrint returns basic 32 bytes and
additional status data. The command follows.
ESC i S Request printer status
[ASCII] ESC i S
[Decimal] 27 105 83
[Hexadecimal] 1B 69 53
[Parameters] None
[Description]
・ Requests the printer status.
Status information table:
Index
number
Offset Data
size
Description Value
1 0 1 Head mark 80 Hex…fixed data
2 1 1 Size 20 Hex…fixed data
3 2 1 “Brother” code
‘B’ Char(42 Hex)…fixed data
4 3 1 Series code Describe afterward
5 4 1 Model code Describe afterward
6 5 1 Country code Describe afterward
7 6 1 Information on main unit 00 Hex…fixed data
8 7 1 N/A 00 Hex…fixed data
9 8 1 Error information 1 Describe afterward
10 9 1 Error information 2 Describe afterward
11 10 1 Media width Describe afterward
12 11 1 Media kind Describe afterward
13 12 1 Number of colours Describe afterward
14 13 1 Font 00 Hex…fixed data
15 14 1 Japanese font 00 Hex…fixed data
16 15 1 Mode Describe afterward
17 16 1 Density Describe afterward
18 17 1 Media length Describe afterward
19 18 1 Status kind Describe afterward
20 19 1 Phase kind Describe afterward
21 20 1 Phase number(upper byte) Describe afterward
22 21 1 Phase number(lower byte) Describe afterward
23 22 1 Notice number Describe afterward
24 23 1 Number of bytes (expansion
section)
00 Hex
25 24 8 Hardware setting Describe afterward










