Epson LX-90TM Installation Manual Page 20

  • Download
  • Add to my manuals
  • Print
  • Page
    / 59
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 19
do is turn on your computer and type in the programs exactly as you
see them in this manual. If you have any questions, see your Commo-
dore User’s Guide.
Although all the example programs are in BASIC, you can of
course change them to any programming language that you prefer to
use. Simply follow the instructions in the manual for your program-
ming language.
The HomeWriter- and BASIC
In order to send any information to the printer, you must first open
a file for it. A sample statement for opening a file is:
10 OPEN1,4
The 1 in the line above is the file number, and the 4 is the device
number. You can use any number from 0 to
255
for the file number,
but the device number should be
4
unless you have two printers.
If you have two printers connected to your Commodore, you will
sometimes use another device number. See Appendix C for further
information.
After you have opened a file, you send information to the printer
with a PRINT# statement, such as the sample below:
20 PRINT#1,"THE PRINTER PRINTS THIS"
The PRINT# statement is much like the PRINT statement in BASIC
except that it must be followed by the number of a file that has been
opened and a comma. Anything inside quotation marks after that will
be sent to the printer and printed.
As you will see in programs later in this chapter, you can also send
instructions to the printer with a PRINT# statement.
After you have finished with a file, you should close it using the
format below:
30
CLOSE1
All you need for this statement is the word CLOSE and the file num-
ber. If you wish, type in and run the three lines above, which form one
program.
Each time you want to see the results of a program, type RUN and
then press
RETURN.
16
Page view 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 58 59

Comments to this Manuals

No comments