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
1-4) Standard flow
Standard printing flow
[Description]
1) Status request
Send a status request (ESC + i + S)
2) Status response
There are 32 bytes of status such as header mark, size, "Brother" code, series code etc…
3) Print data
Sending print data with header, switch command mode (ESC + i + a + 0x00), initialize command (ESC
+ @), and actual print data.
4) Page feed (FF, 0x0C)
Receiving “Page feed command”, the printer starts rendering the print image, and then prints.
5) Status (print completed status or error status)
This status shows “print completed”.
* MW-120 does not reply “print completed” (using ESC/P commands).
13
Host machine MPrint MW-120 / 140BT
/ 145BT / 260
1) Status request
2) Status response
When the status is OK,
send print data to
MPrint.
Checking MPrint status
and if printing is available
or not.
B) Format data.
C) Print data.
4) Page feed (FF, 0x0C)
Receive (A) and prepare
to receive ESC/P data
Start print
Completed 1 page
5) Status (print complete status or error status) *
Termination of all
printing processes
Generate print data.
Termination for 1
st
page printing
Send print data for
2
nd
page
・・・・and repeat several times as necessary・・・・
B) Format data.
C) Print data.
5) Status (print completed status or error status)
Completed “n” pages
A) Switch comand mode
Generate print data.
4) Page feed (FF, 0x0C)










