Programming The Printer With Basic - Star Micronics NX-1000 User Manual

Star micronics multi-font printer users manual
Hide thumbs Also See for NX-1000:
Table of Contents

Advertisement

*1 -
1:*-V[xl^V
2:*-c -
i!^VA-V[X^VL\
"E -
"V indicates that the following character is a control code. "V[ enters
the <ESC > code. < ESC>
has character code 27, and "[" is the 27th
character in ASCII sequence from A. Similarly, "VA enters the control
code < 1 > and "VL enters the control code < 12 > . See your DOS manual
if you need further information
about EDLIN.
You can now set up the printer by sending it the file NLQELITE.DAT.
To avoid unnecessary logging of commands, switch hard-copy output off
(by pressing CTRL-PRTSC
if hard copy is on). To print the file
README.DOC
in NLQ elite type, give the following two commands:
A>COPY
NLQELITE.DAT
PRN
A>PRINT
README.
DOC
For greater convenience you can make a batch tile that will set up the
printer and print any specified file with a single command. To create such
a batch file with the name NLQPRINT.BAT,
type in the first four lines shown
next. 'Z means to press the CTRL and Z keys simultaneously. To use this
file to print README.DOC,
type the fifth line.
A>COPY CON NLQPRINT.BAT
COPY NLQELITE.DAT PRN
PRINT %l
-2
A>NLQPRINT README.DOC
The first above line is a copy command from the CONsole screen to
a tile named NLQPRINT.BAT.
The next two lines are the contents of this
file. The %l is a dummy parameter:
whatever tile name you type after
NLQPRINT
will be substituted for %l and printed.
PROGRAMMING
THE PRINTER WITH BASIC
As an example of programming
the printer in Microsoft BASIC, we
have listed the program for the IBM-PC that printed the sample of features
shown at the beginning of this manual. This program runs in the printer's
Standard mode (DIP switch l-6 ON).
40

Advertisement

Table of Contents
loading

Table of Contents