You can now set up the printerby sendingit the file NLQELITE.DAT.To avoidumecessary loggingof commands,switchhard-copyoutputoff (by pressingClllL-PRTSC ifhardcopyis on).ToprintthefileREADME.DOC in NLQ elite type, give the followingtwo commands:

A?COPY NLC?ELITE. PAT PRN

A )PRINT README .DOC

For greaterconvenienceyoucanmakeabatchfde thatwillsetup theprinter and print any specifiedfile with a singlecommand.To createsuch a batch file withthenameNLQPRINT.BAT,typein the firstfourlinesshownnext. ‘Z meansto pressthe CTRLand Z keys simultaneouslyTo. use this file to print README.DOC,type the fifth line.

A ?c@Pj’CON NI.QFT!INT.BAT

COPY NLQELITE . DAT PRN

PRINT %1

.-L

A’?NLQpRINT RE7iDME.DOc

The first line aboveis a copy commandfrom the CONsolescreento a file

namedNLQPRINT.BATThenexttwolinesarethecontentsofthisfile..The %1 is a dummyparameter:whateverfile name you type afterNLQPRINT will be substitutedfor 701and printed.

PROGRAMMING WITH BASIC

As an exampleof programmingthe printeron MicrosoftBASIC,we have listed the program for the IBM-PC. This program runs in the printer’s Standardmode, and the dowrdoadablecondition(DIP switch 1-1 ON and DIP switch 1-2 OFF).

1000

‘ Set control

cedes

 

1010

E$=CHR$(27)

‘Escape

cqde

1020

D$-E$+’’XO”

‘Draft

quality

1030

N$=E$+’’x1°

‘Nearletterquality

1040C$=@+’’kO’’+N$ ‘Couriercharacters

1050S$=E$+’’kl’’+N$ ‘Sarserifcharacters

106001$-E$+’’k7’’+N$ ‘Oratorwithsmal1 capital

107002$=E$+’’k8’’+N$ ‘Oratorwith lowercase

1080H$=CHR$(9) ‘Horizontaltab

1090P$=E$+”P” ‘Picapitch

1100 ‘ Startprinting 1110WIDTH“1.Fll:“,255

82

Page 90
Image 90
Star Micronics LC-20 user manual Programming with Basic, ?Copy Nlc?Elite. Pat Prn