beautypg.com

Brother TD-2120N User Manual

Page 16

background image

ESC/P Command Reference

- 10 -

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 FCh 02h
ESC $ 2Bh 00h
ESC ( V 02h 00h 6Dh 01h
ESC k 0bh
ESC X 00h 64h 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.

This manual is related to the following products: