Star Micronics NX-2410 user manual Programming the Printer with Basic, Acopy CON LQPRINT.BAT

Page 46

l:*-V[xl-V[!-VAV[XVLl

2-*.-c!-

*E

^V indicates that the following character is a control code. ^V[ enters the < ESC > code. < ESC > has character code 27, and “r’ is the 27th character in ASCII sequence from A. Similarly, ^VA enters the control code

<1 > and “VL enters the control code < 12 > . See your DOS manual if

you need further information about EDLIN.

You can now set up the printer by sending it the file LQELITE.DAT.

To avoid unnecessary logging of commands, switch hard-copy output off

(by pressing CTRL-PRTSC if hard copy is on). To print the file

README.DOC in LQ elite type, give the following two commands:

A>COPY LQELITE.DAT PRN

A>PRINT README.DOC

For greater convenience you can make a batch file that will set up the

printer and print any specified file with a single command. To create such

a batch file with the name LQPRINT.BAT, type in the first four lines shown

next. “Z means to press the CTRL and Z keys simultaneously. To use this

file to print README.DOC, type the fifth line.

A>COPY CON LQPRINT.BAT

COPY LQELITE.DAT PRN

PRINT

%l

 

 

 

 

 

 

 

 

 

^Z

 

 

 

 

 

 

 

 

 

A>LQPRINT

README.DOC

 

 

 

 

 

 

The ‘first above line is a copy command from the CONsole screen to

 

a file

named

LQPRINT.BAT.

The next

two lines

are

the

contents

of this

 

file.

The %l

is a

dummy

parameter:

whatever

file

name

you type

after

--

LQPRINT will be substituted for %l and printed.

PROGRAMMING THE PRINTER WITH BASIC

As an example of programming the printer in Microsoft BASIC, we have listed the program for the IBM-PC that printed the sample of features shown at the beginning of this manual. This program runs in the printer’s Standard mode (DIP switch l-6 ON).

38

Image 46
Contents MULTI-FONT Relocate the computerorprinterwithrespectto the mceiver HOW to USE this Manual Features of the Printer Quad-sized Tableofcontents Commercial Software Download Character Generator Check the carton contents ChapterPage Setting UP Remove the top cowerInstall the ribbon cartridge Replace the top cover Lnsfall the optional IC cardConnect the printer to the computer Connect the printer’s power cordMount the paper guide Semiautomatic loading Figure i-7. Mounting the paper guide for single sheetsManual loading Loading and Parking Fanfold Forms Opening the rear coverClamp Lever Paper parking Figure l-72. Mounting the paper guide for fanfold formsTest Printing Long self test Interface testAdjusting the Printing GAP IBM Page Selected Mode You OFF Switches and Indicators ChapterOn Line switch Paper feed switchQuiet Mode switch POWER-UP Functions Short test pattern On Line switchLprint CHR$I Next Return Switch Combination Functions Switch combination functions of control panelPage Page Memo Installing Your Software Printer menuType styles Printer command optionsWidth Initialization sequence Setting the DIP SwitchesUsing Your Software AlignmentOther printer commands Type style and pitch selectionCan help you to use ESC4italicESC5 print Memo With DOS and Basic HARD-COPYING the Screen MS-DOS and PC-DOSProgramming the Printer with DOS Commands Aprint README.DOCNew file Programming the Printer with Basic Acopy CON LQPRINT.BATLprint Lprint END How the program works Page Lprint ES= c~$oc~$6oc~$6o Cleaning the Printer RkPLACING the RibbonReplacing the Print Head Replacing the ribbon cartridgeScrews Replacing the print headReplacing the Battery in the RAM Card Replacing the batteryIf label paper becomes stuck If the printer doesn’t printIf fanfold paper becomes stuck If a// text is printed on the same lineIf you have problems with graphics If you have problems with horizontal tabulationIf you have problems with download characters Switches and indicators Interface and Emu/a tionDot Matrix Size Character SetsDimensions and Weight Paper SpecificationsType Sty/es and Pitches Environmental Requirements Electrical SpecificationsFnterface Signals OptionKCK OUT Memo Printer Control Commands FdNT Control Commands Select draft quality charactersSelect ornament character Select LQ charactersSelect LQ type style Select italic charactersSelect Upright Characters Cancel emphasized printingCancel double-strike printing Emphasized printingStop Underlining Start OverliningCharacter SET Commands Select Slash Zero Enable printing of all character codesEnable printing of a// character codes on next character Select Normal ZeroHigh-speed elite pitch Pica PitchElite pitch High-density Elite PitchCondensed Cancel condensed printingCancel Expanded Printing Expanded printingSelect proportional spacing Select Master Print modeCaocel one-line expanded printing Select fixed spacingPrint Double-height Characters Increase character SpacingSelect double or quadruple size Return To normalWidth Select CharacterSelect character height, width, and line spacing Set line spacing to 718 inch Vertical Position CommandsSelect character type and print pitch Set line spacing to 7160 or 7172 inchSet line spacing to n/180 or n/276 inch Set line spacing to 116 inchSet base unit for line spacing Set line spacing to n/360 inchExecute ESC a Select forward feed modeDefine line spacing to n/72 inch Line feedPerform one n/780-inch or n/276-inch line feed Set bottom margin Cancel top and bottom marginsSet page Iength to n inches Form feedSet vertical tab stops Disable paper-out detectorEnable paper-out detector Set vertical tab stops every n linesSelect vertical tab channel Horizontal Position CommandsSet left margin TabCarriage return Cancel autoniatic line feedSet left and right margins SetCenter text BackspaceLeft justify Right justifySet horizontal tab stop every n columns ResetSet horizontal tab stops Horizontal tabAbsolute horizontal tab in inches Relative horizontal TabRelative horizontal tab in inches Absolute horizontal tab in co/umnsPrint 8-bit double-density, double-speed graphics Print 8-bit Sing/e-density GraphicsPrint 8-bit double-density Graphics Print Bit quadruple-density GraphicsSelect graphics mode Print 24bit hex-density graphicsConvert graphics Density Select Graphics ModeDownload Character Commands Copy character set from ROM into RAM cardDefine Download Select download character setSet MS6 to Other Printer Control CommandsSelect ROM character Set MS8 toRepeat data Cancel last lineCancel Quiet print Quiet printSet printer on-he Cancel immediate PrintSet printer off-line Stop printingOne-line unidirectional printing BidirectionalUnidirectional printing Manual feedEject paper From ASF Reset PrinterSet print start position on ASF Memo AppendixcDOWNLOAD Normal characterDraft characters Pica Super/subscript character 1220 Then QUA=2 Else QUA=0 CLS Locate PX,PY Print ISO$ Plot chara,-.ter ------------~-~----~-~-~~~~-~~~~~ Character Sets Standardcharacterset IuIX Ih Y I-G- I-G- l-7 Page I‘? IBM Character SET #lAdditional Character SET # $ h o 0 § International Character SetsIndex Irl 107 Command Summary 109 Select base unit for line spacing 111