First Graphics Program - Epson FX-80 User Manual

Hide thumbs Also See for FX-80:
Table of Contents

Advertisement

the bottom graphics pin? That's right, LPRINT CHR$(l). If you
wanted to fire only the top and bottom pins, you'd simply add 128
and 1, then LPRINT CHR$(129). By adding the appropriate numbers
together, you can fire any combination of pins you want!
Now you can see why not being able to send an ASCII code above
127 is the same as not being able to fire the top pin.
First Graphics Program
Our first testing of the FX-80's graphics potential will consist of
firing the bottom graphics pin. We chose this pin because ... the only
way to go from there is up. Enter and RUN this NEW program (be
careful to include the trailing semicolons):
NEW
1(3 LPRINT CHR$(27)"K"CHR$(1(3(3)CHR$«(3);
15 ' Users who can't send CHR$«(3) see Appendix
1.
2(3 FOR X=l TO 1(3(3
3(3 LPRINT CHR$(l);
4(3 NEXT X
5(3 LPRINT
_._.
__
._-_
...
_._-_
.......
_----_.------
This program deserves a full discussion:
Line 10 prepares the printer to accept 100 columns of graphics data.
(Remember n
1
and n
2
?)
Line 20 starts a loop for the LPRINT statement. Note that the loop
matches the number of columns specified in line 10. The printer is
expecting 100 bytes of data; it interprets everything as graphics data
until this quota is filled.
Line 30 sends a 1 to fire the bottom pin. The trailing semicolon (;) is
necessary to delay the carriage return (ASCII 13) that is sent automati-
cally at the end of each LPRINT line. Otherwise the printer would
receive the sequence 1,13,1,13 ... instead of 1,1,1,1.
Line 40 completes the loop.
Line 50 doesn't print anything-it just provides a carriage return to
force the return at the end of the print line to override the trailing
semicolon in line 30. Forcing the carriage return is not really necessary
134

Advertisement

Table of Contents
loading

Table of Contents