Epson - ESCP/2 Commands
The following list shows the ESC Codes that use a variable within a command. The ASCII characters 1 and 0, or their decimal or hexadecimal equivalent can be used. Most programs use the ASCII decimal equivalent as the method of inserting codes. However, some programs are restricted to using only decimal values instead of the ASCII decimal equivalent. Note: "*" Indicates the command is supported.
Feature | Escape Code | 9 Pin | 24 Pin |
Proportional On/Off | ESC p n | * | * |
Select NLQ or Draft | ESC x n | * | * |
Expanded Print On/Off | ESC W n | * | * |
Double High On/Off | ESC w n | * | * |
Underlining On/Off | ESC - n | * | * |
Select Super/Subscript | ESC S n | * | * |
Select Character Set | ESC % n | * | * |
Unidirectional On/Off | ESC U n | * | * |
Half Speed On/Off | ESC s n | * | * |
Only the decimal or hexadecimal values may be used for the command variable(s) listed in the following tables. For example, the command ESC k n in basic must be expressed as CHR$(27)"k"chr$(0) or CHR$(&h1B)"k"CHR$(&h00) to select the Roman font.
Feature | Escape Code | 9 Pin | 24 Pin |
Select Font: | ESC k n | * | * |
n = 0 Roman | | * | * |
n = 1 San Serif | | * | * |
n = 2 Courier | | | * |
n = 3 Prestige | | | * |
n = 4 Script | | | * |
n = 5 Ocr-B | | | * |
n = 6 Ocr-A | | | * |
n = 7 Orator | Needs Multifont Module | | * |
n = 8 Orator S | Needs Multifont Module | | * |
Character Style: | ESC q n | | * |
n = 0 Normal | | | * |
n = 1 Outline | | | * |
n = 2 Shadow | | | * |
n = 3 Outline & Shadow | | | * |
Master Select: | ESC ! n | * | * |
n = 0 Pica | | * | * |
n = 1 Elite | | * | * |
n = 2 Proportional | | * | * |
n = 4 Condensed | | * | * |
n = 8 Emphasized | | * | * |
n = 16 Double Strike | | * | * |
n = 32 Double Wide | | * | * |
n = 64 Italic | | * | * |
n = 128 Underline | | * | * |
Select Score: | ESC ( - n1 n2 m d1 d2 | | * |
n1 Must be 3 | | | * |
n2 Must be 0 | | | * |
m Must be 1 | | | * |
d1 = 1 Underscore | | | * |
d1 = 2 Strike-Through | | | * |
d1 = 3 Overscore | | | * |
d2 = 0 Cancel Selected Score | | | * |
d2 = 1 Single Line Continuous | | | * |
d2 = 2 Double Line Continuous | | | * |
d2 = 5 Single Line Broken | | | * |
d2 = 6 Double Line Broken | | | * |
Feature | Escape Code | 9 Pin | 24 Pin |
n/360-inch Line Spacing | ESC + n | | * |
n/180-inch Line Spacing | ESC 3 n | | * |
n/216-inch Line Spacing | ESC 3 n | * | |
n/60-inch Line Spacing | ESC A n | | * |
n/72-inch Line Spacing | ESC A n | * | |
Immediate n/216 Line Feed | ESC J n | * | |
Immediate n/180 Line Feed | ESC J n | | * |
Reverse Feed n/216 | ESC j n | * | |
Reverse Feed n/180 | ESC j n | | * |
Immediate Mode On/Off | ESC i n | * | |
Intercharacter Spacing | ESC SP n | * | * |
Page Length in Lines | ESC C n | * | * |
Page Length in Inches | ESC C NUL n | * | * |
Skip Over Perforation | ESC N n | * | * |
Set Left Margin | ESC l n | * | * |
Set Right Margin | ESC Q n | * | * |
Horizontal Tab | HT | * | * |
Horizontal Tab Stops | ESC D n1 n2..NUL | * | * |
Set Horizontal Tab Increment | ESC e NUL n | * | * |
SET HTabs in Spaces | ESC f NUL n | * | * |
Set Vertical Tab Stops | ESC B n1 n2..NUL | * | * |
Set VFU Tab Channel | ESC b x n1 n2..NUL | * | * |
Select VFU Tab Channel | ESC / x | * | * |
Set Vertical Tab Increment | ESC e 1 n | * | * |
Vertical Skip | ESC f 1 n | * | * |
Set VTabs in Channel | ESC b c n1 n2...NUL | * | * |
Set VTab Channel | ESC / n | * | * |
Feature | Escape Code | 9 Pin | 24 Pin |
Select Graphic Mode 9-Pin Graphics: | ESC * m n1 n2 data | * | * |
m = 0 60 DPI | | * | * |
m = 1 120 DPI | | * | * |
m = 2 120 DPI Hi Spd | | * | * |
m = 3 240 DPI | | * | * |
m = 4 80 DPI | | * | * |
m = 5 72 DPI | | * | |
m = 6 90 DPI | | * | * |
m = 7 144 DPI | | * | |
Select Graphics Mode 24-Pin Graphics: | ESC * m n1 n2 data | | * |
m = 32 60 DPI | | | * |
m = 33 120 DPI | | | * |
m = 38 90 DPI | | | * |
m = 39 180 DPI | | | * |
m = 40 360 DPI | | | * |
Feature | Escape Code | 9 Pin | 24 Pin |
Single-Density 60 DPI | ESC K n1 n2 data | * | |
Double-Density 120 DPI | ESC L n1 n2 data | * | |
Hi-Speed Dbl. 120 DPI | ESC Y n1 n2 data | * | |
Quad. Density 240 DPI | ESC Z n1 n2 data | * | |
9-Pin 60 DPI | ESC ^ 0 n1 n2 data | * | |
9-Pin 120 DPI | ESC ^ 1 n1 n2 data | * | |
Reassign Graphics Mode | ESC ? n | * | |
Feature | Escape Code | 9 Pin | 24 Pin |
Define User Defined Character | ESC & NUL n1 n2 a1 data | * | * |
Copy ROM to RAM | ESC : NUL NUL NUL | * | * |
Copy ROM to RAM | ESC : NUL n NUL | * | * |
Select ROM CG | ESC % 0 | * | * |
Select Download CG | ESC % 1 | * | * |
Justification: | ESC a n | * | * |
n = 0 Flush Left | | * | * |
n = 1 Centering | | * | * |
n = 2 Flush Right | | * | * |
n = 3 Justified | | * | * |
Select Character Set: | ESC t n | * | * |
n = 0 Italic set | | * | * |
n = 1 Graphic set | | * | * |
n = 2 User-Defined Set Remap to 80h-FFh | | | * |
Printable Code Area Expansion: | ESC I n | | |
n = 0 Restore Codes | | | |
n = 1 Redefine Codes | | | |
Select International Character Set: | ESC R n | * | * |
n = 0 USA | | * | * |
n = 1 France | | * | * |
n = 2 Germany | | * | * |
n = 3 United Kingdom | | * | * |
n = 4 Denmark I | | * | * |
n = 5 Sweden | | * | * |
n = 7 Spain | | * | * |
n = 8 Japan | | * | * |
n = 9 Norway | | * | * |
n = 10 Denmark II | | * | * |
n = 11 Spain II | | * | * |
n = 12 Latin America | | * | * |
n = 13 Korea | | | * |
n = 64 Legal | | | * |
Feature | Escape Code | 9 Pin | 24 Pin |
Set Absolute Print Position | ESC $ n1 n2 | * | * |
Set Relative Print Position | ESC \ n1 n2 | * | * |
Repeat Data | ESC V n data | | * |
Color Selection: | ESC r n | * | * |
n = 0 Black | | * | * |
n = 1 Red (Magenta) | | * | * |
n = 2 Blue (Cyan) | | * | * |
n = 3 Violet | | * | * |
n = 4 Yellow | | * | * |
n = 5 Orange | | * | * |
n = 6 Green | | * | * |
The following command uses the ASCII character decimal value only.
Feature | Escape Code | 9 Pin | 24 Pin |
Cut Sheet Feeder Operation: | ESC EM n | * | * |
n = 0 Disable CSF | | * | * |
n = 1 Select Bin 1 | | * | * |
n = 2 Select Bin 2 | | * | * |
n = 4 Enable CSF | | * | * |
n = R Eject Sheet | | * | * |
It is urged that a functional understanding of the printer commands be obtained. Reference to the User's Manual is encouraged whenever a more detailed command description is desired. Some of the commands listed are unique to certain printers. For a detailed listing of the commands supported by a specific printer, please refer to the Command Summary in the printer's User's Manual or the Control Code Matrix chapter in the Epson Programmers Reference Manual.
Note: If a particular command is not listed in the printer's Users Manual, the command is not supported.
|