Straight Line - Epson FX Series User Manual

Fx series printer
Hide thumbs Also See for FX Series:
Table of Contents

Advertisement

In the programs that follow (except the first), we shorten the process
of specifying pins by using the fact that their labels represent powers
of two. (Refer back to Figure 10-3 to refresh your memory about the
relationship of ordinal numbers to powers of two and the exponential
labels for the pins.) We use the caret (^) to represent exponentiation;
for example, 2^6 means raise two to the sixth power. Some computer
systems use, instead of a caret, an up-arrow (t ), which prints as a left
bracket ([) on the FX.

Straight line

Your first testing of the FX's graphics potential will consist of firing
the bottom graphics pin. Enter and RUN this program (be careful to
include the semicolons):
NEW
10 LPRINT CHR$(27)"K"CHR$(100)CHR$(0);
20 FOR X=1 TO 100
30
LPRINT CHR$(l);
40
NEXT X
50 LPRINT
If your system won't send CHR$(0), use CHR$(8).
This program deserves a full discussion:
Line 10 prepares the printer to accept
Line 20 starts a loop for the LPRINT statement. Note that the loop
must match the number of columns specified in line
expecting
bytes of data; it interprets everything it receives as
100
graphics data until this quota is filled.
Line 30 sends a one to fire the bottom graphics pin. The semicolon at
the end of the line is necessary to suppress the carriage return and line
feed (ASCII
and
13
at the end of each LPRINT line. Without that semicolon, the printer
would receive the sequence
138
because otherwise they are sent automatically
10),
1,13,10,1,13,10
columns of graphics data.
100
10.
. . . instead of
The printer is
l,l,l,l.

Hide quick links:

Advertisement

Chapters

Table of Contents
loading

This manual is also suitable for:

Fx-100Fx-80Fx-185 - impact printer

Table of Contents