Page 2 - Contents
Contents i Contents Introduction ......................................................................................................................... 1 About This Manual ................................................................................................................................
Page 4 - Introduction
Introduction 1 Introduction When EPSON created the ESC/P printer control language, the industry standard for simple, sophisticated, efficient operation of dot-matrix printers was born. With the scalable fonts, high-resolution color raster graphics, and advanced page handling available with ESC/P 2, ...
Page 5 - About This Manual; Icons
2 Introduction About This Manual This manual is composed of four main sections. Command Summary Contains a detailed description of all commands available in EPSON ESC/P, with new commands available in ESC/P 2 clearly identified. Also, the following information is included: • Differences between 9-pi...
Page 6 - Command names and parameters; also listed for each command in the Command Summary section.; Information organization; listed alphabetically.; Nonrecommended and deleted commands; commands in new printer programs.
Introduction 3 Command names and parameters Command names are normally referred to in their ASCII code version. ESC ( v and ESC C NUL are examples. You can find the decimal or hexadecimal values of the ASCII codes listed in the ASCII code table in the Appendix. The decimal and hexadecimal values are...
Page 7 - INT and MOD; are listed with the subscripts L for low and H for high (for example, n
4 Introduction INT and MOD Some command parameters may exceed 256, and require two bytes of data. These variables are listed with the subscripts L for low and H for high (for example, n L and n H , or m L and m H ). To determine the value of these two bytes, this manual uses the INT and MOD conventi...
Page 8 - Command Summary
C-1 Command Summary Command List by Function ................................................................................................................ C-2 Command List by ASCII Order.......................................................................................................... C-6 ...
Page 9 - Command List by Function; Setting the page format
C-2 Command List by Function Command List by Function The following section lists commands by their function. The shaded areas are discontinued or nonrecommended commands. For alternative command recommendations, see the command description. Command names ESC/P2 ESC/P 9-Pin ESC/P Page Setting the pa...
Page 10 - Selecting characters
Command List by Function C-3 Command names ESC/P2 ESC/P 9-Pin ESC/P Page ESC a Select justification — • • C-71 Selecting characters ESC ( t Assign character table • — • C-73 ESC t Select character table • • • C-77 ESC R Select an international character set • • • C-80 ESC & Define user-defined c...
Page 11 - Control-code character printing
C-4 Command List by Function Command names ESC/P2 ESC/P 9-Pin ESC/P Page Control-code character printing ESC ( ^ Print data as characters • — — C-150 ESC 6 Enable printing of upper control codes • • • C-151 ESC 7 Enable upper control codes • • • C-153 ESC I Enable printing of control codes — — • C-1...
Page 12 - Deleted commands
Command List by Function C-5 Command names ESC/P2 ESC/P 9-Pin ESC/P Page Deleted commands ESC j Reverse paper feed — — • C-214 ESC i Select immediate print mode — — • C-215 Binary mode commands for ESC . 2 raster graphics compression mode <XFER> Transfer raster graphics data • — — C-217 <MO...
Page 13 - Command List by ASCII Order
C-6 Command List by ASCII Order Command List by ASCII Order The following section lists commands by their ASCII order. The shaded areas are discontinued or nonrecommended commands. For alternative command recommendations, see the specific command description. For discontinued commands, see “Deleted ...
Page 15 - Binary mode commands for ESC . 2
C-8 Command List by ASCII Order Command names ESC/P2 ESC/P 9-Pin ESC/P Page ESC X Select font by pitch and point • — — C-97 ESC Y Select 120-dpi, double-speed graphics • • • C-187 ESC Z Select 240-dpi graphics • • • C-189 ESC \ Set relative horizontal print position • • • C-33 ESC ^ Select 60/120-dp...
Page 16 - Individual Command Explanations; these icons is as follows:; Stylus COLOR
Individual Command Explanations C-9 Individual Command Explanations The following section describes the commands available in all ESC/P versions. At the head of each command is the command title and one or more icons. The meaning of these icons is as follows: ESC/P 2 The command explanation applies ...
Page 17 - Set page length in defined unit
C-10 Individual Command Explanations ESC ( C Set page length in defined unit ESC/P 2 Format ASCII ESC ( C n L n H m L m H Hex 1B 28 43 n L n H m L m H Decimal 27 40 67 n L n H m L m H Parameter range n L = 2, n H = 0 0 < ((m H × 256) + m L ) × (defined unit) ≤ 22 Function Sets the page length in ...
Page 18 - Set page format; Format; top margin < bottom margin; Function
Individual Command Explanations C-11 ESC ( c Set page format ESC/P 2 Format ASCII ESC ( c n L n H t L t H b L b H Hex 1B 28 63 n L n H t L t H b L b H Decimal 27 40 99 n L n H t L t H b L b H Parameter range n L = 4, n H = 0 ((t H × 256) + t L ) < ((b H × 256) + b L ) top margin < bottom margi...
Page 19 - Notes; This command is available only on printers featuring ESC/P 2.; Printers not featuring this command; None; Related topics; and bottom margins
C-12 Individual Command Explanations Notes • This command is available only on printers featuring ESC/P 2. • Measure both top and bottom margins from the top edge of the page. • The baseline for printing characters on the first line is 20/180 inch below the top-margin position. • Send this command b...
Page 20 - ESC C
Individual Command Explanations C-13 ESC C Set page length in lines ESC/P 2 ESC/P Format ASCII ESC C n Hex 1B 43 n Decimal 27 67 n Parameter range 1 ≤ n ≤ 127 0 < n × (current line spacing) ≤ 22 inches Function Sets the page length to n lines in the current line spacing Default Depends on default...
Page 22 - ESC C NUL
Individual Command Explanations C-15 ESC C NUL Set page length in inches ESC/P 2 ESC/P Format ASCII ESC C NUL n Hex 1B 43 00 n Decimal 27 67 0 n Parameter range 1 ≤ n ≤ 22 Function Sets the page length to n inches Default Depends on default-setting mode or DIP-switch setting Notes • This command set...
Page 24 - ESC N
Individual Command Explanations C-17 ESC N Set bottom margin ESC/P 2 ESC/P Format ASCII ESC N n Hex 1B 4E n Decimal 27 78 n Parameter range 0 < n ≤ 127 0 < (current line spacing) × n < (page length) Function Sets the bottom margin on continuous paper to n lines (in the current line spacing)...
Page 26 - ESC O
Individual Command Explanations C-19 ESC O Cancel bottom margin ESC/P 2 ESC/P Format ASCII ESC O Hex 1B 4F Decimal 27 79 Function Cancels the top and bottom margin settings Notes This was formerly called the “Cancel skip-over-perforation” command. Printers not featuring this command None Model-depen...
Page 28 - ESC Q
Individual Command Explanations C-21 ESC Q Set right margin ESC/P 2 ESC/P Format ASCII ESC Q n Hex 1B 51 n Decimal 27 81 n Parameter range 1 ≤ n ≤ 255 (left margin) < (current pitch) × n ≤ (printable area width) Function Sets the right margin to n columns in the current character pitch, as measur...
Page 30 - ESC l
Individual Command Explanations C-23 ESC l Set left margin ESC/P 2 ESC/P Format ASCII ESC l n Hex 1B 6C n Decimal 27 108 n Parameter range 1 ≤ n ≤ 255 0 ≤ (left margin) <(right margin) 80-column printers: 0 ≤ (left margin) ≤ 4.50 inches 110-column printers: 0 ≤ (left margin) ≤ 7.00 inches 136-col...
Page 32 - CR
Individual Command Explanations C-25 CR Carriage return ESC/P 2 ESC/P Format ASCII CR Hex 0D Decimal 13 Function Moves the print position to the left-margin position Notes • Always send a CR command at the end of each line of text or graphics data. • When automatic line-feed is selected (through DIP...
Page 34 - LF
Individual Command Explanations C-27 LF Line feed ESC/P 2 ESC/P Format ASCII LF Hex 0A Decimal 10 Function • Advances the vertical print position one line (in the currently set line spacing) • Moves the horizontal print position to the left-margin position Notes • You should always send a CR command...
Page 36 - FF
Individual Command Explanations C-29 FF Form feed ESC/P 2 ESC/P Format ASCII FF Hex 0C Decimal 12 Function • Advances the vertical print position on continuous paper to the top-margin position of the next page • Ejects single-sheet paper • Moves the horizontal print position to the left-margin posit...
Page 38 - Set absolute horizontal print position
Individual Command Explanations C-31 ESC $ Set absolute horizontal print position ESC/P 2 ESC/P Format ASCII ESC $ n L n H Hex 1B 24 n L n H Decimal 27 36 n L n H Parameter range 0 ≤ n H ≤ 127 0 ≤ n L ≤ 255 Function Moves the horizontal print position to the position specified by the following formu...
Page 39 - ASCII
C-32 Individual Command Explanations ESC $ Set absolute horizontal print position 9-Pin ESC/P Format ASCII ESC $ n L n H Hex 1B 24 n L n H Decimal 27 36 n L n H Parameter range 0 ≤ n H ≤ 127 0 ≤ n L ≤ 255 Function Moves the horizontal print position to the position specified by the following formula...
Page 40 - Set relative horizontal print position
Individual Command Explanations C-33 ESC \ Set relative horizontal print position ESC/P 2 ESC/P Format ASCII ESC \ n L n H Hex 1B 5C n L n H Decimal 27 92 n L n H Parameter range 0 ≤ n H ≤ 127 0 ≤ n L ≤ 255 Function Moves the horizontal print position left or right from the current position, as spec...
Page 41 - Model-dependent variations
C-34 Individual Command Explanations Printers not featuring this command None Model-dependent variations On non-ESC/P 2 printers, the unit of movement is fixed at 1/120 inch in draft mode and 1/180 inch in LQ mode. Related topics ESC $, ESC l, ESC Q, ESC ( U, HT, CR, LF, FF, Moving the horizontal po...
Page 42 - Parameter range; the following formula:
Individual Command Explanations C-35 ESC \ Set relative horizontal print position 9-Pin ESC/P Format ASCII ESC \ n L n H Hex 1B 5C n L n H Decimal 27 92 n L n H Parameter range 0 ≤ n H ≤ 127 0 ≤ n L ≤ 255 Function Moves the horizontal print position left or right from the current position, as specif...
Page 44 - Set absolute vertical print position
Individual Command Explanations C-37 ESC ( V Set absolute vertical print position ESC/P 2 Format ASCII ESC ( V n L n H m L m H Hex 1B 28 56 n L n H m L m H Decimal 27 40 86 n L n H m L m H Parameter range n L = 2, n H = 0 0 ≤ m L ≤ 255, 0 ≤ m H ≤ 127 Function Moves the vertical print position to the...
Page 46 - Set relative vertical print position
Individual Command Explanations C-39 ESC ( v Set relative vertical print position ESC/P 2 Format ASCII ESC ( v n L n H m L m H Hex 1B 28 76 n L n H m L m H Decimal 27 40 118 n L n H m L m H Parameter range n L = 2, n H = 0 0 ≤ m L ≤ 255, 0 ≤ m H ≤ 127 Function Moves the vertical print position up or...
Page 47 - next page
C-40 Individual Command Explanations • Moving the print position below the bottom-margin position produces the following results:Continuous paper Moves the vertical print position to the top-margin positionon the next page Single-sheet paper Ejects the paper • The printer ignores this command under ...
Page 48 - ESC J
Individual Command Explanations C-41 ESC J Advance print position vertically ESC/P 2 ESC/P Format ASCII ESC J n Hex 1B 4A n Decimal 27 74 n Parameter range 0 ≤ n ≤ 255 Function Advances the vertical print position n/180 inch Notes • ESC J does not affect the horizontal print position. • Moving the p...
Page 50 - HT
Individual Command Explanations C-43 HT Tab horizontally ESC/P 2 ESC/P Format ASCII HT Hex 09 Decimal 9 Function Moves the horizontal print position to the next tab to the right of the current print position Notes • The printer ignores this command if no tab is set to the right of the current positi...
Page 52 - VT
Individual Command Explanations C-45 VT Tab vertically ESC/P 2 ESC/P Format ASCII VT Hex 0B Decimal 11 Function • Moves the vertical print position to the next vertical tab below the current print position • Moves the horizontal print position to the left-margin position Notes • The printer advances...
Page 54 - ESC f
Individual Command Explanations C-47 ESC f Horizontal/vertical skip 9-Pin ESC/P Format ASCII ESC f m n Hex 1B 66 m n Decimal 27 102 m n Parameter range 0 ≤ n ≤ 127 m = 0, 1 Function Moves the print position depending on the value of m, as follows: m = 0 Prints n spaces in the current pitch. 1 Perfor...
Page 55 - Backspace
C-48 Individual Command Explanations BS Backspace ESC/P 2 ESC/P Format ASCII BS Hex 08 Decimal 8 Function Moves the print position to the left a distance equal to one character in the current character pitch plus any additional intercharacter space. Notes • This is a nonrecommended command. • The pr...
Page 57 - Set unit
C-50 Individual Command Explanations ESC ( U Set unit ESC/P 2 Format ASCII ESC ( U n L n H m Hex 1B 28 55 n L n H m Decimal 27 40 85 n L n H m Parameter range n L = 1, n H = 0 m = 5, 10, 20, 30, 40, 50, 60 Function Sets the unit to m/3600 inch. The printer uses this unit when moving the print positi...
Page 65 - ESC A
C-58 Individual Command Explanations ESC A Set n/60-inch line spacing ESC/P 2 ESC/P Format ASCII ESC A n Hex 1B 41 n Decimal 27 65 n Parameter range 0 ≤ n ≤ 85 Function Sets the line spacing to n/60 inch Default 1/6-inch line spacing Notes • This is a nonrecommended command; use the ESC + or ESC 3 c...
Page 68 - ESC D
Individual Command Explanations C-61 ESC D Set horizontal tabs ESC/P 2 ESC/P Format ASCII ESC D n 1 n 2 . . . n k NUL Hex 1B 44 n 1 n 2 . . . n k 00 Decimal 27 68 n 1 n 2 . . . n k 0 Parameter range 0 ≤ k ≤ 32 1 ≤ n ≤ 255 n k > n (k-1) Function Sets horizontal tab positions (in the current charac...
Page 70 - ESC B
Individual Command Explanations C-63 ESC B Set vertical tabs ESC/P 2 ESC/P Format ASCII ESC B n 1 n 2 . . . n k NUL Hex 1B 42 n 1 n 2 . . . n k 00 Decimal 27 66 n 1 n 2 . . . n k 0 Parameter range 0 ≤ k ≤ 16 1 ≤ n ≤ 255 n k > n (k-1) Function Sets vertical tab positions (in the current line spaci...
Page 72 - ESC b
Individual Command Explanations C-65 ESC b Set vertical tabs in VFU channels ESC/P Format ASCII ESC b m n 1 . . . n k NUL Hex 1B 62 m n 1 . . . n k 00 Decimal 27 98 m n 1 . . . n k 0 Parameter range 0 ≤ m ≤ 7 1 ≤ n ≤ 255 n k >n (k-1) 1 ≤ k ≤ 16 Function Sets vertical tab positions at the lines sp...
Page 74 - Select vertical tab channel
Individual Command Explanations C-67 ESC / Select vertical tab channel ESC/P Format ASCII ESC / m Hex 1B 2F m Decimal 27 47 m Parameter range 0 ≤ m ≤ 7 Function Selects vertical tab set m Default Tab channel 0 Notes • This is a nonrecommended command. • This command is deleted in ESC/P 2. • The valu...
Page 76 - ESC e; Condensed printing
Individual Command Explanations C-69 ESC e Set fixed tab increment 9-Pin ESC/P Format ASCII ESC e m n Hex 1B 65 m n Decimal 27 101 m n Parameter range m = 0, 1 horizontal tabs (m=0) 0 ≤ n ≤ 21 10 cpi 0 ≤ n ≤ 25 12 cpi 0 ≤ n ≤ 36 Condensed printing vertical tabs (m=1) 0 ≤ n ≤ 127 (line spacing) × n &...
Page 77 - position, Moving the vertical position
C-70 Individual Command Explanations Printers not featuring this command DFX-5000+, DFX-5000, DFX-8000, FX-850, FX-1050 Model-dependent variations None Related topics VT, HT, ESC B, ESC D, ESC P, ESC M, SO, ESC 0, ESC 2, ESC 3, Moving the horizontal position, Moving the vertical position
Page 78 - ESC a
Individual Command Explanations C-71 ESC a Select justification ESC/P Format ASCII ESC a n Hex 1B 61 n Decimal 27 97 n Parameter range 0 ≤ n ≤ 3 Function Selects from four types of justification, as follows: n = 0 or 48 Flush left 1 or 49 Centered 2 or 50 Flush right 3 or 51 Full justification (flus...
Page 80 - Assign character table; Table name
Individual Command Explanations C-73 ESC ( t Assign character table ESC/P 2 Format ASCII ESC ( t n L n H d 1 d 2 d 3 Hex 1B 28 74 n L n H d 1 d 2 d 3 Decimal 27 40 116 n L n H d 1 d 2 d 3 Parameter range n L = 3, n H = 0 0 ≤ d 1 ≤ 3, 48 ≤ d 1 ≤ 51 0 ≤ d 2 ≤ 255 0 ≤ d 3 ≤ 255 Function Assigns the d 2...
Page 81 - tables available on each printer model.; ESC t, Assign character tables, Selecting the character table
C-74 Individual Command Explanations d 2 d 3 Table name 26 0 Abicomp 27 0 MAZOWIA (Poland) 28 0 Code MJK (CSFR) 29 7 ISO8859-7 (Latin/Greek) 29 16 ISO8859-1 (Latin 1) 30 0 TSM/WIN (Thai system manager) 31 0 ISO Latin 1T (Turkish) 32 0 Bulgaria 33 0 Hebrew 7 34 0 Hebrew 8 35 0 Roman 8 36 0 PC774 (Lit...
Page 84 - ESC t
Individual Command Explanations C-77 ESC t Select character table ESC/P 2 ESC/P Format ASCII ESC t n Hex 1B 74 n Decimal 27 116 n Parameter range 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 Function Selects the character table to be used for printing from among the four character tables described below: n = 0 or 48 Char...
Page 85 - Italic character table; printing
C-78 Individual Command Explanations Model-dependent variations On non-ESC/P 2 printers: • Selects the character table to be used for printing from between the two below: n = 0 Italic character table 1 Graphic character table • When n = 2, this command copies the user-defined characters from positio...
Page 87 - ESC R
C-80 Individual Command Explanations ESC R Select an international character set ESC/P 2 ESC/P Format ASCII ESC R n Hex 1B 52 n Decimal 27 82 n Parameter range 0 ≤ n ≤ 13, n = 64 Function Selects the set of characters printed for specific character codes, as listed below: n = 0 USA 1 France 2 German...
Page 88 - Selecting an international character set
Individual Command Explanations C-81 Notes The characters printed for each international character set are listed below: n Set name Dec 35 36 64 91 92 93 94 96 123 124 125 126 Hex 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E 0 USA # $ @ [ \ ] ^ ` { | } ~ 1 France # $ à ° ç § ^ ` é ù è ¨ 2 Germany # $ § Ä Ö Ü...
Page 91 - Define user-defined characters
C-84 Individual Command Explanations ESC & Define user-defined characters ESC/P 2 ESC/P Format ASCII ESC & NUL n m [a 0 a 1 a 2 d 1 d 2 . . . d k ] Hex 1B 26 00 n m [a 0 a 1 a 2 d 1 d 2 . . . d k ] Decimal 27 38 0 n m [a 0 a 1 a 2 d 1 d 2 . . . d k ] Parameter range 0 ≤ n ≤ 127 0 ≤ m ≤ 127 n...
Page 94 - Attribute byte table; NLQ
Individual Command Explanations C-87 Notes • The data within brackets in the Format section above is repeated for each character you define. • The format of the attribute byte “a” is different for draft and NLQ characters. Draft You can define characters 11-dots wide by 8-dots high. You must specify...
Page 95 - Only the 6 characters between 58 and 63 can be defined.; character data to printer
C-88 Individual Command Explanations Printers not featuring this command None Model-dependent variations All LX-series printers, ActionPrinter Apex 80, ActionPrinter T-1000, ActionPrinter 2250 and ActionPrinter 2000 Only the 6 characters between 58 and 63 can be defined. Related topics ESC %, ESC :,...
Page 96 - Copy ROM to RAM
Individual Command Explanations C-89 ESC : Copy ROM to RAM ESC/P 2 ESC/P Format ASCII ESC : NUL n m Hex 1B 3A 00 n m Decimal 27 58 0 n m Parameter range 0 ≤ n ≤ 127 m = 0 Function Copies the data for the characters between 0 and 126 of the n typeface from ROM to RAM memory Notes • The following attr...
Page 98 - Select user-defined set
Individual Command Explanations C-91 ESC % Select user-defined set ESC/P 2 ESC/P Format ASCII ESC % n Hex 1B 25 n Decimal 27 37 n Parameter range n = 0, 1, 48, 49 Function Switches between normal and user-defined characters, as follows: n = 0 or 48 Normal (ROM) characters 1 or 49 User-defined (RAM) ...
Page 100 - ESC x
Individual Command Explanations C-93 ESC x Select LQ or draft ESC/P 2 ESC/P Format ASCII ESC x n Hex 1B 78 n Decimal 27 120 n Parameter range n = 0, 1, 48, 49 Function Selects either LQ or draft printing according to the following values: n = 0 or 48 Draft printing 1 or 49 Letter-quality printing No...
Page 102 - ESC k
Individual Command Explanations C-95 ESC k Select typeface ESC/P 2 ESC/P Format ASCII ESC k n Hex 1B 6B n Decimal 27 107 n Parameter range 0 ≤ n ≤ 9 Function Selects the typeface for LQ printing according to the following values: 0 Roman 7 Orator 1 Sans serif 8 Orator-S 2 Courier 9 Script C 3 Presti...
Page 104 - ESC X
Individual Command Explanations C-97 ESC X Select font by pitch and point ESC/P 2 Format ASCII ESC X m n L n H Hex 1B 58 m n L n H Decimal 27 88 m n L n H Parameter range 5 ≤ m ≤ 127 m = 0, 1 0 ≤ n L ≤ 255 0 ≤ n H ≤ 127 Function Puts the printer in multipoint (scalable font) mode, and selects the pi...
Page 105 - scalable on each printer model.
C-98 Individual Command Explanations • During multipoint mode the printer ignores the ESC W, ESC w, ESC SP, SI, ESC SI, SO, and ESC SO commands. • The following commands cancel multipoint mode, returning the printer to 10.5-point characters: ESC P, ESC M, ESC g, ESC p, ESC !, and ESC @. Printers not...
Page 106 - ESC c; inch; INT
Individual Command Explanations C-99 ESC c Set horizontal motion index (HMI) ESC/P 2 Format ASCII ESC c n L n H Hex 1B 63 n L n H Decimal 27 99 n L n H Parameter range 0 ≤ n H ≤ 4 0 ≤ n L ≤ 255 0 <((n H × 256) + n L )) ≤ 1080 ; HMI ≤ 3.00 inches Function Fixes the character width (HMI) according ...
Page 107 - ESC P
C-100 Individual Command Explanations ESC P Select 10.5-point, 10-cpi ESC/P 2 ESC/P Format ASCII ESC P Hex 1B 50 Decimal 27 80 Function Selects 10.5-point, 10-cpi character printing Default 10.5-point, 10-cpi characters Notes • This command cancels the HMI set with the ESC c command. • This command ...
Page 109 - ESC M
C-102 Individual Command Explanations ESC M Select 10.5-point, 12-cpi ESC/P 2 ESC/P Format ASCII ESC M Hex 1B 4D Decimal 27 77 Function Selects 10.5-point, 12-cpi character printing Default 10.5-point, 10-cpi characters Notes • This command cancels the HMI set with the ESC c command. • This command ...
Page 111 - ESC g
C-104 Individual Command Explanations ESC g Select 10.5-point, 15-cpi ESC/P 2 ESC/P Format ASCII ESC g Hex 1B 67 Decimal 27 103 Function Selects 10.5-point, 15-cpi character printing Default 10.5-point, 10-cpi characters Notes • This command cancels the HMI set with the ESC c command. • This command...
Page 113 - ESC p
C-106 Individual Command Explanations ESC p Turn proportional mode on/off ESC/P 2 ESC/P Format ASCII ESC p n Hex 1B 70 n Decimal 27 112 n Parameter range n = 0, 1, 48, 49 Function Selects either proportional or fixed character spacing according to the following values: n = 0 or 48 Returns to current...
Page 115 - ESC SP
C-108 Individual Command Explanations ESC SP Set intercharacter space ESC/P 2 ESC/P Format ASCII ESC SP n Hex 1B 20 n Decimal 27 32 n Parameter range 0 ≤ n ≤ 127 Function Increases the space between characters by n/180 inch in LQ mode and n/120 inch in draft mode Default No extra space Notes • This ...
Page 117 - ESC E
C-110 Individual Command Explanations ESC E Select bold font ESC/P 2 ESC/P Format ASCII ESC E Hex 1B 45 Decimal 27 69 Function Sets the weight attribute of the font to bold Default Normal (nonbold) weight Notes This command increases the weight of printed lines and characters, resulting in bolder pr...
Page 119 - ESC F
C-112 Individual Command Explanations ESC F Cancel bold font ESC/P 2 ESC/P Format ASCII ESC F Hex 1B 46 Decimal 27 70 Function Sets the weight attribute of the font to normal (cancels the bold weight previously set with the ESC E command) Default Normal (nonbold) weight Printers not featuring this c...
Page 121 - Select italic font
C-114 Individual Command Explanations ESC 4 Select italic font ESC/P 2 ESC/P Format ASCII ESC 4 Hex 1B 34 Decimal 27 52 Function Sets the style attribute of the font to italic Default Normal (non-italic) style Notes • This command selects italic printing even if the italic character table is not sel...
Page 123 - Cancel italic font
C-116 Individual Command Explanations ESC 5 Cancel italic font ESC/P 2 ESC/P Format ASCII ESC 5 Hex 1B 35 Decimal 27 53 Function Sets the style attribute of the font to normal (cancels the italic style attribute previously selected with the ESC 4 command) Default Normal (non-italic) style Notes Alwa...
Page 125 - Master select
C-118 Individual Command Explanations ESC ! Master select ESC/P 2 ESC/P Format ASCII ESC ! n Hex 1B 21 n Decimal 27 33 n Parameter range 0 ≤ n ≤ 255 Function Selects any combination of several font attributes and enhancements by setting or clearing the appropriate bit in the n parameter, as shown be...
Page 128 - ESC G
Individual Command Explanations C-121 ESC G Select double-strike printing ESC/P 2 ESC/P Format ASCII ESC G Hex 1B 47 Decimal 27 71 Function Prints each dot twice, with the second slightly below the first, creating bolder characters Default Normal (nondouble-strike) printing Printers not featuring th...
Page 130 - ESC H
Individual Command Explanations C-123 ESC H Cancel double-strike printing ESC/P 2 ESC/P Format ASCII ESC H Hex 1B 48 Decimal 27 72 Function Cancels double-strike printing selected with the ESC G command Default Normal (nondouble-strike) printing Printers not featuring this command None Model-depende...
Page 132 - Turn underline on/off
Individual Command Explanations C-125 ESC - Turn underline on/off ESC/P 2 ESC/P Format ASCII ESC - n Hex 1B 2D n Decimal 27 45 n Parameter range n = 0, 1, 48, 49 Function Turns on/off printing of a line below all characters and spaces following this command: n = 1 or 49 Turns underline on 0 or 48 Tu...
Page 136 - ESC S
Individual Command Explanations C-129 ESC S Select superscript/subscript printing ESC/P 2 ESC/P Format ASCII ESC S n Hex 1B 53 n Decimal 27 83 n Parameter range n = 0, 1, 48, 49 Function Prints characters that follow at about 2/3 their normal height; the printing location depends on the value of n a...
Page 138 - ESC T
Individual Command Explanations C-131 ESC T Cancel superscript/subscript printing ESC/P 2 ESC/P Format ASCII ESC T Hex 1B 54 Decimal 27 84 Function Cancels super/subscript printing selected by the ESC S command Default Normal (non-super/subscript) printing Printers not featuring this command None Mo...
Page 140 - ESC q
Individual Command Explanations C-133 ESC q Select character style ESC/P 2 ESC/P Format ASCII ESC q n Hex 1B 71 n Decimal 27 113 n Parameter range 0 ≤ n ≤ 3 Function Turns on/off outline and shadow printing, according to the parameters below: n = 0 Turn off outline/shadow printing 1 Turn on outline ...
Page 141 - Select condensed printing; Selected pitch
C-134 Individual Command Explanations SI Select condensed printing ESC/P 2 ESC/P Format ASCII SI Hex 0F Decimal 15 Function Enters condensed mode, in which character width is reduced as follows: Selected pitch Condensed pitch 10 cpi 17.14 cpi 12 cpi 20 cpi Proportional 1/2 width Default Noncondensed...
Page 143 - ESC SI
C-136 Individual Command Explanations ESC SI Select condensed printing ESC/P 2 ESC/P Format ASCII ESC SI Hex 1B 0F Decimal 27 15 Function Enters condensed mode, in which character width is reduced as follows: Selected pitch Condensed pitch 10 cpi 17.14 cpi 12 cpi 20 cpi Proportional 1/2 width Defaul...
Page 145 - Cancel condensed printing
C-138 Individual Command Explanations DC2 Cancel condensed printing ESC/P 2 ESC/P Format ASCII DC2 Hex 12 Decimal 18 Function Cancels condensed printing selected by the SI or ESC SI commands Default Normal (noncondensed) printing Notes This command cancels the HMI (horizontal motion index) set with ...
Page 147 - SO
C-140 Individual Command Explanations SO Select double-width printing (one line) ESC/P 2 ESC/P Format ASCII SO Hex 0E Decimal 14 Function Doubles the width of all characters, spaces, and intercharacter spacing (set with the ESC SP command) following this command on the same line. Default Normal (non...
Page 149 - ESC SO
C-142 Individual Command Explanations ESC SO Select double-width printing (one line) ESC/P 2 ESC/P Format ASCII ESC SO Hex 1B 0E Decimal 27 14 Function Doubles the width of all characters, spaces, and intercharacter spacing (set with the ESC SP command) following this command on the same line. Defau...
Page 153 - ESC W
C-146 Individual Command Explanations ESC W Turn double-width printing on/off ESC/P 2 ESC/P Format ASCII ESC W n Hex 1B 57 n Decimal 27 87 n Parameter range n = 0, 1, 48, 49 Function Turns on/off double-width printing of all characters, spaces, and intercharacter spacing (set with the ESC SP command...
Page 155 - ESC w
C-148 Individual Command Explanations ESC w Turn double-height printing on/off ESC/P 2 ESC/P Format ASCII ESC w n Hex 1B 77 n Decimal 27 119 n Parameter range n = 0, 1, 48, 49 Function Turns on/off double-height printing of all characters, as measured from the current baseline: n = 1 or 49 Turns on ...
Page 157 - Print data as characters
C-150 Individual Command Explanations ESC ( ^ Print data as characters ESC/P 2 Format ASCII ESC ( ^ n L n H d 1 . . . d k Hex 1B 28 5E n L n H d 1 . . . d k Decimal 27 40 94 n L n H d 1 . . . d k Parameter range 0 ≤ n H ≤ 127 0 ≤ n L ≤ 255 Function • Prints data bytes d 1 through d k as characters, ...
Page 158 - Enable printing of upper control codes
Individual Command Explanations C-151 ESC 6 Enable printing of upper control codes ESC/P 2 ESC/P Format ASCII ESC 6 Hex 1B 36 Decimal 27 54 Function Tells the printer to treat codes from 128 to 159 as printable characters instead of control codes Default Codes 128 to 159 are treated as printable cha...
Page 160 - Enable upper control codes
Individual Command Explanations C-153 ESC 7 Enable upper control codes ESC/P 2 ESC/P Format ASCII ESC 7 Hex 1B 37 Decimal 27 55 Function Tells the printer to treat codes from 128 to 159 as control codes instead of printable characters Default Codes 128 to 159 are treated as printable codes Notes Thi...
Page 162 - ESC I
Individual Command Explanations C-155 ESC I Enable printing of control codes 9-Pin ESC/P Format ASCII ESC I n Hex 1B 49 n Decimal 27 73 n Parameter range n = 0, 1 Function n = 1 Tells the printer to treat codes 0–6, 16, 17, 21–23, 25, 26, 28–31, and 128–159 as printable characters 0 Tells the printe...
Page 163 - ESC m
C-156 Individual Command Explanations ESC m Select printing of upper control codes 9-Pin ESC/P Format ASCII ESC m n Hex 1B 6D n Decimal 27 109 n Parameter range n = 0, 4 Function Selects between the following: n = 0 Tells the printer to treat codes from 128 to 159 as printable characters 4 Tells the...
Page 164 - ESC EM
Individual Command Explanations C-157 ESC EM Control paper loading/ejecting ESC/P 2 ESC/P Format ASCII ESC EM n Hex 1B 19 n Decimal 27 25 n Parameter range n = 49, 50, 66, 70, 82 Function Controls feeding of continuous and single-sheet paper, according to the parameters below: n = 49 “1” Selects loa...
Page 166 - ESC U
Individual Command Explanations C-159 ESC U Turn unidirectional mode on/off ESC/P 2 ESC/P Format ASCII ESC U n Hex 1B 55 n Decimal 27 85 n Parameter range n = 0, 1, 48, 49 Function Selects bidirectional or unidirectional printing, according to the parameters below: n = 0 or 48 Bidirectional printing...
Page 170 - BEL
Individual Command Explanations C-163 BEL Beeper ESC/P 2 ESC/P Format ASCII BEL Hex 07 Decimal 7 Function Sounds the printer’s beeper for 1/10 second Notes This is a nonrecommended command. Printers not featuring this command None Model-dependent variations None
Page 172 - Disable paper-out detector
Individual Command Explanations C-165 ESC 8 Disable paper-out detector 9-Pin ESC/P Format ASCII ESC 8 Hex 1B 38 Decimal 27 56 Function • The printer continues printing when the end of the paper is reached. • No beeper sounds when the end of paper is reached, but the printer sets the PE (printer- err...
Page 173 - Enable paper-out detector
C-166 Individual Command Explanations ESC 9 Enable paper-out detector 9-Pin ESC/P Format ASCII ESC 9 Hex 1B 39 Decimal 27 57 Function • The printer stops printing when the end of the paper is reached • The beeper sounds when the end of paper is reached, and the printer sets the PE (printer-error) si...
Page 174 - ESC s
Individual Command Explanations C-167 ESC s Select low-speed mode ESC/P Format ASCII ESC s n Hex 1B 73 n Decimal 27 115 n Parameter range n = 0, 1, 48, 49 Function Controls printing speed as follows: n = 0 or 48 Prints at normal speed 1 or 49 Prints at low speed Default Normal-speed printing Notes •...
Page 176 - Select graphics mode
Individual Command Explanations C-169 ESC ( G Select graphics mode ESC/P 2 Format ASCII ESC ( G n L n H m Hex 1B 28 47 n L n H m Decimal 27 40 71 n L n H m Parameter range n L = 1 n H = 0 m = 1, 49 Function Selects graphics mode (allowing you to print raster graphics) Notes • This command is availab...
Page 178 - Select MicroWeave print mode
Individual Command Explanations C-171 ESC ( i Select MicroWeave print mode ESC/P 2 Format ASCII ESC ( i 01 00 n Hex 1B 28 69 01 00 n Decimal 27 40 105 01 00 n Parameter range n = 0, 1, 48, 49 Function Turns MicroWeave print mode off and on: n = 0 or 48 MicroWeave off 1 or 49 MicroWeave on Notes • Mi...
Page 179 - Print raster graphics
C-172 Individual Command Explanations ESC . Print raster graphics ESC/P 2 Format ASCII ESC . c v h m n L n H d 1 d 2 . . . d k Hex 1B 2E c v h m n L n H d 1 d 2 . . . d k Decimal 27 46 c v h m n L n H d 1 d 2 . . . d k Parameter range c = 0c = 1v = 5,10, 20h = 5,10, 20m = 1, 8, 240 ≤ n L ≤ 255 0 ≤ n...
Page 180 - m INT
Individual Command Explanations C-173 k Total number of data bytes, according to the following formula: k = m INT n n H L × × + + ( ) 256 7 8 d During full graphics mode:Graphics data During RLE compressed raster graphics mode (ESC . 1):The first data byte is treated as a counter. Graphics data byte...
Page 181 - Print data that exceeds the right margin is ignored.
C-174 Individual Command Explanations • Print data that exceeds the right margin is ignored. • Do not specify the vertical movement in increments smaller than the current print density. Printers not featuring this command All non-ESC/P 2 printers Model-dependent variations Vertical and horizontal re...
Page 182 - Enter TIFF compressed mode
Individual Command Explanations C-175 ESC . 2 Enter TIFF compressed mode ESC/P 2 Format ASCII ESC . 2 v h 1 0 0 Hex 1B 2E 2 v h 1 0 0 Decimal 27 46 2 v h 1 0 0 Parameter range v = 5,10, 20 vertical resolutions in dpi—720, 360, 180 (3600/v dpi) h = 5,10, 20 horizontal resolutions in dpi—720, 360, 180...
Page 183 - Printers featuring this command
C-176 Individual Command Explanations • Special coated stock paper available from EPSON is required when printing raster graphics at 720 dpi. • Do not specify the vertical movement in increments smaller than the current print density. Printers featuring this command Stylus COLOR Model-dependent vari...
Page 184 - Select bit image; Specifies the dot density (see table below)
Individual Command Explanations C-177 ESC * Select bit image ESC/P 2 ESC/P Format ASCII ESC * m n L n H d 1 . . . d k Hex 1B 2A m n L n H d 1 . . . d k Decimal 27 42 m n L n H d 1 . . . d k Parameter range 0 ≤ n L ≤ 255 0 ≤ n H ≤ 31 m = 0, 1, 2, 3, 4, 6, 32, 33, 38, 39, 40, 71, 72, 73 Function Print...
Page 185 - Dot density; which values are available on your printer.; the previous graphics line.; Sending graphics data, Bit-image graphics
C-178 Individual Command Explanations Dot density Parameter m in Horizontal Vertical density (dpi) Adjacent dot Dots per Bytes per ESC * command density (dpi) 24 pin 48 pin printing column column 0 60 60 60 Yes 8 1 1 120 60 60 Yes 8 1 2 120 60 60 No 8 1 3 240 60 60 No 8 1 4 80 60 60 Yes 8 1 6 90 60 ...
Page 188 - Reassign bit-image mode
Individual Command Explanations C-181 ESC ? Reassign bit-image mode ESC/P 2 ESC/P Format ASCII ESC ? n m Hex 1B 3F n m Decimal 27 63 n m Parameter range n = 75, 76, 89, 90m = 0, 1, 2, 3, 4, 6, 32, 33, 38, 39, 40, 71, 72, 73 Function Assigns the dot density used during the ESC K, ESC L, ESC Y, or ESC...
Page 190 - ESC K
Individual Command Explanations C-183 ESC K Select 60-dpi graphics ESC/P 2 ESC/P Format ASCII ESC K n L n H d 1 d 2 . . . d k Hex 1B 4B n L n H d 1 d 2 . . . d k Decimal 27 75 n L n H d 1 d 2 . . . d k Parameter range 0 ≤ n L ≤ 255 0 ≤ n H ≤ 31 0 ≤ d ≤ 255 Function Prints bit-image graphics in 8-dot...
Page 192 - ESC L
Individual Command Explanations C-185 ESC L Select 120-dpi graphics ESC/P 2 ESC/P Format ASCII ESC L n L n H d 1 d 2 . . . d k Hex 1B 4C n L n H d 1 d 2 . . . d k Decimal 27 76 n L n H d 1 d 2 . . . d k Parameter range 0 ≤ n L ≤ 255 0 ≤ n H ≤ 31 0 ≤ d ≤ 255 Function Prints bit-image graphics in 8-do...
Page 194 - ESC Y
Individual Command Explanations C-187 ESC Y Select 120-dpi, double-speed graphics ESC/P 2 ESC/P Format ASCII ESC Y n L n H d 1 d 2 . . . d k Hex 1B 59 n L n H d 1 d 2 . . . d k Decimal 27 89 n L n H d 1 d 2 . . . d k Parameter range 0 ≤ n L ≤ 255 0 ≤ n H ≤ 31 0 ≤ d ≤ 255 Function Prints bit-image gr...
Page 196 - ESC Z
Individual Command Explanations C-189 ESC Z Select 240-dpi graphics ESC/P 2 ESC/P Format ASCII ESC Z n L n H d 1 d 2 . . . d k Hex 1B 5A n L n H d 1 d 2 . . . d k Decimal 27 90 n L n H d 1 d 2 . . . d k Parameter range 0 ≤ n L ≤ 255 0 ≤ n H ≤ 31 0 ≤ d ≤ 255 Function Prints bit-image graphics in 8-do...
Page 200 - ESC r
Individual Command Explanations C-193 ESC r Select printing color ESC/P 2 ESC/P Format ASCII ESC r n Hex 1B 72 n Decimal 27 114 n Parameter range 0 ≤ n ≤ 6 Function Selects the color of printing, according to the parameters below: n = 0 Black 1 Magenta 2 Cyan 3 Violet 4 Yellow 5 Red 6 Green Default ...
Page 202 - Bar code setup and print; Bar code type
Individual Command Explanations C-195 ESC ( B Bar code setup and print ESC/P 2 ESC/P 9-Pin ESC/P Format ASCII ESC ( B n L n H k m s v 1 v 2 c BarCodeData Hex 1B 28 42 n L n H k m s v 1 v 2 c BarCodeData Decimal 27 40 66 n L n H k m s v 1 v 2 c BarCodeData Parameter range 0 ≤ n L ≤ 255 0 ≤ n H ≤ 127 ...
Page 204 - Bar code printing is always performed unidirectionally.
Individual Command Explanations C-197 The valid data of each bar code type are following.If an invalid data is included in the BarCodeData string, the bar code is not printed. Bar code type Valid range of BarCodeData EAN-13 0-9 (30H-39H) EAN-8 0-9 (30H-39H) Interleaved 2 of 5 0-9 (30H-39H) UPC-A 0-9...
Page 205 - Initialize printer
C-198 Individual Command Explanations ESC @ Initialize printer ESC/P 2 ESC/P Format ASCII ESC @ Hex 1B 40 Decimal 27 64 Function Resets the printer to its default settings Notes • This command does not affect user-defined characters or control panel (SelecType) settings. • See each command explanati...
Page 207 - CAN
C-200 Individual Command Explanations CAN Cancel line ESC/P 2 ESC/P Format ASCII CAN Hex 18 Decimal 24 Function • Clears all printable characters and bit-image graphics on the current line • Moves the print position to the left-margin position Notes • This is a nonrecommended command. • This command...
Page 209 - DEL
C-202 Individual Command Explanations DEL Delete last character in buffer ESC/P 2 ESC/P Format ASCII DEL Hex 7F Decimal 127 Function Deletes the last printable character in the print buffer’s current line Notes • This is a nonrecommended command. • This command only deletes printable characters; pri...
Page 211 - Select printer
C-204 Individual Command Explanations DC1 Select printer ESC/P 2 ESC/P Format ASCII DC1 Hex 11 Decimal 17 Function Selects the printer after it has been deselected with the DC3 command Default Printer is selected. Notes • This is a nonrecommended command. The SLCT IN signal on the interface must beh...
Page 213 - Deselect printer
C-206 Individual Command Explanations DC3 Deselect printer ESC/P 2 ESC/P Format ASCII DC3 Hex 13 Decimal 19 Function Deselects the printer Default Printer is selected Notes • This is a nonrecommended command. The SLCT IN signal on the interface must behigh to use this command. This command is nearly...
Page 215 - Cancel MSB control
C-208 Individual Command Explanations ESC # Cancel MSB control ESC/P 2 ESC/P Format ASCII ESC # Hex 1B 23 Decimal 27 35 Function Cancels any controls on the MSB (bit number 7) set by the ESC = or ESC > commands; printer then accepts all MSB data as is Default No MSB control Notes This is a nonrec...
Page 217 - Set MSB to 0
C-210 Individual Command Explanations ESC = Set MSB to 0 ESC/P 2 ESC/P Format ASCII ESC = Hex 1B 3D Decimal 27 61 Function Sets the MSB (bit number 7) of all incoming data to 0 Default No MSB control Notes • This is a nonrecommended command; most computer systems no longer require MSB control. • All...
Page 219 - Set MSB to 1
C-212 Individual Command Explanations ESC > Set MSB to 1 ESC/P 2 ESC/P Format ASCII ESC > Hex 1B 3E Decimal 27 62 Function Sets the MSB (bit number 7) of all incoming data to 1 Default No MSB control Notes • This is a nonrecommended command; most computer systems no longer require MSB control....
Page 221 - ESC j
C-214 Individual Command Explanations ESC j Reverse paper feed 9-Pin ESC/P Format ASCII ESC j n Hex 1B 6A n Decimal 27 106 n Parameter range 0 ≤ n ≤ 255 Function • Reverse feeds paper (moves the print position in the negative direction) n/216 inch • Prints any data in the buffer Default None Notes •...
Page 222 - ESC i
Individual Command Explanations C-215 ESC i Select immediate print mode 9-Pin ESC/P Format ASCII ESC i n Hex 1B 69 n Decimal 27 105 n Parameter range n = 0, 1 Function Switches between character and line printing, as follows: n = 1 Prints data on a character by character basisIf no print data is sen...
Page 223 - Binary Mode Commands
C-216 Binary Mode Commands Binary Mode Commands To accommodate the high-resolution printing capabilities of the Stylus COLOR printer, EPSON has added a raster graphics data compression mode to the existing ESC/P 2 graphics command set: ESC . 2 TIFF compression. This new compression mode also require...
Page 224 - Transfer raster graphics data; or n
Binary Mode Commands C-217 <XFER> Transfer raster graphics data ESC/P 2 Format Class 3 ASCII <XFER> n d 1 . . . d n Binary 001F xxxxB n d 1 . . . d n Parameter range #BC = Low nibble valueF = 0 then #BC = number of raster image data, where 0 ≤ #BC ≤ 15 F = 1 then #BC = number of raster i...
Page 225 - Command
C-218 Binary Mode Commands <MOVX> Set relative horizontal position ESC/P 2 Format Class 2 ASCII <MOVX> n L n H Binary 010F xxxxB n L n H Parameter range #BC = Low nibble valueF = 0, 10 ≤ n L ≤ 255 0 ≤ n H ≤ 127 F #BC value Positioning parameter (k) Command F = 0 #BC = k #BC (–8 ~ 7) <...
Page 226 - Class; Settings beyond 22 inches are ignored.
Binary Mode Commands C-219 <MOVY> Set relative vertical position ESC/P 2 Format Class 2 ASCII <MOVY> n L n H Binary 011F xxxxB n L n H Parameter range #BC = Low nibble value0 ≤ n L ≤ 255 0 ≤ n H ≤ 127 F #BC value Positioning parameter (k) Command F = 0 #BC = k #BC (0 ~ 15) <MOVX> F...
Page 227 - Select printing color; Black
C-220 Binary Mode Commands <COLR> Select printing color ESC/P 2 Format Class 2 ASCII <COLR> Binary 1000 xxxxB Parameter range 1000 0000B Black 1000 0001B Magenta 1000 0010B Cyan 1000 0100B Yellow Function Moves the horizontal print position to 0 (left-most print position). (TIFF format) ...
Page 228 - Carriage return to left-most print position
Binary Mode Commands C-221 <CR> Carriage return to left-most print position ESC/P 2 Format Class 1 ASCII <CR> Binary 1110 0010B Function Moves the horizontal print position to 0 (left-most print position). Printers featuring this command Stylus COLOR Model-dependent variations None Relat...
Page 229 - Exit TIFF compressed mode
C-222 Binary Mode Commands <EXIT> Exit TIFF compressed mode ESC/P 2 Format Class 1 ASCII <EXIT> Binary 1110 0011B Function • Exits TIFF compressed raster graphics mode. • Starts printing of stored data. • Moves the horizontal print position to 0 (left-most print • position). Notes This c...