Star Micronics LC-20 Printer User Manual


 
Youcannow setup theprinterby sendingit thefileNLQELITE.DAT.To
avoidumecessary loggingof commands,switchhard-copyoutputoff (by
pressingClllL-PRTSC ifhardcopyis on).ToprintthefileREADME.DOC
in NLQ elitetype,givethe followingtwo commands:
A?COPY NLC?ELITE. PAT PRN
A )PRINT README .DOC
Forgreaterconvenienceyoucanmakeabatchfdethatwillsetup theprinter
andprintany specifiedfile witha singlecommand.To createsucha batch
filewiththenameNLQPRINT.BAT,typeinthefirstfourlinesshownnext.
‘Z meansto pressthe CTRLandZkeyssimultaneously.Tousethisfileto
printREADME.DOC,typethe fifthline.
A ?c@Pj’CON NI.QFT!INT.BAT
COPY NLQELITE . DAT PRN
PRINT %1
.-
L
A’?NLQpRINT RE7iDME. DOc
The firstline aboveis a copycommandfromthe CONsolescreento a file
namedNLQPRINT.BAT.Thenexttwolinesarethecontentsofthisfile.The
%1is a dummyparameter:whateverfilenameyoutypeafterNLQPRINT
willbe substitutedfor 701andprinted.
PROGRAMMING WITH BASIC
As an exampleof programmingtheprinteron MicrosoftBASIC,we have
listed the program for the IBM-PC. This program runs in the printer’s
Standardmode,and the dowrdoadablecondition(DIP switch 1-1ON and
DIP switch 1-2OFF).
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$
‘Oratorwithlowercase
1080H$=CHR$(9)
‘Horizontaltab
1090P$=E$+”P”
‘Picapitch
1100 Startprinting
1110WIDTH“1.Fll:“,255
82