Star Micronics LC-15 Printer User Manual


 
‘V indicatesthatthe followingcharacteris a controlcode.*V[entersthe
<ESC>code.<ESC>hascharactercode27,and“[”isthe27thcharacterin
ASCIIsequencefromA. Similarly,‘VA entersthe controlcode<1>.See
yourDOSmanualif youneed t%rtherinformationaboutEDLIN.
Youcannow setuptheprinterby sendingitthe fileNLQELITE.DAT.To
avoidunnecessaryloggingof commands,switchhard-copyoutputoff (by
pressing(TIllL-PRTSCifhardcopyison).ToprintthefileREADME.DOC
in NLQelitetype,givethe followingtwo commands:
A>COPY NLQELITE . DAT PRN
A>PRINT RIZADME.DOC,
Forgreaterconvenienceyoucanmakeabatchfilethatwillsetup theprinter
andprintany specifiedfile witha singlecommand.To createsucha batch
filewiththenameNLQPRINT.BAT,typeinthefirstfourlinesshownnext.
AZ me~s t. pIWStheCTRLandZ keyssimultaneously.TO usethisfiletO
printREADME.DOC,typethe fifthline.
A)COPY CON NLQPRINT . BAT
COPY NLQELITE . DAT PRN
PRINT %1
“z
A>NLQELITE README. DOC
The first abovelineis a copycommandfromthe CONsolescreento a file
namedNLQPRINT.BAT.Thenexttwolinesarethecontentsofthisfile.The
%1is a dummyparameter:whateverfilenameyoutypeafterNLQPRINT
willbe substitutedfor %1andprinted.
PROGRAMMING WITH BASIC
As an exampleof programmingtheprinteron MicrosoftBASIC,wehave
listed the program for the IBM-PC.~is program runs in the printer’s
Standardmode,andthedownloadablecondition(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)
4
Draft 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