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
ESC X m n1 n2
ESC ( C m1 m2 n1 n1Set Page Length in Defined Units
ESC(v m1 m2 n1 n2
ESC(V m1 m2 n1 n2
ESCtn
ESC ( t n1 n2 d1 d2 d3
ESC( A
Understanding and Using
Command Name
Select Pitch and Point Size
Set Relative Vertical Position
Set Absolute Vertical Position
Select Character Table
Assign Character Table
Line 10 -allows you to specify the point size desired.
Line 20
tine 21 -check to ensure that a valid point size was input
Line 30 - computes the value for
Line 40
Line 50
Line60-
NOTE: To hatt the program, hold down the
computes the value for
-
valid, the program jumps to line 30.
program prints a message on the screen and starts over again.
command.
sends the “Set
-
pitch is set for proportional spacing for
character spacing regardless of the point size.)
sends the “Set Relative Vertical Position” command to the printer. This
-
command advances the paper in preparation for printing the next line.
causes the program to start again at the beginning.
Pitch
“nl”
in the ESC X command.
“nl ”
for advancing paper using the ESC ( v
and Point
tf
the point size is not valid, the
Size”
command to the printer. (Note: The
ail
point sizes to ensure proper
“CM
key and press the
tf
the point size is
“c”
key.
These are 8 point characters
These are 10 point characters
These are 10.5 point characters
These are 12 point characters
These are 14 point characters
These are 16 point characters
PSB No: P-0082
Page: 4 of 14
These
These
are 18 point characters
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
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
othenwise
ml =2 and
To determine the values for n1 and n2 perform the following steps.
EXAMPLE
by the “ESC (
m2=0.
1.
Determine the desired page length in inches.
2
Multiply the page length by 380.
Divide the result by 256 using long division.
3.
4.
The remainder in the quotient from step 3 is the value for n1.
The whole number in the quotient from step 3 is the value for n2.
5.
1.
The page length is 8.5
2
8.5 x 380 = 3060
3.
4.
5.
3080
nl=244
n2=11
divided
l.Y
command. Currently, the values for ml and m2 MUST be
by 258 =11 with
“uniV’
is usually
inches.
l/380
of an inch unless defined
a
remainder of 244.
II
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 command cancels any
previously set top and bottom margin settings.
margins via software command, the commands must be issued
Length in Defined Units” command. The proper page length setting can be confirmed
by issuing a “Form Feed” command,
control panel while the printer is
chr$(l2),
“Cff Line”.
If
you wish to set the top and bottom
AFTER
or by pressing the “FF button on the
the
“Set
Page
PSB No: P-0082
Page: 6 of 14
ESC ( v m1 m2 n1 n2 (Set Relative
1
ESCl v ml m2 nl a is the command for advancing the print position
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
3.
4.
5.
EXAMPLE
2
3.
4.
5.
Multiply the distance by 360.
Divide the result by 256 using long division.
The remainder in the quotient from step 3 is the value for n1.
The whole number in the quotient from step 3 is the value for n2
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.
1/4x 360 = 90
3.
90 divided by 256
2%90=166
n1=166
n2=255
l/4
inch.
=0with
remainderof90.
a
PSB No: P-0082
Page: 8 of 14
Cf 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,
selectable with the ESC t n command. This is the table that will be replaced. Valid
valuesford areO,1,2,and3(seeTabtel
corresponding to a registered table.
indicated by Variable d1. Valid Values for d2 are 0,
MOW).
and
d3=0.
1
dl t SeIectabIeTabIe
I
0
-1
Italic
n2 dl .d2
Variable dl is a number corresponding to one of
d3 (Assign Character
the
below). Variabled2isanurnbar
lhii
is the table that
1,3,7,8,
#
1
IO Iwic
I 3
will replace
and 9 (see Table 2
IPC95O(Intemationa0
the table
Tabie)
n2,
four tables
I
Table 1
After using the ESC ( t command, the ESC t n command MUST be sent to select the
table before printing from the new table.
0 is sent (assign Registered Table 3
to print the Q character (ASCII
programming language, the sequence would be as follows:
Some ESC/P2 documentation may illustrate as many as 22 different Registered
Tables. The Registered Tables are a part of the character set, therefore, they are
contained in the Character Generator ROM. The CG ROM differs based upon the
destination country. For
on
LQ-570, LQ-1070, LQ-870
Character Generator ROMs ARE NOT available in the United States. The following
CHR$(27);7’;CHR$(l);
CHR$(245)
thii
245),
reason, only the above Registered Tables are available
and
(PC950)
the command ESC t 1 must be sent. In the Basic
LQ-1170
II9 I
Table2
For example, the command ESC ( t 3 0 1 3
to Selectable Table 1
printers sold for the U.S. market. Foreign
(PC437).
In order
I
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.
10
FOR
Z=l
TO 6
20READ
30 LPRINT
40
LPRINT
50
LPRINT
60
IF Y=O THEN GOT0 100
70
LPRINT
80
FOR
90
GOT0 120
100 FOR X=33 TO 126:LPRINT
110 FOR X=161 TO
120 LPRINT
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
50
Table number 0 as the current Character Table for printing.
If the Registered Character Table number is 0, do not execute commands in lines
60
70 through 90.
This
is because the Italic Character Table duplicates control
codes and non-displayable characters in ASCII values 127 through 160. Program
lines 100 and 110 prevent the attempted printing of this range of ASCII values.
Note: tines 70 through 90 will execute ONLY if the Registered Character Table to be
printed is NOT table number 0. Refer to the conditional command in line 60.
70tf the Registered Character Table number is not 0, send the Print Data as
Characters command to the printer.
the printer to print the next 31 bytes as data, not control
Speckally,
this command, as listed, tells
codes.
PSB No: P-0082
Page:
12 of 14
60If 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
90
If the Registered Character Table number is
codas.
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.
110 If
ths
Registered Character Table number is 0, send ASCII
values
161 through
254 to the printer.
120 Sand 2 line
130 If program
feed commands ?o the printer to provide separation between tables.
lines 20
through 120 have not
exacuted
6 times, return to line 20 and
start again.
140 Data that is read by line 20. This line and line 150 contain the Registered Table
number and name that will be used by this program.
C l h n1 n2 d, . . .
and n2 are variables and d, .
characbrs. The variables nl
interpreted as characters instead of control codes”.
is the command for printing control codes as data where
..d,representthedat&atistobeprintedas
and n2 tell the printer
Yhe
Thii
14 of 14
next xx
ASCII
codes are to be
command is used primarily
nl
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.)
TO determine the values for nl and n2 perform the following steps.
1.
Determine how many ASCII codes will be sent sequentially immediately
following nl and
2
Using long
division,
n2
divide the quantity of ASCII codes that will be sent
sequentially immediately following nl and n2 by 255.
3.
The remainder in the quotient is the value for n1.
4.
The
whoie
number in the quotient is the value for
n2
EXAMPLE
1. The symbols for the
and spades -
V’, +, 4,
different
suits of a card deck (hearts, diamonds, clubs,
and 4) are to be printed. These are each separate
ASCII codes (ASCII codes 2 3.4, and 5 when using the PC437 Character
table).
2
4dividedby255=
3. nl
4.n2=0
=4
0 with a remainder of 4.
In the Basic programming language, the command would look like this.
Thii command, as listed in the line above, will cause the printer to print the symbols
for the different suits of a card deck (hearts, diamonds, clubs, and spades
and
4).
Another example of using the ESC ( * command is illustrated in the
V’,
+, 4,
explanation of the ESC ( t (Assign Character Table) command.
EPSON AMERICA, INC.
EPSON
Product Support Bulletin
Subject:LQ-870/1170 Questions and Answers
Date: 10/9/91
Page(s): 1 of 4
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. ESC/P2 stands for Epson Standard Code for Printers version Two. ESC/P2 is
the newest version of Epson’s printer control language.
PSB No:
Originator: SDS
P-0081
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 LQ-870 and LQ-1170 printers?
A4. The LQ-870 and LQ-1170 printers have 4 paper paths. The different paper
paths are as follows:
0
0
a
l
Top Feed
Bottom Feed
Rear Feed
Front Feed
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
Additional tractors are available
Front Feed Push Tractor
Rear Feed Push Tractor
Top Mounted Pull Tractor
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. What are the print speeds of the LQ-870 and LQ-1170 printers?
A6. The print speeds are shown
Q7. What fonts are scalable and what sizes can be printed?
A7. The two scalable fonts are Roman and San Serif. Both fonts can be printed
from 8 point to 32 point in 2 point increments.
Q8. What other fonts are supported by the printers?
A8 Below is a table showing the fonts available and the pitch sizes supported by
each font.
PSB No: P-0081
Page: 3 of 4
Font
Epson Draft
Epson Roman
I
10 cpi
0
0
I
12 cpi
0
0
I
15 cpi
l
I
a0
Epson Sans Serif
Epson Courier
Epson Prestige
Epson Script
OCR-B
Epson Script C
Epson Orator
Epson Orator-S
l
l
Q9. There was a diskette included in the box with my printer, what is it for?
PS
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
Microsoft Word Version 5.5
Microsoft Windows Version
DrawPerfect Version 1.1
LetterPerfect Version 1.0
PlanPerfect Version 5.1
0
WordPerfect Version 5.1
a
WordStar Version 6.0
3.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 the appropriate subdirectory. For example, to
change to the WordPerfect subdirectory, type the following command:
A:
CD \WP
PRINT README
<To access the diskette>
<To access the WP subdirectory>
<To print the WP README file>
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:
LQ-570
0
LQ-1070
0
LQ-870
0
0
0
0
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.
LQ-870
Product Codes
C800201
LQ-1170
Product Codes
C800211
C806371C806391
C806381C806401
7753
7768
7755
C823051
C823071
C823101
C1-93-A
C823051
C823071
C823101
C1-9E-AParallel Printer Cable
7754
7770
7755
Accessories
Additional Tractor
Standard Capacity Cut Sheet Feeder
High Capacity Cut Sheet Feeder
Fabric Ribbon
Film Ribbon
Fabric Ribbon Only Replacement
Pack
Serial Interface Board
32K Serial interface Board
32K Parallel Interface Board
II
II
EPSON AMERICA INC.
Product Support Bulletin
Subject: Quick Reference for Current Dot-Matrix Printer Print Speeds
EPSON
Date: 10/9/92
Page(s): 1 of 1
/
Model
AP-2250
LX-810
FX-870/1170 11
11
DFX-5000
DFX-8000
Model
1%
PSB No: P-0030C
Originator: SLS
9-PIN PRINTERS
l%Y
200
200
285 CPS 1 342 CPS 1 380 CPS 1 57 CPS I 68 CPS
400 CPS 480 CPS
11
800 CPS 1 960 CPS I 1066 CPS 1
CPS
CPS
D”:,“n”-“,““c”p4
240 CPSn/a
240 CPSn/a
533
CPS
legal
40
40
80
160
CPS
llLFPI
CPS
CPS
CPS1 96 CPS
11921
,
48
48
24-PIN PRINTERS
Draft
10 CPI
Draft
12 CPI
High-Speed
Draft 10 CPI
1
1ZPI /
IEPI
CPS
CPS
II
1)
AP-3250
LQ-570/1070
~ LQ-860
LQ-870/1170
~ LQ-2550
GLOSSARY OF TERMS
CPI:
CPS: Characters Per Second
Draft:
Elite:
Pica:
LQ:
NW:
Characters Per Inch
Draft uses a minimum number of dots per character for high-speed printing.
12 Characters Per Inch (12 CPI)
10 Characters Per Inch (10 CPI)
Letter Quality reduces the print speed and increases the number of dots per
character to increase the print quality. (24-pin printers only)
Near Letter Quality reduces the print speed and increase the number of dots
per character to increase the print quality. NLQ printing requires two passes
per character. (Q-pin printers only)
Subject: Quick Reference for 9/24 Pin Printer Paper Specifications
EPSON
Date: 10/9/92
Page(s): 1 of 1
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. The “Total” number is the maximum
allowable number of copies including the original. The ‘Maximum Total Thickness”
is the maximum allowable total thickness including the original plus any copies.
PSB No: P-0022D
Originator: SLS
9-PIN PRINTERS
Model
AP-2250 l
LX-810
FX-870/1170
DFX-5000
(Front Tractor)
(Rear Tractor)
Orig. + Maximum No.
of Copies
1
1
1
1
1
2
2
3
5
3
TotalMaximum Total
Thickness
3
3
4
6
4
0.0098”
I
0.0098”
I
0.0126”
I
0.018’
0.012”
(0.25mm)
(0.25mm)
(0.32mm)
(0.46mm)
(0.30mm)
DFX-8000
(Front Tractor)
(Rear Tractor)
Model
AP-3250
LQ-570/1070
LQ-860
LQ-870/1170
LQ-2550
* Note:
*
The AP-2250 and AP-3250 require an optional push tractor to use
continuous paper.
1
1
5
3
24-PIN PRINTERS
Orig. + Maximum No.
of Copies
I
I
I
I
1
1
1
1
1
I
1
3
3
3
5
I
I
I
I
I
6
4
Total
2
4
4
4
6
0.018’
0.012”
Maximum Total
0.0071”
0.0126”
0.0126”
0.0126”
0.018’
(0.46mm)
(0.30mm)
Thickness
(0.18mm)
(0.32mm)
(0.32mm)
(0.32mm)
(0.46mm)
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.