‘V indicatesthat the followingcharacteris a controlcode. *V[ enters the <ESC>code.<ESC>has charactercode27, and“[” is the 27thcharacterin ASCII sequencefrom A. Similarly,‘VA enters the controlcode <1>. See your DOS manualif you need t%rtherinformationaboutEDLIN.

You can now set up the printerby sendingit the fileNLQELITE.DAT.To avoidunnecessaryloggingof commands,switchhard-copyoutputoff (by pressing(TIllL-PRTSCifhardcopyis on).ToprintthefileREADME.DOC in NLQ elite type, give the followingtwo commands:

A>COPY NLQELITE . DAT PRN

A>PRINT RIZADME.DOC,

For greaterconvenienceyoucanmakea batchfilethatwillsetup theprinter and print any specifiedfile with a singlecommand.To createsuch a batch file withthenameNLQPRINT.BAT,typein thefirst fourlinesshownnext.

AZ me~s t. pIWSthe CTRLandZ keyssimultaneouslyTO. use this filetO print README.DOC,type the fifth line.

A)COPY CON NLQPRINT . BAT COPY NLQELITE . DAT PRN PRINT %1

“z

A>NLQELITE README. DOC

The first aboveline is a copy commandfrom the CONsolescreen to a file

namedNLQPRINT.BATThenexttwolinesarethecontentsofthisfile..The %1 is a dummyparameter:whateverfile name you type after NLQPRINT willbe substitutedfor %1 and printed.

PROGRAMMING WITH BASIC

As an exampleof programmingthe printeron MicrosoftBASIC,we have listed the program for the IBM-PC. ~is program runs in the printer’s Standardmode, and the downloadablecondition(DIP switch 1-6ON and DIP switch2-1 OFF).

1000 ‘ Set contro 1 codes ————..—————-—-————-.-——.———————————.

1010

E$=CHR$ ( 27)

‘ Escape code

1020

D$=E$+“x’’+CHR$(O)

4Draft quality

1030

N$=E$+ “x’’+CHR(1)$

‘Near letter quality

1040 C$=E$+“kO“+N$

‘Courier characters

1050 S$=E$+“kl“+N$

‘Sanserif characters

1060

Ol$=E$+”k2“+N$

‘Orator with sma11 caplta1s

1070

02$=E$+“k3’’+N$

Orator with 1ower case

1080

H$=CHR$(9)

rHorizontal tab

82

Page 91
Image 91
Star Micronics LC-15 user manual Programming with Basic, Acopy Nlqelite . DAT PRN Aprint RIZADME.DOC