ESC/ P Command Reference

- List of commands
This printer supports the following ESC/P commands.
1. Paper feed commands
Command Code Function
CR 0Dh Carriage return
FF 0Ch Form feed
LF 0Ah Line feed
ESC 0 1Bh 30h Specify line feed of 1/8 inch
ESC 2 1Bh 32h Specify line feed of 1/6 inch
ESC 3 n 1Bh 33h nnh Specify line feed of n/180 inch
ESC A n 1Bh 41h nnh Specify line feed of n/60 inch
ESC + n 1Bh 2Bh nnh Specify line feed of n/360 inch
ESC J n 1Bh 4Ah nnh Specify forward paper feed of n/180 inch
2. Print area setting commands
Command Code Function
ESC C n 1Bh 43h nnh Specify page length in lines
ESC C 0 n 1Bh 43h 00h nnh Specify page length in inches
ESC N n 1Bh 4Eh nnh Specify skip perforation
ESC O 1Bh 4Fh Cancel skip perforation
3. Tab setting commands
Command Code Function
ESC B n n...0 1Bh 42h nnh...00h Specify vertical tab position
VT 0Bh Perform vertical tab
ESC D n n...0
1Bh 44h nnh...00h
Specify horizontal tab position
HT 09h Perform horizontal tab
4. Print position setting commands
Command Code Function
ESC l n 1Bh 6Ch nnh Specify left margin
ESC Q n 1Bh 51h nnh Specify right margin
BS
08h
Backspace
ESC $ n m 1Bh 24h nnh mmh Specify absolute position
ESC ¥ ESC \)n m
1Bh 5Ch nnh mmh Specify relative position
©Copyright 2011 BROTHER INDUSTRIES, LTD.
7