Star Micronics NX-1001 manual Programming With Basic

Models: NX-1001

1 130
Download 130 pages 3.26 Kb
Page 91
Image 91
PROGRAMMING WITH BASIC

I

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

A)COF’Y NLQELITE . PAT PRN

A ,>PRINT README . DOC

For greaterconvenienceyoucanmakeabatchfflethatwillsetup theprinter and print any specifiedfde with a singlecommand.To createsuch a batch filewiththenameNLQPRINT.BAT,typein the firstfourlinesshownnext. AZ mems topRSStheCT’RLandZ keys simultaneouslyTO. use thiS file tO

print README.DOC,type the fifth line.

A >COPY CON NLQPRINT . BAT

COPY NLQELITE . DAT PRN

PRINT %1

“z

A->NLQPRINT README . DOC

The first line aboveis a copy commandfrom the CONsolescreento a fde namedNLQPRINT.BAT.Thenexttwolinesarethecontentsofthisfile.The %1 is a dummyparameter:whateverfile name you type afterNLQPRINT will be substitutedfor 901and 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 downloadablecondition(DIP switch 1-1 ON and DIP switch 1-2 OFF).

1000 ‘ Set control cedes

 

 

 

 

1010 E$=CHR(27)$

‘Escape

code

1020 D$-m+’’xo”

‘Draft

quality

1030

N$-E$+’’x1°

‘Near

letter

quality

1040

C$-m+’’kO’’+N$

‘Courier

characters

1050

S$-E$+’’kl’’+N$

‘Sanserif

characters

1060

01$-E$+’’k7’’+N$

‘Orator

with

smal 1 capital

1070

02$-E$+’’k8’’+N$

‘Orator

with

lower case

1080

H$-CHR(9)$

‘Horiz.Ontal

tab

1090

P$=E$+”P”

‘Pica

pitch

 

1100

‘ Start printiq

 

 

 

 

1110

WIMH “LFT1: “,255

 

 

 

 

82

Page 91
Image 91
Star Micronics NX-1001 manual Programming With Basic