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

Table of Contents

Advertisement

.
l:WAV[xlAv[!AvA-v[xAvL\
2:*-(-J
"V indicates that the followingcharacter 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 z 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 sendingit the fileNLQELITE.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 followingtwo commands:
A>COPY NLQELITE . DAT PRN
A)PRINT
README. DOC
For greater convenienceyou can make a batch file that will set up the
printer and print any specified tile with a singlecommand. To create such
a batch filewith the name NLQPRINT. BAT, typein the firstfour linesshown
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
%1
"z
A>NLQPRINT
REA~ME . DOC
The first above line is a copy command from the CONsole screen to
a file named NLQPRINT. BAT. The next two lines are the contents of this
file. The
'XO1
is
a dummy parameter: whatever file name you type after
NLQPRINT will be substituted for %1 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 1-6 ON).
40

Advertisement

Table of Contents
loading

Table of Contents