Star Micronics NX-2410 user manual

Page 51

Actual printing begins in line 1120. Using the preassigned commands, the program prints samples of its different type styles, including a line showing all styles in italics, followed by samples of the print pitches, then some double and quadruple-sized printing.

Next comes the central attraction of the program: a line of text printed fourteen times in expanding and contracting loops to give a barrel effect. The work is done by four printer commands: a command setting the right margin (line 1460); a centering command (line 1480); a command to vary the line spacing (lines 1500 and 1550); and a command to micro-adjust the space between characters (lines 1510 and 1560).

Next the program returns to normal spacing and gives a demonstration of the printer’s word-processing abilities: outlined printing, bold printing, underlining, subscripts, etc.

The row of telephone symbols in the next printed line is created by downloading two new character patterns, which are printed in place of the character “ < ” (character 60). Details can be found in Appendix C.

The final part of the program uses dot graphics to print an “S&S” logo. The dot pattern of the logo was originally laid out on graph paper, then converted to the data in lines 3240 to 3630 with the help of a calculator.

Each number represents eight vertical dots. (See “Graphics commands” in Appendix B for details.)

The pattern is printed in four rows, each eight dots high and 100 dots wide. Lines 1980 to 2050 read the dot data into a string array variable named LOGO$. Line 2060 sets the line spacing to 8/60 inch so that the rows will connect vertically. The loop in lines 2070 to 2120 does the printing in four passes of the print head.

This program can also be run in IBM mode (DIP switch l-6 OFF) if you change a few of the lines as shown below to allow for differences in some of the commands. You will get a cylinder instead of a barrel effect, becuase the IBM mode does not have any command to micro-adjust the character spacing.

Modifications for IBM mode:

1090 PI$=CHR$(.18) 'Pica pitch

1190 LPRINT CHR$(28);"4"; 'Select italics

1220 LPRINT CHR$(28);"5" 'Cancel italics

1260 ' LPRINT H$;E$;"g";" Semi-condensed pitch (15 CPI),"; 1300 ' LPRINT H$;E$;"M";' Condensed elite pitch (20 CPI),"; 1400 ' LPRINT H$;CHR$(26);'*E";CHR$(2);"Triple width,"; 1460 LPRINT CHR$(28);"Q";CHR$(47) 'Set right margin

1500 LPRINT E$;"A";CHR$(I);E$;"Z": 'Set line spacing

1510 ' LPRINT ES;" ";CHR$(I); 'Increase character space

1550 LPRINT E$;"A";CHR$(I);E$;"Z"; 'Set line spacing

1560 ' LPRINT ES;” ";CHR$(I); 'Increase character space

43

Image 51
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 Chapter Check the carton contentsPage Remove the top cower Setting UPInstall the ribbon cartridge Lnsfall the optional IC card Replace the top coverConnect the printer’s power cord Connect the printer to the computerMount the paper guide Figure i-7. Mounting the paper guide for single sheets Semiautomatic loadingManual loading Opening the rear cover Loading and Parking Fanfold FormsClamp Lever Figure l-72. Mounting the paper guide for fanfold forms Paper parkingTest Printing Interface test Long self testAdjusting the Printing GAP IBM Page Selected Mode You OFF Chapter Switches and IndicatorsPaper feed switch On Line switchQuiet Mode switch Short test pattern On Line switch POWER-UP FunctionsLprint CHR$I Next Return Switch combination functions of control panel Switch Combination FunctionsPage Page Memo Printer menu Installing Your SoftwarePrinter command options Type stylesWidth Alignment Setting the DIP SwitchesUsing Your Software Initialization sequenceType style and pitch selection Other printer commandsCan help you to use ESC4italicESC5 print Memo HARD-COPYING the Screen MS-DOS and PC-DOS With DOS and BasicAprint README.DOC Programming the Printer with DOS CommandsNew file Acopy CON LQPRINT.BAT Programming the Printer with BasicLprint Lprint END How the program works Page Lprint ES= c~$oc~$6oc~$6o RkPLACING the Ribbon Cleaning the PrinterReplacing the ribbon cartridge Replacing the Print HeadReplacing the print head ScrewsReplacing the battery Replacing the Battery in the RAM CardIf a// text is printed on the same line If the printer doesn’t printIf fanfold paper becomes stuck If label paper becomes stuckIf you have problems with horizontal tabulation If you have problems with graphicsIf you have problems with download characters Interface and Emu/a tion Switches and indicatorsCharacter Sets Dot Matrix SizePaper Specifications Dimensions and WeightType Sty/es and Pitches Option Electrical SpecificationsFnterface Signals Environmental RequirementsKCK OUT Memo FdNT Control Commands Select draft quality characters Printer Control CommandsSelect italic characters Select LQ charactersSelect LQ type style Select ornament characterEmphasized printing Cancel emphasized printingCancel double-strike printing Select Upright CharactersStart Overlining Stop UnderliningCharacter SET Commands Select Normal Zero Enable printing of all character codesEnable printing of a// character codes on next character Select Slash ZeroHigh-density Elite Pitch Pica PitchElite pitch High-speed elite pitchExpanded printing Cancel condensed printingCancel Expanded Printing CondensedSelect fixed spacing Select Master Print modeCaocel one-line expanded printing Select proportional spacingReturn To normal Increase character SpacingSelect double or quadruple size Print Double-height CharactersSelect Character WidthSelect character height, width, and line spacing Set 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/360 inch Set line spacing to 116 inchSet base unit for line spacing Set line spacing to n/180 or n/276 inchLine feed Select forward feed modeDefine line spacing to n/72 inch Execute ESC aPerform one n/780-inch or n/276-inch line feed Form feed Cancel top and bottom marginsSet page Iength to n inches Set bottom marginSet vertical tab stops every n lines Disable paper-out detectorEnable paper-out detector Set vertical tab stopsTab Horizontal Position CommandsSet left margin Select vertical tab channelSet Cancel autoniatic line feedSet left and right margins Carriage returnRight justify BackspaceLeft justify Center textHorizontal tab ResetSet horizontal tab stops Set horizontal tab stop every n columnsAbsolute horizontal tab in co/umns Relative horizontal TabRelative horizontal tab in inches Absolute horizontal tab in inchesPrint Bit quadruple-density Graphics Print 8-bit Sing/e-density GraphicsPrint 8-bit double-density Graphics Print 8-bit double-density, double-speed graphicsPrint 24bit hex-density graphics Select graphics modeCopy character set from ROM into RAM card Select Graphics ModeDownload Character Commands Convert graphics DensitySelect download character set Define DownloadSet MS8 to Other Printer Control CommandsSelect ROM character Set MS6 toQuiet print Cancel last lineCancel Quiet print Repeat dataStop printing Cancel immediate PrintSet printer off-line Set printer on-heManual feed BidirectionalUnidirectional printing One-line unidirectional printingReset Printer Eject paper From ASFSet print start position on ASF Memo Normal character AppendixcDOWNLOADDraft 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 IBM Character SET #l I‘?Additional Character SET International Character Sets # $ h o 0 §Index Irl 107 Command Summary 109 Select base unit for line spacing 111