Flash Memory: 512KB (utilized for internal fonts as well as emulation programs)
Internal Fonts: A total of 7 internal fonts: (Courier and LinePrinter)
Compatible Emulations:
HP laserjet IIP
Epson FX-850
Interfaces:
Parallel Port
Serial Com Port (able to be configured at baud rates between 300 and 19200)
Paper Handling:
Multi-purpose tray
Manual feed
Cassette (optional)
Supported sizes of paper:
Letter (which measures 8.5 inches by 11 inches)
Legal (which measures 8.5 inches by 14 inches)
A4
Executive (which measures 7.25 inches by 10.5 inches)
Custom size envelopes
Font Options: Additional and down-loadable cartridge compatible font type are supported.
Frequently Asked Questions
Q: Which category of printer does Star LaserPrinter 4 fall under?
A: It is categorized under laser printers.
Q: The Star LaserPrinter 4 has a maximum print quality of?
A: A maximum of 90,000 dots for each square inch is achievable.
Q: In regard to the number of pages that Star LaserPrinter 4 can print at a time is?
A: A maximum of four pages can be printed in a single period by the devices.
Q: Is it possible to increase the memory in the Star LaserPrinter 4?
A: The memory can be expanded from 1MB to 2MB.
Q: What types of emulations does the Star LaserPrinter 4 support?
A: It is capable of emulating HP Laserjet IIP and Epson FX-850.
Q: What are the available built in fonts on the Star LaserPrinter 4?
A: There are 7 built in fonts of which majority are the Courier and LinePrinter fonts.
Q: What are the available interface methods to connect the printer to the computer?
A: You can connect through parallel or serial interfaces.
Q: What papers are supported by the Star LaserPrinter 4?
A: It accepts almost all ordinary cut sheet pages such as letter and legal, a4, executive, and many more envelope sizes.
Q: What is the operation of printing in cases where large documents or images need to be printed?
A: This sre placer in RAM which is said to hold a maximum of 1 million characters. The printer is capable of printing entire pages which are stored in it.
Q: Is it possible to use external fonts with the Star LaserPrinter 4?
A: Yes it is compatible with additional fonts which can be added through cartridges and those which can be downloaded from computer disks.
● All rightsreserved.Reproductionof anypartof this msmsafin anyform whatsoever without
STAR’s expresspermissicitis forbidden.
. ‘firecontentsof this manualarcsubjectto changewithoutnotice.
● Alf effortshave beenmadetoensuretheaccuracyof the contentsof this manualatthetime of
press.However,shouldany errorsbe detected,STAR wouldgrszdyappreciatebeinginformed
of them.
● ‘llteabove notwithstanding,STAR canassumeno responsibilityforany errorsin this manual.
@Ccpyright 1990StarMicrunicsCo., Ltd.
PREFACE
Aboutthismanual
This StarLaserPrinter4 ApplicationsManual gives you the information
youneedto programthe StarMicronicsLaserPrinter4.
Whywouldyoureadthisbook? Mostpeopleusingalaserprinterjust run
softwarepackageswithbuilt-inprinterdrivers,whichlookaftereverything
theircomputerssendtheirprinters.Butmanyofus-smallbusinesspeople
and home computerusers, not to mentionthe wizards who write those
softwarepackages—wanttobenefitfromallthenewfeaturesofferedbyour
pnntem.
Doyouwantcompletecontroloverthecharacte~andimagesyouprint?Do
youwantto makeyourStarLaserPrinter4 worklikesomeearlierkindof
printer? Thismanualprovidesthesoftwarehelpyouneedto get themost
fromyourLaserPrinter4.
ThoughthisApplicationsManual is reallyintendedfor intermediateto
advancedcomputerusers,we’vetriedtoaccommodaterelativenovicestoo.
The informationisorganizedso youcan walk throughthe generaltheory
underlyingprinterprogrammingbeforedancinginto specificdetails. It
makessense,therefore,to readthefirstthreechaptersbeforejumpinginto
themiddle.
● In “Gettingto KnowYourStarLaserPrinter4“ we providea listof the
featuresthat make this a splendidprinter, to help you choosewhich
feahuesyouwantto exploit. There’sa bit on how laserprinterswork,
insideandout. Thechapterthenexplainssoftwarein generalterms,including how to write control and Escape commandsto make those
feahues work.
● “ControllingYour Printer” examines the parameters and “superset”
commandsyougivetheStarLaserPrinter4 to directpreciselyhowyou
wantittobehave.Theseletyoucontroltheprinter,managepageformats,
andspecifywhatyouwantprinted.
● For mostofus, the“Fonts”chapterwillbeuseful: howtousethefonts
built into the LaserPrinter4, plus those that come on cartridgesor
computerdisks.
4 commands. YourLaserPnnter4 emulates otherprinters: it imitates
otherprintersby acceptingthe samecommandstheydo. Just think of
yourStarLaserPrinter4 as two printershidinginsideoneunit.
Ifyouwanttowriteormodifyaprogramthatusesoneoftheseprinters—
theHewlett-PackardLaserJet11Por EpsonFX-850-chapters4 and5
showhow yourStar LaserPrinter4 can emulateto accordingly. The
chaptersfirstdescribehowtocontroltheprinterandtoformatpages,then
howtqmovetheprintposition,andfinallyhowtousefontsandgraphics.
The chapter on the LaserJet IIP is longer and mom detailedthan the
others.That’sbecauseyouaremomlikelytouselaserprintercommands
thancommandsfordotmatnx printers. (If youhavesoftwa~ designed
only for dot matrix printers,you may havemanualsfor those printers
anyway.) We recommendyou use LaserJetHP emulationwhenever
possible,withFX-850emulationas yourbackupmode.
c Thefinal“TechnicalSupplement”containingthecommandandcharac-
ter mfextmcetableswill probablygetthumbedthe most.
Conventions
Incidentally,oneofthoseTechnicalSupplementtables suggestsacoupleof
typographicconventionswe’lluse.Baseten(decimal)numberswillgenerallybe used here;if we havetouse base sixteennumbers(hexadecimal)we’llexpresslysay so.
Andsecond,the lowercaseLis practicallyidenticaltothenumberone(1versus 1). BecauselowercaseL is usedinmanycommanddescriptions,we’ll
usethecharacter/to avoidconfusion.
TheStarLaserPrinter4 OperationsManual
ThismanualisthecompaniontotheStarLaserPrin?er4OperatwnsiWanuaZ
thatcamewithyourprinter.Alaserprinteris a fairlycomplextoolthatrequirescareanddelicatehandling.Soto usethisApplicationsl14anualbest,
makesureyouunderstandthat OperationsManual first.
Your OperationsManual holds essentialinformationabout the LaserPrinter4, such as howto:
T& chapterintroducesboththehardwareandsoftwareaspectsof theStar
LaserPrinter4’s personality,from fonts and print engineto ASCII and
Escapesequences.
4
1.1STARLASERPRINTER4 HARDWARE
1.1.1Versatility
YourStarMicronicsStarLaserPrinter4workswithpracticallyallcommercialsoftwareprogramsandcomputers.WithfeaturesthatgobeyondStar’s
easy,affordable9-pinandfast,quality-printing24-pindotmatrixprinters
the Star Laser Printer is the logicalnext step in the series of fine Star
Micronicsprintem.
YourStarLaserPrinter4 producespagesthatlookclosetotypesetquality,
withupto90,000dotspersquareinch—nomoreNLQ(nearletterquality)
compromises.The Star LaserPrinter4 producesfour of those pages a
minute.Thesenumberstranslateto aboutfivetimesmoreresolutionand
(widthwiseif you want)... detailedgraphs... yourowncustomizedtypestyles... digitizedphotographs...
Japanese).
otherlanguages(includingArabic and
Youcan even printyourletterheadandlogoas youprintyourletter, and
reprintthemdirectlyontoa businessenvelope.You don’teven need to
removethepapertraytoprinttheenvelope:justslideitintothemanualfeed
slot.
1
The StarLaserPrinter4isidealfordesktoppublishing.Thepagesit produces
makeperfectphotocopyorinstant-printmasters.Andallthemaindesktop
publishingsystems,includingAldusCorporation’sPageMaker andXerox
VenturaPubisher,worksplendidlywiththeStarLaserPrinter4.With“page
makeup”programsliketheseyouwillbe able—maybeforthefirsttime—
to delivercommunicationswiththe impactof top-notchgraphics.
1.1.2Fontoptions
Youcan print withanamazinglywidevarietyoftypefontsandsizes.The
StarLaserPrinter4 comeswith sevenbuilt-infonts,whichcan be printed
from 8.5pointsto 12pointsin size(apointis about1/72of an inch).
Besidesthese,youmaybeabletouseoptionalcartridgesanddisksto give
yourStar LaserPrinter4 a varietyof extrafonts,suchasthese:
Helvet
LetterGothicpresentationfonts
Barcodes
12pointMedium
12pointItalic
Medium
1OpointBold
1OpointItalic
linedrawing
opticalcharacterreaderfontsuniversalproductcode
You can load your Star LaserPrinter4’smemory with fonts stored on
computerdisks.Literallyhundredsof fonts are marketedby font-supply
companies.Somefontsareevenobtainablefromcomputer’’usergroups”or
“electronicbulletinboards”.Fontsyougetthiswayareinthepublicdomain,
whichmeansyou don’tneedtopay a licencefeetousethem.
Ask your Star LaserPrinter4 dealer aboutresourceslike these. Desktop
publishingwith laser printemis fast-changingterritory,and some Star
Micronicsstaffpeople havefoundelectronicbulletinboardsandcomputer
usergroupsquitehelpfulinkeepingupwiththechangingpace.Ifyouinvest
a littletimethiswayitmayrepayyouwell.
apardef cableoroneoftwokindsof serialcable.Theprinter’sinterjzce,
the link or boundaryit shares with your computer,defines whetherthe
printerwillacceptcharactersandcommandsfromyourcomputeronebyte
or onebit at a time.
Abitisthesmallestunitof computerorprintermemory.Ithaseitheralow
orhighelectriccharge,whichwerepresentwiththedigitsOand 1.Usually
eight adjacentbits are grouped to form a byte. Since a byte normally
representsonecharacter,thisstringofbits- O1OOOOO1—might represent
theletterA.
The serialinterfaceacceptsjust onebit at a time fromyourcomputer.A
parallelinterfacecanhandleawholebyteatonce,bymovingdatabitssideby-sidealongseparatewires.Youchoosewhichinterfacemethodyouwant
touseby selectingitonthecontrolpanel,asexplainedin yourStarLuser-
Printer4 OperationsManual.
1.2.4TheStarLaserPrinter4 is a computer
TheStarLaserPrinter4 firstmapsthecharactemto beprintedintoits own
randomaccessmemory(RAM).Thatis, theprinterbuildsa“picture”inits
An Intel 80960KAcomputerchip controls both the memory and the
printingmechanisminthepnnter,calledtheprintengine.Theprinterstores
a whole page in RAM before printing it. (If a page is so dense that it
overflowsmemory-a mostunlikelyevent—theStarLaserPrinter4 prints
thepageon two sheets.)
3
I
1.2.5ThePrintengine
It’s the print enginethat-formsthe actualcharactersand graphics.The
enginedirectsitslaser,apinpointstreamoflightpulses,throughmirrorsand
lensesontothesurfaceof a positively-chargedrotatingdrum.
Mirror
Lens
Laserbeam
+
~%a~nirr~mirror
nductor laser diode
Photosensitive drum
Asthelaserscans,it“draws”thepage-mapstoredinyourprinter’smemory.
Whereveralightpulsestrikes,thattinypartof thedrumdropsto a neutral
electricalcharge.That spot then attractsfine toner powder as the drum
rotatespast thepowdercompartment.
Wheredoesthe Star LaserPrinter4 get the charactersand instructionsit
needsto print in the first place’?It getsthemfmm yourcomputer,which
sendsa streamof textandcommandsto yourprinter.
Theprogramin yourcomputerthatcontrolseverythingsentto the printer
(calledthe printer driver) will usually be includedwith your computer
programs;suchasyourwordprocessor.Butthecommandscouldalsocome
fromaprogramyou’vewritten,perhapsinBASIC,aprogramminglanguage
thatusescommonEnglishwords.
Internally,computemand printersuse only the binarynumbersystemto
representboth commandsand all the alphabetic,numericand otherkeyboardsymbols.Nearlyallof thosemachinesusethe sameschemeto code
thosesymbols,the AmericanStandardsCodefor InformationInterchange
(ASCII).
number 74. Dependingon which program your printer is using, it can
interpretthatbinarystring01001010aseitherthenumber74orthesymbol
J. The printerstoresthesymbolJ atposition74in a tablein itsmemory.
That eight-bitbinarystring,or byte, canbebrokenintotwohalves.Theleft
orhigh-orderpartcontaining0100is calledthezoneportion;therightpart
holdingthe 1010iscalledthedigitsportion.Andinthehexadecimalnumber
system,the zone and digitparts of that byte are representedas 4 and A
respectively(lookthemupin the list above).
SothelaserprinterunderstandsthesymbolJ as 01001010, whichwe can
also representas the decimalnumber74 or the hexadecimalnumber4A.
We’veprintedthisbyteverticallyandhorizontallybelow,showinghowit
addsup to decimal74 andhex4A.
6
o x 27 = o
1x 26 = 64
0x25= o
x24= o
0
1X 23 = 8
0x2’ = o
1x 21 = 2
0x2° = Q
74Decimal
zone digits
01001010Binary
4AHexadecimal
The ASCIItablein the TechnicalSupplementshowsalltheseequivalent
~presentationsfor the symbolsyourlaserprinterunderstands.Thetable
Flipbacktherefor a quicklookrightnow.Seehowyoucan slicethetable
into clumpsof 16or 32, based on what’sin the zoneportionunderthe
hexadecimalcolumn?Theseclumpsmakesubgroupsof similarsymbols:
● hex 00 to IF arethecommandsymbolscalledcontrolcodes,
● hex 20 to 40 arethecommonkeyboardsymbolsandnumerals,
● hex41 to 60 arecapitallettersandthelesscommonkeyboardsymbols,
● hex 61 to 7F arelowercaselettersand a few finalsymbols.
That takes care of the first 128ASCIIsymbols.However,nearly every
cofnputerand printer manufacturertreats the second half of the table
differently. Hewlett-Packard,for example,puts a variety of accented
foreignlanguagecharactemintopositions128-255(oftenreferredtoashigh
ASCIZ).Epson gives you a choice of either italics characters or IBM
Controlcodesmostlyhandlecommunicationsbetweenyourcomputerand
theprinteratthe lowestlevel,atcablelevel.Forexample,acoupleofcontrol
codesmakesuretheprinterbuffer(yourprinter’sstoragememory)doesn’t
overflow.In this book we’ll indicatecontrol codes enclosed by angle
bracketsto their abbreviationsin the table:=&I%-meansthe Form Feed
controlcode,whichadvancestheprinterto thenextpagejustasthePRINT
button.does.
1.2.4Escapesequences
Controlcode 27, cESG or Escape,is a particularlyimportantone for
printers.Totellyourprinterallthethingsyoumightneed- settingmargins,
sayingwhereto print,choosinga particularfont, startinggraphicsand so
on- requiresmanymorethanjusttwoorthreedozencontrolcodes.Sothe
<ESC> control code has a special meaning: <ESC> means “the next
characterspecifiesa command,notsomethingto beprinted”.
Thereforeif yousendjust the character4 to theprinterit willprinta4 and
that’sall. Butif yousendthecESC>codejustbeforethe4 thentheprinter
(in FX-850 mode)willswitchoverto italicstext.Extendingthe control
codesthiswaygivesyoumanymorecommandsto controlyourprinter.In
fact,these“Escapesequences”makeupmostoftheStarLaserPrinter’skmguage.
In thisbookwe’llleavespacesbetweencharacterswhenweshowescape
sequences.You’llfind
<ESC>
abit morereadablethan
<ESC>(sOp10h12vOs3T
Butrememberthatyou arenotto sendthosespacesif yousendcommands
to the printer.
To sumup,printercommandsareoftwotypes.A controlcodeis a singlecharactercommandthattellsyourprintertodosomething,likemovedown
oneline.AnEscapesequencecontrolsaprinteroperationtoo,butismore
thanonecharacterlong.Sincetheyarecommands,neithercontrolcodesnor
escapesequencesareusuallyprintablecharacter.
8
(S@ IOh12vos 3T
1.2.5Printerdrivers
Mostsoftwarepackagesahvadyincludethe printercommandstheyneed.
Theprogramsthatsendcommandstotheprinterso youdon’thaveto enter
themyourselfa~ calledprinter drivers.
Manyprogramsaskyouto installor configureyourprinter,whichusually
meanskeyingintoamenutheparticularsetupinformationdescribingyour
StarLaserPrinter4.Youentersuchthingsas howyouwant to underline,
alterlinespacing,ormoveto a newprintposition.
Someprograms,suchasWordPerfectandthesystemsfromLotusDevelopmentCorporation,let you put printerEscapesequencesbeforeor right
insidethedocumentyouwanttoprint.Toturnonboldface,forexample,you
Without a printerdriver,sending controlcodesand Escapesequencesto
yourprinterproperlyrequiressomeknowledgeofaprogramminglanguage
likeBASIC!or Pascal,or at leastofhowto put suchcodesintoaprogram.
Withprogramminglanguages,thecomputerdoesn’tactonthecommands
youputinto a programuntilyoutellitto runthatprogram.
Whenyougivea commandto the printerfroma computerprogram,you
normallyentereachpartofthecommandasaseparatecharacter.Thisway
Here’sanexampleyoucantypein rightnow,to clarifywhatwe’resaying.
It’s written in MicrosoftBASICfor a computerthat uses the MS-DOS
operatingsystem,so if youhaveadifferentcomputeror BASICyou may
havetotranslateabit.We’llshowcommandsthewaythey’rewrittenforan
Epsondot-matrixprinterbecauseyourStarLaserPrinter4understandsthose
commands.
TheLPRINTcommandsallsenddatatotheprinter.Ifthedatais something
youwantprintedyoujust putit in quotationmarks.If thedataisa control
codeyoujustsaywhexeitisintheASCIItable,givingitspositionasaregular
decimalnumber.
Mostprogramminglanguages,andsomeversionsof BASIC,let youtreat
theprinteras a filetowhichyoucansenddata.Whenyouwritea program
withoneoftheselanguagesyou“open”theprinterfile,printintoit,andthen
“close”thefilewhenyou’redone.Thisprogrammingjargon soundsfunny
if you’renotusedtoit—but it works.
Afewprogramminglanguagesletyousendcommandstotheprinterathird
way. Applesoft BASICis one. With it, you can switchbetweenprinter
output and screenoutput.
1.2.8Printeremulations
You noticedthat we said“in FX-850mode”up there? Your Star LaserPrinter4respondstothesameescapesequencecommandsthatseveraloiher
printemuse.Beingableto emulateprintersliketheEpsonFX-850letsyou
useyourStarLaserPrinter4witholderprogramsthathaven’tbeenupdated
to take advantageof laserprinters.In fact,becauseit emulatestwo of the
mostpopularprinters,youcanusetheStarLaserPrinter4withjustaboutany
microcomputerprogramaround.
Unfortunatelythose printers often use different escape sequences for
exactlythe same function.Thoseprinters,moreover,provideescapese-
quencesfor functions the Star LaserPrinter4 doesn’tneed, such as the
Epson’s Half-SpeedCommand.When your printer gets a command it
doesn’tsupport,itjust ignoresthe command.
YoucancontrolyourStarLaserPrinter4intwoways,eitherthmughcontrol
panelparameters or throughsoftwarecomrnana!s.In thischapterwe will
considerprintercontrolsmostlyfromtheperspectiveofthecontrolpanel.
However,we’llalsomeetfourspecialcommands,theStarLaserPrinter4
Thespecificcommandsyoucansendto yourprintertomakeit emulate,or
work like, other printers are describedin chapters 4 and 5. The most
importantfact about printercommands,though,is that you may not even
needto knowhowto use them.If yoursoftwaresystemsincludetheirown
printer drivers, you may want to read only this chapter and skip all of
chaptem4 and 5.
2.1 PRINTERPARAMETERS
2.1.1 Thecontrolpanel
The easiestwayto controlyourStarLaserPrinter4 is throughits control
panel,asexplainedin moredetailin yourStarLzserl%nter4 Operations
Manual.
Whenyourprinteris online(connectedto and underthe controlof your
computer),its controlpaneldisplayshows you the printer’sstatus.For
example,the READYlightblinkswhenthe printeris warmingup. The
DATAlight comesonwheneverthe printerisholdingdataithasn’tprinted
yet.
Somebuttons on thepanellet youperformtwofunctions.Holdingoneof
those buttons down, rather than quickly pressing it, selects a different
operation.For example,holdingdown the [TEST/>]buttonfor over six
secondsafterSTATUSSHEETisdisplayedmakestheStarLaserPrinter4
printitstestpattern.
2.1.2 Parametersettings
Fromthe panel youcan alsochangethe pararnetemthatdefinehow your
printerworks.Parameterjust means“variable”. If you’refamiliarwith
earlier kinds of pnntem, you’ll understandthat laser printerparameters
controlpn%ymuchthesamethingsDIPswitchesdo.(ADIPswitchor’’dual
in-linepackageswitch”is asetofsmallswitchesthatcontrolvariousprinter
functions.)
Multi-purposetray
Numberof Copies 1
Orientation
Font
Lines/inch
Portrait
10-pitch12-pointCourier(internal)
6 linesperinch
The power-onsettingsare the normaldefaultsettings.The printer keeps
themevenwhenyouturnoffthepower.Whenyouturnontheprinter,these
power-onsettingsgetcopiedintotheinitialandcurrentparametersettings.
YouprobablywillnotoftenchangetheStarLaserPrinter4’sinitialsettings
(sometimescalled“sessionsettings”).You’lllikelyonlychangethemwhen
you want to use a differentprinteremulationthan normal.These initial
settingsstaythesameasthepower-onsettingsuntilyouchangethem.
particularmenuitemas thevaluefor a currentparametersetting.
SETPOWER-UPenablesyoutosavenewsettingsinapermanentmemory
calledEEPROM.Thenewsettingscan be storedeven whenthepoweris
turnedoff.Thefinalmenu(LOADFACTORYSET)isusedwhenyouwant
to startfromthebeginning,withtheoriginalfactorysettings.
2.2CONTROLLINGTHEPRINTER
In this sectionyou’llmeettwo separatecontrolsoverhowtheStarLaserPrinter4 itself works.The INTERFACEparametercontrolscommunications between the printer and your computer.And the EMULATION
parameterdetermines,amongother things, which set of commandsthe
printerwilluse.Youcan settheseINTERFACEandEMULATIONparameterson the controlpanel.
v ] when you want to save a
2.2.1 TheINTERFACEparameter
The INTERFACEparameter,the most basicof the StarLaserPrinter4’s
configurationsettings,defineshowyourcomputerconnectsto the printer.
You can set the INTERFACEto eitherSerialor Parallel.In most singlecomputetenvironrnentsyou’lloptforthefasterParallelinterface;ina multi-
andtwoserialports,whichcomeonexpansionboardsyouplugintoyour
computer.Whenyouinstallsuchboardsyoumustset switchesto indicate
the numberandaddressesoftheseports.Ifyouspecifythe wrongaddresses,
youwon’tbe able to print.
16
Serialinterface:rate
IfyouaskfortheSerialinterfaceyou’llhavetotellyourprintermoreabout
howthedatawillbe comingin-inparticularitsrateandunitsizeandthe
meaningsof any specialbits.
TheRateparameterspecifieshow fastdatawillbe arriving,measuredin
baud(namedaftertheFrenchcommunicationsengineerJeanBaudot).Pick
anyof the followingdatatransferrates:
300baud
600baud
1200baud
2400baud
4800baud
9600baud(thedefault)
19200baud.
Roughly,one character secondworksoutto 11baud.Ifyou’renotsurehow
fast your computerwill transmit,the generalrule is to experiment.Try
sendingapageto printatthehighestspeed,andworkyourwaydownuntil
in groupsof seven(mostcomputerssendeight,thedefaultfor a byte).
Sometimesanextrabit getsappendedtomakethe sumof all bits in each
characteralwaysoddoreven;that’scalledparity.Aparitybitcanhelp spot
transmissionerrors.Ifyourcomputersendsthatextraparitybit,you’llhave
to say whether it produces an even or odd number of “on” bits in the
character.
You’llalsohaveto indicateif yourcomputersendstwostopbitstoindicate
theendof a byte,insteadof one,thedefault.Theseserialinterfacesettings
aredescribedinmoredetailinyourStarfuserPrinter4 @erationsMan~l.
Serialinterface:protocol
Finally,in Serialmodeyour computerwill use one of threeprofocoZsto
ensuredata is sent properly.Protocol(sometimesalsocalled“handshaking”)means“whosayswhatwhen”,andisthewayyourprintertells your
computerit’sreadytonxeivedata.Yourcomputerandprintercommunicate
by sendingprotocolcontrolcodes(they’reatthefrontoftheASCIItable).
DTR(DataTerminalReady)protocoldoesthe samethingslightlydifferently. Theprinter sendsa continuoushigh-voltagesignaloverthe cableas
long as it can acceptdata, but drops the voltage to say “whoa” to the
computer.
Look in your computer’soperationsmanual,in the sectiondealingwith
communicationsprotocols,to see whichisbestfor yoursystem.You can
sticktotheprinter’sdefaultsifyourcomputerdoesnotusetheDTR,butdoes
If your Star LaserPrinter4 doesn’tprintwhat’son the computerscreen,
recheck your connectionsand interface settings. With an applications
programlikeLotus1–2–3orMicrosoftWord,youuseaprintersetuproutine
to match your computerwith yourprinter’soperatingcharacteristics.So
double-checkyoursoftwaresettings;yourcomputer’soutput,forexample,
might not be goingtotheproperport.
Your Star LaserPrinter4 understandsand uses the same commandsas
severalearlierkindsof printers.Your printerworksby emulatingone of
these:
18
● Hewlett-PackardLaserJet11P
● EpsonFX-850
Otherlaserprintersmayoffersuchemulationstoo,butoftenrequireinstallationof a new circuitboardfor eachemulation.StarMicmnicshas built
thesetwo emulationsintotheStarLaserPrinter4.
Youselectwhichemulationyouwanteitherby selectingit fromtheprint
programmenuontheStarLaserPrinter4’scontrolpanel,orbysendingthe
printeroneofthesupersetcommandsat the endof thischapter.
2.2.4 Whatare theemulatedprinterslike?
Mostofthe timeyouwillprobablychooseHPLaserJet11Pemulation,which
is thedefaultwhenyouturnontheStarLaserPrinter4. That’sbecausethe
LaserJetIIP, liketheStarLaserPrinter4,is a laserprinter.Thisemulation
modegivesyouthe bestcontroloveryourprinter’sfeatures,andworkswith
mostpopularapplicationsprograms.
this section we look at two controls you have over how the Star
In
LaserPrinter4 handlesand formatsits pages:You can set valuesfor the
PAPERFEEDandLAYOUTparametersonthecontrolpanel.Attheendof
thissectionwe’llalsopreviewdifferentwaysto movetheprintposition.
forms, sometimescalledfanfohi paper. Otherprintersfeed in a stackof
forms—withpagesalljoinedbyperforations-by havingsprocketsengage
andpullalongpinfeedholespunchedalongeachsideofthepaper.Afterit’s
printedyouhave to tear off the pinfeed-holestrips and then separatethe
pages.
Beawarethat anypuckeredor wovenfinishmaynotprint as sharplyas
you’dlike.Avoidshinycoatedpaperormultipartforms.Anddon’teven
thinkabout puttingin stapledor rippedpages.
21
I
● If youfrequentlychangepaperweights,you willprobablygetskewing
problems—linesthatprintatan anglebecauseof misfeeding.For best
results,whenyourStarLaserPrinter4isfirstsetup havethepaperfeeder
“squared”forpaperof atleast60grams.Lighterpaper,thoughcheaper,
isn’treallythe way to economize.
● Wantto printon yourownpreprintedletterhead?Fine—solongas your
● No question,workingwithsinglelabelsheetsis moreconvenientthan
withcontinuouslabelstock.Laserprintersarefasterandproducebetterlookinglabels than other printers.But laser printers,which work by
electrostaticphotographyrather than impact pressure, put different
stressesonlabelpaper.Eachsheethastobendoverandthroughtheguide
rollers; moreover, fusing toner to the paper involvesheat. You can
eliminatetroubleby alwaysfeedinglabelsheetsmanually.
BothAvery’s“Lasergraphic”labelsand Canon’slabels seemto work
fine.Yourmainconcernis thatthelabelscompletelycoverthebacking
sheetso it showsonlyattheoutsidemargins.Thatwayindividuallabels
can’teasilypeel off.
● If you wantto print transparenciesfor your overheadprojector,some
films will actuallymelt in your laser printer. Stick to 3M’s mediumweighttransparencyfilm(type501)or to Hewlett-Packard’s#92285J.
22
I
2.3.3 TheLAYOUTparameter
Thelayoutor@mat or setupof a pagerefersto howtextispositionedon
the page. Layout includespageorientation,marginsand the spacingof
charactersacrossandlinesdownthepage.Youcan controlthesewith the
LAYOUTparameter.
You probablywon’t use the LAYOUT parameter on the front panel’s
piograrnmenuverymuchthough.Mostof thetimeyou’lleitherleavethe
StarLaserPrinter4 with its defaultsettings,or look afterpageformatting
sidemarginscan havevaluesfmm Oto 132,definingthe margincolumns
betweenwhichwordsandimagescan be printed.Andthetop andbottom
marginscan be set at anywherefromOto 112lines.
line-feedcommands.You can alsomoveto tab settingsbothhorizontally
andvertically(handyfortablesandblankforms,or makingroomfor your
diagrams).
Butthosearen’tall. Dependingon whichprinteremulationyouareusing,
youcantellthe StarLaserPrinter4 to movetheprintpositionverticallyor
horizontallyin incrementsof:
1/10,1/12or similarfractionsof an inch(pitchsettings),
1/48,1/60,1/72,1/120or 1/216inch(lineor columndefinitions),
1/300inch(dots),or
1/720inch(tenthsof apoint).
These incrementsreflectthehistoryof twentiethcenturyprinting.Pitch,
referringtothenumberofcharactemprintedineachhorizontalinch,derives
fromhowtypewritersspacetheircharactem.Lines andcolumnswerefirst
usedbyearliercomputerprintem(onwhichtheyarecalledhorizontaland
verticalmotionindexes).Youalreadyknowaboutthe Star LaserPrinter4
beingable to print300dotsto theinch.Andtheunitby whichtypesetters
havemeasuredtext for centuriesis thepoint, about l/72nd of an inch.
Onehint about movingtheprintposition:youcanconfuseyourselfif you
usemomthanoneor twodifferentunitsduringthesamesession.Sodecide
beforehandhow accurately you need to move the print position (not
Thecommandsthat movetheprintpositionin allthesewaysaredescribed
in chapters4 and 5, withthespecificprinteremulationyouwantto use.
2.4 CONTROLLINGTHEPRINTING
2.4.1 TheEMULATEATTRIBUTESparameter
TheEMULATEATI’RIBUTESparameterdefinesf&t attributesandsetup
values(if any) foreachoftheStarLaserPrinter4’s two emulationmodes.
Afont’sattributesorcharacteristicsdeterminewhatthatfontwilllooklike
whenitisprinted.Thenextchapter,“Fonts,”exploresthedetailsof allfont
attributesin more detail. But let’s have a quick overviewnow,because
you’llmeetthesetermsonthecontrolpanel’sprogrammenu.
25
Fontattributes:a preview
Orientation(portraitorlandscapeasdescribedearlier)isusuallythoughtof
as one attributeof a font; it’s not reallya pageformattingissue.Besides
orientation,thefontswithwhichyouprinthavetheseattributes:
Symbolset is sometimescalled“characterset”- whichcanbeconfusing,
sincesomepeoplesay“characterset”whentheymeana font.Symbolsets
are subgroupsof a font’ssymbolsthat are mostappropriatefor particular
countries,suchastheUK(f), France(h),LatinAmerica(fl)orJapan@).
Finally,typt$aceitselfmeansthe artisticdesignof a font.Yourprinter’s
internaltypefacesinclude,LinePrinterand Courier.With the Star LaserPrinter 4 you can also use Helvet,Gothic, Script, Caslon, Orator and
hundredsmomtypefaces,whichyouloadintotheprinterfromcartridgeor
computerdisk.
probablydon’t need to use them. Nearly all popularsoftwarepackages
26
I
includeprinterdrivers,whichsendcommandsto the printerso you don’t
haveto typethemyourself.Someof thoseprogramsaskyouto key in setup paramettm about your printer. Other programs let you put printer
commandsbeforeorinsidethedocumentyouwanttoprint.
Besides the commands that emulate other printers, your laser printer
understandsfour othercommandscalledthe StarLaserPrinter4 superset.The Star LaserPrinterahvaysunderstandssupersetcommands;it doesn’t
matterwhichemulationmodeyourprinterisusingatthemoment.Superset
Escapesequencecommandsstartwith~Sb[ so youcan quicklyspot
themina listof commands.
Onesupersetcommandgivesyouanotherwaytoswitchfromoneemulation
to another:you sendtheChangeEmulationsupersetcommandinsteadof
usingthecontrolpanel.Thesecondsupersetcommandletsyouchangethe
printingorientation,so youcan print sidewaysup the lengthof the page,
insteadofacrossitswidthintheusualway.Thethirdsupersetcommandlets
yotichangethepapersize.Thefourthsupersetcommandletsyouchangethe
papercassette.
2.5.3 TheChangeEmulationcommand
YoucanthinkofthesupersetChangeEmulationcommandasthekeytoyour
Star LaserPrinter4. The ChangeEmulationsupersetcommandlets you
switchfmm one setof printercommandsto another“on the fly,”through
software.
Forthe value n youput O(zero)for portraitorientation,
or 1 (one)forlandscapeorientation.
When you send this commandto print in landscapemode, the printer
automaticallyrotatesitscurrentfontsothatit printsas landscape.
The spotor line whereprintingstartson thepageis sometimescalledthe
origin orfopoffonn. The originchangeswhenyouswitchorientations.
Thatstartingprintpositionisin theupperleftcomerforapcmraitpage,but
in thelowerleft comerfor a landscapepage.
ThePaperSizesupersetcommandletsyouchangethepapersizein which
the StarLaserPrinter4 prints.
This is the commandthat defineswhatsize the Star LaserPrinter4 will
accept. You issue the Paper Size commandwith the followingEscape
sequence:
<ESC>[ S n
For thevalueof n youentera numberfromthistable:
n
1
2
3
4
5
11
12
13
14
This commandcontrolsthe size that the printer should use when next
feedingfrom the selectedpaper feeder.If the printerdoes not have the
requestedsize,the controlpanelwilldisplaya messageinstructingyouto
insertthe requestedpaper/envelope.If theoperatoroverridesthatrequest,
therequestedsizeis ignoredandthecurrentsizeisused.
Ifthecommandisnotatthebeginningofthepage,itwillforceaFormFeed
and controlthe feederof the sheeton whichto printthe new page which
follows.
This commandis ignonxlwhentheoptionalcassetteis notinstalled.
PAPERFEEDER
for one sheet, then switches to the
optionalcassette
Optionalcassette
purposetray
30
tie fontsyouusedeterminewhatyourpageswilllooklike.Inthischapter
we’llfirstclari~ the meaningsof wordspeopleuse whenthey talk about
fonts.
Nextwe’llexaminethethreekindsof fonts(internal,cartridgeanddownloaded)that you can use on your Star LaserPrinter4. We’ll cover the
particularsetsof symbolsyoucanchoosefor thosefontstoo.
Finally,we’llfindouthowto loadthe printerwithyourselectionoffonts.
3.1 FONTTERMINOLOGY
3.1.1 Typefacesandfonts
First,a fewdefinitions.A typ~aceis a familyof charactemwiththesame
basicdesign.Theartisticcharacterdesignyouchooseestablishesthe“tone
ofvoice”for allyourdocuments.
Several variables can characterize typefaces, including weight (light,
or’’double-strike”.Onearlierprintersboldfaceisgeneratedbyprintingeach
charactertwice;dot-matrixmachinesprintthesecondimpressionjustahair
belowor to therightof the firstone.
Withthe StarLaserPrinter4 you can havedifferentstrokeweightsin two
ways, dependingon which emulationyou are using. You can have two
differentfonts,storingandswitchingbetweenaboldanda mediumversion
ofthefont.Oryoucanusejust onefontandsetboldonandoffwithEscape
sequences.Thelatterway usesjust half as muchfontmemory.
31
Narrowcondensedfacesusedtobecalled“compnxsed”.Theycramabout
fivecharacteminthespacewherethreeusuallygo--ideal forspreadsheets.
An extendedface, particularlyon a dot-matrixprinter,goes by several
names:“expanded,
it’scalled,extendedprintiswiderthanit ishigh,andcanbefairlyeffective
in pageheadings.
Italiccharacters(sometimescalled“oblique”)areslanted.Ordinaryupright
charactemm oftencalled “reman”. YourStarLaserPrinter4 comeswitha
built-inuprightCouriertypeface.Moreover,from any of the Star LaserPrinter4’s built-intypefacesyoucan selecta subsetof uprightsymbols
calledRoman-8.
Afont isacompletesetofcharactersin aparticularsizeandtypeface.Inthe
worldoflaserprintm, thethreevariablesmentionedabove—weight,width
and style—are a few~ontattributes(sometimescalled“fontcharacteris-
Thebizselineisthe invisiblelineupon whichcharactemoftypesit.Sincethe
firstletterblocksweremadeofleadalloy,thedistancefromonebaselineto
thenext is calledZeuding(pronounced“ledding”).Typeitselfismeasured
fromthetopofanuscender(thepartextendingupinthebork, forexample)
to thebottomof a descender(thedown-strokeofthey or q ).Themeasurementsusedtodescribefontsarepoint,sandpicus(derivedfrom
themarksandlettersinmedievalchurchalmanacs).Thereare 12pointsto
thepica,,andalmostexactly6 picas(72points)to the inch.
Laserprintersforcomputemmeasure~ontheightinpoints.Onlaserprinte~
the“whitespace”aboveascendersandbelowdescendemdependson how
the line is defined,so the line eonespondsto leading.This type you’re
readinghasafontheight of 12points,andis spacedalittlelessthan5lines
perinch.
32
Theo has beenkerned
closerto th-
f.
Thefontheight(24 points)is measured
from ●scenderto descender.
I
A fontis a completeset of
charactersin a particular
-
sizeand type[ace.
Proportional
Uu
1
L;adingis tho
baselineto baseline
m~asuremcnt.
spacing
3.1.3Fontspacingandpitch
Youprobablyfirst heard the wordpitch in connectionwith typewriters.
Typewntersnonnallyusemonospacedspacing:theygiveeachcharacterthe
sameamountofspaceontheline.
Abouthalfthefontsavailableforlaserprintersusemonospacedspacingtoo.
Pitch is alwaysexpressedas so manycharactersper inch.Ten-pitch,for
example,meansa fontwithtencharactersin eachinchoftheline.
Typesetter for centurieshaveusedtwospecialsizesoftypefor mosttext.
EZitecharactersareIOpointshighand print12charactemperinch.Andpica
chararactersare 12 pointshigh and pitchedat 10 charactersto the inch.
You’lloften run acrossthesemonospacedfontsizesin the laser printing
world.
Proportionalspacingtakesinto accountthe differencesin widthsamong
letters(compareii withWW).Proportionallyspacedprintingiseasiertoread
than typewriter-styleprintingin which all characters,includingpunctuation,havethesamewidth.
Real typesettersequipcertaincharactemwithkerns,letterpansthatextend
out to overlapadjoiningletters.In this word Typethey is kernedclosely
againstthe T. Kerningseparatesgreattypefromgoodtype.
of a patternor “map”ofdots,justlikecharactersona dot-matrixprinteror
on yourcomputerscreen.Resolutionmakesthe difference:to makeeach
charactertheStarLaserPrinter4 usestenortwentytimesasmanydotsas
a dot-matrixprinteror computerscreendoes.
Star Las&Pnnter4 fonts can be groupedinto three categories:internal,
cartridge,anddownloadablefonts.
3.2.2Internalfonts
TheStarLaserPrinter4 hassevenbuilt-ininternulfontsthatresidepermanentlyin its read-onlymemory(ROM).That’swhy these are sometimes
called“residentfonts”:
Courieristhefaceusedonthemostcommonelectrictypewriters.Courier
is not printed with proportionalspacing.The LinePrinterfont, designed
originallyfor mainframecomputem,is smallanddesignedto packa lotof
charactersintoeveryinchof print(greatfor spreadsheets).
Withthesemost frequentlyusedfontsin ROM,a pagecan be assembled
muchfasterthanifthefontshadtobeloadedintotheprinterforeachprinting
Curtridgefonts,likethe internalones, are permanentlystored on ROM
chips.ThedifferenceisthatthoseROMsareinremovablecartridges.Your
StarLaserPrinter4 has a slotforonefontcartridge.
A cartridgemayholdanywherefromhalf a dozento two dozenfonts,all
differingfmmtheinternalfontsin size,style,strokeweightor symbolset.
You’llfindthatcartridgefontsopenup awiderrangeoftypefacestoo,such
as TmsRomn,PrestigeElite,HelvetandLetterGothic.Generally,cartridge
andinternalfonttypefacesm suitablefor bothtextandheadlines.
The third kind of font is neitherbuilt into your Star LaserPrinter4 nor
availablejust by slippingin a cartridge.You dowrdoudthis kind of font,
which means you use a computerprogram to send charactemfrom a
computerdiskto yourprinter’smemory.Anydownloadedfont(sometimes
called a “soft” or “installed”font) that you put into the printer’sRAM
disappearswhenyouturnoff theprinter,so youhavetodownloadthatfont
againnexttime youwantit.
Downloadablefontsrun the gamutfromEgyptianhieroglyphicsto those
eye-catchingdecorativefontsknownasdispkzyfonts.Theyalsoincludethe
more exoticforeign-languagecharacters,such as Arabicor Cynllic, and
symbolandmathematicalfonts(sometimeswithfractions).
Howcan you comparecartridgeand downloadablefonts?Whenyou use
any fonts you have downloaded.You can change fonts in mid-lineto
emphasizea word or two wheneveryou want. You can mix internal,
cartridgeanddownloadedfontsin the samedocument.
Outlinefontsdemandawesomecomputingpowerof theprinterthough,
so they’ve been availableonly on laser printers considerablymore
expensive than the Star LaserPrinter4. Now, with programs like
Fontware,yourStarLaserPrinter4 canturnoutelegantprintin anysize
withoutthathighprice.
● Don’thesitateto ask your Stardealerwhereyoucan buy cartridgeand
downloadablefonts.If youEally can’tfmd the oneyouneed,youcan
designanddownloadyourowncustomizedfonts.Thisisnoeasyjob,but
if you’recuriousit’sdescribedinchapter4.
36
3.3SYMBOLSETS
Let’s summarizebriefly,to put the subjectof symbolsetsin context.
The attributesof a fontdeterminewhatthat font will looklike when it is
printed. We covered all but orientationat the start of this chapter, and
orientationin thelastchapter.A font’sattributesinclude:
Thoughthey are not font attributes,such printingfeaturesas subscripts,
superscriptsand underliningaretreatedalongwithfontsin the following
chaptm. Eachemulationhas itsownwayofprovidingthesefeatures.
Incidentally,thebestway to underlineisto usetheunderlinecommandin
theemulationyou areusing,insteadof backspacingandoverprintingwith
theseparateunderlinecharacter(-). If youdo thelatterwithproportionally
spacedtext,you’llusuallyfindtheunderliningis toolongforthetext.
set(whichwe’lllookatnext)
3.3.1 Whatare symbolsets?
Keyboardsdifferfromcountrytocountry,TheBritishneedtheirf symbol,
thqFrenchneedtheirq and6,the Spanishneedtheir~andfietc.Scientists
needparticularmathematicalsignstoo.ThereeasilycouIdbefourhundred
or morepossiblesymbolsfor anygivenfont.
However,thenumberofsymbolsprintersstorefor a fontislimitedto 256
slots,asinASCII.Sosomesymbols,ortheorderofsomesymbols,candiffer
in anyfont.Eachuniqueselectionandarrangementofsymbolsisasymbol
set (sometimescalleda “graphicset”or“characterset”).
The symbolat position91 for exampleis an openbracket,[ , in theusual
ASCIIsymbolset.ButthesamepositionhoIdsA(capitalAwithanumlaut)
in the Germansymbolset.
37
Youprobablywon’tchangesymbolsetsveryoften,unlessyouneedspecial
symbolsforyourtradeor regularlywritein a languageotherthanEnglish.
Whenyoudoneedthem,though,inoneoranotheremulationmodeyourStar
default symbolset is the Roman-8 set. Roman-8includesall the usual
keyboardcharacters,numbersandsymbolsinASCII,plusaccentedfo~ignlanguageCharactersandspecialsymbols(butnothingforlinedrawing).
TheEpsonFX-850emulationismllyvematile.Itletsyouhavebothofthose
IBMsymbolsetsplusEpson’sownstandardsymbolset.ThisEpsonsymbol
setisunusual:itcontainsbothuprightanditaliccharactersinthe sameset.
You may also choosefrom symbolsets for all the countriesmentioned
above,plusa secondunique set foreachof DenmarkandSpain.
3.3.3Defaultfontattributes
Whenyoupoweronyourprinterandchooseanemulation,theinternalfonts
startoffwithdefaultattributeswhichyoucanchangeasneeded.Thedefault
symbolsets dependon the emulation:in LaserJetIIP modethedefaultis
Roman-8,andinEpsonEX-800modeit’sEpsonStdUSA.
yousendcommandsemulatingaparticularprinter.Buteachemulationonly
printsproperlywiththefontsdesignedforit.Furthermore,youcanonlyuse
symbolsets, or arrangementsof those fonts, which that emulationcan
handle.So be awarethat,if you try using fontsother than those recommended for a particularemulation,you will usually get printing in the
emulation’sdefaultfont.
If youwanta characterthat’snotinthefontyou’reusing,don’thesitateto
grabit. JustsendtheEscapesequencesthatselectyourdesiredsymbolset,
printwithit, thengobacktoyouroriginalfont.
byprintingastatussheetin offlinemode,asmentionedatthebeginningof
thischapter.AnotherTESTmodemenuitem,describedin the StarLuser-Printer4 OperationsManual,alsolets you printouta list of all the fonts
availableon theprinterat anygivenmoment.
3.4.1Fonts
Most popular software packages,particularlyword processors,let you
choosefontsfromwithintheprogram.Theysendtheappropriatecommands
to the printerandyoudon’tneed to understandhowtheydoit.MultiMate
oriented:you put each page togetherindividually.Theseare great for
shorteFdocuments,such as newsletters,brochuresand letters. Other
systems,such as Xerox’s VenturaPubZisher,a~ document-oriented.
● A few of today’scomputerprogramslet you see severaldifferentfont
sizesandtypefacesonyourcomputerscreen.Thatcapabilityisnecessary
if youwantto seeon-screenexactlywhatwillprint on yourStarLaserPrinter4. Desktoppublishemcall this capabilityWYSIWYG—“what
youseeis whatyouget”.
3)Positioningeachcharacterin your font
Beforeyoudownloadeachcharacteryouhaveto telltheprinterwherein its
fonttabletoputit.Youindicatewhereby sendingthiscommand:
Yourprinter’sfonttableisjustliketheASCIItable.Beforeyousendeach
character,sayg, youhavetosaywhereyouwanttoputit.IntheASCIItable,
g is atdecimalposition103.So you sendthiscommand:
<ESC>
*C 103E
Andimmediatelyafterit yousendthe bitsthatmakeup the characterg.
4) Describing each character in your font
Thenextstepis to describeeachofyourcharacters,“mapping”whereyou
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 ortiehundredbytes.
sent as the symbolat that positionin the ASCIItable.Codingcharacter
descriptionsis tricky too, so again we recommendyou ask your Star
Micronicsdealer for help. The tablebelowshowswhatthe bytes in the
characterdescriptionmean:
BYTE
o
1
2
3
4
5
6-7
8-9
10-11
12-13
14-15
MEANING
descriptionlength
blank
always14
always1
orientation
blank
leftoffset(blankspaceto left of character)
topoffset(blankspaceabovecharacter)
characterwidth
characterheight
printpositiontravel(proportionalspacingonly)
Thebitmapofthecharacterisjustthepattemofdotsinthecharacter,starting
atthetopleftofitscell.Youworkyourwayacrossthecellanddowntothe
bottomright,givingeachdot a valueofOifit’snottobeprintedand 1ifit
is.Thenyougroupthosedotsas 8-bitbytes.
5) Permhent or temporary?
Thelaststepindownloadingyourownfontistomakethefontpermanent
or temporary,using the Font Controlcommanddescribedearlier. The
command<ESb *C4 F willallowthefontto beerasedwhenyouresetthe
printer.Butthecommand<ESC>*C5 F willkeepyourfontavailableeven
afteryou Rset theprinter.
(sometimescalled “bit-mappedgraphics”),which specify each dot in a
graphicspattern.And it printspattern gruphics,which prints lines and
patternedblocks.
Be aware,though, that adding graphicelementsalwaysslowsupprinting
withlaserprintem.
4.7.1StartingRasterGraphics
The followingstepsshouldbeperformed(intheordershown)whenprinting
wherencantakeavalueofeitherOor 1.Whenn=O,themarginforprinting
graphics will be the left-most printableedge of the page (this is not
necessarilythe same as the left text margin).If n=l, the left marginfor
graphicsis set to the currentprintposition,and anygraphicsimagewill
appearonlytotherightof thatmargin.
Threegraphicdatacompressionformatsareavailablefordatatransfer.The
datacompressionformatto be usedis selectedusing the followingcommand:
<ESC>*b n M
wheren cantakethevalueO,1 or 2. AnyotherwilueisinterpretedasO.A
fill discussionofdatacompressiontechniquesis outsidethe scopeof this
manual,but a briefexplanationof thiscommandshouldbeuseful.
.
Wheren=O,noencodingtakesplace,anda simplebinarytransfertakes
place.Bit7 ofthe firstbytecorrespondstothefirstdotin a rasterrow,bit
6 to thesecond,andsoon.
.
Where n=l, run-lengthencodingtakes place. This is a compression
Wheren=2,the data to followis in TaggedImageFileFormat(TIFF)
confofrningto RV.4.Ostandards.Thedemandsof spacedonotallowa
detailed discussion of TIFF standards here, but briefly, TIFF files
combinefeaturesofnon-encodedandnon-encoded.fdes.ManyproprietarygraphicspackagesuseTIFFencodingwhenstoringandtransmitting
graphicdata.
When transferringraster graphicdata, each line of raster data must be
prefixedby the command:
<ESC>*b n W
wherengivesthenumberofdatabytestofollow(themaximumis255before
anothersuchcommandissent).Thisdatamustfollowthecompressionrules
setin thepreviouscommand.Forinstance,aTIFFimageinterpretedin any
84
way otherthanthe TIFF formatwillproducevery strangeresults!Repeat
sendinglines of graphicsdata,prefixedby the abovecommand,untilthe
wholeimagehas beentransmitted.
To signalthe end of graphicdata transmission,send the followingcommand:
<ESC>* r B
Therearenoparameters.The LaserPrinter4 is nowin textmode.
4.7.2Rulesandpatterns
Patternsandlinesare easeto do.
Print shops call lines of any thicknessrules. A printedline in fact is a
At300dotsor720decipointsto theinch,decipointmeasurementsaremore
accurate.The printer converts decipointvalues into dots, using 2.4 decipointsto the dot. It roundsup fractionsto the next integer.So 1225
decipointswouldworkoutto510.4dots,andthepnnterroundsthisupto511
dots.
Yourdimensioncommandsspecifyan areatotherightanddownfromthe
currentprintposition.Ifyoudefineanarealargerthanthepage,yourprinter
willacceptthe command.Itwill,however,cutoff yourpatternorruleatthe
boundariesof the page’sprintablearea.
85
Whenthe printerfinishesitsprint“map”of yourruleor pattern,theprint
positionautomaticallyreturns to the spot from which you started. That
means,forinstance,thatyoucanmakealightlyshadedrectangleandthen
startprintingtextrightoverit.Thiskindofboxcanbeusefulforsettingoff
particularinformationfromthemainbodyof yourtext.
Horizontally,youcan specifythe rulelengthorhorizontalpatternsize in
dotswiththis command:
<ESC>*cn A
in whichforn youenterhowmanydotsacrossthepageyouwantthe rule
or patternto be.
Alternatively,to specifythe horizontaldimensionfor a rule or patternin
decipoints,you canprintthis command:
<ESC>
*C n H
in whichn is thehorizontalruleorpatternsizein decipoints.
Vertically,youcanindicatethesizeofyourruleorpatternin dotswiththis
patternyouwant.YoualwayssendtheSpecifyPatterncommandbefo~ the
PrintPatterncommand,evenif youwanta solidblackrule.
To indicatetheparticularpatternyou want,sendthefollowingcommand.
The generalmeaningof the n value you enter actuallydependson the
commandyouput afterthis:
<ESC>
If youwantasolidblackruleit doesn’tmatterwhatyouputinforn,asthe
printerignoresit.
You always send the followingPrint Pattern commandafter
Patterncommand.ThisPrintPatterncommandidentifieswhetherthearea
youhavedefinedistobefilledwitharule,dottedgray-scalepattern,orlinear
pattern:
<ESC>
*C n P
For n enteravaluefromthefollowingtable.(If you selecta linearpattern
here, but a dottedpattern in the previousSpecifyPatterncommand,the
printerwill ignorethisPrintPatterncommand.)
define yourself, that does the work of a whole long series of printer
commands.AnyLaserJet11Pemulationcommandcangointoamacro.
Puttingmacrostogetherto automaticallyrepeatsequencesoftasksis like
usinga ml programminglanguage.YourStarMicronicsdealermayknow
of somepre-wnttenmacrosalreadyavailablefor the Star LaserPrinter4.
To manageprintermemoryyou can make a macro eithertemporary(it
disappearswhenyouresettheprinter)orpermanent(itdisappearsonlywhen
youturnoffthe printer).
You assigneach macro an ID numberwhenyou first defineit. Use this
SpecifyMacroIDcommandtospecify(inplaceof n)theIDnumberofthe
macroto whichyouwishtorefer:
stopdefiningthe macro.
Stopdefiningmacro.
Executemacro. This optionmakes the printer run the last
specifiedmacro, changingprinter parametersaccordingto
whatitscommandssay.(Thepnnterparametersarethoseyou
might also set from the controlpanel.) Whenthe macro is
done,theprintpositionwillbejustwhereitwasbeforeyouran
themacro.
Callmacro.This optionalsomakesthe printer run the last
specifiedmacro. But before it runs the macro it saves the
currentparameters,andthenrestoresthemwhenthemacrois
finished.Again,whenthemacroisdonetheprintpositionwill
bejust whereit wasbeforeyouranthe macro.
macro.Aswiththe“callmacro”option,thisonesavescurrent
parametersand print position,and restoresthem when the
macroisfinished.Anautomaticmacrowillterminateif you
changeorientationor pagelength.
Lines500through700 selectthe 180-dotdeep and7200-dotwidepattern
andprintit.Line800doestheformfeedthatforcestheactualprinting.Line
900ends the downloadingprocess.
Atthetwolineweselectourmacroand actuallyrun it.
92
Commands
The small-carriageFX-850 is one of Epson’s more recent dot-matrix
printers.Becauseof thepopularityoftheIBMPersonalComputer,which
was marketedwith a modifiedEpsonprinter,thousandsof softwareprogramsalreadyworkwithEpsonprintercommands.
in whichC isthecodefor theparticularcommandyouwantto send.If the
commandincludesthe n signitindicatesanumericvariablethecommand
needs.For example,theFX-850commandto settherightmarginis this:
<ESC>Q n
in whichn is the columnnumberfor the rightmargin.Soto putthe right
marginat column65 you wouldsendthiscommand:
<ESC>Q 65
MostFX-850commandsworkliketoggleswitches:one<ESb codeturns
on a featweandanothercESC>codeturnsit off.
or
<ESC>C n
93
But somecommandsincludetwonvariables,whichamshownasnl andn2.
Thesenormally~pmsentbytestobe addedtogethertoproduceonesum,in
whichnl representssingleunitsandn2 represents256-unitgroups.
Finally,a few commandscanhavemany n variables(such as tab stops),
whichamlistedthe same way.And oneor two includea secondkindof
variable,whichaR showninthischapterassinglelowercaseletters,suchas
c or m.