Star Micronics NX-2400 user manual Iiao

Page 100

If you select super/subscript, the character box now has 16 (high) x 7

(wide) dot positions for draft characters, or 16 x 23 dot positions for LQ characters. Each dot is represented by two adjacent solid blocks, occupying its own position and the position to the right. This reflects the fact that the

printer still cannot print horizontally adjacent dots, but that even skipping every other dot, the dots appear joined when printed.

The file created by this program contains the following printer com- mands:

1.< ESC > “:” <O> <O> <O> (standard mode) or <FS> “:” <O>

<0 > < 0 > (IBM mode) to copy the printer’s regular characters into

download memory. If you leave a download character undefined, the regular character will be printed.

2.< ESC > “x” < 0 > or < ESC > “x” < 1 > to select draft or letter quality.

3.One <ESC> “8~” <O> <cc> <cc> <mO> <ml> <m2> cdl>

.. . command for each character defined. <cc > is the character code,

<m0 > is the left hand space byte, < ml > is the character width byte, and cm2 > is the right hand space byte. <pl > .. . are the <ml > x 3 bytes of dot data.

4.< ESC > “% 1” to enable the printer to print the downloaded characters.

This program is coded in Microsoft BASIC for the IBM-PC.

The WIDTH 255 command in line 1050 means infinite line width and prevents the computer from inserting unwanted line feeds in the character data. Some versions of BASIC do not need the WIDTH command.

Check your BASIC manual and make any changes necessary.

1000 1”****“**~******“********************””*~************************

1010 '

1oao ' DOWNLOAD CHARACTER GENERATOR FOR 14-WIRE PRINTER

1030 '

1040 1~***************************"***,*********""""".*"**************

1050 WIDTH "LPTl:",a55 :KEY OFF :CLS

 

 

 

 

 

 

 

1060

DIR A(la6), A$(la6), PS(la6). DT(a4,4a)

:E$=CHR$(a7)

:F$=CHR$(aS)

1070

Qc~(o)*"

---------

+---------

+---------

+---------

 

+--

~~

 

 

1080

sc$(l)*"

.........

+

*.+

+

 

+..

~

 

 

1090

XRY

l,CHR$(7)

:KEY

a,CHR$(E)

:KEY

3,CHR$(9)

 

 

 

1100

KEY

4,CHRQ(lO)

:KEY

5,CHR$(ll)

:KEY

6,CHR$(la)

 

 

1110

FOR I-33 TO la6 :A(I)=-1

:NEXT

I

 

 

 

 

 

 

iiao

I------

 

PRINT HEADING_______----

_____________________________---

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1130

LOCATE

 

1,l :PRINT STRING$(a5,62);

 

 

 

 

 

 

1140

PRINT

u WWNLOAD

CHARACTRR

GENERATOR

 

";STRING$(a5,60)

 

1150

1----------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

1160

LOCATE

3,l :PRINT

"READ CHARACTERS

FROM

EXISTING

FILE?"

1170

SO$="Yes" :Sl$="No"

:s=-i

:PX=I

:PY=~

:GO~~B

asao

:IF

s THEN 1470

1160

I------

 

Open

existing file __-------

~~~~~~~~~~---------

 

~~~~~-~~~~

1190

LOCATE 3,l :PRINT STRING$(40,31)

:LCCATE

3,l

 

 

 

la00 INPUT "Pile name";FI$

 

 

 

 

 

 

 

 

 

la10 OPEN FI$ FOR INPUT AS Cl

 

 

 

 

 

 

 

 

iaao

I------

 

Read

initial

co,,,,,,an~s----------------------------------

 

 

 

 

 

 

la30

I$=INPUTQ(3,#1)

 

 

 

 

 

 

 

 

 

 

la40

IF RIGHT8fI11.11="0"

THEN

OUA=l

:GOTO

la60

 

 

 

92

Image 100
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 Troubleshooting If printing is faint, incomplete, or unclearIf a// text is printed on the same line 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 Electrical Specifications Interface SignalsEnvironmental Requirements OptionSignal Pin No Name Memo Font Control Commands Select draft quality charactersSelect LQ characters Select LQ type StyleSelect ornament character Select Italic CharactersDouble-strike Printing Select Upright CharactersStart Underlining Cancel Superscript Or subscript Stop UnderliningStart Overlining Stop OverliningSelect Standard character Select IBM character setSelect character set #7 Select Character set #2Enable printing of all character codes Enable printing of a// character codes on next characterSelect s/ash zero Select normal zeroPica pitch Elite pitchHigh-speed elite pitch High-density elite pitchCancel condensed printing Cancel expanded printingCondensed printing Expanded printingSelect master print mode Caucel one-line expanded printingSe/ect proportional spacing Select fixed spacingIncrease character Spacing Select double or quadruple sizePrint double-height characters Return to normal HeightSelect Character Width Select character height, width, and line spacingVertical Position Commands Select character type and print pitchSet line spacing to 7160 or 7172 inch Set line spacing to 718 inchSet line spacing to 716 inch Set base unit for line spacingSet line spacing to n/780 or n/216 inch Set line spacing to n/360 inchSelect forward feed mode Select reverse feed modeDefine line spacing to n/72 inch Execute ESC aPerform one n/180-inch or n/2164nch line feed Perform one n/780-inch reverse line feedFeed paper n lines Set top of page at current positionCancel top and bottom margins Set page length to n inchesSet top margin Set bottom marginDisable paper-out detector Enable paper-out detectorSet vertical tab stops Set vertical tab stops every n linesSelect Vertical Tab channel Vertical tabSet left margin Set right marginCancel automatic line feed Set left and right marginsCarriage return Set automatic Line feedBackspace Leff justifyCenter text Right justifyReset all tab stops Set horizontal tab stopsSet horizontal tab stop every n columns Horizontal tabRelative horizontal Tab Relative horizontal tab in inchesAbsolute horizontal tab in inches Absolute horizontal tab in columnsGraphics Commands Print 8-bit single-density graphicsPrint 8-bit double-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 setOther Printer Control Commands Delete Last character SentROM MSBCancel Quiet Print Repeat dataQuiet Print Last LineCancel Immediate Print Set printer off-lineSet printer on-line Stop printingPrinting Unidirectional printingOne-line unidirectional 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