Pro G Ram M Ing The Printer With Basic - Star Micronics NX-1000 User Manual

Multi-font
Hide thumbs Also See for NX-1000:
Table of Contents

Advertisement

* 1
* E
AV in d ic a te s th a t th e fo llo w in g c h a ra c te r is a c o n tro l co d e. AV[ e n ters
th e < E S C > code. < E S C > h a s c h a ra c te r co d e 27, a n d " [" is th e 2 7 th
c h a ra c te r in A S C II se q u en ce fro m A.
co d e < 1 > a n d A V L e n te rs th e c o n tro l co d e < 12 > . See y o u r D O S m a n u a l
if y o u need f u rth e r in fo rm a tio n a b o u t E D L IN .
Y o u ca n n o w set u p th e p rin te r by se n d in g it th e file N L Q E L IT E .D A T .
T o av o id u n n ec essary lo g g in g o f c o m m a n d s , sw itch h a rd -c o p y o u tp u t o f f
(by
p ressing C T R L -P R T S C
R E A D M E .D O C in N L Q elite ty p e, give th e fo llo w in g tw o co m m an d s:
A>COPY NLQELITE.DAT PRN
A>PRINT README.DOC
F o r g re a te r co n v e n ie n ce yon ca n m ak e a b a tc h lile th a t will set up th e
p rin te r a n d p r in t an y specified file w ith a single c o m m a n d . T o c re a te su ch
a b a tc h file w ith the n am e N L Q P R IN I HAT, type in the first fo u r lines sh o w n
n ex t. AZ m e a n s to press th e C T R L a n d Z keys sim u lta n eo u sly . T o use th is
file to p r in t R E A D M E .D O C , ty p e the fifth line
A>COPY CON NLQPRINT.BAT
COPY NLQELITE.DAT PRN
PRINT
A>NLQPRINT README.DOC
T h e first a b o v e line is a co p y c o m m a n d from the < 'O N xole screen to
a file n a m e d N L Q P R IN T .B A T . T h e next tw o lines arc the c o n te n ts o f th is
file. T h e % 1 is a d u m m y p a ra m e te r:
N L Q P R I N T will be su b s titu te d fo r % 1 a n d p rin te d .

PRO G RAM M ING THE PRINTER WITH BASIC

A s a n e x a m p le o f p ro g ra m m in g th e p rin te r in M icro so ft B A SIC , w e
h av e listed th e p r o g ra m fo r th e IB M -P C th a t p rin te d the sa m p le o f fea tu re s
sh o w n a t th e b e g in n in g o f th is m a n u a l. T h is p ro g ra m ru n s in the p rin te r 's
S ta n d a rd m o d e (D IP sw itch 1-6 O N ).
40
1 : * ~ V [ x l "V [ ! " VA^V[X~VL\
2 : * 1 C
if h a rd c o p y is on). T o p r in t th e file
%1
S im ilarly , AV A e n te rs th e c o n tro l
w h a te v e r file nam e y o u type a fte r

Advertisement

Table of Contents
loading

Table of Contents