background image

EPSON AMERICA INC.

EPSON

Product Support Bulletin

Subject:

Understanding and Using 

ESCP/2 

Commands and Syntax

Date: 12/4/91
Page(s): 1 of 14

PSB No: P-0082

Originator: JW

This bulletin provides detailed explainations and illustrations for some of the more

commonly used printer commands used in ESC/P2 Listed below are the
commands discussed in this bulletin.

Command

Command Name

PSB Page

ESC X m   

Select Pitch and Point Size

2

ESC ( C ml 

   

Set Page Length in Defined Units

5

 

 

Set Relative Vertical Position

6

 

 

Set Absolute Vertical Position

8

ESCtn

Select Character Table

9

ESC ( t nl 

 dl 

 d3

Assign Character Table

10

ESC(   

Print Data as Characters

14

Summary of Contents for LQ-1170

Page 1: ...re commonly used printer commands used in ESC P2 Listed below are the commands discussed in this bulletin Command Command Name PSB Page ESC X m nl n2 Select Pitch and Point Size 2 ESC C ml m2 nl nl Set Page Length in Defined Units 5 ESC vm1 m2nl n2 Set Relative Vertical Position 6 ESC Vm1 m2nl n2 Set Absolute Vertical Position 8 ESCtn Select Character Table 9 ESC t nl n2 dl d2 d3 Assign Character ...

Page 2: ... 360 by 91 For example if rn W then 360 divided by 60 equals 6 and the character pitch is 6 characters per inch If m 30 the character pitch is 12 characters per inch FortheRomanandSansSerifforrts thevaiueausedfor nimare0 l6 20 TI 24 26 3238 40 42 44 48 5238 80and64 ForaUotherfonts thevaluesusedfor nlBare0 21 and42 l heactualpointsbthatwillprintisnl diidedby2 For example if nl 20 the point size is ...

Page 3: ...point size was input ff the point size is valid the program jumps to line 30 If the point size is not valid the program prints a message on the screen and starts over again Line 30 computes the value for nl for advancing paper using the ESC v command Line 40 sends the Set Pitch and Point Size command to the printer Note The pitch is set for proportional spacing for ail point sizes to ensure proper...

Page 4: ...racters These are 14 point characters These are 16 point characters These are 18 point characters These are 20 point characters These are 21 point characters These are 22 point characters These are 24 point characters These are 26 point characters These are 28 point characters These are 30 point characters These are 32 point characters ...

Page 5: ...lue for n1 5 The whole number in the quotient from step 3 is the value for n2 EXAMPLE 1 The page length is 8 5 inches 2 8 5 x 360 3060 3 3060 divided by 256 11 with a remainder of 244 4 n1 244 5 n2 11 In the Basic programming language the command would look like this This command as listed in the line above will set the page length to 8 5 inches NOTE The current line becomes the top of form This c...

Page 6: ...he whole number in the quotient from step 3 is the value for n2 EXAMPLE 1 The desired distance is 1 inch 2 1x360 360 3 36Odiidedby256 1witharemainderofl04 4 n1 104 5 n2 1 In the Basic programming language the command would look like thii Thiscommand aslistedintheiineabove willfeedthepaperuplinchfromthe ament line The current print column horizontal position IS NOT changed Reverse paper feed less t...

Page 7: ...nder of 90 4 256 90 166 5 n1 166 6 n2 255 In the Basic programming language the command would look like this LPRlNT CHR 27 v CHR 2 CHR O CHR 166 CHR 255 This command as listed in the line above will feed the reverse feed the paper l 4 inch from the current line The current print column horizontal position IS NOT changed ...

Page 8: ...iply the dice by 360 3 Divide the result by 258 using long division 4 The remainder in the quotient from step 3 is the value for n1 5 The whole number in the quotient from step 3 is the value for n2 EXAMPLE 1 The desired dice from the Top of Form is 1 inch 2 1x360 360 3 36Odiidedby258 1 witharemainderof104 4 n1 104 5 n2 1 In the Basic programming language the command would look like this Thiscomma...

Page 9: ...with the value II n I T a b l e II II 3 I PC437 US II Table 1 NOTE 1 Character tables other than those listed above can be assigned by using the ESC t command Assign Character Table 2 The value used for n can be either the ASCII value OR the ASCII character i e chr l or 1 In the Basic programming language the command would look like this Lf RlNT CHR n Y CHR O CHR 27 is ESC and CHR O selects table ...

Page 10: ...e ESC t command the ESC t n command MUST be sent to select the table before printing from the new table For example the command ESC t 3 0 1 3 0 is sent assign Registered Table 3 PC950 to Selectable Table 1 PC437 In order to print the Q character ASCII 245 the command ESC t 1 must be sent In the Basic programming language the sequence would be as follows t PRtNT CHR 27 CT CHR 3 CHR O CHR l CHR 3 CH...

Page 11: ...the 6 Registered Tables Read Registered Table number and Table Name Print Registered Table number and Table Name Send the Assign Character Table command to the printer assigning the Registered Character Table read in line 20 to Selectable Character Table 0 Send the Select Character Table command to the printer selecting Selectable Table number 0 as the current Character Table for printing If the R...

Page 12: ...0 100 If the Registered Character Table number is 0 sand ASCII values 33 through 126 to the printer 110 If this Registered Character Table number is 0 send ASCII values 161 through 254 to the printer 120 Sand 2 line feed commands to the printer to provide separation between tables 130 If program lines 20 through 120 have not executed 6 times return to line 20 and start again 140 Data that is read ...

Page 13: ...anada French D o pRU 4 g tl t oA C Or23456789 ABCDEFGHIJKLMNOP XSTUWXYZ abcdefghijklmno rstuvwxyz I b Alt EBbii E E X iiO 6U fbOf 66 3 f a JJJ kt fttL nLLrrt l w raprxCalrr BQG B nnfLIFJ9 Jn2r pble 9 PC865 Norway b no bORU 4 tl t A SX 0123456789 QABCDEFGHIJKLMNOP RSTUWYCYZ I abcdefghijklmno qrstuvwxyz I CU AA oe iiiXAB b ij a a 0f0Ptfbi6ri RPo f n i111 lJJJ fH ttLpTw LLr jJ rly raPrxCa BQ6 8EnifL ...

Page 14: ...g long division divide the quantity of ASCII codes that will be sent sequentially immediately following n1 and n2 by 255 3 The remainder in the quotient is the value for n1 4 The whole number in the quotient is the value for n2 EXAMPLE 1 The symbols for the different suits of a card deck hearts diamonds clubs and spades V 4 and 4 are to be printed These are each separate ASCII codes ASCII codes 2 ...

Page 15: ...he LQ 870 and LQ 1170 printers are the direct replacement of the LQ 850 and LQ 1050 printers Q2 What is ESC P2 A2 ESC P2 stands for Epson Standard Code for Printers version Two ESC P2 is the newest version of Epson s printer control language Q3 What features does ESC P2 offer A3 ESC P2 offers two scalable fonts and enhanced sharper 360 DPI Dots Per Inch graphics Q4 What are the paper paths on the ...

Page 16: ...ese additional tractor are 0 LQ 870 C800201 0 LQ 1170 C800211 Q6 What are the print speeds of the LQ 870 and LQ 1170 printers A6 The print speeds are shown below High Speed Draft Draft Letter Quality 300 cps 10 cpi 413 cps 15 cpi 330 cps 12 cpi 275 cps 10 cpi 138 cps 15 cpi 110 cps 12 cpi 92 cps 10 cpi Q7 What fonts are scalable and what sizes can be printed A7 The two scalable fonts are Roman and...

Page 17: ... these software programs 0 Microsoft Word Version 5 5 0 Microsoft Windows Version 3 0 0 DrawPerfect Version 1 1 l LetterPerfect Version 1 0 l PlanPerfect Version 5 1 0 WordPerfect Version 5 1 a WordStar Version 6 0 For instructions on how to install each of the drivers print the README files on the diskette and follow the directions listed on each print out To access a README file first change to ...

Page 18: ... of all the accessories available for the LQ 870 and LQ 1170 printer LQ 870 LQ 1170 Product Codes Product Codes C800201 C800211 C806371 C806391 C806381 C806401 7753 7754 Accessories Additional Tractor Standard Capacity Cut Sheet Feeder High Capacity Cut Sheet Feeder Fabric Ribbon 7768 7770 Film Ribbon II 7755 7755 Fabric Ribbon Only Replacement Pack II C823051 C823071 C823101 C823051 C823071 C8231...

Page 19: ...CPS 1 200 CPS 210 CPS 252 CPS 246 CPS 295 CPS 275 CPS 1 330 CPS 333 CPS I 400 CPS High Speed Draft 10 CPI 1 ICZPI IEPI n a 1 60 CPS 1 72 CPS 225 CPS 70 CPS 84 CPS 300 CPS 82 CPS 98 CPS 300CPS 1 92 CPS 1 IIOCPS n a 1 Ill CPS I 133CPS GLOSSARY OF TERMS CPI Characters Per Inch CPS Characters Per Second Draft Draft uses a minimum number of dots per character for high speed printing Elite 12 Characters...

Page 20: ...tal Thickness is the maximum allowable total thickness including the original plus any copies 9 PIN PRINTERS Model Orig Maximum No of Copies Total Maximum Total Thickness AP 2250 l 1 2 3 I 0 0098 0 25mm LX 810 3 I 0 0098 0 25mm 1 2 1 3 FX 870 1170 4 I 0 0126 0 32mm DFX 5000 Front Tractor Rear Tractor 1 5 1 3 6 0 018 0 46mm 4 0 012 0 30mm DFX 8000 Front Tractor Rear Tractor 1 5 6 0 018 0 46mm 1 3 4...

Reviews: