UKT Support logo

Home
What's New
Contact Us


Search the Site
powered by FreeFind

Acer
Advent
Amstrad
Apple
Canon
Compaq
CTX
Epson
Hewlett Packard
Mitsubishi/Apricot
Packard Bell
Other Manufact.

File Extensions
Humour
Links
Microsoft
Reference
Scanner Support





 


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.

FeatureEscape Code  9 Pin  24 Pin
Proportional On/OffESC p n**
Select NLQ or DraftESC x n**
Expanded Print On/Off  ESC W n**
Double High On/OffESC w n**
Underlining On/OffESC - n**
Select Super/SubscriptESC S n**
Select Character SetESC % n**
Unidirectional On/OffESC U n**
Half Speed On/OffESC 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.

FeatureEscape Code9 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 OratorNeeds Multifont Module *
n = 8 Orator SNeeds 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  *


FeatureEscape Code9 Pin  24 Pin
n/360-inch Line SpacingESC + n *
n/180-inch Line SpacingESC 3 n *
n/216-inch Line SpacingESC 3 n* 
n/60-inch Line SpacingESC A n *
n/72-inch Line SpacingESC A n* 
Immediate n/216 Line FeedESC J n* 
Immediate n/180 Line FeedESC J n *
Reverse Feed n/216ESC j n* 
Reverse Feed n/180ESC j n *
Immediate Mode On/OffESC i n* 
Intercharacter SpacingESC SP n**
Page Length in LinesESC C n**
Page Length in InchesESC C NUL n**
Skip Over PerforationESC N n**
Set Left MarginESC l n**
Set Right MarginESC Q n**
Horizontal TabHT**
Horizontal Tab StopsESC D n1 n2..NUL**
Set Horizontal Tab Increment  ESC e NUL n**
SET HTabs in SpacesESC f NUL n**
Set Vertical Tab StopsESC B n1 n2..NUL**
Set VFU Tab ChannelESC b x n1 n2..NUL**
Select VFU Tab ChannelESC / x**
Set Vertical Tab IncrementESC e 1 n**
Vertical SkipESC f 1 n**
Set VTabs in ChannelESC b c n1 n2...NUL**
Set VTab Channel ESC / n**


FeatureEscape Code9 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  *


FeatureEscape Code9 Pin  24 Pin
Single-Density 60 DPIESC K n1 n2 data* 
Double-Density 120 DPIESC L n1 n2 data* 
Hi-Speed Dbl. 120 DPIESC Y n1 n2 data* 
Quad. Density 240 DPIESC Z n1 n2 data* 
9-Pin 60 DPIESC ^ 0 n1 n2 data* 
9-Pin 120 DPIESC ^ 1 n1 n2 data* 
Reassign Graphics Mode  ESC ? n* 


FeatureEscape Code9 Pin  24 Pin
Define User Defined CharacterESC & NUL n1 n2 a1 data**
Copy ROM to RAMESC : NUL NUL NUL**
Copy ROM to RAMESC : NUL n NUL**
Select ROM CGESC % 0**
Select Download CGESC % 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  *


FeatureEscape Code  9 Pin  24 Pin
Set Absolute Print PositionESC $ n1 n2**
Set Relative Print PositionESC \ n1 n2**
Repeat DataESC 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.

FeatureEscape 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.