beautypg.com

Brother QL-720NW User Manual

Page 15

background image

ESC/P Command Reference

- 9 -

2. Examples of Using ESC/P Commands

All commands together will make the example label shown below.

ESC i a 00h
ESC @
ESC i L 01h
ESC ( C 02h 00h 10h 02h
ESC $ 96h 00h
ESC ( V 02h 00h FCh 00h
ESC k 0Bh
ESC X 00h 32h 00h
At your side
FF

Select ESC/P mode

Binary command: 1B 69 61 00

Initialize ESC/P mode

Binary command: 1B 40

6 steps explained above

Print start command

Binary command: 0C

Text to be print

Binary command: 41 74 20 79 6F 75

72 20 73 69 64 65

However, these commands should be converted to binary data before sent to the printer, as shown below.

Here is the captured converted binary data.

When the printer receives above binary commands, the label shown below is printed.