Star Micronics NX-2410 user manual 1220

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> “:” -co> <O> < 0 > (standard mode) or < FS > “:‘* < 0 >

<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. cdl > .. . are the <ml > x 3 bytes of dot data.

4.< ESC > “% i” 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

'

 

 

 

 

 

 

 

 

 

 

 

 

1020

'

 

DOWNLOAD

CHARACTW

 

GENERATOR

FOR 24-WIRE PRINTER

1030

'

 

 

 

 

 

 

 

 

 

 

 

 

1040 I"*""".*.*""."*"**..*.~"""~"*.*~"*"**"*~*""*""*~****.~*""""*..*""

1050 WIDTH "LPT1:",255 :XEY OFF :CLS

 

 

 

 

1060

DIR

A(126). A$(126),

P$(126), DT(24.42) :E$=CHR$(27) :F$=CHRQ(28)

1070

SCQ(O)-"---------

+---------

+---------

 

+---------

+--

,,

1080

SC$(l)-".-

+

+

 

+

+..

~

1090

XEY

l,CHR$(7)

:XEY

2,CHR$(B)

:XEY

3,CHR.$(9)

1100

XEY

4,CHR$(lO)

:XEY

5,CHR$(ll)

:XEY

6,CHR$(12)

1110

FOR

I=33 TO 126 :A(I)=-1

:NEXT

I

 

 

 

1120

I------

PRINT

HWDING

---------

__--------------------------------

 

 

 

 

 

 

 

 

 

1130

LOCATE

1,l

:PRINT

STRING$(25,62);

 

 

 

1140 PRINT " DOWNLOAD CHARACTER GENERATOR ":STRINGQ(25,60)

1150

I----------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

1160 LOCATE 3,l :PRINT "READ CHARACTRRS FROM EXISTING FILE?"

1170

SO$="Yes"

:sl$="No"

:S=-1 :PX-4

:PY-1

:GOSUB

2620 :IF S THEN 1470

llS0

I

 

Open

existing

file

--------------------------------------

 

 

 

 

 

1190

LOCATE

3,l

:PRINT

STRINGS(40.32)

:LGCATE 3.1

 

1200 INPUT "File name";FI$

 

 

 

 

 

 

 

1210 OPEN FIQ FOR INPUT AS #l

 

 

 

 

 

 

1220

1------

Read

ini,--al

 

conunands------------------------------------

 

 

 

1230

I$=INPUTQ(3,#1)

 

 

 

 

 

 

 

 

124D

IF

RIGHT$(I$,l)-"0"

THEN

 

QUA=1

:GOTO

1260

 

92

Image 100
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 Setting the DIP Switches Using Your SoftwareInitialization sequence 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 the printer doesn’t print If fanfold paper becomes stuckIf label 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 Electrical Specifications Fnterface SignalsEnvironmental Requirements OptionKCK OUT Memo Printer Control Commands FdNT Control Commands Select draft quality charactersSelect LQ characters Select LQ type styleSelect ornament character Select italic charactersCancel emphasized printing Cancel double-strike printingSelect Upright Characters Emphasized printingStop Underlining Start OverliningCharacter SET Commands Enable printing of all character codes Enable printing of a// character codes on next characterSelect Slash Zero Select Normal ZeroPica Pitch Elite pitchHigh-speed elite pitch High-density Elite PitchCancel condensed printing Cancel Expanded PrintingCondensed Expanded printingSelect Master Print mode Caocel one-line expanded printingSelect proportional spacing Select fixed spacingIncrease character Spacing Select double or quadruple sizePrint Double-height Characters Return To normalWidth Select CharacterSelect character height, width, and line spacing Vertical Position Commands Select character type and print pitchSet line spacing to 718 inch Set line spacing to 7160 or 7172 inchSet line spacing to 116 inch Set base unit for line spacingSet line spacing to n/180 or n/276 inch Set line spacing to n/360 inchSelect forward feed mode Define line spacing to n/72 inchExecute ESC a Line feedPerform one n/780-inch or n/276-inch line feed Cancel top and bottom margins Set page Iength to n inchesSet bottom margin Form feedDisable paper-out detector Enable paper-out detectorSet vertical tab stops Set vertical tab stops every n linesHorizontal Position Commands Set left marginSelect vertical tab channel TabCancel autoniatic line feed Set left and right marginsCarriage return SetBackspace Left justifyCenter text Right justifyReset 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 co/umnsPrint 8-bit Sing/e-density Graphics Print 8-bit double-density GraphicsPrint 8-bit double-density, double-speed graphics Print Bit quadruple-density GraphicsSelect graphics mode Print 24bit hex-density graphicsSelect Graphics Mode Download Character CommandsConvert graphics Density Copy character set from ROM into RAM cardDefine Download Select download character setOther Printer Control Commands Select ROM characterSet MS6 to Set MS8 toCancel last line Cancel Quiet printRepeat data Quiet printCancel immediate Print Set printer off-lineSet printer on-he Stop printingBidirectional Unidirectional printingOne-line unidirectional 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