Comandos Escp

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

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
Proportional On/Off Select NLQ or Draft Expanded Print On/Off Double High On/Off Underlining On/Off Select Super/Subscript Select Character Set Unidirectional On/Off Half Speed On/Off

Escape Code 9 Pin 24 Pin


ESC p n ESC x n ESC W n ESC w n ESC - n ESC S n ESC % n ESC U n 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
Select Font: n = 0 Roman n = 1 San Serif n = 2 Courier

Escape Code
ESC k n

9 Pin 24 Pin
* * * * * * *

n = 3 Prestige n = 4 Script n = 5 Ocr-B n = 6 Ocr-A n = 7 Orator n = 8 Orator S Character Style: n = 0 Normal n = 1 Outline n = 2 Shadow n = 3 Outline & Shadow Master Select: 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: n1 Must be 3 n2 Must be 0 m Must be 1 d1 = 1 Underscore d1 = 2 Strike-Through d1 = 3 Overscore

Needs Multifont Module Needs Multifont Module ESC q n

ESC ! n

* * * * * * * * * *

ESC ( - n1 n2 m d1 d2

* * * * * * * * * * * * * * * * * * * * * * * * * * * *

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
n/360-inch Line Spacing n/180-inch Line Spacing n/216-inch Line Spacing n/60-inch Line Spacing n/72-inch Line Spacing Immediate n/216 Line Feed Immediate n/180 Line Feed Reverse Feed n/216 Reverse Feed n/180 Immediate Mode On/Off Intercharacter Spacing Page Length in Lines Page Length in Inches Skip Over Perforation Set Left Margin Set Right Margin Horizontal Tab Horizontal Tab Stops Set Horizontal Tab Increment SET HTabs in Spaces

Escape Code
ESC + n ESC 3 n ESC 3 n ESC A n ESC A n ESC J n ESC J n ESC j n ESC j n ESC i n ESC SP n ESC C n ESC C NUL n ESC N n ESC l n ESC Q n HT ESC D n1 n2..NUL ESC e NUL n ESC f NUL n

9 Pin 24 Pin
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Set Vertical Tab Stops Set VFU Tab Channel Select VFU Tab Channel Set Vertical Tab Increment Vertical Skip Set VTabs in Channel Set VTab Channel

ESC B n1 n2..NUL ESC b x n1 n2..NUL ESC / x ESC e 1 n ESC f 1 n ESC b c n1 n2...NUL 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 Double-Density 120 DPI Hi-Speed Dbl. 120 DPI Quad. Density 240 DPI 9-Pin 60 DPI 9-Pin 120 DPI Reassign Graphics Mode

ESC K n1 n2 data ESC L n1 n2 data ESC Y n1 n2 data ESC Z n1 n2 data ESC ^ 0 n1 n2 data ESC ^ 1 n1 n2 data ESC ? n

* * * * * * *

Feature
Define User Defined Character Copy ROM to RAM Copy ROM to RAM Select ROM CG Select Download CG Justification: n = 0 Flush Left n = 1 Centering n = 2 Flush Right n = 3 Justified Select Character Set: n = 0 Italic set n = 1 Graphic set n = 2 User-Defined Set Remap to 80h-FFh Printable Code Area Expansion: n = 0 Restore Codes n = 1 Redefine Codes Select International Character Set:

Escape Code
ESC & NUL n1 n2 a1 data ESC : NUL NUL NUL ESC : NUL n NUL ESC % 0 ESC % 1 ESC a n

9 Pin 24 Pin
* * * * * * * * * * * * * * * * * * * * * * * * * * *

ESC t n

ESC I n

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.

You might also like