Star Micronics FR-10, FR-15 manual Sampleprogram, T t p C c

Page 96

T

resulting f

s

b s t t p

u t C c

e

 

 

 

 

A

N

. D

P

 

I

prior to printing document files. Of course, this command can also be included in a batch file.

P

 

U

B

 

 

 

 

A d

e

a v

o B

i u

s

w P

c

m

W t B

c

a s t t p

o

u

t L

c

a c

c

a d

u

t

C

f

 

 

 

 

 

 

Sampleprogram

The following lines of BASIC give examples of how the printer may be driven from within your own programs:

1000

Set control codes

 

1010

E$=CHR$( 27)

Escape code

1020

D$=E$+”XO“

‘Draft quality

1030 L$=E$+’’x1°

‘Letter quality

1040 F$=E$+”k

‘Select font

1050 C$=F$+CHR$(O)+L$

‘Select Courier

1060 H$=CHR$(9)

‘Horizonta1 tab

1070 P$=E$+”P”

‘Pica pitch

1080 ‘ Start printing

 

1090 WIDTH “LPT1:“,255

1100 LPRINT E$;“D”;CHR$(3);C~$ (27);CHR$(O); 1110 LPRINT C$;“Font settings:“

1120 LPRINT H$;D$;“Draft characters,”;L$;

1130 LPRINT H$;F$;CHR$(0);“Couriercharacters,“

1140 LPRINT H$;F$;CHR$(l);’’Sanserifcharacters,”; 1150 LPRINT H$;F$;CHR$(2);“Letter-Gothic,“

1160 LPRINT H$;F$;CHR$(3);“Oratorcharacters,“;

1170 LPRINT H$;F$;CHR$(4);“Scriptcharacters,“

1180 LPRINT H$;F$;CHR$(5);“OCR-B characters,“;

1190 LPRINT H$;F$;CHR$(6);“TW-Lightcharacters,“ 1200 LPRINT H$;F$;CHR$(7);“Cinema characters” 1210 ‘

1220 LPRINT

1230 LPRINT C$;“Print pitches are:”

1240 LPRINT H$;P$;’’Picapitch (10 CPI),”;

1250 LPRINT H$;E$;’’M’’Eliteitepitch (12 CPI),”

1260 LPRINT H$;P$;

1270 LPRINT CHR$(15); ‘Selectcondensedprint

1280 LPRINT “Condensedpica pitch (17 CPI),”;

1290 LPRINT H$;E$;’’M’’Condensedsedelite pitch (20 CPI),”;

1300 LPRINT CHR$(18) ‘Cancelcondensedprint

9

Image 96
Contents MULTI-FONT Page Organizationof this Manual Page Tableof Contents DIP Switches Troubleshooting and Maintenance Specifications Character SetsFrontpaneldiagnosticand INSTALLINGAPPLICATIONSOFI’WAREChapter Locatingthe PrinterPage Settingup Print head shield Connection DIP switch covel Loadingpaper Cut-sheetpaperFanfoldpaper continuousstationery Release lever Sprocket cover Once thepaper has been loaded Controlsand Indicators IndicatorsControls Pitchseiting Pitch Panel LockIocpi Fontseiting Font Panel LockQuietmode Paperhandling Form feedPaperparking Short tear-offfunction BUFFERCLEAR/RESET Test and MaintenancesettingsMicro Feed Setting UP the Memoryswitches Page CommandMenu MenuoptionsFont Menu LinePrint Menu Printpitch Condensed Print ItalicprintAutoloading FormsMenu Skipover PerforationAutocr Linesper Inch Pagelength Ramusage Buffer Quietmode OptionasfAutolf Autocr ONI Linesper InchEmulations NumericalrepresentationCommandcodesand Escapesequences Examplecommand Both ESCFont style and characterset controlcodes Select italic charactersStandard Deselectitalic printingSelectfont Both Select charactertable BothSelect primarycharacterset SeiectsecondarycharactersetSelect internationalcharacterset Esc OAh\ Printcontinuouslyfrom the AHCharactersChart IBM Printasinale characterfrom the All CharacterChart IBM \ ES7\ Select/cancelundefinedcontrolcode area Standard Fontpitch controlcodes Set condensedprint mode Cancelcondensedprint modeSelect/cancelproportionalprintingBoth Specialprint mode controlcodes Set or cancel pica proportionalpitchSeiectkancei expandedprinting Seiectone-iineexpandedprintingBothCancelone-lineexpandedprint Both Select Masterprint mode BothSelect print mode Selectemphasizedprint mode BothCancelemphasizedprint modeBoth Canceldouble-strikeprintingBoth Select/cancelunderlineBothSelect/canceloverlineBoth Select double-strikeprintingCancelsuperscripthubscript Both Line space controlcodesSelect superscriptkubscript LinefeedSet linespacingto 1/8 inch Set iine spacingto 7/72 inchSet iine spacingto 1/6 inch Set iine spacingto n/216 inchSet line spacingto n/72 inch Standard Defineline spacing1/72 inch incrementsExecuteESCAdefinitionIBM One-timelinefeed in 1/216 inch increments BothForm feed controlcodes Reverseone-timelinefeed in 1/216 inch Increments BothSet verticsiprint positionin iines Both FormfeedBoth mReversefeed to top of form Both Set page iengthin iines BothMarginsand verticaltab settingcontrolcodes Set top-of-formMoveto next verticaitab position Set verticaitab positions BothSelectverticalform unit VFUchannel Both Set VFU verticaltabsCanceltop and bottommargins Set top marginSet bottommargin Set left and right margins BothHorizontalprint position controlcodes Set left marginSet right margin Carriagereturn BothSet/cancelautomaticlinefeedIBM Moveto next horizontaltab BothSet/clearhorizontaltabs Both Restoretabs to defaultsettings Set relativehorizontaltab positions BothSet horizontalprint position EscrSet justificationmode ProducecharacterspaceStandardSelect next horizontalprint positionby dot Downloadedcharactercontrolcodes Move print headCopystandardROM font into RAM ~StandardDefinedraft downloadcharacters IBM Byte4 3rd Graphics Select download/standardcharactersetBothSelect-bitimagemode Both Select 8-dot normaldensity Select8-dot doubl-densitySelect8-dot double-speeddouble-density Redefinebit-imagemode BothSelect9-dot graphics Standard Miscellaneouscodes Set MSBtoSet MSBto O CancelMSBcontrol Both Cancellast character StandardSelectzero stvle Both BackspaceBothCancellast line Both Set printeroff-line StandardSet printeron line Deselectprinter1OcarriagemodelonlyIBMEnablepaper-outdetectionBoth Deselectprinter15 carriagemodelonlySound buzzer Enable/disablebidirectionalprinting Both Enableunidirectionalprintingfor one line only BothDefine macroinstructionBoth Enable/disablelargecharacterprintingBoth Enabie/disabiedoubie-heightmode BothSelectcharacterheight,width, line spacing Set/cancelimmediatemode Both ASF AutomaticSheet FeedercontrolAscii commandsequences SelectautomodeSelect/cancelitalic mint SelecticancelunderlineSekcffcancel expandedprint Both ControlASF 28h 43h 29hPage ’’’’’’’ OFF IBM Ipter6 Troubleshooting and Maintenance TroubleshootingPowersupply PrintjngIf the printoutis not what is expected If the print is faint,or uneven,checkthe followingIf dots are missingin the printing,checkthe following Paper feeding Correctthis if necessaryISthe papertoothick? Following Maintenance Adjustingthe PrintinggapRibbonreplacement Print headshield Replacingthe Printhead Open the top coverPrint headbolts Frontpaneldiagnosticand Test Modes Short test modeStandardmode Test mode Texttest mode Int m T MHexadecimaldumpmode B pNext Lprint BidirectionaltestYadjustmentm E f t m p t PITCH’ b Page I P P I b T r F t y p L o p I s T f D s W t u t ‘Mo a T c M c A h T m T D s F t r A i a d Cu t T p O b u o t @ k cN . D T u E Sampleprogram T t p C cT t p Gosub Restore How theprogram works Hm hAl o t p 1i a c 1i i n 1I n I n S 1o cPatchesnecessaryto use the BASICinterpreter T hHP a A N N c O t‘ J 8oX + 3 c8kg 17.61b DATA2 B f T a l ’TI%E14i Il-.1l 11691 11851 I2 mLther charactem are identical to Standard character set #1 ‘ 1’ iJ ‘ iz ‘ ,i 1831 I S t 1 b t P b s 7 on b a 1 1 1 1@ & u 0 a u 6 e 110 Index Page Star Micronics AMERICA, INC Star Micronics Deutschland Gmbh