Star Micronics NX-2400 user manual Programming the Printer with Basic

Page 46

l:*“V[xlV[!-VA’V[XVL\

2:*-c

-

*E

-

“V indicates that the following character is a control code. “V[ enters the < ESC > code. <ESC > has character code 27, and “[” is the 27th character in ASCIIsequence 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 -2

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

tile. 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 NX-2400 Page HOW to USE this Manual Features of the Printer Quad-sized Tableofcontents With DOS and Basic Download Character Generator Chapter Platen Setting UP Remove the top coverInstall the ribbon cartridge Install the optional IC card Replace the top cowerConnect the printer to the computer Mount the paper guideSemiautomatic loading Figure l-7.Mounting the paper guide for single sheetsManual loading Loading and Parking Fanfold Forms 11. Closing the sprocket covers Paper parking Paper unparking Short se/f testLong se/f test Interface testAdjusting the Printing GAP International character set Print style and pitch selection Page Page OFF Control Panel OPERAllONS On Line switch Paper Feed switchQuiet Mode switch Sty/e/Pitch switchPOWER-UP Functions Sh0ff test paffern On Line switchLprint CHR$I Next B8 B9 Switch Combination Functions Switch combination functions of control panelTop Of fOff?L Style/Pitch Page Memo Using WE PR//vER Installing Your SoftwareCommand options PrinterSetting the DIP Switches Using Your SoftwareType sty/e and pitch selection Printercommands Memo Using the Printer with DOS and Basic HARD-COPYING the Screen MS-DOS and PC-DOSProgramming the Printer with DOS Commands Name of list device PRNNew file Programming the Printer with Basic Acopy LQELITE.DAT PRN Aprint README.DOC‘Cancel Lprint the Spacings are Changed Next H How the program works IBM Lprint ES= cHR$ocHR$6ocHR$6o Cleaning the Printer Replacing the RibbonReplacing the Print Head Replacing the ribbon cartrlctgeConnector cover Fligure 5-2. Replacing the print head Replacing the Battery in the RAM Card If a// text is printed on the same line TroubleshootingIf printing is faint, incomplete, or unclear If line spacing is twice as wide as expectedIf you have problems with download characters If you have problems with graphicsIf you have problems with horizontal tabulation Printing Mechanism Switches and fndicatorsInterface and Emulation Character Sets Dot Matrix SizeDimensions and Weight Paper SpecificationsType Sty/es and Pitches Environmental Requirements Electrical SpecificationsInterface Signals OptionSignal Pin No Name Memo Font Control Commands Select draft quality charactersSelect ornament character Select LQ charactersSelect LQ type Style Select Italic CharactersDouble-strike Printing Select Upright CharactersStart Underlining Start Overlining Cancel Superscript Or subscriptStop Underlining Stop OverliningSelect character set #7 Select Standard characterSelect IBM character set Select Character set #2Select s/ash 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 printing Cancel condensed printingCancel expanded printing Expanded printingSe/ect proportional spacing Select master print modeCaucel one-line expanded printing Select fixed spacingPrint double-height characters Increase character SpacingSelect double or quadruple size Return to normal HeightSelect Character Width Select character height, width, and line spacingSet line spacing to 7160 or 7172 inch Vertical Position CommandsSelect character type and print pitch Set line spacing to 718 inchSet line spacing to n/780 or n/216 inch Set line spacing to 716 inchSet base unit for line spacing Set line spacing to n/360 inchDefine line spacing to n/72 inch Select forward feed modeSelect reverse feed mode Execute ESC aFeed paper n lines Perform one n/180-inch or n/2164nch line feedPerform one n/780-inch reverse line feed Set top of page at current positionSet top margin Cancel top and bottom marginsSet page length to n inches Set bottom marginSet vertical tab stops Disable paper-out detectorEnable paper-out detector Set vertical tab stops every n linesSet left margin Select Vertical Tab channelVertical tab Set right marginCarriage return Cancel automatic line feedSet left and right margins Set automatic Line feedCenter text BackspaceLeff justify Right justifySet horizontal tab stop every n columns Reset all tab stopsSet horizontal tab stops Horizontal tabAbsolute horizontal tab in inches Relative horizontal TabRelative horizontal tab in inches Absolute horizontal tab in columnsPrint 8-bit double-density graphics Graphics CommandsPrint 8-bit single-density graphics Print 8-bit double-density, double-speed graphicsSelect graphics mode Print M-bit hex-density graphicsCopy standard characters from ROM into RAM Convert graphics densityDownload Character Define Download Select download character setROM Other Printer Control CommandsDelete Last character Sent MSBQuiet Print Cancel Quiet PrintRepeat data Last LineSet printer on-line Cancel Immediate PrintSet printer off-line Stop printingOne-line unidirectional printing PrintingUnidirectional printing Manual feedEject Paper Reset printerSet print start position on ASF Memo AppendixCDOWNLOAD Norma/ characterSemi-condensed Proportional Super/subscript character Iiao 1600 2440 If ST=5 then CLS Goto 3480 Character Sets I7’ Standard Character SETPj-iii-j IBM Character SET #2 Page IBM CH Aracter SET #I Additional Character SET International Character Sets SfRIndex Lol 111107 Command Summary ESC ESC p ESC p0 ESC p.‘ 111