Star Micronics NX-2400 user manual Ibm

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).

L.

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 1-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);"5n

'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$(28);" 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$;"2";

'Set

line

spacing

1560

' LPRINT

ES;"

";CHR$(I);

'Increase

character

space

43

Image 51
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 Remove the top cover Setting UPInstall the ribbon cartridge Replace the top cower Install the optional IC cardMount the paper guide Connect the printer to the computerFigure l-7.Mounting the paper guide for single sheets Semiautomatic loadingManual loading Loading and Parking Fanfold Forms 11. Closing the sprocket covers Paper parking Short se/f test Paper unparkingInterface test Long se/f testAdjusting the Printing GAP International character set Print style and pitch selection Page Page OFF Control Panel OPERAllONS Paper Feed switch On Line switchSty/e/Pitch switch Quiet Mode switchSh0ff test paffern On Line switch POWER-UP FunctionsLprint CHR$I Next B8 B9 Switch combination functions of control panel Switch Combination FunctionsTop Of fOff?L Style/Pitch Page Memo Installing Your Software Using WE PR//vERPrinter Command optionsUsing Your Software Setting the DIP SwitchesType sty/e and pitch selection Printercommands Memo HARD-COPYING the Screen MS-DOS and PC-DOS Using the Printer with DOS and BasicName of list device PRN Programming the Printer with DOS CommandsNew file Acopy LQELITE.DAT PRN Aprint README.DOC Programming the Printer with Basic‘Cancel Lprint the Spacings are Changed Next H How the program works IBM Lprint ES= cHR$ocHR$6ocHR$6o Replacing the Ribbon Cleaning the PrinterReplacing the ribbon cartrlctge Replacing the Print HeadConnector cover Fligure 5-2. Replacing the print head Replacing the Battery in the RAM Card If line spacing is twice as wide as expected TroubleshootingIf printing is faint, incomplete, or unclear If a// text is printed on the same lineIf you have problems with graphics If you have problems with download charactersIf you have problems with horizontal tabulation Switches and fndicators Printing MechanismInterface and Emulation Dot Matrix Size Character SetsPaper Specifications Dimensions and WeightType Sty/es and Pitches Option Electrical SpecificationsInterface Signals Environmental RequirementsSignal Pin No Name Memo Select draft quality characters Font Control CommandsSelect Italic Characters Select LQ charactersSelect LQ type Style Select ornament characterSelect Upright Characters Double-strike PrintingStart Underlining Stop Overlining Cancel Superscript Or subscriptStop Underlining Start OverliningSelect Character set #2 Select Standard characterSelect IBM character set Select character set #7Select normal zero Enable printing of all character codesEnable printing of a// character codes on next character Select s/ash zeroHigh-density elite pitch Pica pitchElite pitch High-speed elite pitchExpanded printing Cancel condensed printingCancel expanded printing Condensed printingSelect fixed spacing Select master print modeCaucel one-line expanded printing Se/ect proportional spacingReturn to normal Height Increase character SpacingSelect double or quadruple size Print double-height charactersSelect character height, width, and line spacing Select Character WidthSet 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/360 inch Set line spacing to 716 inchSet base unit for line spacing Set line spacing to n/780 or n/216 inchExecute ESC a Select forward feed modeSelect reverse feed mode Define line spacing to n/72 inchSet top of page at current position Perform one n/180-inch or n/2164nch line feedPerform one n/780-inch reverse line feed Feed paper n linesSet bottom margin Cancel top and bottom marginsSet page length to n inches Set top marginSet vertical tab stops every n lines Disable paper-out detectorEnable paper-out detector Set vertical tab stopsSet right margin Select Vertical Tab channelVertical tab Set left marginSet automatic Line feed Cancel automatic line feedSet left and right margins Carriage returnRight justify BackspaceLeff justify Center textHorizontal tab Reset all tab stopsSet horizontal tab stops Set horizontal tab stop every n columnsAbsolute horizontal tab in columns Relative horizontal TabRelative horizontal tab in inches Absolute horizontal tab in inchesPrint 8-bit double-density, double-speed graphics Graphics CommandsPrint 8-bit single-density graphics Print 8-bit double-density graphicsPrint M-bit hex-density graphics Select graphics modeConvert graphics density Copy standard characters from ROM into RAMDownload Character Select download character set Define DownloadMSB Other Printer Control CommandsDelete Last character Sent ROMLast Line Cancel Quiet PrintRepeat data Quiet PrintStop printing Cancel Immediate PrintSet printer off-line Set printer on-lineManual feed PrintingUnidirectional printing One-line unidirectional printingReset printer Eject PaperSet print start position on ASF Memo Norma/ character AppendixCDOWNLOADSemi-condensed Proportional Super/subscript character Iiao 1600 2440 If ST=5 then CLS Goto 3480 Character Sets Standard Character SET I7’Pj-iii-j IBM Character SET #2 Page IBM CH Aracter SET #I Additional Character SET SfR International Character SetsIndex 111 Lol107 Command Summary ESC ESC p ESC p0 ESC p.‘ 111