ESC/ P Command Reference

Table Of Contents
ESC/P Command Reference
- ii -
Introduction
CR Carriage return ................................................................................46
ESC D Specify horizontal tab position ........................................................47
HT Perform horizontal tab.....................................................................48
ESC $ Specify absolute horizontal position ...............................................49
ESC \ Specify relative horizontal position .................................................49
ESC a Specify alignment ............................................................................50
5.5 Vertical movement commands ..............................................................................51
LF Line feed .........................................................................................51
FF Page feed ........................................................................................51
ESC J Forward paper feed.........................................................................52
ESC B Specify vertical tab position ............................................................53
VT Perform vertical tab .........................................................................54
ESC (V Specify absolute vertical position ....................................................55
ESC (v Specify relative vertical position ......................................................56
5.6 Paper formatting commands .................................................................................57
ESC (c Specify page format ........................................................................57
ESC (C Specify page length ........................................................................58
5.7 Printer control commands .....................................................................................59
ESC @ Initialize ...........................................................................................59
ESC i U x Reboot.............................................................................................60
5.8 Graphics commands .............................................................................................61
ESC * Select bit image <for 203dpi printers> ............................................61
ESC * Select bit image <for 300dpi printers> ............................................65
ESC K 8-dot single-density bit image .........................................................71
ESC L 8-dot double-density bit image ........................................................71
ESC Y 8-dot double-speed double-density bit image .................................72
ESC Z 8-dot quadruple-density bit image ..................................................72
5.9 Advanced commands ............................................................................................73
ESC i B Barcode ...........................................................................................73
ESC i Q 2D barcode (QR Code) ...................................................................78
ESC i P QR Code version ............................................................................81
ESC i V 2D barcode (PDF417) .....................................................................82
ESC i D 2D barcode (DataMatrix).................................................................85
ESC i M 2D barcode (MaxiCode) ..................................................................88
ESC i J 2D barcode (Aztec) .........................................................................90
ESC i G Specify font .....................................................................................92
ESC i F P Print downloaded data ....................................................................93
ESC i a Switch command mode...................................................................97
ESC i S Status information request ..............................................................98
ESC i L Specify landscape orientation .......................................................102
ESC i C Specify cutting ...............................................................................103
ESC i H Specify recovery setting ................................................................103
5.10 Advanced static commands ..............................................................................104
ESC iXQ2 Select default character style ........................................................104
ESC iXQ1 Retrieve default character style ....................................................104
ESC iXk2 Select default font .........................................................................105
ESC iXk1 Retrieve default font ......................................................................106
ESC iXX2 Specify default character size .......................................................107
ESC iXX1 Retrieve default character size .....................................................107
ESC iX32 Specify default line feed ................................................................108
ESC iX31 Retrieve default line feed ..............................................................108
ESC iXA2 Select default alignment................................................................109
ESC iXA1 Retrieve default alignment ............................................................109
ESC iX(2 Specify default page length........................................................... 110
ESC iX(1 Retrieve default page length ......................................................... 110