Star Micronics 8 Series User manual

Category
Print & Scan
Type
User manual
L 8
Series
A M
8
Series
Applications Manual
Trademark Acknowledgements
LaserPrinter 8: StarMicronicsCo., Ltd.
PageMaker: Aldus CqSOraticsr
Apple II +, Applesoft: AppleComputerInc.
BitStream,~apf Humanist: BitstreamInc.
Canon: CanonInc.
Centronics: CentronicsData Computer Corporation
HP, LaserJet Series H: Hewlett-PackardCompany
LaserControl: Insight Developmentfrrc.
IBM PC, IBM Proprinter: InternationalBusinessMachinesCorp.
Optim~ Century Schoolbook: LinotypeCorporation
Lotus 1-2-3: Lotus Development Corporation
MS-DOS, Microsoft BASIC, Windows, Word, Microsoft BASIC: Microsoft Corporation
MultiMate: Muhrrratefntemational
TRS-80: RadioShack,a division of TandyCorporation
Epson, EX-800: Seiko EpsursCorporation
WordPerfect: WordPerfect Corporation
Ventura Publisher, Hyplot, Diablo 630: XeroxCorporatimr
NOTICE
. Alf rights reserwed.Reproduction of any part of this manual in any form whatsoever without
STAR’s express permission is forbidden.
. The contents of this manual are subject to change without notice.
. AUeffons have been made to ensure the accuracy of the contents of this manual at the time of
press. However, sbould any errors be detected, STAR woufdgreatly appreciate being informed
of them.
. The above rrotwithstarrding,STAR can assume no responsibility for any errors in this manual.
@Copyright 1989Star MicrcsticsCo., Ltd.
PREFACE
About this manual
ThisSrarLuserPrinter8 ApplicationsManual givesyou the information
youneedto programtheStarMicronicsLaserPrinter8.
Whywouldyoureadthisbook? Mostpeopleusingalaserprinterjust run
softwarepackageswithbuilt-inprinterdrivers,whichlookaftereverything
theircomputerssendtheirprinters.Butmanyofus-small businesspeople
and home computerusers, not to mentionthe wizardswho write those
softwarepackages—wanttobenefitfromallthenewfeaturesofferedbyour
printers.
Doyouwantcompletecontroloverthecharactersandimagesyoupnnt? Do
youwantto makeyourStarLaserPrinter8 worklikesomeearlierkindof
printer? Thismanualprovidesthesoftwarehelpyouneedto getthemost
fromyourLaserPrinter8.
Thoughthis ApplicationsManual is reallyintendedfor intermediateto
advancedcomputerusers,we’vetriedtoaccommodaterelativenovicestoo.
The informationis organizedso youcan walkthroughthe generaltheory
underlyingprinterprogrammingbefore dancinginto specificdetails. It
makessense,therefore,to readthefirstthreechaptetxbeforejumpinginto
themiddle.
There’sagoodreasontoreadeachchapterfromitsstarttoo.Peoplelearning
howtouseanewprinteroftenfindtheterminologyabarrier. Soinsteadof
buryingwhatmaybencwjargonin aGlossaryattheback,wedefineeach
newtermthefirsttimeitappears.Thewholefirstpartofthechapteronfonts,
forexample,definesdifferentaspectsofafont (acollectionofcharactersof
thesamesizeandstyle).
What’s in this manual?
.
.
.
.
In “Gettingto KnowYourStarLaserPrinter8“weprovidea listof the
featuresthat make this a splendidprinter,to help you choosewhich
featuresyouwantto exploit. There’sabit onhowlaserprinterswork,
insideandout. Thechapterthenexplainssoftwarein generalterms,in-
cluding how to write control and Escape commandsto make those
featureswork.
“ControllingYour Printer” examinesthe parameters and “superset”
commandsyougivetheStarLaserPrinter 8to directpreciselyhowyou
wantittobehave.Theseletyoucontroltheprinter,managepageformats,
andspecifywhatyouwantprinted.
Formostof us, the“Fonts”chapterwillbeuseful: howtousethefonts
built i_ntothe LaserPrinter8, plus those that come on cartridgesor
computerdisks.
Youmay neverlook at morethanoneor two of chapters4 through7,
which cover Star LaserPrinter8 commands. Your LaserPrinter8
emulatesotherprintem:itimitatesotherpnntembyacceptingthesame
commandstheydo. JustthinkofyourStarLaserPrinter8 asfourprinters
hidinginsideoneunit.
Ifyouwanttowriteormodifyaprogramthatusesoneoftheseprinters—
theHewlett-PackardLaserJetseriesII,EpsonEX-800,IBMProprinteror
XeroxDiablo630- chapters4 through7 showhow yourStarLaser-
Printer8 canemulatetoaccordingly.Thechaptersfirstdescribehowto
controltheprinterandtoformatpages,thenhowtomovetheprintposi-
tion,andfinallyhowto usefontsandgraphics.
ThechapterontheLaserJetseries11islongerandmoredetailedthanthe
others.That’sbecauseyouaremorelikelytouselaserprintercommands
than commandsfor dot matrix or daisywheelprinters. (If you have
softwaredesignedonlyfordotmatrixor daisywheelprinters,youmay
have manualsfor those printersanyway.) We recommendyou use
LaserJetseriesII emulationwheneverpossible,withEX-800emulation
as yourbackupmode.
Thefinal“TechnicalSupplement”containingthecommandandcharac-
ter referencetableswillprobablygetthumbedthemost.
Conventions
Incidentally,oneofthoseTechnicalSupplementtablessuggestsacoupleof
typographicconventionswe’lluse.Baseten(decimal)numberswillgener-
allybe usedhere;if we haveto usebasesixteennumbers(hexadecimal)
we’llexpresslysayso.
Andsecond,thelowercaseLispracticallyidenticaltothenumberone(1vcr-
sus 1). BecauselowercaseL isusedinmanycommanddescriptions,we’ll
usethecharactert’toavoidconfusion.
The Star LaserPrinter 8 Operations Manual
ThismanualisthecompaniontotheStarLaserPrinter8OperationsManual
thatcamewithyourprinter.Alaserprinterisa fairlycomplextoolthatre-
quirescareanddelicatehandling.SotousethisApplicationsManual best,
makesureyouunderstandthatOperationsManual first.
Your OperationsManual holds essentialinformationabout the Lascr-
Pnnter,8,suchashowto:
unpackandsetup yourlaserprinter,
connecttheStarLaserPrinter8 toyourcomputer’sserialorparallelport,
iinktheLaserPrinter8 intoa networkof severalcomputers,
configuretheLaserPrinter8to yourneeds(wilhvanablcssuchaspaper
sizeandspeedof datatransfer),
loadpaperandthetonercartridge,
operatethepanelswitchesanddisplay,
runthe LaserPrinter8self-test,
lookafteryourprinterto keepit in peakcondition.
TABLE OF CONTENTS
CHAPTER 1 GETTING TO KNOW YOUR STAR
LASERPRINTER 8
1
Star
LaserPrinter8Hardware.................................................................1
StarLaserPrinter8 Software..................................................................5
CHAPTER 2 CONTROLLING YOUR PRINTER
13
PrinterParameters................................................................................13
ControllingthePrinter..........................................................................16
ControllingthePage.............................................................................21
ControllingthePrinting........................................................................28
TheStarLaserPrinter8 Superset.........................................................29
CHAPTER 3 FONTS
35
FontTerminology.................................................................................35
HowtheStarLaserPrinter8 StoresFonts............................................38
SymbolSets..........................................................................................41
ManagingFonts....................................................................................44
CHAPTER4 HPLASERJETII COMMANDS
51
HPLaserJetIICommands....................................................................51
ControllingthePrinter..........................................................................53
PageOrientation...................................................................................56
MovingthePrintPosition.............................................................,.......61
ControllingFonts..................................................................................70
UsingYourOwnFonts...........:......,......................................................85
Graphics................................................................................................89
Macros..................................................................................................94
CHAPTER 5 EPSON EX-800 COMMANDS
99
EX-800Commands..............................................................................99
ControllingthePrinter........................................................................101
FormattingPages................................................................................102
MovingthePrintPosition............... ...................................................105
ControllingFonts................................................................................110
Graphics.............................................................................................119
CHAPTER 6 IBM PROPRINTER COMMANDS
125
ProprinterCommands.........................................................................125
ControllingthePrinter........................................................................126
FormattingPages................................................................................127
MovingthePrintPosition...................................................................127
ControllingFonts................................................................................13(J
Graphics..............................................................................................133
CHAPTER 7 XEROX DIABLO630COMMANDS
135
DiabloCommands..............................................................................135
ControllingthePrinter........................................................................136
FormattingPages................................................................................137
MovingthePrintPosition...................................................................140
ControllingFonts................................................................................145
Graphics
..............................................................................................
l~g
CHAPTER 8 TECHNICAL SUPPLEMENT
153
Commandsummary...........................................................................154
Symbolsets
........................................................................................162
INDEX
213
ThischapterintroducesboththehardwareandsoftwareaspectsoftheStar
LaserPrinter8’s personality,from fonts and print engineto ASCII and
Escapesequences.
STAR LASERPRINTER 8 HARDWARE
Versatility
YourStarMicronicsStarLaserPrinter8workswithpracticallyallcommcr-
cialsoftwareprogramsandcomputers.WithfeaturesthatgobeyondStar’s
easy,affordable9-pinandfast,quality-printing24-pindotmatrixprinters,
the Star Laser Printer is the logicalnext step in the series of fine Star
Micronicsprinters.
Your Star LaserPrinter 8 produces pages that look close to typeset quality,
with up to 90,000 dotsper square inch— no more NLQ (near letter quality)
compromises.
The Star LaserPrinter8 produceseight of those pages a
minute,Thesenumberstranslateto aboutfivetimesmore resolutionand
speedthantheaveragedot-matrixprinter.
Star’snewprinterisremarkablyversatile.Youcanprintcomplicatedforms
(widthwiseif youwant)... detailedgraphs... yourown customizedtype-
styles... digitizedphotographs... otherlanguages(includingArabicand
Japanese).
Youcan even printyourletterheadandlogo as youprintyourletter,and
reprintthem directlyonto a businessenvelope.You don’t even need to
removethepapertraytoprinttheenvelope:justslideitintothemanualfeed
slot.
1
TheStarLaserPrinter8isidealfordesktoppublishing.Thepagesitproduces
makeperfectphotocopyorinstant-printmasters.Andallthemaindesktop
publishingsystems,includingAldusCorporation’sPageMakerandXerox
VenturaPubisher,worksplendidlywiththeStarLaserPrinter8.With’’page
makeup”programsliketheseyouwillbe able—maybeforthefirsttime—
to delivercommunicationswiththe impactoftop-notchgraphics.
Font options
Youcan print withan amazinglywidevarietyoftypefontsandsizes.The
StarLaserPrinter8comeswithfourbuilt-infonts,whichcanbeprintedfrom
8.5pointsto 12pointsin size(apointis about1/72of an inch).
Thesefontsarc:
Courier
Prestige Elite
Tms Romn
Lino Pr intar
Besidesfiese, youmaybe abletouseoptionalcartridgesanddisksto give
yourStarL&serPnnter8 a varietyof extrafonts,suchas these:
Helvet
linedrawing
LetterGothic presentationfonts
Bar codes opticalcharacterreaderfontsuniversalproductcode
You can load your Star LaserPrinter8’smemory with fonts stored on
computerdisks.Literallyhundredsof fonts are marketedby font-supply
companies.Somefontsareevenobtainablefromcomputer“usergroups”or
“electronicbulletinboards”.Fontsyougetthiswayareinthepublicdomain,
whichmeansyoudon’tneedto pay alicencefeeto usethem.
Ask your Star LaserPrinter8 dealer aboutresourceslike these. Desktop
publishingwith laser printers is fast-changingterritory, and some Star
Micronicsstaffpeoplehavefoundelectronicbulletinboardsandcomputer
usergroupsquitehelpfulinkeepingupwiththechangingpace.Ifyouinvest
a littletimethiswayit mayrepayyou’well.
2
How your Iaserprinter communicates
YourcomputercommunicateswiththeStarLaserPrinter8througheithera
parallelcableoroneof twokindsof serialcable.Theprinter’sinterj2ace,
the link or boundaryit shares with yourcomputer,defineswhetherthe
printerwillacceptcharactersandcommandsfromyourcomputeronebyte
or onebit at a time.
Abitisthesmallestunitofcomputerorprintermemory.Ithaseitheralow
orhighelectriccharge,whichwerepresentwiththedigitsOand1.Usually
eight adjacentbits are groupedto form a byte. Since a byte normally
representsonecharacter,thisstringofbits- O1OOOOO—mightrepresent
theletterA.
The serialinterfaceacceptsjust one bitat a time fromyourcomputer.A
parallelinterfacecanhandleawholebyteatonce,bymovingdatabitsside-
by-sidealongseparatewires.Youchoosewhichinterfacemethodyouwant
to use by selectingit on the operatorpanel, as explainedin your Star
LaserPrinter8 OperationsManual.
The Star LaserPrinter 8 is a computer
TheStarLaserPrinter8 firstmapsthecharactersto beprintedintoitsown
randomaccessmemory(RAM).Thatis,theprinterbuildsa“picture”inits
memorycorrespondingtothepageyouwanttoprint.Whenthat’sdonethe
pnntercanreproducethepageontopaperonitsown,lettingyourcomputer
geton’withotherwork.
YourStarLaserPrinter8comeswithonemegabyteofRAM—theequiva-
lentof aboutonemillioncharacters.A StarLaserPrinter8 optionletsyou
addasecondmegabyteofRAMif,say,youneedtomapfull-pagegraphics
orstoremorefonts. AccompanyingallthatRAMis another512kilobytes
ofreadonlymemory(ROM),containingalibraryofinternalfontsandthe
programsthatlettheStarLaserPrinter8 emulateotherprinters.
AMotorola68000computerchipcontrolsboththememoryandtheprinting
mechanismintheprinter,calledtheprintengine.Theprintcrstoresawhole
pagein RAM beforeprintingit. (If a pageis so densethat it overflows
memory-a mostunlikelyevent—theStarLaserPrinter8printsthepageon
two sheets.)
3
The Print engine
It’s tie print enginethat formsthe actualcharactersand graphics.The
enginedirectsitslaser,apinpointstreamoflightpulses,throughmirrorsand
lensesontothe surfaceof a positively-chargedrotatingdrum.
r“’””’
Lens
Laser beam
Scanning mirror
uctor laser diode
Photosensitive drum
Asthelaserscans,it“draws”thepage-mapstoredinyourprinter’smemory.
Whereveralightpulsestrikes,thattinypartofthedrumdropsto aneutral
electricalcharge.That spot then attractsfine toner powder as the drum
rotatespastthepowdercompartment.
Asthedrumrotatesfurtheritmeetsthepaper.Thepaperitselfisnegatively
chargedbypassingbyafinecoronawire.Sinceoppositechargesattract,the
negativepaperclingsto thepositivedrum.Thenheatandpressurefroma
rollermeltorjkre thedotsoftonerontothepaper,preciselyreproducingthe
image.
Finallythepaperslidesintotheoutputbin.Thepaperusuallycomesoutface
downso it stacksin thecorrectsequence.
4
STAR LASERPRINTER 8 SOFTWARE
Binary and hexadecimal arithmetic
If you alreadyknow what hexadecimalnumbersare, you can skip this
sectionandgo aheadto readaboutASCII.
The decimalnumbersystemwithwhichwe’reall familiaris a positional
counting system. There’s the
“ones” position,the “tens” position,the
“hundreds”positionandsoon.Eachhigherpositionisworthtcntimesmore
thanthepositionto therightofit,sincethedecimalsystemusesthebaseof
ten.Moreover,weneedtensymbolsto showtheactualvaluesthatmaybe
in eachposition.
Thebinarysystemispositionaltoo.There’sthe“ones”position,the“twos”
position,the“fours”position,the“eights”positionandsoon.Inbinaryeach
positionisworthonlytwicethatofthepositiontoitsright.Andweonlyneed
twosymbols-O (zero)and1(one)-to showthevaluesthatmaybeinany
position.So inbinarywegetnumbersthatlooklike 1010or 10001100.
Thehexadecimalsystemismadeofbase-sixteennumbers.Hexadecimalis
positionalliketheothercountingsystems.Andeachhigherpositionisworth
sixteentimesasmuchas thepositionto itsright.
We need sixteendifferentsymbolsto show all the possiblevaluesone
hexadecimaldigit could have. We can use our decimal system’s ten
symbols,butwe’vehadtoborrowa fewmorefromour alphabettogetall
thesymbolsweneed.Inhexadecimal,therefore,youcanhaveanumberthat
lookslike2C7C,orevenFACE.
Here’showthedecimal,binaryandhexadecimalnumbersystemscompare:
Decimal
o
1
2
3
4
5
6
7
Binary
Ooo1
0010
0011
0100
0101
0110
0111
Hexadecimal
o
1,
2
3
4
5
6
7
Decimal
8
9
10
11
12
13
14
15
Binary
1(W3
1001
1010
1o11
1100
1101
1110
1111
Hexadecimal
8
9
A
B
c
D
E
F
5
Theimportantthingtorealizeisthatthere’smorethanonewaytoshowthe
samenumericvalue.Computerprogrammers,forexample,occasionallyuse
thehexadecimalsystembecauseit’s socompact.(Programmersoftenjust
say“hex”.)Thisbinarynumber:
101001011111110100110111111011010010110100001001
looksquiteabittidierwhenitiswrittenasA5FD37ED2D09,whichmeans
thesamething.
TheASCII table
Wheredoes the Star LaserPrinter8 get the charactersand instructionsit
needsto print in the firstplace?It getsthemfromyourcomputer,which
sendsa streamoftextandcommandsto yourprinter.
Theprogramin yourcomputerthatcontrolseverythingsentto theprinter
(calledthe printer driver) will usuallybe includedwith your computer
programsrsuchasyourwordprocessor.Butthecommandscouldalsocome
fromaprogramyou’vewritten,perhapsinBASIC,aprogramminglanguage
thatusescommonEnglishwords.
Internally,computemand printersuse onlythe binarynumbersystemto
representbothcommandsand all the alphabetic,numericand otherkey-
boardsymbols.Nearlyallof thosemachinesusethesameschemetocode
thosesymbols,theAmericanStandardsCodeforInformationInterchange
(ASCII).
Anexample:inourfamiliardecimalsystem,binary01001010addsuptothe
number 74. Dependingon which program your printer is using, it can
interpretthatbinarystring01001010aseitherthenumber74orthesymbol
J. TheprinterstoresthesymbolJ atposition74in a tablein itsmemory.
Thateight-bitbinarystring,orbyte,canbebrokenintotwohalves.Theleft
orhigh-orderpartcontaining0100is calledthezoneportion;therightpart
holdingthe1010iscalledthedigitspdion. Andinthehexadecimalnumber
system,the zone and digitparts of that byte are representedas 4 and A
respectively(lookthemup in thelistabove).
SothelaserprinterunderstandsthesymbolJ as01001010,whichwecan
alsorepresentas the decimalnumber74 or the hexadecimalnumber4A.
We’veprintedthisbyteverticallyandhorizontallybelow,showinghowit
addsup todecimal74 andhex4A.
6
o x 27
1x 26
0x 25
0x 24
1x
23
0
x 22
1x 2’
ox
zone
0100
4
=
o
= 64
=
o
n
o
=
8
=0
=
2
=
Q
74 Decimal
digits
1010 Binary
A
Hexadecimal
The ASCIItablein theTechnicalSupplementshowsalltheseequivalent
representationsfor the symbolsyourlaser printerunderstands.The table
organizestheminascendingorder.Infact,ASCIIisorganizedin awaythat
ac@allymakessense.
Flipbackthereforaquicklookrightnow.Seehowyoucanslicethetable
into clumpsof 16or 32, basedon what’sin the zoneportionunder the
hexadecimalcolumn?Theseclumpsmakesubgroupsof similarsymbols:
hex00 to IF arethecommandsymbolscalledcontrolcodes,
hex 20 to 40 arcthecommonkeyboardsymbolsandnumerals,
hex41 to 60 arecapitallettersandthelesscommonkeyboardsymbols,
hex’61to 7F arelowercaselettersanda fewfinalsymbols.
That takes care of the first 128ASCII symbols.However,nearly every
co’mputerand printer manufacturertreats the second half of the table
differently. Hewlett-Packard,for example,puts a variety of accented
foreignlanguagecharactersintopositions128-255(oftenreferredtoashigh
ASCII). Epson gives you a choice of either italics charactersor IBM
charactergraphics.
Control codes
TheASCIItableshowssymbolslikeJor2 thewaytheyactuallyprintonthe
laserprinter.ButASCIIincludesmorethanjust printablecharacters:none
of thecontrolcodecommandsat thebeginningof thetableactuallyprint.
Instead,when yourcomputersendsa controlcode to the laser printerit
makesyourprinterdo otherthings,suchas sounditsbccpcr.
7
I
Controlcodesmostlyhandlecommunicationsbetweenyourcomputerand
thepnnter.atthelowestlevel,atcablelevel.Forexample,acoupleofcontrol
codesmakesuretheprinterbufler(yourprinter’sstoragememory)doesn’t
overflow. In this book we’ll indicatecontrol codes enclosed by angle
bracketsto their abbreviationsin the table:<FF> meansthe Form Feed
controlcode,whichadvancestheprintertothenextpagejustasthePRINT
buttondoes.
Escape sequences
Controlcode 27, <ESC>or Escape,is a particularlyimportantone for
printers.Totell yourprinter allthe thingsyoumightneed— settingmargins,
saying where to print, choosing a particular font, starting graphics and so
on— requires many more thanjust two or three dozen control codes. So the
<ESC> control code has a special meaning: <ESC> means “the next
character specifies a command, not something to be printed”.
Thereforeif yousendjustthecharacter4 totheprinterit willprinta 4 and
that’sall. 13utifyousendthe<ESC>codejustbeforethe4 thentheprinter
(in EX-800
mode) will switch over to italics text. Extending the control
codes this way gives you many more commands to control
yourprinter.in
fact,these“Escapesequences”makeupmostoftheStarLaserPnntcr’slan-
guage.
In thisbookwe’llleavespacesbetweencharacterswhenwe showescape
sequences.You’llfind
<ESC>
(SopIOh12vos 3T
a bitmorereadablethan
<ESC>(sOp10h12vOs3T
Butrememberthatyouarenottosendthosespacesifyousendcommands
to theprinter.
To sumup,printercommandsareoftwotypes.A controlcodeisa single-
charactercommandthattellsyourprintertodosomething,likemovedown
oneline.AnEscapesequencecontrolsaprinteroperationtoo,butis more
thanonecharacterlong.Sincetheyarecommands,neithercontrolcodesnor
escapesequencesamusuallyprintablecharacters.
8
Printer drivers
Mostsoftwarepackagesalreadyincludetheprintercommandstheyneed.
Theprogramsthatsendcommandstotheprintersoyoudon’thavetoenter
themyourselfare calledprinterdrivers.
Manyprogramsaskyouto installor configureyourprinter,whichusually
meanskeyingintoamenutheparticularsetupinformationdescribingyour
StarLaserPrinter8.Youentersuchthingsashowyouwant to underline,
alterlinespacing,ormoveto anewprintposition.
Someprograms,suchas WordPetiect andthesystemsfromLotusDevel-
opmentCorporation,let youputprinterEscapesequencesbeforeor right
insidethedocumentyouwanttoprint.Toturnonboldface,forexarnple,you
mightholddownspecialkeysonyourkeyboard,oftenlabellcdCONTROL
orALT,asyoupressanotherkey.OryoumightuseaspecialFunctionkey,
suchasF6.
Infact,totakerealadvantageofyourStarLascrPnnter8’sspecialabilities,
youmightoptforawordprocessorthatletsyouspecifyfontchangeseasily.
WordPerfectandMicrosoftWord arestrongatthis,butarebynomeansthe
onlygoodfontmanipulators.
If youhavetroubleusingaparticularprogramwithyourStarLaserPrinter
8, you’ll probablyget answers most quickly by asking your software
supplierhowtheprograminteractswithyourprinter.
Inthismanualwerefertoprograms,fontsandotherproductssoldbyseveral
companies.PleaserealizethatmentioningtheseproductsdoesnotmeanStar
Micronicsendorsesthemin anyway.
Sending your own printer commands
Withouta printerdriver,sendingcontrolcodesand Escapesequencesto
yourprinterproperlyrequiressomeknowledgeofaprogramminglanguage
likeBASICor Pascal,or atleastof howto putsuchcodesintoa program.
Withprogramminglanguages,thecomputerdoesn’tacton thecommands
youputintoa programuntilyoutellitto runthatprogram.
Whenyougivea commandto theprinterfroma computerprogram,you
normallyentereachpartofthecommandasaseparatecharacter.Thisway
youdon’taffectanythingelsehappeningonthecomputer.Youoftensend
eachcodeorcharacterin thecommandbygivingitspositionin theASCII
table,as adecimalor hexnumber.
9
A BASIC example
Here’s an example you can typo in right now, to clarify what we’re saying.
It’s
writtenin MicrosoflBASICfor a computerthat uses the MS-DOS
operatingsystem,soif youhavea differentcomputeror BASICyoumay
havetotranslateabit.We’11showcommandsthewaythey’rewrittenforan
Epsondot-matrixprinterbecauseyourStarLaserPrinter8understandsthose
commands.
TheLPRINTcommandsallsenddatatotheprinter.Ifthedataissomething
youwantprintedyoujust putit in quotationmarks.If thedatais acontrol
codeyoujustsaywhereitisintheASCIItable,givingitspositionasaregular
decimalnumber.
BASICusuallysendsacarnagereturnafterevery80characters,tokeepthe
print positionmovingwhenit hitstheendof a line.Unasked-forcarriage
returnscanmessupyourprinting,however,soii’sa goodhabittoputin a
WIDTHstatementas shown.Thatletsus printoverthewholepagearea.
The<BEL>controlcodeASCIIcode7— issentinBASICasCHR$(7).
The<ESC>codeitselfisCHR$(27).Andbecausewe’reusingthecharacter
4 as
part of an <ESC>command,wetypeCHR$(52)insteadof“4”.
Soif youstartBASICandtypethesecommands:
NEW
10 EXAMPLE
20 tiIDTH LPT1:”, 255
30 LPRINT CHR$(7)
40 LPRINT CHR$(27) ;CHR$(52)
50 LPRINT ITALICS !
60 END
RUN
youmakethe printer(inEX-800mode)firstsoundits bell—mostpeople
callit a beeper—andthenprinttheline:
ITALICS!
Generally,whenyousendacontrolorEscapecodeit staysactiveuntilyou
deactivateit. That’swhathappensin line40 of our programabove.All
subsequenttextwillbeitalicizeduntilyouchangeitbackto uprightagain.
10
Mostprogramminglanguages,andsomeversionsof BASIC,letyoutreat
theprinterasa fileto whichyoucansenddata.Whenyouwritea program
withoneoftheselanguagesyou“open”theprinterfile,printintoit,andthen
“close”thefilewhenyou’redone.Thisprogrammingjargonsoundsfunny
if you‘renotusedto it—butit works.
Afewprogramminglanguagesletyousendcommandstotheprinterathird
way. Applesoft BASICis one. Withit, you can switchbetweenprinter
outputandscreenoutput.
Printer emulations
You noticedthat we said “in EX-800mode”up there?YourStar Laser-
Printer8respondstothesameescapesequencecommandsthatseveralother
printersuse.BeingabletoemulateprintersliketheDiabloorEpsonEX-800
letsyouuseyourStarLaserPrinter8witholderprogramsthathaven’tbeen
updatedtotakeadvantageoflaserprinters.Infact,becauseitemulatesfour
of themostpopularprinters,youcanusetheStarLaserPrinter8 withjust
aboutanymicrocomputerprogramaround.
Unfortunatelythose printers often use different escape sequencesfor
exactlythe same function.Thoseprinters,moreover,provideescapese-
quencesfor functionsthe Star LaserPrinter8 doesn’tneed, such as the
Diablo’sChangePrintwheelcommand.(Printwheelssometimescalled
“daisywheels”- areflatmetalorplasticprintelementsthatholdcharacters
outfroma hubon “petals”.)Whenyourprintergetsacommanditdoesn’t
support,itjust ignoresthecommand.
Macrosaresinglecontrolcodesyoucandefineyourself,whichdothework
ofawholelongseriesofprintercommands.Ifyouareaprogrammeryouwill
behappyto heartheStarLaserPrinter8 supportsup to 99 macrosatonce.
11
12
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230

Star Micronics 8 Series User manual

Category
Print & Scan
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI