EPSON EPSON AMeRIc& INC. Product Support Bulletin Subject: Understanding and Using ESCP/2 Commands and Syntax PSB No: P-0082 Originator: JW Date: 12/4/91 Page(s): 1 of 14 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 ESC X m n1 n2 ESC ( C m1 m2 n1 n1 ESC(v m1 m2 n1 n2 ESC(V m1 m2 n1 n2 ESCtn ESC ( t n1 n2 d1 d2 d3 ESC( A nln2d,. . .
PSB No: P-0082 Page: 2 of 14 ESC X m n1 n2 (Select Pitch and Point Size) C X m n1 a is the command for selecting pitch and point size where m, nl and n2 are variables. The vadable W is used to select the pitch, which is the character spa&g. The variable W” selects the point size and the variable “n2”, at this time, will always be 0 (zero). The variables In” and 91’ ate explained below. Thevaluesusedfor’m’ateO,l,18,21,24,30,36,4248,60,and72 tf’o”is usedasthevaluefor”m”,therewillbenochangeinpit~.
PSB No: P-0082 Page: 3 of 14 10 INPUT “Point Siie”;A$ 20 B=VAL(A$)*2 21 RESTORE 70 22FORX=l TO16 23READY 24 IF B=Y THEN GOT0 30 25NMTX 26CLS 27 PRINT A$ ” is not a valid point size choice.” 28 GOT0 10 30 C=VAL(A$) 40 LPRM CHR$(27);“X”;CHR$(l);CHR$(B);CHR$(O);”n‘lese are “;A$;” point characters” 50 LPRtNT CHR$(27);“(V”;CHR$(2);CHR$(O);CHR$(C);CHR$(o) 60 GOT0 10 70 DATA 0,16,20,21,24,28,32,36,40,4~44,48,52,56,60,64 Line 10 - allows you to specify the point size desired.
PSB No: P-0082 Page: 4 of 14 These are 8 point characters These are 10 point characters These are 10.
PSB No: P-0082 Page: 5 of 14 ESC ( C m1 m2 n1 n2 (Set Page Length in Defined Units ESC ( C ml m2 nl n2 is the command for setting the page length in units where ml, m2, nl and n2 are variables. The “uniV’ is usually l/380 of an inch unless defined othenwise by the “ESC ( l.Y command. Currently, the values for ml and m2 MUST be ml =2 and m2=0. To determine the values for n1 and n2 perform the following steps. 1. Determine the desired page length in inches. 2 Multiply the page length by 380.
PSB No: P-0082 Page: 6 of 14 1 ESC ( v m1 m2 n1 n2 (Set Relative Verticai~~~ ESC l v ml m2 nl a is the command for advancing the print position verticaiiy in unitswhereml,m2nl andn2arevariables. The5nCisusually1/36Oofaninch unless defined otherwise by the “ESC ( U command. Currently, the values for ml and IT@ MUST be ml =2 and m2=0. To determine the values for nl and n2 perform the following steps. 1. Determine the desired vertical motion dii in inches. 2 Multiply the distance by 360. 3.
PSB No: P-0082 Page: 7 of 14 EXAMPLE 1. 2. 3. 4. 5. 6. The desired distance is l/4 inch. 1/4x 360 = 90 90 divided by 256 = 0 with a remainder of 90. 2%90=166 n1=166 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 1/4 inch from the current line. The current print column (horizontal position) IS NOT changed.
PSB No: P-0082 Page: 8 of 14 C f V m1 m2 n1 a is the command for changing the print position vertically (with respect to the Top of Form position) in units where ml, m2, nl and n2 are variables. TheZlnit”isuswllyl/~afaninchunlessdefinedatherwisebythe”ESC(U command. Currently, the values for ml and m2 MUST be ml =2 ‘and m2=0. To determine the values for nl and n2 perform the following steps. 1. Determine the desired vertical dice from the Top of Form in inches. 2 Muttiplythe d i c e by380. ~ 3.
PSB No: P-0082 Page: 9 of 14 ESC t n is the command for selecting a character table to be used for printing where n is a variable. The following table lists the values for n and the character table associated with the value. I n I I 3 I PC437 (US) T a b l e II 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”).
PSB No: P-0082 Page: 10 of 14 ESC ( t nl n2 dl .d2 d3 (Assign Character Tabie) ESC f t nl n7 dl d2 d3 is the command for assigning character tables where n1, n2, dl,d2,andd3arevariables. CurrenUy,variabknl,n2andd3MlJSTbenl=3, n2=0, and d3=0. Variable dl is a number corresponding to one of the four tables selectable with the ESC t n command. This is the table that will be replaced. Valid valuesford areO,1,2,and3(seeTabtel below). Variabled2isanurnbar corresponding to a registered table.
PSB No: P-0082 Page: 11 of 14 page contains a print sample of the Registered Tables available in printers sold in the U.S. In order to print the first 31 characters in Tables 1 through 9, the ESC ( h command must be sent. Listed below is a Basic language program and an explanation of the program that will print the output illustrated on page 13 of this bulletin.
PSB No: P-0082 Page: 12 of 14 60 If the Registered Character Table number is not 0, print ASCII values 1 through 255 inclusive. Remember, line 70 allows the first 31 ASCII values to print as characters, not control codas. 90 If the Registered Character Table number is ndt 0, do not exacute commands in lines 100 and 110. 100 If ths Ragiierad Character Table number is 0, sand ASCII values 33 through 126 to the printer.
PSB No: P-0082 Page: 13 of 14 able 0 I t a l i c ‘#$X& ()*+,- ./0123456789:;c=>?~ABCDEFGHIJKLMNOPQRSTU~YZ~\~n-fabcdefghijklm >pqrstuvwxyz( :}‘!“#$X&‘()*+,-./0123456789:; e=> ?BABCDEFGHI JKLMNOPQRSTUVRXYZ[ \ J ^, nbcdefghijklmnopqrstuvwxyz{,‘}- sble 1 P C 4 3 7 ( u s ) D~~~~*no08~bOnu,4I?(~-~tl~~~~A !“#SX&‘()*+,-./0123456789:;*=*?gABCDEFGHIJKLMNOP =TUVWXYZ[\]--’ abcdefghijklmno Irstuvwxyz{ : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -:.
PSB No: P-0082 Page: 14 of 14 C l h n1 n2 d, . . . dk is the command for printing control codes as data where nl and n2 are variables and d, . ..d,representthedat&atistobeprintedas characbrs. The variables nl and n2 tell the printer Yhe next xx ASCII codes are to be interpreted as characters instead of control codes”. Thii command is used primarily to print displayable characters such as ASCII values 0 through 31 in Registered Tables 1 through 9 which are normally used as control codes (LF, FF, ESC, etc.
EPSON EPSON AMERICA, INC. Product Support Bulletin Subject: LQ-870/1170 Questions and Answers Date: 10/9/91 Page(s): 1 of 4 PSB No: P-0081 Originator: SDS This bulletin answers some commonly asked questions about the LQ-870/1170 printers. The questions and answers are listed below. QUESTIONS AND ANSWERS ON THE LQ-870/1170 PRINTERS Q1. What are the LQ-870 and LQ-1170 printers? Al. The LQ-870 and LQ-1170 printers are the direct replacement of the LQ-850 and LQ-1050 printers. Q2. What is ESC/P2? A2.
PSB No: P-0081 Page: 2 of 4 Q5. Are there different tractors available for the LQ-870 and LQ-1170 printer? A5. The LQ-870 and LQ-1170 printers come with one tractor, this tractor can be positioned for three different purposes. The purposes are as follows: l a 0 Front Feed Push Tractor Rear Feed Push Tractor Top Mounted Pull Tractor Additional tractors are available for use in any of the above positions, The Product Codes for these additional tractor are: 0 0 LQ-870 LQ-1170 C800201 C800211 Q6.
PSB No: P-0081 Page: 3 of 4 Font I 10 cpi I 12 cpi I 15 cpi Epson Draft 0 0 l Epson Roman 0 0 a I PS 0 Epson Sans Serif Epson Courier Epson Prestige Epson Script OCR-B Epson Script C Epson Orator l Epson Orator-S l Q9. There was a diskette included in the box with my printer, what is it for? A9. The diskette contains Epson Printer Drivers for use with some of the most popular software programs. Below is a list of these software programs. 0 0 0 l l 0 a Microsoft Word Version 5.
PSB No: P-0081 Page: 4 of 4 Q10. What printers are supported by the printer drivers on the diskette? A10. All drivers on the diskette support the following Epson printers: 0 0 0 0 0 0 LQ-570 LQ-1070 LQ-870 LQ-1170 AP-5000 AP-5500 Q11. What are the available accessories for the LQ-870 and LQ-1170 printers? A11. Below is a list of all the accessories available for the LQ-870 and LQ-1170 printer.
EPSON EPSON AMERICA INC.
EPSON EPSON AMERICA, INC. Product Support Bulletin Subject: Quick Reference for 9/24 Pin Printer Paper Specifications Date: 10/9/92 Page(s): 1 of 1 PSB No: P-0022D Originator: SLS This PSB provides a quick reference for the paper specifications on Epson’s current line of 9-pin and 24-pin dot-matrix printers when using continuous paper. The ‘Maximum No. of Copies” is the maximum allowable number of copies when using continuous multi-part carbonless paper.