Page
0 Copyright 1985 by Epson Corporation
Nagano, Japan
Contents
Mode Combinations
Master Select
International
Special Graphics Character Set
Page Formatting
Appendixes
A LX-90Characters
DraftMode
NLQMode
B Software Commands in
Introduction
Installation and Operation
Figure l-2.DIP switch location
Printing the Self Test
I Draft
<=>?@ABCDEFGHIJK
$ % & ' ( ) * + , - . /0 1 2 3 4 5 6 7 8 9 : ;
%&'()*+,-. /0123456789 :; <=>.. ?@ABCDEFGHIJKLMN
NLQ
Control Panel
Figure 7-4.Control panel
•The POWER light glows green when the power is on
FF (Form
•LF (Line Feed)-advancesthe paper one line at a time
Using Your Printer
SelecType
Selecting typestyles
2-l
ABCDEFGHJIJKLMNopqrstuvwxyz
RETURN
This is an example of
LX-90printing
Mode Combination
1.See that the ON LINE and READY lights are on
2.Press the ON LINE and FF buttons at the same time
4.Press the ON LINE button one more time and then the FF button once again
This makes a total of two times, and thus sets the LX-90for emphasized also
combinations
Mode
SelecType Tips
For more information on the typestyles in this chapter, see Chapters 3, 4, and
Elements of Dot-MatrixPrinting
and Computer/Printer Communications
Other Pitches
Figure 3-2.The three pitches of the LX-90
NLQ Mode
ESCape and ASCII
•The CHR$ (character string) function is used for numerical codes
•CHR$(27) is the ESCape code
•LPRINT sends text or commands to the printer
PIC Features
Running BASIC Programs
ENTER.)
RETURN
RETURN
LX-90
Now run the program to see the line printed in compressed mode
Cancelling Codes
LPRINT CHR$(18)
•By resetting the printer, a method explained in the next section
Resetting the Printer
Pitch Comparison
that
30 LPRINT CHR$(15);
50 LPRINT CHR$(X);
60 NEXT X: LPRINT
NEW
10 LPRINT CHR$(27); "x"; CHR$(l);
28 FOR X=65 TO
30 LPRINT CHR$(X);
40 NEXT X: LPRINT
Print Enhancements and
Special Characters
Double-Strike
20 LPRINT CHR$(27); "G";
30 LPRINT "This is double-strikeprinting
T h i s i s s t a n d a r d p r i n t i n g
i s
Expanded Mode
29 LPRINT CHR$(27) ; "W1";
30 LPRINT "This is expanded
T h i s i s
T h i s
T h i s i s s t a n d a r d p r i n t i n g
e x p a n d e d
Underline Mode
10 LPRINT "This text is not underlined
20 LPRINT CHR$( 27);“-1”;
Master Select
40 LPRINT "This sample of printing uses
50 LPRINT "Master Select number" ;M
60 LPRINT CHR$(27);"@
Emphasized + compressed + emphasized
Emphasized + elite + elite
Emphasized + compressed + elite
Superscript and Subscript
“SO”
International Characters
that set
USA
Italy
France
characters
Page
Special Graphics Character Set
Figure 5-l.Special graphics characters
5-l
The next printout shows the characters in emphasized expanded pica:
Page Formatting
Skip-Over-Perforation
10 LPRINT CHR$(27);"N";CHR$(6);
Line Spacing
are
Paper-OutSensor
that
Justification with NLQ
0 Left justify
7 WIDTH LPRINT
This statement prevents BASIC from inserting unwanted carriage returns
have
ESCape code only
User-DefinedCharacters
Figure 7-l. LX-90 dot-matrixcharacters
Designing Process
Figure 7-2. Grid for designing draft characters
Figure 7-3. Correct and incorrect designs
Correct and
designs
120 PRINT "WHICH ROWS HAVE DOTS IN COLUMN";I 130 INPUT R: IF R=0 THEN
260LPRINT CHR$(27) "!"CHR$(0)"YOUR DATA NUMBERS:
Running the program
7, RETURN
know
RETURN only
YOUR CHARACTER IN PICA:
138LPRINT CHR$(27)"&"CHR$(0)CHR$(A)CHR$(A-l+K);
100. (You
LX-90
NLQ grid
Figure 7-6. Grid for NLQ characters
Figure 7-7. Data numbers for one column
NLQ definition program
10 LPRINT CHR$(27)"x"CHR$(l)
20LPRINT CHR$(27) ":"CHR$(0)CHR$(0)CHR$(0);
30LPRINT CHR$(27)"%"CHR$(l)CHR$(0);
40LPRINT CHR$(27)"&"CHR$(0)"<<";
50LPRINT CHR$(0)CHR$(l2)CHR$(0);
110 FOR X=58 TO 63: LPRINT CHR$(X)" ";: NEXT
Introduction to Dot Graphics
INSTALLATIONS BY MONTH
0 JUL
AUG
SEP
OCT
Graphics Mode
LPRINT CHR$(27)"K"CHR$(n1)CHR$(n2);
Pin Labels
Figure 8-l.Pin labels
Figure 8-2.Calculating numbers for pin patterns
First Graphics Program
10 LPRINT CHR$(27)"K"CHR$(40)CHR$(0);
20 FOR X=1 TO 40: LPRINT CHR$(74);: NEXT
40:
WIDTH Statements
WIDTH LPRINT
Multiple-LineExercise
10 WIDTH LPRINT
40 LPRINT CHR$(27)"K"CHR$(100)CHR$(0);
20 LPRINT CHR$(27)"A"CHR$(7)
30 FOR R=1 TO
70 LPRINT CHR$(27)"K"CHR$(100)CHR$(0);
80 FOR X=1 TO 50: LPRINT CHR$(42)CHR$(85);
90 NEXT X: LPRINT: NEXT R
Density Varieties
Table 8-1. Graphics modes
Alternate
Density
code
Reassigning Code
LPRINT CHR$(27)"?Y"CHR$(5)
LPRINT
Column Reservation Numbers
CHR$(27)"Z"CHR$(l28)CHR$(7);
CHR$(27)"L"CHR$(N MOD 256)CHR$(INT(N/256));
Designing Your Own Graphics
Figure 8-3.Designing in different densities
Figure 8-4.Arrow design
128)
l-64)
8-4
825DATA 0,-9,32,0,61,2,4,8,16,32,64,0,0,0,128
String variables
20G$=CHR$(27)+"K"+CHR$(100)+CHR$(0)
30A$=CHR$(85)+CHR$(42)
40B$=CHR$(42)+CHR$(85)
50LPRINT CHR$(27)"A"CHR$(7)
Page
LX-90Characters
Draft Mode
NUL
BEL
127 7F DEL
A-2
A-3
Dec Hex Char
Page
Software Commands in Numerical Order
ESC
ESC :
ESC
ESC
ESC @
ESC A
ESC B
ESC C
ESC 115 ESC s ESC 120 ESC
Command Summary
LPRINT CHR$(27);"Wl" or LPRINT CHR$(27);"W";CHR$(1)
Select NLQ or draft
( n )
( n )
ESC a
NLQ Justification
Character Width (Pitch)
SISelect Compressed Mode
O F
CTRL O
ESC SI
s o
S O
O E
CTRL N
ESC SO
ESC W
Select/Cancel Expanded Mode
ESC M
Select Elite Pitch
ESC P
Print Enhancement
ESC E
Select Emphasized Mode
I B
ESC F
ESC H
Cancel Double-StrikeMode
Select Superscript
I B
ESC S1
Master Select
Select Italic Mode
Cancel Italic Mode
ESC R
Select an International Character Set
ESC m
Select Special Graphics Characters
Page Formatting
Margins
ESC Q
Set Right Margin
Set Left Margin
ESC N
Select Skip-Over-Perforation
ESC O
Cancel Skip-Over-Perforation
Cancels the mode selected by ESC N
Select l/&-InchLine Spacing
Select 7/72-InchLine Spacing
Select l/6-InchLine Spacing
Select n/216-InchLine Spacing
ESC J
Immediate n/216-InchLine Feed
ESC A
Select n/72-InchLine Spacing
Form feed and page length
Form Feed
F F
CTRL L
ESC C
Tabs
Tab Horizontally
ASCII code: H T
Decimal:9
CTRL
ESC B
Select Vertical Tabs
ESC b
Select Vertical Tabs in Channels
(c)
ESC e
Set Horizontal and Vertical Tabs
CHR$(27);“eO”;CHR!$(n)
where n is the number of spaces and equals:
CHR$(27);“el”;CHR$(n)
Graphics
Note:
ESC K
ESC L
Select Double-DensityGraphics Mode
ESC Y Select High-Speed Double-DensityGraphics Mode
ESC Y
(n1)
(n2)
ESC Z
ESC
Select Graphics Mode
(m)
ESC
Reassign Graphics Mode
(s)
ESC ^
Select 9-PinGraphics Mode
User-DefinedCharacters
ESC &
Define
User-Defined
Characters
Other Codes
BEL
Beeper
BEL
Control: CTRL G
Select Printer
Format:’
DC1
CTRL Q
Deselect Printer
ESC EM
Cut Sheet Feeder Control
Disable Paper-OutSensor
Enable Paper-OutSensor
ESC
Select Unidirectional Mode (one line)
ESC @
Initialize Printer
ESC U
ESC s
Select Half-SpeedMode
DEL
Delete Character
DEL
DIP Switches and Interface
Table D-7.DIP switch functions
No
Function
OFF
Note:
Page
Interface
The PIC uses an &bit, Centronics®-compatible,parallel interface
Table D-3.Pins and signals
Return
Signal
Signal
OUT
Notes:
“Return” denotes the
D-5
Data Transfer Sequence
Interface timing
Troubleshooting and Advanced Features
Reset codes
Cancelling modes
2.Press the ON LINE and FF buttons to enter SelecType
5.Press the LF button once to leave SelecType mode
6.Press the ON LINE button to put the printer on line
Now you have cancelled emphasized without affecting any other modes
Printing on Self-adhesiveLabels
Applesoft BASIC Solutions
QX-l0® and QX-l6TM Solutions
The format for the WIDTH statement for the Epson QX-10and QX-16computers is:
There are two common sources of problems with graphics programs in BASIC:
E-4
Data Dump Mode
10 FOR X=70 TO
20 LPRINT CHR$(X): NEXT
30 LPRINT CHR$(27);"E
40 LPRINT "Sample text
10 FOR X=0 TO
20 LPRINT CHR$(X);
30 NEXT
E-6
Figure E-l.Hexadecimal codes in order
E-7
INDEX
E5-E7
16, 21
Cl-C27
Cl0
C21
Index-3
21
also
Index-5
EPSON AMERICA, INC
LIMITED WARRANTY