Page 3
Trademark Acknowledgements LaserPrinter 8: StarMicronicsCo., Ltd. PageMaker: Aldus CqSOraticsr Apple II +, Applesoft: Apple ComputerInc. BitStream,~apf Humanist: BitstreamInc. Canon: CanonInc. Centronics: CentronicsData Computer Corporation HP, LaserJet Series H: Hewlett-Packard Company LaserControl: Insight Developmentfrrc. IBM PC, IBM Proprinter: International B usiness MachinesCorp. Optim~ Century Schoolbook: LinotypeCorporation Lotus 1-2-3: Lotus Development Corporation MS-DOS, Microsoft BASIC, Windows, Word, Microsoft BASIC: Microsoft Corporation...
Page 4
About this manual This SrarLuserPrinter8 ApplicationsManual gives you the information you need to programthe Star MicronicsLaserPrinter8. Why wouldyou read this book? Mostpeopleusing a laser printerjust run softwarepackageswithbuilt-inprinterdrivers,whichlookaftereverything theircomputerssendtheirprinters. Butmanyofus-small businesspeople and home computerusers, not to mention the wizards who write those softwarepackages—wanttobenefitfromallthenewfeaturesofferedbyour printers.
Page 5
What’s in this manual? In “Gettingto Know Your Star LaserPrinter8“ we providea list of the features that make this a splendid printer, to help you choose which featuresyou want to exploit. There’s a bit on how laser printerswork, insideand out. The chapterthen explainssoftwarein generalterms, in- cluding how to write control and Escape commands to make those featureswork.
Page 6
The final“TechnicalSupplement”containingthe commandandcharac- ter referencetableswill probablyget thumbedthe most. Conventions Incidentally, o neof thoseTechnicalSupplement t ablessuggestsa coupleof typographicconventionswe’lluse. Baseten (decimal)numberswillgener- ally be used here; if we have to use base sixteennumbers(hexadecimal) we’ll expresslysay so. Andsecond,thelowercaseL ispracticallyidenticalto thenumberone(1vcr- sus 1). BecauselowercaseL is used in manycommanddescriptions,we’ll use the charactert’toavoidconfusion.
TABLE OF CONTENTS CHAPTER GETTING TO KNOW YOUR STAR LASERPRINTER 8 Star LaserPrinter8 Hardware...1 StarLaserPrinter8 Software...5 CHAPTER 2 CONTROLLING YOUR PRINTER PrinterParameters...13 ControllingthePrinter...16 ControllingthePage...21 ControllingthePrinting...28 The StarLaserPrinter8 Superset...29 CHAPTER 3 FONTS FontTerminology ...35 Howthe StarLaserPrinter8 StoresFonts ...38 SymbolSets...41 ManagingFonts...44 CHAPTER4 HPLASERJETII COMMANDS HP LaserJetII Commands ...51 Control l ingthePrinter...53 PageOrientation...56...
This chapterintroducesboththe hardwareand softwareaspectsof the Star LaserPrinter8’s personality,from fonts and print engine to ASCII and Escapesequences. STAR LASERPRINTER 8 HARDWARE Versatility YourStarMicronicsStarLaserPrinter8 workswithpracticallyallcommcr- cialsoftwareprogramsandcomputers.Withfeaturesthatgo beyondStar’s easy, affordable9-pinand fast,quality-printing 24-pindot matrixprinters, the Star Laser Printer is the logical next step in the series of fine Star Micronicsprinters.
Page 10
TheStarLaserPrinter8isidealfordesktoppublishing. T hepagesitproduces makeperfectphotocopyor instant-printmasters.And all the main desktop publishingsystems,includingAldusCorporation’s PageMakerand Xerox VenturaPubisher,worksplendidlywiththeStarLaserPrinter8.With’’page makeup”programsliketheseyou willbe able—maybefor the first time— to delivercommunicationswiththe impactof top-notchgraphics. Font options Youcan print with an amazinglywidevarietyof type fontsand sizes.The StarLaserPrinter8comeswithfourbuilt-infonts,whichcanbeprintedfrom 8.5 pointsto 12pointsin size (apoint is about 1/72of an inch). These fonts arc: Courier Tms Romn...
Page 11
How your Iaserprinter communicates Yourcomputercommunicates withthe StarLaserPrinter8 througheithera parallelcableor one of two kindsof serialcable.The printer’sinterj2ace, the link or boundaryit shares with your computer,defines whether the printerwill acceptcharactersandcommandsfrom yourcomputerone byte or one bit at a time. A bit is the smallestunitof computeror printermemory.It haseithera low or highelectriccharge,whichwe representwiththedigitsOand 1.Usually eight adjacentbits are grouped to form a byte.
Page 12
The Print engine It’s tie print engine that forms the actual charactersand graphics.The enginedirectsitslaser,apinpointstreamoflightpulses,throughmirrorsand lensesonto the surfaceof a positively-charged rotatingdrum. Photosensitive drum Asthelaserscans,it“draws”thepage-mapstoredin yourprinter’smemory. Wherevera lightpulsestrikes,that tiny part of the drumdropsto a neutral electricalcharge. That spot then attracts fine toner powder as the drum rotatespast the powdercompartment.
STAR LASERPRINTER 8 SOFTWARE Binary and hexadecimal arithmetic If you already know what hexadecimalnumbers are, you can skip this sectionand go aheadto read aboutASCII. The decimalnumbersystemwith which we’re all familiaris a positional counting system. There’s the “ones” position, the “tens” position, the “hundreds”positionandsoon.
Page 14
The importantthingto realizeis thatthere’smorethanone wayto showthe samenumericvalue.Computerprogrammers, f orexample,occasionally use the hexadecimalsystembecauseit’s so compact.(Programmersoftenjust say “hex”.)This binarynumber: 1010010111111101001101 11111011010010110100001001 looksquiteabittidierwhenitis writtenasA5FD37ED2D09,whichmeans the same thing. The ASCII table Where does the Star LaserPrinter8 get the charactersand instructionsit needs to print in the first place? It gets them from your computer,which sendsa streamof text and commandsto yourprinter.
Page 15
o x 27 1 x 26 = 64 x 25 x 24 x 22 1 x 2’ x 2° Decimal digits zone 1010 Binary 0100 The ASCII table in the TechnicalSupplementshows all these equivalent representationsfor the symbolsyour laser printer understands.The table organizesthemin ascendingorder.In fact,ASCIIis organizedin a way that ac@allymakessense.
Page 16
Controlcodesmostlyhandlecommunications b etweenyour computerand thepnnter.atthelowestlevel,atcablelevel.Forexample,a coupleofcontrol codesmakesurethe printerbufler(yourprinter’sstoragememory)doesn’t overflow. In this book we’ll indicate control codes enclosed by angle bracketsto their abbreviationsin the table: <FF> means the Form Feed controlcode,whichadvancestheprinterto thenextpagejust as the PRINT buttondoes. Escape sequences Control code 27, <ESC> or Escape, is a particularlyimportantone for printers.
Page 17
Printer drivers Most softwarepackagesalreadyincludethe printercommandsthey need. The programsthat sendcommandsto the printerso youdon’thaveto enter them yourselfare calledprinter drivers. Manyprogramsask you to installor configureyourprinter,whichusually meanskeyinginto a menuthe particularsetupinformationdescribingyour Star LaserPrinter8. You enter suchthingsas how you want to underline, alterline spacing,or moveto a new printposition. Someprograms,such as WordPetiect and the systemsfrom LotusDevel- opmentCorporation,let you put printerEscape sequencesbefore or right insidethedocumentyouwanttoprint.Toturnonboldface,forexarnple,you...
Page 18
A BASIC example Here’s an example you can typo in right now, to clarify what we’re saying. written in MicrosoflBASIC for a computerthat uses the MS-DOS It’s operatingsystem,so if you have a differentcomputeror BASICyou may haveto translatea bit.We’11 s howcommandsthe waythey’rewrittenfor an Epsondot-matrixprinterbecauseyourStarLaserPrinter8understands those commands.
Page 19
Most programminglanguages,and someversionsof BASIC,let you treat the printeras a fileto whichyoucan senddata.Whenyou writea program withoneof theselanguagesyou“open”theprinterfile,printintoit,andthen “close”the file when you’redone.Thisprogramming jargon soundsfunny if you‘renot used to it— but it works. A fewprogramminglanguageslet yousendcommandsto theprintera third way. Applesoft BASIC is one. With it, you can switch between printer outputand screenoutput.
, ’ ‘eotitroiling’r’ ‘ ~~• -,,vd&fipfi3$6+;;:,i; Youcan controlyourStar LaserPrinter8 in two ways,eitherthroughfront panelparameters or throughsoftwarecommands. In this chapterwe will considerprinter controlsmostly from the perspectiveof the front panel. However,we’ll also meet four specialcommands,the Star LaserPrinter8 superset. Throughout this manual we approach parameters and commands the same way: overall pnnter-level controls first, then page-level controls (layout and print position movements), and finally character-level controls graphics).We’lldiscussthesein generalterms in this chapter.
Page 22
printingthe currentpage and then feedsin and prints a statussheet. Somebuttonson the panellet you performtwo functions.Holdingone of those buttons down, rather than quickly pressing it, selects a different operation.For example,holdingdown the TEST/PREVIOUS buttonfor over five secondsmakesthe Star LaserPrinter8 print its test pattern. Parameter settings From the panel you can also changethe parametersthat define how your printer works.
Page 23
FactorysettingsarcprogrammedintotheStarLascrPnntcr8whenit is built at the factory.Yourprinterkeepsthe factorysettingsfor iLsparametersin ROM;theyncvcrchangc.Youcancopythcmiruothecurrentsettingsor any other settingsas needed. But the only way you can return to the factory dcfaulLs i s fromthe frontpanel;no commandsdo this. A few factory default settings arc as follows: Itcm Emulation Fccdcr Number of’Copies 1 Oricntatim...
and scrollthrougha lowermenu level.And you also press youwantto savea particularmenuitcmas thevaluefor a currentparameter setting. Thethreelastmenuheadingslet youloadoneversionof theparametersinto another version. Two move the current parametervalues into either the initialor power-upparameters.The finalmenu optiongoesthe other way, lettingyou load the factoryparametersettingsas your currentsettings. CONTROLLING THE PRINTER In this sectionyou’llmeet two separatecontrolsover how the Star Laser- Printer 8 itself works.The INTERFACEparametercontrolscommunica- tionsbetweentheprinterandyourcomputer.AndtheCOMMANDparame-...
Page 25
The Rate parameterspecifieshow fast data will be arriving,measuredin baud(namedaftertheFrenchcommunications e ngineerJean Baudot).pick any of the followingdata transferrates: 300 baud 600 baud 1200baud 2400baud 4800 baud 9600 baud (the default) 19200baud. Roughly, one character a second fast your computer will transmit, the general rule is to cxpcrimcnt. Try sending a page to print at the highest speed, and the pnntcr’s outputlooks OK.
Page 26
DTR (DataTerminalReady)protocoldoes the same thing slightlydiffer- ently.The,printersendsa continuoushigh-voltagesignalover the cable as long as it can accept data, but drops the voltage to say “whoa” to the computer. Conversely, i t’s thecomputerthatholdsthe reinswiththeETX/ACK(End- of-text/Acknowledge) p rotocol.The computersendsan ETX controlcode aftereach stringof data,and whentheprinterfinallygetsthatcodeit sends an ACK code back to the computer,askingfor more.This protocolis less used by modem computersbecause it doesn’t hold back data when the printer’smemorygets swamped,...
Page 27
Printer emulations OK, you’vegot your pnntcr and computerconncctcdproperly.Now Ict’s focuson how yourpnntcr works. Your Star LaserPrintcr 8 understands and uscs the same commands as several earlier kinds of pnntcrs. Your printer works by emulating onc of these: Hewlett-Packard LaserJet series H Epson EX-800 Otherlaserprintersmayoffer suchemulationstoo, butoften requireinstal- lation of a ncw circuitboard for each emulation.Star Micronicshas built...
Page 28
The Command parameter The Star LaserPrinter 8’s Emulation setting defines which printer it is imitating:Hewlett-PackardLaserJet series II, Xerox Diablo 630, Epson EX–800or IBMPropnnter. Mostof the other COMMANDvaluesbelowcan be changedwith Escape codesas well as from the panel. As the Number of Copies setting suggests, the Star LaserPrinter 8 can print citherjust one copy of each page sent to it, or multiple copies up to 99.
Hints: The hex dump To make your Star LaserPrinter8 print in hexadecimalrather than the usual ASCII symbols,press the front panel buttonsthat put the pnntcr offlineand in PROGRAMmode.Moveto the COMMANDparameter’s HEX DUMPsettingand selectON. SomccontrolorEscapecodescanbeproblemsonafewcomputcrs;those computerschangecertaincodeswhensendingthemto the printer.If you thinkyouhavethisproblemyouneed to see exactlywhatyourprinteris receiving.
Page 30
Withthe StarLaserPrinter8 youcan printon a varietyof ordinarycut sheet pages. For the Feedervalueof thisPAPERFEEDparameter,youfirst entereither cassetteor manual feed to indicatewhere you want paper fed from. The cassettetray automaticallyfeeds singlesheets,muchlike sheet fecdemon othertypesof printers.Manualfeed meansyou feed each sheetby hand. The defaultpaper size is 8.5 by 11inch letter-sizepaper; a different-sized tray automaticallyselectsthat differentpapersize.
Page 31
Hints: Paper, labels and transparencies The best paper for the Star LaserPrinter 8 has a smoothfinishand is of 20 to 24 poundweight.Any paperdesignedfor photocopiersshoulddo the trick though;Xerox4024 and CanonNP print nicely. High quality paper,whichcontainsup to 25 percentcottontibres,works cotton bond passablywell with even heavierweights. The absolutelimits arc 16-poundpaper al the light end and 35-pound stockattheheaviest.Withhcavypaper,openthetray sothepageswillbc dclivcrcdfaceup and won’thaveto bend over the final rollers.
Page 32
Whenprintingstartsfadingbecausethetoneris low,removethecartridge andgentlyrockit backand forthhalfa dozentimes.Don’ttip it up or the tonermayspillout.Redistributing thetonerpowderthiswaycankeepthe cartridgegoing for anothertray of paper. No question,workingwith singlelabel sheetsis more convenientthan withcontinuouslabelstock.Laserprintersare fasterandproducebetter- looking labels than other printers. But laser printers, which work by electrostatic photographyrather than impact pressure, put different stressesonlabelpaper.Eachsheethasto bendoverandthroughtheguide rollers;...
Page 33
The LA YOUTparameter The layout orformat the page. Layout includes page orientation,margins and the spacing of charactersacrossand lines down the page. You can controlthese with the LAYOUTparameter. You probably won’t use the LAYOUT parameter on the front panel’s programmenu very much though.Most of the time you’lleitherleave the Star LaserPrinter8 with its defaultsettings,or look after page formatting with commandsyou send from your computer.
Page 34
Margins, columns and lines Youcanchangemarginsettingsforallfouredgesof apage.Theleftandright side marginscan have valuesfrom Oto 132,definingthe margin columns betweenwhichwords and imagescarIbe printed.And the top and bottom marginscan be set at anywherefrom Oto 112lines. Text Length Porlrait Orientation The actualmeaningof a columnis definedby the settingfor the (HMI).The HMIjust means how wide you want the space motion index characterto be.
Page 35
Moving the print position: a preview Wlthdot-matnxanddaisywheel p rinters,youpickwheretoprinton thepage eitherby movingthepnntheadbackandforthor by movingthepaperitself. Laserpnntemdon’thaveprintheads, b uttheprincipleremainsthesame:you haveto sayexactlywhereonthepageeachpictureandstringof textis to go, so each page can be constructedin the printer’smemory. Insteadof talkingaboutprintheadswe talk aboutmovingthe print (some people call it moving the “cursor,” using the computer-screen analogy).Horizontally, y oucanmovetheprintpositionwithbackspaceand carriageretumcommands.
CONTROLLING THE PRINTING The EMULATE ATT../BUTES parameter The EMULATE ATTRIBUTES parameterdefinesfontattributesand setup values(if any) for each of the Star LaserPrinter8’s four emulationmodes. A font’s attributes characteristics whenit is printed.The nextchapter,“Fonts,”exploresthedetailsof all font attributesin more detail. But let’s have a quick overviewnow, because you’llmeet theseterms on the frontpanel’sprogrammenu.
THE STAR LASERPRINTER 8 SUPERSET Do you need to send commands? Here’s an important fact: you can set nearly every one of the above pararnctcrs by sending your printer a correspondingEscape sequence command. T hoseEscapesequencecommandswilloverrideanysettingyou make from the front panel. The mainthingto realizeaboutmostprintercommands,though,is thatyou probablydon’t need to use them.
Page 38
The Change Emulation command YoucanthinkofthesupcrsetChangeEmulationcommandasthekeyto your Star LaserPrinter8. The ChangeEmulationsuperset command lets you switchfrom one set of printercommandsto another“on the fly,” through software. ThisisthecommandthatdefineswhatothercommandstheStarLaserPrinter 8will accept.WithChangeEmulationyouindicatewhichprinteremulation programyou wantthe printerto use. When you start a new emulationyou alwaysstart a new page. Note:alwayssendCarriageReturnandFormFeed(controlcodes<CR>and <FF>)just beforeyou givethis ChangeEmulationcommand.
Page 39
The Select Orientation command SelectOrientationsupersetcommandlets youchangethe “attitude”in whichthe Star LaserPrinter8 prints. To changefromoneorientationto theotheryousendthisSelectOrientation Escapesequence: <ESC> [ O n For the value n you put O(zero) for portraitorientation, When you send this command to print in landscapemode, the printer automaticallyrotatesits currentfont so that it printsas landscape. The spot or line whereprintingstarts on the page is sometimescalled the origin top ofform.
Page 40
The Paper Size command The Paper Size supersetcommandlets youchangethe papersize in which the Star LascrPrinter8 prints. This is the commandthat defines what size the Star LaserPrintcr8 will accept. You issue the Paper Size command with the sequence: <ESC> [ S n For the value of n you entera numberfrom this table: SIZE Lettersize paper...
Page 41
The Paper Feeder command ThePaperFeedersupersctcommandlets youchangethe paperfeederfrom whichthe dual-cassettetypeprinterfeedspaper. To changethe paperfeederyou send the Paper FeederEscapesequence: <ESC> [ C n For the value of n you enter a numberfromthis table: PAPERFEEDER Uppercassette Uppercassettefor one sheet,then switchesto the lower cassette Optionalenvelopefeeder Lower cassette Lower cassettefor one sheet, then switchesto the upper casscttc...
Page 42
Select Simplex/duplex mode (DX type only) You can change betweensimplexand duplexmode using softwarecom- mandsin any emulationmode.The commandto do this is: <ESC>[ D n where n is an ASCIIvalueof either“1” or “2”. If n is set to”1”, then the printerwillentersimplexmode,andif n is “2”,theprinterwillenterduplex mode.
The fontsyou use determinewhatyourpageswilllook like. In this chapter we’ll first clarify the meaningsof wordspeopleuse when they talk about fonts. Next we’ll examinethe threekindsof fonts(internal,cartridgeand down- loaded) that you can use on your Star LaserPrinter 8. We’ll cover the particularsets of symbolsyou can choosefor those fontstoo. Finally,we’ll find out how to load the printerwith your selectionof fonts.
Page 44
Narrowcondensedfacesusedto be called“compressed”. T hey cram about fivecharactemin thespacewherethreeusuallygo-ideal for spreadsheets. An extended face, particularlyon a dot-matrixprinter, goes by several names:“expanded, “ “enlarged”or’’double-width’ ’printing.Nomatterwhat it’s called,extendedprintis widerthanit is high,andcan be fairlyeffective in page headings. Italiccharacters(sometimescalled“oblique”)areslanted.Ordinaryupright charactersareoftencalled“reman”.YourStarLaserPrinter8 comeswitha built-inupright Couriertypeface.Moreover,from any of the Star Laser- Printer 8’s built-intypefacesyou can select a subset of upright symbols called Roman-8.
Page 45
The o has been kerned closer to the f. A font is a complete ~ characters in a particular size and type~ace. Proportional spacing L;ading is the baseline to bas-line measurement. Font spacingand pitch You probablyfirst heard the word pitch in comection with typewriters. Typewritersnormallyusemonospacedspacing: t heygiveeachcharacterthe same amountof spaceon the line.
HOW THE STAR LASEI?PRINTER 8 Bit-mappedfonts StarMicmnicshasearneda reputationfor attractive,well-designed fontson its printers,and this laser printercontinuesthe tradition. The Star LaserPrinter 8 uses bit-mappedfonts.Each characteris madeup of a patternor “map”of dots,just like characterson a dot-matrixprinteror on your computerscreen.Resolutionmakes the difference:to make each characterthe Star LaserPrinter8 uses ten or twentytimesas many dots as a dot-matrixprinteror computerscreendoes.
Page 47
Cartridgeand downloadedfonts YourStar LaserPrinter8 can use two otherkindsof fonts,alongwiththose built into the printer. Cartridgefonts, like the internalones, are permanentlystored on ROM chips.Thedifferenceis thatthoseROMsam in removablecartridges.Your Star LaserPrinter8 has slots for two font cartridges. Eachcartridgemay holdanywherefmmhalfa dozento twodozenfonts,all differingfrom the internalfontsin size,style,strokeweightor symbolset. You’llfindthatcartridgefontsopenup a widerrangeof typefacestoo,such as HelvetandLetterGothic.Generally, c artridgeandinternalfonttypefaces are suitablefor both text and headlines.
Page 48
Hints: Whereto get fonts Youcatiprintanydownloadable fontthatworkson theHPLascrJctseries II. Severalothercompaniessell downloadablefonts whichare compat- ible with yourStar LaserPrinter8. The BitstreamCorporationin Boston is oneof the morepopular;Conographic is another.Xeroxincludesa set of fonts with its VenturaPublisherdesktoppublishingsoftware,which you can use with your printer’sLaserJetII emulation. The SoftCraft company now markets a Bitstmam-developed product called“Fontwarc”.WithFontwareyoucangeneratebit-mappedfontsof any size froma libraryof outlinefonts.In outlinefontseach character’s profileis definedjust onceandtheprintergeneratesanyfontheightfrom...
SYMBOL SETS Let’s summarizebriefly,to put the subjectof symbolsets in context. The attributesof a font determinewhat that font will look like when it is printed. We covered all but orientationat the start of this chapter, and orientationin the last chapter.A font’sattributesinclude: (portraitor landscape) orientation (whichwe’ll look at next)
Page 50
Youprobablywon’tchangesymbolsetsveryoften,unlessyouneedspeciaI symbolsfor yourtradeor regularlywritein a languageotherthan English. Whenyoudoneedthem,though;inoneoranotheremulationmodeyourStar Laserl%intcr 8 supportssymbolsets for all these countries: U.S. (ASCII) UnitedKingdom Germany Sweden Italy Denmark Spain Besidestheseyourprintersupportssetscontaining just symbols,suchasthe Greekalphabet(B),logicsymbols(S), arrows(#), the registeredtrademark symbol(Q) and so on. Each emulat~onhas symbol sets Yourlaser printerworksby emulatingor followingcommandsdeveloped originallyfor otherprinters.One of the StarLaserPrinter8’s advantagesis thatit offersyoua choiceof severalbuilt-insymbolsetsforeachfontin each emulation.
Page 51
The Epson EX-800 emulationis really versatile.It lets you have both of those IBMsymbolsets plusEpson’sown standardsymbolset. This Epson symbolset is unusual:it containsboth uprightand italic charactersin the same set. You may also choose from symbol sets for all the countries mentionedabove,plusa seconduniqueset for eachof Denmarkand Spain. With the Diabloemulation,Roman-8is the normalsymbolset.
MANAGING FONTS You can scc which fonts are cuncntly by printinga statussheetin offlinemode,as mentionedat thebeginningof this chapter.AnotherTEST modemenuitem,describedin the Star Luser- Printer8 OperationsManual,alsolets youprint out a list of all the fonts availableon the printerat any givenmoment. Selectingfonts Most popular software packages, particularlyword processors, let you choosefontsfromwithintheprogram.Theysendtheappropriate commands to the printerand you don’tneed to understandhow they do it.
Page 53
systems, such as Xerox’s Ventura Publisher, are document-oriented. Thatmakesthembettersuitedto technicalmanualsandlongproposalsor reportsthat go throughmany drafts. Otherways in which suchsystemsdiffer includewhetherthey showon yourscreenwhatyouwillgetonpaper(code-based programsdon’t),how well they handlepictures,and how hard they arc to learn.Think about yourneedsbeforechoosinga desktoppublishingsystem. A few of today’scomputerprogramslet you see severaldifferentfont sizesandtypefaceson yourcomputerscreen.Thatcapabilityisncccssary if you wantto see on-screenexactlywhatwillprint on yourStar Laser- Printcr 8.
Page 54
Optional fonts Manyoptionalfonts availablefor your StarLaserPrinter8 complementits internalfonts.Thesecangiveyoumorevarietyin symbolsets,spacing,font height,style and strokeweight.To your Courieror Tms Romn fonts, for example,youmightadditalicsandbold,legalor mathsymbolsets,andsizes rangingfrom 7 to 14points. Optionalfontsofferdifferenttypefacestoo.AskyourStarMicronicsdealer aboutcartridgesor disks for the following: Helvet Letter Gothic presentationfonts Bar codes Using cartridge fonts To gain accessto a font on a cartridge: 1) press the ON LINE buttonto put the printeroffline, 2) slidethe cartridgeyouwantintooneof thecartridgeslotson the front of the printer,...
Page 55
How to download fonts To downloadfonts fromcomputerdisk you’llneed momthan a small64K microcomputer. W e recommendat leasta 512Kcomputerwith a coupleof disk drives(a hard disk is better). Many commercial font-managementprograms are now on the market, including Insight Development’sL.userControl,Blaha Software’s Hot Lead, SoftCraft’sLuserFonts,and the PCL printer driver in Microsoft’s Windows.These utility programshelp you downloadfonts, then let you accessthe fontsautomatically fromyourwordprocessoror otherprograms.
Page 56
You then do the same for the italicsand boldfacefiles, for exampletyping for the italicsfont: DOWNLOADCN1OOIPN.R8P Thepromptswillbethesame,butyouhaveto remcmbertouscdifferentfont ID numbersfor the upright,italicand boldfacefonts. Downloading a font: example two Exampletwo is for a computerrunningAldus Corporation’sPageMaker desktoppublishingprogramwith MicrosoftWindows. PageMakerprovides a print dnvcr called HPPCL.DRV,and a program calledPCLPFM.EXEwhichcrcatcsthe data it needsto print a givenfont.
Page 57
Hints: Managing memory Piintingfancystuffcanbe quitecumbersomefor yourprinter.You trade off fancinessagainstspeed:if youoptfor fewerflourishes,yougiveyour printer breathing room in memory. And that rewards you with faster output.Any of the followingwill slowdown yourlaser printer: - text over 20 points, - lots of linesor patterns, - graphics, - macros, - justifiedtext.
Page 58
To see how much memory is availablefor extra fonts, put the printer offlineandpresstheTEST buttonto printa statussheet.Yourprinterwill beep and show a front-panelmessageif you try to overloadits memory by downloadingtoo many fonts. It then will continueprintingwith the closestavailablefont to that requested. As a generalrule,youcan includeat leasta dozendowrdoadablc fontsin a document.Addedto theinternalfonts,thatshouldbeplenty—itdoesn’t make good design sense to mix many typefaces.
TheHewlett-Packard LaserJetseriesIIis anearlierkindoflaserprinterthan yourStarLaserPrinter8. Youshouldhaveno troublerunningmostpopular softwarepackagesinHPLaserJetIImode,asthoseprogramslikelycansend LaserJet11commands. BecausetheLaserJetII alaserprinter,though,its commandscan giveyou more controlover your Star LaserPrinter8 than is possiblewith the other built-incommandsets. You will probablyuse this emulation’scommands more than the others. Recognizingthat reality,we’veput more examples into this chapter. We followthe same sequencein this chapteras we did in Chapter2: first some printer managementand page setup commands,then we’ll cover commandsthatpoisethelaser“pen”overthe paper,next we’llpick a font, and finallywe’lllay down our wordsand pictures.
Page 60
Two importantdetailsmakeLaserJetII commandsdifferentfromthe other printeremulations.First, all Escapesequencesend with a capitalletter. If youdon’tmakethelastcharacteruppercase,yourprinterwon’tknowwhen the Escapesequenceends and will treat followingcharactersas part of the same command. Second,in LaserJetII commandseachnumbcrorcharacteryouput afterthe cESC> codeis an actualASCIIsymbol.Withtheothcremulations,usually any number you put after an <ESC> code identifiesa character in that position in the ASCIItable.
Here’s a way you can save yourself a few keystrokes: type in those commandsthat have the same command-category prefix as just one long Escape scquencc.To combinecommandsthis way, type the <ESC> and command-category prefixjust once, and capitalizeonly the last command character. For example,to definethe style,weightand characterface for the primary font, you mightsend thesecommand: <ESC>...
Page 62
Set number of copies Youcan printup to copiesof each of the pages you send to the printer. Youmaysendthiscommandanywherewithinthetexton a page;it willstay in effect for that and all subsequentpages until you send another such command: <ESC>&!n X All you have to do is changethe n sign in this commandto the numberof pages you want.
Page 63
Whenyouwantto set allyourlaserprinter’sparametersbackto theirinitial default values (some people call this “initializing”the printer), send this command: <ESC>E Theprinterwill finishprintinganypagesleftin its memorybeforeresetting the parametem. Resetting clears unneeded temporary fonts from your printer’smemory.Any permanentfontsor macros you have downloaded, however,willstill be thereafteryousend a resetcommand.Permanentand temporary fonts are described at the end of this chapter’s “Controlling Fonts”section.
You can now send your letter from your word processingprogramto the printerandfeedinthosepages.Whenyou’redone,youmaywantto sendthe <ESC>E commandone more time. PAGE ORIENTATION Youmightreasonablythinkof pageorientationas a pageformattingissue. To printwordswidthwiseon a page,however,eachletterin effecthasto lie on its back. So orientationis actuallya fontattribute,and is treatedas such later on in this chapter. Page Length The paper tray you have installedsets the defaultpage size for your laser printer.Whenyouwantadifferentsize,andwhenyouchangethetray,you’ll...
Page 65
ORIENTATION PAPER SIZE Portrait Portrait Portrait Portrait Landscape Landscape Landscape Landscape * Printinglandscapeson legalpaperis trickier.First set on portraitmode andsendthecommand<ESC>&t’84Pandthenchangetheorientationto landscape. An example:Say you wantto manuallyprintlegal-sizepagesat eightlines per inch.The followingcommandscombinemanualfeedingwiththatpage length: <ESC>&t’2h112P If yourcommandspecifiesa pagelengthdifferentthanthepaperin thetray, theprinterwillgo offlineanddisplaya messageaskingfor thepropertray. After you changethe tray,pressthe ON LINE buttonto restartthe printer. It doesn’thurtto printshortpageson longpaper.If you inadvertentlyprint a Iegal:sizepageonto executiveor letter-sizepaper, the printerwill scroll that pageacrosstwo sheets.
Page 66
You cannotset the left marginfurtherover than the rightmargin.Use the followingcommandto settheleftmargin,settingn to bethecolumnnumber whereyou wantthe left marginto start: <ESC>& a n L Similarly,to settherightmargin,yousendIhiscommandwithyourdesired columnnurnbcr: <ESC>&a n M If you wantto putbothleft andrightmarginsbackto theprinter’sprintable limits—in other words,to “clear”the side margins—send this command: <ESC>...
Page 67
<ESC>&t’tz F The Page Length,Top MarginandText Lengthcommandsthereforework togetherto set the bottommargin: bottommargin= pagelength- (top margin+ text length). The bottommarginis calledthe “perforationregion”with printemthat use continuousforms.You normallywantto skipthe perforationsbetweenthe continuouspages, but sometimesyou don’t (for examplewhen you print labels). Thoughyoulikelywon’toftenwantto do it, theStarLaserPrinter8 willlet you completelyignorethe bottommargintoo.If youchooseto printbelow the bottommargin,rememberthat you mightlose wordsor graphicsin the unprintableregionat the edge of the page.The commandlookslike this:...
Page 68
Page Side Selection (DX type only) The followingcommandallows you to select on what side of a page the followingdata will be printed-whenthe printeris in duplexmode: <ESC>& a n G wheren is an ASCIIvaluefrom“O”to “3”.If n is“O”, t hefollowingdatawill be printedon thenextside afterthecurrentside(if the currentsideis a face side,the next side will be a back, and vice versa).If n is”...
Here are the commandsthat will producethis formatfor us: <ESC>&tl 12P <ESC>&a IOt’70M <ESC>&t’8eIOOf OL (We’llsend our page here.) <ESC>9 MOVING THE PRINT POSITION Many ways to move The LaserPrinter8 providesexcellent control over the print position— whereyoupoiseyourlaser“pen”.Horizontally, y oucansendbackspaceand carriagereturncommands. V ertically, y oucanmovetheprintpositiondown thepageby printingsomanylinesperinch,or by sendingline-feedandhalf line-feedcommands.
Page 70
For n you enterthe numberof linesper inch you want—any of: 1,2,3,4, 6,8, 12, 16,24 or48. If youentera numberotherthanthesethe printerwill ignorethe command. Defining the space and Beforeyou use printpositioningcommands,you first may wantto change thedefinitionsofthelineorspace(sometimescalled“verticalandhorizontal motionindexes,”VMIandHMI).Thesedefinitionsdon’tactuallymovethe print position.Instead, they define two basic units you can use in print positioncommands.
Page 71
changingthe actualmeaningof a “line”. Whenyou increasethe line depth youeffectivelydecreasethenumberof linesper inch,andincreasethepage length. The commandyou send to set the line depthlookslike this: <ESC>&?n C (notethatthecharacterafterthe“&”is a lower-case“L”)in whichforn you can entera numberfromOto 336.If n is zero,lineswillbe printedon top of each other, and if 336,they will be printed7 inchesapart. Moving the PRINT position horizontally You can use three differentunits to move the print positionhorizontally: columns(space-widths), d ots(each l/300th of an inch),or tenthsof a point...
Page 72
To movetheprintpositionhorizontallya certainnumbcrofdecipoints, s end the command: <ESC>&a n H in whichfor n youenterthenumberofdecipointsyouwishto movetheprint position(precededby a+ or– signif youwanttomoveawayfromthecurrent position). Youcanmovetheprintpositionhorizontally bydotsbothwaystoo.Youcan movea numberof dotsawayfromtheleftedgeof thepage,or youcanmove a numberof dots away from the currentprint position. To movehorizontallythis way, send the command: <ESC>*p n X in whichfor n you put eitherthe numberof dotsaway fromthe pageedge, or (precededby a + or –...
Page 73
The importantdifferenceaboutmovingverticallyup or down is what the printerdoes when the printpositionhits the page top or bottom.If you try to move abovethe top margin,the print positionstaysright at the margin. Andif youmovetheprintpositiondownoffthepage,thepageisejectedand printingcontinueson the next page. Vertical moves: by lines, decipoints and dots To move the print positionverticallya certain numberof lines, send the command: <ESC>&a n R...
Page 74
And to move 20 dots up you send: <ESC> *p –20Y Combining move commands Onethingaboutmovingtheprintpositionwiththeabovecommandsis that they let you thinkof yourpage in termsof Cartesiancoordinates. Allwemeanisthatyoucancombinehorizontalandverticalmovementsthat use the same units.If you send this command, <ESC>*p 40x 20Y the printpositionwill moveto a spot40 dots fromtheleft edgeof thepage and 20 dots down from the top edge.And if you send this one: <ESC>&a +40h–20V the print positionwill move right40 decipointsand up 20 decipoints.
Page 75
Line feeds LineFeedcommandadvancestheprintpositiononelinedownthepage. The meaningof a line is set by the Line Depthcommand. To send a line feedjust send this controlcode: <LF> The Half Line Feed command is the one you want for subscripts.This commandmovesthe printpositiondownthe pageone half the currentline depth: <ESC>= To send a reverseHalf Line Feed, movingthe print positionup to let you...
Page 76
For n enter one of the numbersfrom this table: AUTOMATICCOMMAND O(zero)cCR>, cLF> and <FF> work accordingto their basic definitions, 1 (one) <CR>will alsogeneratea cLF> (butcLF> and<FF>stay the same), cLF> or <FF> will producea <CR>too (<CR>by itself won’tchange), <CR>generatesa <LF> too, and either<LF> or <FF> producesa <CR>.
Page 77
Also, note that Autowrapdoesn’tmove the wholeword down to the next line—that’s a job for a wordprocessor,not yourlaser printer. Pushing and popping the print position This providesa wonderfulwayto keep trackof the printposition.it works by lettingyoukeep a list of up to 20 print positions. You can “push”the currentprintpositionontothe top of the list whenever youwant.Later,youcan“pop”off whateverpositionis at thetop of thelist, makingit the currentprintposition.
CONTROLLING FONTS Font selection The LaserJet II emulationlets you define and select fonts three ways: as primary and secondary fonts, or by font identificationnumber, or by description. W e’lllookatthefirsttwowaysnow,andexplainselectinga font by its attributesa little furtheron. Howeveryouchooseto refertofonts,rememberthatafontmustbeavailable beforeyou selectit. So if youwantto selecta cartridgeor downloadedfont, you first have to put in the cartridgeor downloadthe font.
Page 79
Afteryourprimaryfontis selected,youcanchooseit forprintingby sending this Shift In controlcode: <S1> All tic text you send after that commandwill print in the primaryfont. Yourlaser printershiftsto the secondaryfontwhenyou sendthisShiftOut code: <so> Assigning font ID numbers The secondwayto dctineandselectfontsis by usingfontID numbers.You maypreferthismclhodif youfrequentlyusemanyfonts.Whilenot as short as <S1>and<SO>,it’squickerthandescribingfontattnbutcsoverandover again.
Page 80
secondaryfonts?Youwanttoselecta downloaded fontIDasyoursecondary font.This is the commandto send: <ESC>) n X Font attributes The third wayto selecta fontis to simplydescribewhatfont attributesyou want.(Remember, s electinga fontdoesnotmodifya font.Youcan’tgetbold or 14-point c haractersifyoudon’thaveaboldor 14-point f ontintheprinter.) In listingthe attributesyouwant,it willhelpyouto prioritizethemthe same wayyourLaserPrinter8does.Yourpnnterranksthevariousattributesafont can havethis way (from most to least important): orientation symbolset...
Page 81
defaultsettings. When you wantto selectthe oppositeorientation,send this command: <ESC>&tn O in which for n you put Oto get portraitorientation, or 1 to get landscapeorientation. (Notice:the /character after the &is a lowercaseL.) Symbol sets: a review Eachfontcanhavemanysymbolsets,eachbeinga subsetof allthepossible characters of the font. These subgroups include different symbols for different nations or for lawyers or artists or mathematicians.Any two symbol sets, moreover, may store the same symbol at a different font positionin the printer’smcmory.
Page 82
1S0 15:Italian JIS ASCII ECMA~94 Latin 1 OCR-A Math-8Asymbols 1S0 11:Swedish US-ASCII Bar Code3 of 9 1S0 61: Norwegian 1S0 UK 1S0 69: French 1S0 21: German OCR-B Math-8Bsymbols HP Spanish Legal 1S0 57: Chinese Pi font-Asymbols 1S0 17:Spanish 1S0 IRV OCR-BExtension 1S0 10:Swedish 1S0 16:Portuguese...
Page 83
Selecting the current or default symbol set Yourprintercan use eitherthe primaryor the secondaryfont as its current font. And that current font has its current symbol set. Your printer also remembemits defaultfontand symbolset, whichare CourierwithRoman- 8 (unlessyou’vechangedtheir initialparametervalues throughthe front panelmenu). The followingcommandlets you selectone of thosesymbolsets for your primaryfont.
Page 84
Then in the reportyoudecideto use a proprietaryproductname,so wantto nip outto grabthe@symbolon alegalcartridgefontyou’vealreadyloaded, then returnto your Germanset. Whenyour report’sall done, you want to return the printerto its Roman-8default. Here arc the commandsthat will do thejob for us: <ESC>( OG (you start your reporthere) ~ESC>( IU @ <ESC>( OG (you finish your reporthere)
Page 85
To definespacingfor yoursecondaryfont,use the samenumbersandjust flip lhe parenthesis: <ESC> )S ~ Pitch Pitch defineshow many charactersper inch you want for a monospaced- pitchfont.YourStarLascrPrinter8‘sinternalmonospaccd-pitch fontshave settingsof 10, 12 or 16.66charactersper inch. Cartridgeor downloaded fontswith monospaccdpitchesoftenhaveothersettingsfor charactersper inch. To selectthe pitch you want for the primaryfont, send this command: <ESC>...
Page 86
To selectfont heightfor the secondaryfont,send this command: <ESC> Style Styledefineswhetheryourtextis printed wordsare. Sendthis commandto selectthe styleyou wantfor the primary font: <ESC> in whichfor n you To selectstyleforthesecondaryfont,just reversetheparenthesisandusethe same n numbers: <ESC> Rememberthatstyleis a relativelylow-priorityattribute.If a particularfont satisfiesallhigherpriorityattributesbutdoesn’tcomein thestyleyouwant, you’llget that font withoutyourstyle. Stroke weight The weightof a font defineshowlightlyor boldlyit prints.
Page 87
you can use the command know the width in decipointsof what you want to overprint.In a mono- spaced-pitchfont like Courier that’s easy: just keep track of how many charactersyouprint.Inaproportional f ontyou’dkeeptrackofthedecipoints by usinga character-width table.Afterbackingup4 decipointslessthanthe totaltext width youjust print yourtext again. Typeface last attributeyoucan giveto charactersis theirtypeface.The designof charactersis whatfontdesignersoftenthinkof as the maindeterminantfor...
Page 88
Example: Font attributes Let’sput the last half dozenfontaltnbutcstogetherin an example.Say we wanttoselectanicefont—a smallLinePrinter- forthefootnotesina report we’vefinished.Let’smakeitoursecondaryfont,sincethebodyofourreport is done in the primaryfont. We’ll go with the defaults for orientationand symbol set. But let’s be specificabouttheotherattributes, a ndlet’srememberto putthemin priority order. Wedecideon a monospacedof 16.66charactersperinchanda heightofjust sevenpoints(footnotesshouldlooksmallerthanour regulartext).To keep it readable,we opt for the ordinaryuprightstyleand mediumweightin the Line Printer typeface.Our sequenceof individualcommandswould look...
Page 89
featurethis way,the printerwillunderlineall subsequentprintablecharac- ters, includingspaces. Send this commandto turn on the underliningmode: <ESC>&d n D in whichfor n you put O(zero)to get fixedunderline, And send this commandto turn off the underlinemode: <ESC>&d @ How to print Escape sequences and control codes You use bothEscapesequencesand controlcodesto print.
Page 90
And to turn off DisplayFunctions,send this commandat the end of the displayedprint data: <ESC>Z That EscapeZ sequenceitselfprintsas a blank followedby a Z. Font control TheFontControlcommandhastwomainfunctions:defininga font’sstatus, and deletingfonts. You can make a fonteitherpermanentor temporarywith the Font Control command. T hishelpsyoucontrolwhichfontsyoudelete,aspermanentfonts do not get deletedwhen you resetthe system.The permanentor tcmporary statusyougiveto a fontwillapplyonlyto the fontyoulast specified,using one of the font ID commandsdescribedabove.
Page 91
Here’show to assignID numbersto an internalor cartridgefont. You first selectthe font,thensendtheFontIDcommandto giveit an IDnumber,and finallycopythefontintomemorywithFontControlfunction6. If you want that copy to stay in RAM when you reset the printer, you concludeby sendingFont Controlfunction5. Example: Controlling fonts Let’ssee how thoselast few commandswork, translatedinto BASIC. Pretendyouwanttomakeashorttestwithyourcurnmtfont(itdoesn’tmatter what it is): you wantto print what’sin ASCIItable positions128through 130.There’snothingthere in yournormalRoman-8symbolset, but some...
Page 92
Example: Assigning font numbers Now let’s do a program in BASIC. and Presigeresidentfontsandto a cartridgefont,IBMPC Courier. Courier Then we’ll print samplesof each font. LPRINTCHR$ (27) ; “ LPRINTCHR$ ( 120 LPRINT CHR$( 15) ; 130 LPRINT CHR$(27) ; “*cID” 140 LPRINT CHR$( 27 ) ; “*c6F” 150 LPRINT CHR$( 27 ) ;...
YOUR OWN FONTS Font design is tedious A warning: font design is an art. Don’t expect to turn out professional- lookingfonts in a few hours. Sometimes,though,youhaveto buildyourowntypeface,evenif youdon’t work with a companyin the font-sellingbusiness.You may, for example, want to print your own customizedcompanylogo. It means buildingup characterswithina cell or grid,perhaps50 dotshigh and 35 wide—lots of dots.
Page 94
1) Assigning a font ID to your font To assignanIDto yourfont,yousendthiscommand(describedaboveunder “Assigningfont ID numbem”)with an ID number for n between O and 32767: <ESC> *C n Before sending that command though, check whether the ID number is alreadyallocatedto anotherfont. If it is, that existingfont will be deleted with the next command.
Page 95
BYTE MEANING headerlength blank font size blank baselinepositionfor characters blank cell width blank cell height orientation spacing 14-15 symbolset 16-17 pitch 18-19 line spacing 20-22 blank style strokeweight typeface Positioning each character in your font Beforeyoudownloadeachcharacteryouhaveto telltheprinterwherein its font tableto put it. You indicatewhereby sendingthis command: <...
Page 96
to describe and map your character. Sixteen bytes are needed for the description;the bit-map takes as many bytes as you’ve put into each charactercell—perhapstwo or three hundredbytes. As with the fontheader,each bytein the characterdescriptionis a number, sent as the symbol at that positionin the ASCII table. Codingcharacter descriptionsis tricky too, so again we recommend you ask your Star Micronicsdealer for help.
GRAPHICS TheStarLaserPrinter8offerstwokindsofgraphics.Itprin~s rastergraphics (sometimescalled “bit-mappedgraphics”),which specify each dot in a graphics pattern. And it prints pattern graphics, which prints Iincs and pattcmcdblocks. Bc aware,though,that addinggraphicelementsalwaysslows up printing with laser printers. Starting raster graphics Youfollowthesefourstepswhenyouuserastergraphics,in theordershown: Definewhatresolutionyou need. Issuethe commandto start graphics. Send the commandsto transferraster graphics.
Page 98
Sending and ending raster graphics Graphicsprintingis independentof text margin boundaries,includingthe perforationskipregion.It is bnlylimitedby the printableareaand the page length. To transferraslergraphicsyou sendthiscommandat thebeginningof each line of rasterdata: <ESC>*b n W For n you enterthe numberof bytesof graphicsdatato followon thisline. The data must followimmediatelyafter the Win this command. Databytesarc interpretedas onclineof rastergraphicsdata(onedatarow).
Page 99
Defining rule or pattern dimensions Definingthedimensionsoftheareayouwantto filljust meansindicatingthe horizontalandverticalsizeof thepattern,or therule’slengthandthickness. You can indicatedimensionsin eitherdotsor decipoints(tenthsof a point). At 300dotsor720 decipointsto the inch,decipointmeasurementsarcmom accurate. The printer converts decipointvalues into dots, using 2.4 de- cipoints to the dot. It rounds up fractions to the next integer. So 1225 decipointswouldworkoutto 510.4dots,andthepnntcrroundsthisupto511 dots.
Page 100
Alternatively, t o show the verticaldimensionin decipoints,you send this command: <ESC> *C n in whichn is thenumberof decipointsin therule’sthicknessor thepattcm’s verticallength. Choosing and printing a rule or pattern Youneedboth of thenexttwo commandsto chooseandprinttheparticular patternyou wantto fill yourdefinedarea.Thesecommandsworktogether. WiththePrintPatterncommand(whichactuallycomessecond)youspecify whetheryouwantto fillyourrectangularareawitha solidblackrule,a finely dotted gray-scale pattern, or a predefine linear pattern.
Page 101
56-80 36-55 81 -99 If you wanta linearpattern,for n you enterhere a patternnumberbetween 1 and 6 inclusive,identifyingone of the linearpatternsbelow.
You always send the following Print Pattern command after a Specify Patterncommand.This PrintPatterncommandidentitieswhetherthe area youhavedefinedis tobefilledwitha rule,dottedgray-scalepattern,orlinear pattern: <ESC> *C n For n enter a valuefrom the followingtable.(If you selecta linearpattern here, but a dotted pattern in the previous SpecifyPattern command,the printerwill ignorethis Print Patterncommand.) n VALUE O(zero)
Page 103
define yourself, that does tic work of a whole long scnes of pnntcr commands.Any LaserJet11emulationcommandcan go into a macro. Puttingmacrostogetherto automaticallyrepeatsequencesof tasks is like usinga real programmingIanguagc.YourStarMicronicsdealermay know of some prc-writtenmacros already availablefor the Star LaserPnntcr 8. You’ll find macrosespeciallyhandy for creatingletterheadsand business forms, and also for settingtabs, subscriptsand superscripts.
Page 104
1 (one) Stop definingmacro. 2’ Execute macro. This option makes the printer run the last specified macro, changing printer parametcmaccording to whatitscommandssay.(Theprinterparamctemarethoseyou mightalsoset fromthe frontpanel.)Whenthe macrois done, the printpositionwillbejust whereit was beforeyou ran the macro. Call macro. This option also makes the printer run the last specified macro.
Page 105
Example: Macros followingprogramloads and runs a macro.The macro movesan inch and a half rightand downthreeinchesfromthe top left comer of the page, whereit prints a 25 percentgray-scalebar. It then ejectsthe paper. LPRINT CHR$( LPRINT CHR$( 300 LPRINTCHR$ ( 27) ; “&fOX” 400 LPRINT CHR$ ( 27) ;...
The small-carriageEX-800 is one of Epson’s more recent dot-matrix printers.Becauseof the popularityof the IBM PersonalComputer,which was marketedwith a modifiedEpson printer, thousandsof softwarepro- grams alreadywork with Epson printercommands. If youhavea programthatdoesn’tworkwithlascrprintercommands,you’ll almostccrtairdyfindit willworkwiththecommandsin theStarLaserPrinter 8’s EX-800emulationmode.YourStarLaserPnntcr8 will printany docu- ments you createwith standardEpsoncommands. We followthe same sequencein this chapteras wc did in earlierchaptcm: first somepnntcr managementandpagesetupcommands,thenwe’llcover commandsthatmovetheprintposition,andfinallywe’llprintourdocument...
Butsomecommandsincludetwon variables,whichareshownas n] andn2. Thesenormallyrepresentbytesto be addedtogetherto produceoncsum,in whichn] representssingleunits and n2 represents256-unitgroups. Finally,a few commandscan have many n variables(such as tab stops), which are listed the same way. And one or two includea secondkind of variable,whicharcshownin thischapteras singlelowercaselettcm,suchas c or m. Use real numbers, not ASCII symbols An importantpoint:withEX-800commandsanynumberyou put afterthe <ESC>...
left-to-right(unidirectional) p rintingcontrol<ESC>U c print quiet (half speed) print immediate (“incremental”or “typewriter”mode) CONTROLLING THE PRINTER Putting the printer online or offline You can send<XOFF>and <XON>controlcodes(describedin Chapter2 under“SerialInterface”)to putyourprinterofflineandthenonlineagain.If youareusingaparallelinterface,anydatayourcomputersendsafteryouput the printerofflinewill not be printed. To put the printerofflinesend this controlcode: <XOFF>...
FORMATTING PAGES Page length You can definepagelengthin eitherinchesor lines-a matterof personal prefcmmce. WhenyoufirststartEX-800emulationyourprintersctsthepage lengthto 11 inchesand 66 lines. The dctinition of a “line” dependson the lines-per-inchspacing. If you change line spacingafter you set the page length,the page length won’t change. Andif youprintpagesactuallyIongerthanthe installedpapcrtray, the Star LascrPnntcr8 will printthem on two sheetseach.
Page 111
For example,say you haveset the pagelengthto 84 lines (legalsize paper at 6 lines per inch),with the top-of-page8 linesdown.You then send: <ESC>N16 Thiswillgiveyou8linesoftopmargin(impliedbyyourtop-of-pagesetting) and 8 linesof bottommargin.The printerknowsyou want84-16=68 lines of text,so it printsthose,skips8 linesat the bottomof the first page,plus 8 more lines at the top of the nextpageto makeup the totalperforationskip of 16 lines.
Page 112
Side margins To set the left marginto a particularcolumnyou send this command: in whichn is thecolumnnumberfortheleftmargin.(Notethatthecharacter /is a lowercaseL.) Columnwidthis determinedby thecurrentpitch(forexample1/12inchfor 12-pitch), o r is set at 1/10inch for proportionalspacedtext. Oncemargins are set, changingthe pitch docsnot affectmargins. Same rules apply for the rightmargin:you send this command: <ESC>Q n in whichn is the columnnumberfor the rightmargin.
DESIRED LINE SPACING 1/8inch 7/’72 inch 1/6inch incrementsof 1/216inch incrementsof 1/72inch MOVING THE PRINT POSITION Space The easiestcommandfor movingthe print positionto the right acrossthe pageisjust the spacecontrolcode,the samecharactersentby the spacebar on a keyboard: <SE’ The actualdcfmitionof a space(whichcan alsobe thoughtof as the width of a print column)is set by the pitch.
Page 114
Carriage return The printermovesthe printpo:itionbackto the left marginwhenyou send a carriagerctumcontrolcode.Theprintpositionwill nextline(unlesson the frontpanel’smenuyouhavesetthe AutoLineFeed parameterON): <CR> Line feed commands The line spacingcommandsdefine what a “line”means for the following commands.The defaultverticalspacingis six lines per inch. Youuse this LineFeedcommandto movethe printposition,not to the left margin,butjust down the page one line: <LF>...
Page 115
Left-to-right printing The EX-800normallyprintsbidirectionally, w iththeprintpositionmoving alternatelyleft-to-rightand right-to-left.Cuttingdown printheadmotion does speedup printingfor thoseearlierstylesof printer—thoughit hardly compareswith laser printing. Theproblemwithbidirectional p rintingis thattheprintheadcangetslightly out of alignment. When you’re using more primitive tools sometimes accuracymattersmorethan speed,so a commandfor plainold left-to-right printing (sometimescalled “unidirectionalprinting”)is availableon Ep- son’s printem.
Page 116
Tocompletethecommand,forn2 youenterthenumberoffullgroupsof256 increments you want to move. And for n] you enter the number of incrementsleft over. Confused?Here’s an example.This command: <ESC>$141 moves14+ (256x 1)=270 incrementsfromtheleftmargin.Thatworksout to 270/60inches,whichis four and a half inches. Moving horizontally from the current position The otherhorizontalmovecommand,whichmovesaway fromthe current printposition,comesin smallerincrementsof 1/120 inch.Tomovethisway, firstdecidewhetheryouwantto moverightor left,and’byhowmany 1/120 inch increments.Then send this command:...
Page 117
n2 ... n64 < a b o e < D < < Vertical tabs n2 ... n64 < s u t 6 t < < B < t s t a 6 i t O o a c < o u t 2 ...j t a h t s v...
Vertical tabs in channels u t e T s t nl n2 ... MM c ( p < c i t CONTROLLING FONTS Selecting fonts a i d I a p a c ) s < o u t i a c b n f i a c Ot 7...
Page 119
Orientation Symbol set < n i y International characters < Germany Denmark I s i A o t c o i y o i 2 t a s...
User-defined characters B i y t g a s < < < n a o B i y GRAPHICS n a e i t t “ upper...
Page 128
Printing dots 6 t 2 What do graphics commands look like? i i h < K n n n2 is b a l o “ O 1 o 2 A...
Page 129
S t p < + ( x 2 B t p < t 4 + ( x 2 exactly Other graphics densities single dcnsi[y doubie dcnsily high-sped double density quadruple dcnsi[y screen graphics I plotter graphics (single densily) screen graphics II plotter graphics It (double density) <...
Page 130
< < m nl n2 < ’ ’ < Changing a command’s density t d t < a l o c L Y a i t p f a f < * O 1 nl n2. < < a y g <...
Page 131
L Y o Z A Nine-pin graphics < i t d b i a s f i...
Page 132
d nl n2 i a n b 6 d n i t u t 4 g d is d is ( t 2 i 3 w...
Unsuppotied commands o a l CONTROLLING THE PRINTER Identical printer control commands “ PrinterOnline Beeper Putting the printer offline o o u a < < Q < < < < <XON> < – i i a o...
FORMATTING PAGES Identical formatting commands Set PageLength in Lines Set PageLengthin Inches Set Skip OverPeroration CancelSkip OverPe~oration Set top of page MOVING THE PRINT POSITION identical print positioning commands Select Inch Line Spacing Select Inch Line Spacing Selectn1216Inch Line Spacing CarriageReturn CancelLine Form Feed...
Page 136
Set VerticalTabs Tab Vertically Tab Horizontally Define line spacing < Select line spacing < < 2 i t Special line feed < <v’r> <HI-> < o 6 l i s t o 1 1 i nZn2...n64<NUL> p i i <...
Page 137
Turning automatic line feed on or off o t t < Setting horizontal tabs s u t 2 t nl n2 ... < < D < Restoring default tab settings < < w d a l 1 t 1 h w t...
CONTROLLING FONTS Selecting fonts Orientation Symbol sets < < S 1 s S 2 w a i d S 2 h...
Page 139
Printing international characters a n p < a l o c n] n2 (data) < (data). The nl Font size and style: identical commands Select CondensedMode SelectDouble-width(one line) CancelDouble-width(one-line) Turn OnlOffDouble-widthMode SelectEmphasizedMode CancelEmphasizedMode SelectDouble-StrikeMode CancelDouble-StrikeMode Select SuperscriptlSubscript Mode CancelSuperscript/Subscript Mode Turn OnlOffUnderlining S 2 s “...
Page 140
Pitch t a p o 1 c < < Font height Style, stroke weight and typeface 5 6 1 o o o t a i d...
Overscoring i a l < – n GRAPHICS Identical graphics commands < SelectSingleDensityGraphicsMode SelectDoubleDensip GraphicsMode SelectHigh SpeedDoubleDensityGraphicsMode SelectQuadrupleDensityGraphicsMode i a w i n i O ( < a n a < < < <...
Vertical line move i a “ t g ( 1 i a t < < CONTROLLING FONTS Font selection Orientation Symbol sets t a p “ s i D u o d o b s...
Page 154
s i t < < < Special symbols = i t < < o t p “ “ < “ <...
Page 155
When you combineproportionalspacingwith automaticjustificationyou can get text that lookslike that in professionallytypesetbooks. A note, though: the proportionalspacing command can not change a monospaced-pitch fontintoaproportionally spacedone.Youshouldalways have a proportionallyspacedfont selectedwhen you send this command. To enableproportionalprinting,send this command: <ESC>P And to turn off proportionalprinting,send this command: <ESC>Q Whatif youneedto printnumbersin columnswithinproportionallyspaced text?No problem:just turn off proportionalspacingfor yournumbersand...
Page 156
Pitch The monospaccdpitchesavailablewith intcmal fonts include 10, 12 and 16.66charactersper inch. However,with the frontpanel’sprogrammenu youcan selectmorethe compact6.5 and 8.1pitchesappropriatefor a small fontlike Line Printer. Font height The normalfont sizes in Diablomode are 8.5, 10and 12pointshigh. Style Toselectitalicswiththisemulation,selectthatstyleas a fontattributefrom the front panel.If you want italicsunderprogramcontrol,you can use an optionalsupplementarysymbolset cartridgecontainingitalic characters.
You can turn off the underliningwith eitherof thesecommands: <ESC>R Suppress printing Bysendingthecommandto suppressprintingyoucanmaketheLaserPrinter 8 printspacesinplaceof anyprintablecharactersyoulaterscnd—in effect, just move the printposition. On the Diabloitself you might suppressprintingto skip over a bit of text you’dbe fillingin later,perhapswith a differentprintwheel.Or you could findthefeatureusefulin designingforms:thetextskippedovercouldbe the maximumallowablefor that blank spaceon the form.
Page 158
Think of the normal Cartesian coordinatesystem in geometry, with its horizontalx-axisandverticaly-axis.In this systema poinl30 unitsrightof the y-axisand 12unitsabovethe x-axisis shownas (30,12).Anda point30 unitsrightof the y-axisbut 12unitsbelowthe x-axisis shownas (30,–12). The minussign showsits positionrelativeto the x-axis. That bottom right quadrant is where all the action happens in Diablo graphics.
Page 159
HYPLOT STEP 1)Enter HyPlotmode 2) Selectplottingstyle plottingsymbol cESC>. 4) Set plottingprecision 5) Describeplot vectors Leave HyPlotmode COMMAND <ESC>3 <ESC> G (absolute)or <ESC> V (rela- tive) <ESC>, x y (horizontaland vertical) x ~Y (horizontal, <ESC>4...
This final chapterin yourStar LaserPrinter8 ApplicationsManualholds two main sections.The first on willhelp you with yourprogrammingjob, whilethe last providesthe symbolset tables. We’vesummarizedallcommandsin ASCIIorderhere.You’llfindIhcmor- ganizedby functionin chapters4 through7. The Star LaserPrinter’ssymbolsetshavebeenincludedso that youcan see exactlywhat charactersare availableto you. Roman-8includesstandard ASCIIandisthedefaultforallemulationsbutProprintcr; I BMCharacterSet 1 is the defaultfor that one.
COMMAND SUMMARY HP LaserJet II Emulation Printer Commands Command <BS> <HT> <LF> <FF> <CR> <so> <s1> <ESC>&a n C <ESC>&a n G <ESC>&a n H <ESC>&a n L <ESC>&a n M <ESC>&a n R <ESC>&a n V <ESC>&d @ <ESC>&d n D <ESC>&f n S <ESC>&f n X <ESC>&f n Y...
Page 163
Command <ESC>( n @ <ESC>( n X <ESC> (S n <ESC> (S n <ESC> (S rI <ESC> (S n <ESC> (S n <ESC> (S n <ESC> (S n <ESC>) n <ESC>) n @ <ESC>) n X <ESC> )S n <ESC> )S n <ESC>...
Page 164
Command cESC> [ C n <ESC>[ D n cESC> [ E n <ESC>[ O n <ESC>[ S n <ESC> Epson EX-800 Emulation Printer Commands Command <BEL> <BS> <HT> <LF> <VT> <FF> <CR> . <so> <S1> <DC1> <DC2> <DC3> <DC4> <CAN> <...
Page 165
Command <ESC>6 <ESC>7 <ESC>< <ESC>= <ESC>> <ESC>? <ESC>@ <ESC>A n <ESC>B n] n2.. .<NUL>Set verticaltab stops <ESC>C <NUL>n <ESC>C n <ESC>D rd n2.. .<NUL>Set horizontaltab slops <ESC>E <ESC>F <ESC>G <ESC>H <ESC>I n <ESC>J n <ESC>K nl n2 <ESC>L nl n2 <ESC>M <ESC>N n <ESC>O...
Page 166
Command cESC> b c nl n2...<NUL>Setverticaltab stopsin charnel cESC>j n <ESC>/n <ESC>p n <ESC>t n IBM Proprinter Emulation Printer Commands Command <BEL> <BS> <HT> <LF> <VT> <FF> <CR> <so> <S1> <DC1> <DC2> <DC4> <CAN> cESC> – n cESC> O , <ESC>...
Page 167
Command <ESC>G <ESC>H <ESC>J n <ESC>K nl n2 <ESC>L rd n2 <ESC>N n <ESC>O <ESC>Q <ETX> <ESC>R <ESC>S n <ESC>T <ESC>W n <ESC>Y n] n2 <ESC>Z nl n2 <ESC>[ C n <ESC>[ D n <ESC>[ E n <ESC>[ O n <ESC>...
Page 168
Command <ESC><CR>P <ESC><DC1> n <ESC><SUB>I <ESC><EM>n <ESC><RS> n <ESC><US> n <ESC> ! <ESC>& <ESC>, x y <ESC>– <ESC>. <ESC>O <ESC> 1 <ESC>2 <ESC>3 <ESC>4. <ESC>5 <ESC>6 <ESC>7 <ESC>8 <ESC>9 <ESC>< <ESC>= <ESC>> <ESC>? <ESC>C <ESC>D <ESC>E <ESC>G <ESC>L <ESC>M <ESC>O <ESC>P <ESC>Q <ESC>R...
Page 169
Command <ESC>V <ESC>W <ESC>X <ESC>Y <ESC>Z <ESC> [ C n <ESC>[ D n <ESC>[ E n <ESC>[ O n <ESC>[ S n Function SelectrelativeHyplotmode Selectshadowprint Printthecharacter u nderASCIIcode7Fhex 146 Selectpaper feeder Selectsimplex/duplex mode (DX type only)34 Changeemulationmode Selectorientation Selectpaper size Page...
SYMBOL SETS This sectiongivestablesof the symbolsets for the Star LaserPnntcr8. The decimalcharactercode of each characteris shown in an inset to the lower rightof the character. Thehexadecimal c odecanbe foundby readingtheentriesat thetopandleft edgesof the table.For example,the character“A” is in column4 and row 1,soitshexadecimalcharactercodeis41.
Page 171
Symbol Number 1 1 . . . 1 , . . , Name Math-7 < -- t 1 .. ,...
Page 220
Number SymbolName H-a- I< B’’L-.I ‘<HT> <EM> l<vT’LJ<Escd Pi Font I 341 I 501 -. , .“ I 581 I 741 --1. “ m“~ I 311 I 471 ““ I 63] “m ‘b “d, , .“ “. “ m “ m II –j...
Page 221
ASCII,6-11 ASCIIsymbolset,41,111 attributes.See fontattributes Auto Carriage Return command mode,141 Diablo 630 auto linefeed Proprintermode,129 AutoLineF&d parameter,22,141 autoparameters,22 autowrap,22 Autowrapcommand HP LaserJet11mode,68-69 backspacecommands Diablo630 mode,141 EX-800mode,105 HP LaserJetII mode,66 Proprintcrmode,127 backwardprinting Diablo630 mode,142-143 baseline,36 baudrate, 17 Bell,20 bidirectional p rinting,107 binaryarithmetic, 5 -6 bit-mappedfon~, 38 boldprint,35 bottommargincommands...
Page 223
factorysettings,15 Feed Selectcommand,33 Diablo630 mode,136 HP LaserJet11mode,54 fontattributes,28,35-37,41 default,43 See also fontorientation; p itch; pointsize;spacing;stroke weight;style;symbolset; typeface fontcontrolcommands Diablo630 mode,145-149 EX-800mode,110-119 HP LaserJet11mode,70-84 Proprintcrmode,130-133 fontdesign HP LaserJet11mode,85-88 fontheader,86-87 font height,36,41, 71 Diablo630 mode,148 EX-800mode,115 HP LaserJetH mode,77-78 Proprintermode,132 font ID numbers HP LaserJetII mode,71-72,82-83, fontorientation, 2 1,25,28,29,31 Diablo630 mode,145...
Page 225
networks,50 NEXTbutton,15 nine-pingraphics,123-124 numberof copiescommand HP LaserJetII mode,54 Numberof Copiessetting,20 offsetcommands EX-800mode,IZ6 ON LINEbutton,13 optioml fonts, orientation.Seefontorientation outlinefonts,40 overscoring Proprintermode, pagedesign,44-45 pageformattingcommands,22-27 Diablo630 mode,137-140 EX-800mode,102-105 HP LaserJetH mode,56-61 Proprintermode,127 pagelengthcommands Diablo630 mode,138 EX-800mode,102 HP LaserJetII mode,56-61 Proprintermode,127 pageorientation. S ee fontorientation paper,23-24 continuous-form, 21 paperfeedparameter,14,21-22...
Page 226
printpositioncommands,22,27 Diablo630 mode,140-145 EX-800mode,105-110 HP LaserJetII mode,61-69 Proprintermode,127-129 printspoolers,49 PROGRAMbutton,15 pro~rtional spacing,28,38,39 Diablo630 mode,147 HP LaserJetII mode,76 proportional s pacingoffset,147 Proprinteremulationmode, 19, Z25- fontscontrolcommands,130-133 graphicscommands,133 pageformattingcommands,127 printercontrolcommands,126 printpositioncommands,127-129 symbolsets,42 unsupported commands,126 protocol,17-18 pushingprintposition HP LaserJetII mode,69 quadruple-density g raphics EX-800mode,121 Proprintermode,133 RAM,3,39,49-50 randomaccessmemory.See RAM...
Page 227
28,37, spacing, Diablo 630 m ode, EX-800 mode, HP LaserJetII mode,76 See also line spacingcommands; monospacing; p roportional s pacing SpacingOffsetcommand,147 Diablo630 mode,140 SpecifyMacroID command HP LaserJetII mode,94-95 SpecifyPatterncommand HP LaserJetH mode,92,93 stopbit, 17 strokeweight,28,35,41, 72 Diablo630 mode,148 EX-800mode,116 HP LaserJet11mode,78 proprintcrmode,132 stylecommands, 2 8,35-36, Diablo630 mode,148...
Page 229
American Market: STARMICRONICS AMERICA, INC 420 Lexington Avenue, York, NY 10170 Attn: Product Manager Eusopean Market: STAR MICRONICS DEUTSCHLAND GMBH Westerbachstra13e59 P.O. Box 940330 D-6000 Frankfurt/Main 90 F.R. of Germany Attn: Product Manager U.K. Marker: STARMICRONICS U. K., L TD...