HP 7470A Owner's manual

)
)
fflGettingStarted
(|QHP-IBInterfacing
L33EstablishingBoundariesandUnits
)HHRS-232-C/CCITTV.24Interfacing
^43ControllingthePenandPlotting
■IIHP-ILInterfacing
J[lEnhancingthePlot
)QjAnHP-IBOverview
•^3Labeling
JBOInstructionSyntax
JtlDigitizing
ReferenceMaterial
ObtainingInformationfromthePlotter
ID
^PuttingtheCommandstoWork
)PART
NO.
07470-90001WAo% HEWLETTOCTOBER1984
\MICROFICHENO.07470-90051LfiM PACKARDPRINTEDINU.S.A.
INTERFACING
AND
PROGRAMMING
MANUAL
HP7470A
GraphicsPlotter
RS-232-C/CCITTV.24
..DESIGNEDFOB..
'SYSTEMS'
P

)
)
)
)
)
)
J
"\
/
)
)
)
3
3
1
)
J
')
)
')
)
tbutiitmt.

•"
')
■)
-s
^ s
NOPOSTAGE
NECESSARY
IFMAILED
IN
THE
UNITEDSTATES
BUSINESSREPLYMAIL
FIRSTCLASSPERMIT
NO.
5963SANDIEGO.CA
U.S.A.
POSTAGEWILLBEPAIDBYADDRESSEE
E£l
HEWLETT
PACKARD
SanDiegoDivision
Attn:MarketingCommunications
16399WestBernardoDrive
SanDiego,CAU.S
A.
92127-9989
S
INTERFACING
AND
PROGRAMMING
MANUAL
HP7470A
GraphicsPlotter
RS-232-C/CCITTV.24
p
-rti^sto*
''-Seim—.*-'***!&
©1982,
1984,byHewlett-PackardCompany
16399W.BernardoDrive.SanDiego,CA921271899

&
■.
Sd ,1
»j
i
Vfl
'>*S.

)
ManualSummary
Chapter1:GettingStarted
Containsinformationconcerningmanualusage,a descriptionofthe
plotter,itsinterfaces,theHP-GLlanguage,andthreeinstructions.
Chapter2:EstablishingBoundariesandUnits
Explainstheconceptofplottingarea,plotteranduserunits,scaling,
andtheinstructionsusedtosetandoutputthescalingpointsand
window,andtoscaletheplottingarea.
Chapter3:ControllingthePenandPlotting
Describestheinstructionsforpencontrolandvectorplotting.
Chapter4:EnhancingthePlot
Describesinstructionsfordrawingtickmarksanddifferentiatingtraces.
Chapter5:Labeling
Describestheinstructionsusedinlabelingtosetdirection,size,and
slantofcharacters,aswellasinstructionsforcharactersetandlabel
terminatorselectionandfordesigningyourowncharacters.
Chapter6:Digitizing
Describestheinstructionsusedtodigitizewiththeplotteranddemon-
strateshowtocheckforthepresenceofa digitizedpoint.
Chapter7:ObtainingInformationfromthePlotter
Describestheinstructionsusedtoobtaininformationaboutpenposi-
tion,errors,andcapabilitiesoftheplotter.
Chapter8:PuttingtheCommandstoWork
Astep-by-stepexampleillustratingtheprocedurestobefollowedto
drawlabelsandplotdatausingHP-GLinstructions.
Chapter9:HP-IBInterfacing
SummarizesoperationoftheplotterwiththeHewlett-PackardInterface
Bus(HP-IB)andexplainsthemethodsforaddressingandsendingand
receivingdataovertheinterfacebus.
Chapter10:RS-232-C/CCITTV.24Interfacing
Describeshowtoconnecttheplotterwitha terminaland/orcomputer,
summarizesthemethodsforestablishinga handshakeprotocolbe-
tweentheplotterandcomputer,andexplainsthedevicecontrolinstruc-
tionsthatareusedtosetupandcontrolthehandshakeprotocol.
Chapter11:HP-ILInterfacing
DescribestheHewlett-PackardInterfaceLoop(HP-IL)andexplainsthe
methodsforsendingandreceivingdataovertheinterfaceloop.
AppendixA:AnHP-IBOverview
ProvidesanoverviewoftheHewlett-PackardInterfaceBus(HP-IB).
iiMANUALSUMMARY
ManualSummary(Continued)
AppendixB:InstructionSyntax
Providesa summaryofbothHP-GLanddevicecontrolinstructions.
AppendixC:ReferenceMaterial
Includesa summaryofdefaultconditions,errormessages,scaling
equations,NOPinstructions,ASCIIcodes,andcharactersets.
MANUALSUMMARYiii

mm
)
)
)
)
)
)
)
)
)
)
)
)
3
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)

TableofContents
Chapter1:GettingStarted
WhatYou'llLearninThisChapter
HP-GLInstructionsCovered
TermsYouShouldUnderstand
HowtoUseHP7470Documentation
ForFirstEncounterswiththe7470
ForFirstEncounterswithHP-GL
ForExperiencedHP-GLProgrammers
UnderstandingManualConventionsandSyntax
ABriefLookatthe7470Plotter
The7470Plotter'sInstructionSet
HP-GLSyntax
HowtoUsetheExamplesinThisManual1
TheDefaultInstruction,DF1
TheInitializeInstruction,IN1
TheInputMaskInstruction,IM1
LookingAhead1
Chapter2:EstablishingBoundariesandUnits2-1
WhatYou'llLearninThisChapter2-1
HP-GLInstructionsCovered2-1
TermsYouShouldUnderstand2-1
ThePlottingArea2-2
UnitSystems2-3
ThePlotterUnit2-3
UserUnits2-3
SettingtheScalingPoints2-3
SettingPIandP2Manually2-4
TheInputPIandP2Instruction,IP2-4
TheOutputPIandP2Instruction,OP2-5
TheScaleInstruction,SC2-6
TheInputWindowInstruction,IW2-9
TheOutputWindowInstruction,OW2-10
AdvancedProgrammingTips2-11
Chapter3:ControllingthePenandPlotting3-1
WhatYou'llLearninThisChapter3-1
HP-GLInstructionsCovered3-1
TermsYouShouldUnderstand3-1
;ivTABLEOFCONTENTS
P::"!TableofContents(Continued)
rrm Chapter3:ControllingthePenandPlotting(Continued)
fgr3^ThePenInstructions,PUandPD3-2
TheSelectPenInstruction,SP3-2
C3 TheVelocitySelectInstruction,VS3-3
iR.
-™ThePlotAbsoluteInstruction,PA3-4
ThePlotRelativeInstruction,PR3-8
^0~ MMPlottingwithVariables3-11
~~TheCircleInstruction,CI3-12
5
am TheArcAbsoluteInstruction,AA3-17
~U3TheArcRelativeInstruction,AR3-19
^T3 Chapter4:EnhancingthePlot4-1
"WhatYou'llLearninThisChapter4-1
_n HP-GLInstructionsCovered4-1
!■'
IBTheTickInstructions,XTandYT4-2
TheTickLengthInstruction,TL4-2
P:
3 TheSymbolModeInstruction,SM4-4
~- J TheLineTypeInstruction,LT4-6
jm:
:a^ Chapter5:Labeling5-1
WhatYou'llLearninThisChapter5-1
E
;"JHP-GLInstructionsCovered5-1
:™TermsYouShouldUnderstand5-1
PlotterCharacterSets5-2
E;illTheDesignateStandardCharacterSetInstruction,CS5-3
TheDesignateAlternateCharacterSetInstruction,CA5-4
f*m TheSelectStandardSetInstruction,SS5-4
C':iflTheSelectAlternateSetInstruction,SA5-5
iTheDefineTerminatorInstruction,DT5-6
C
i
^3TheLabelInstruction,LB5-7
LabelingwithVariables5-9
E
,.TheAbsoluteDirectionInstruction,DI5-10
1i3TheRelativeDirectionInstruction,DR5-11
SpacingBetweenCharacters5-12
C;fjTheCharacterPlotInstruction,CP5-13
'TheAbsoluteCharacterSizeInstruction,SI5-15
_j^
TheRelativeCharacterSizeInstruction,SR5-16
Rll3TheCharacterSlantInstruction,SL5-18
x
»fc^
--"3TABLEOFCONTENTSV

'iff-iftti!iiTiffiriiiiiii»iiiiiiMiii
)
)
)
)
)
)
)
)
)
3
)
3
)
)
3
3
3
3
)
)
)
)
)
3
)
)
)
3
)
)
3
3
m

)
>
TableofContents(Continued)
)Chapter5:Labeling(Continued)
TheUserDefinedCharacterInstruction,UC5-19
ParameterInteractioninLabelingCommands5-21
)AdvancedProgrammingTips5-27
Chapter6:Digitizing6-1
)WhatYou'llLearninThisChapter6-1
\HP-GLInstructionsCovered6-1
TermsYouShouldUnderstand6-1
PreparingYourPlotterforUseasa Digitizer6-2
)TheDigitizePointInstruction,DP6-2
) TheDigitizeClearInstruction,DC6-3
TheOutputDigitizedPointandPenStatusInstruction,OD6-3
)Digitizingwiththe74706-4
)ManualMethod6-4
MonitoringtheStatusByte6-5
HP-IBInterruptsandPolling6-7
Chapter
7:
ObtainingInformationFromthePlotter7-1
WhatYou'llLearninThisChapter7-1
)HP-GLInstructionsCovered7-1
xTermsYouShouldUnderstand7-1
ABriefWordaboutPlotterOutput7-2
)NotesforanHP-IBUser7-2
NotesforanRS-232-CUser7-2
NotesforanHP-ILUser7-2
TheOutputActualPositionandPenStatus
Instruction,OA7-3
TheOutputCommandedPositionandPenStatus
Instruction,OC7-4
TheOutputErrorInstruction,OE7-5
TheOutputFactorsInstruction,OF7-6
TheOutputIdentificationInstruction,017-7
TheOutputOptionsInstruction,007-7
)TheOutputStatusInstruction,OS7-8
\SummaryofOutputResponseTypes7-9
()
VITABLEOFCONTENTS
J
TableofContents(Continued)
Chapter8:PuttingtheCommandstoWork8-1
WhatYou'llLearninThisChapter8-1
Problem8-2
Solution8-2
SetupandScaling8-2
TheAxesandTheirLabels8-3
AddingColorandEmphasis8-5
PlottingYourData8-6
Listing8-9
AdvancedProgrammingTips8-10
FillingandHatching8-10
Fillinga Bar8-10
Hatchinga Bar8-12
FillingSegmentsofPieCharts8-13
Chapter9:HP-IBInterfacing9-1
WhatYou'llLearninThisChapter9-1
HP-IBImplementationonthe74709-2
InterfaceSwitchesandControls9-2
AddressingthePlotter9-2
BusCommands■ 9-4
ReactiontoBusCommandsDCL,SDC,andIFC9-4
SerialandParallelPolling9-4
Addressingthe7470asa TalkerorListener9-6
ComputerswithNoHighLevelI/OStatements9-6
ComputerwithHighLevelI/OStatements9-6
SendingandReceivingData9-7
Computer-to-Plotter9-7
Plotter-to-Computer910
Chapter10:RS-232-C/CCITTV.24Interfacing10-1
WhatYou'llLearninThisChapter10-1
SettingUpYourRS-232-CPlotter:a Checklist10-2
PlotterEnvironments10-2
Usinga PlotterDirectlyConnectedtoa
ComputerMainframeorPersonalComputer10-2
Usinga PlotterinanEnvironmentwitha Terminal10-4
UsingthePlotterina Terminal-onlyEnvironment10-9
ConnectingtheRS-232-CInterface10-10
TABLEOFCONTENTSVll

)
)
)
)
)
)
3
3
)
3
3
)
)
)
)
3
3
3
3
)
3
)
)
)
3
)
)
)
)
)
)
3
)
MiiiniUiwWiiiiiiiiiiiiniiir'fii-iniraBiTuutiiirwi-Tn--i-nrr r .r-.inrniMfin.1
-
.ir-.ii^.,.■i«->i^-n-mi.,.,!,,.
^,
MiM^m^m^MmMmWaKK^^a--^-.
ammiMmimmmm

TableofContents(Continued)
)Chapter10:RS-232-C/CCITTV.24Interfacing(Continued)
\OutputBaudRate10-12
StopBits10-13
-'TransmissionErrors10-13
)Handshaking10-14
N
SoftwareChecking

)
)
)
)
)
)
)
3
')
)
)
)
)
)
)
)
)
)
)
)
:>
mm mm
)
)
)
)
)
)
)
)
)
)
)

B
HP-IL— Hewlett-PackardInterfaceLoop— aninterfaceusedonsome
Hewlett-Packardpersonalcomputingproductstocommunicatewith
peripheraldevicessuchasthe7470plotter.TheHP-ILinterfaceis
standardontheOption003plotter.
)
)
HowtoUseHP7470Documentation
)Thismanualcontainsinterfacingandprogramminginformationfor
theHP7470Plotterandallitsinterfacingoptions.TheOption001
plotterisequippedwiththeRS-232-C/CCITTV.24Interface.TheOption
002plotterisinterfacedthroughtheHewlett-PackardInterfaceBus
(HP-IB)whichconformstoANSI/IEEE488-1978specifications.The
Option003plotterisequippedwiththeHewlett-PackardInterfaceLoop
forpersonalcomputingdevices.AllinterfacesusetheHewlett-Packard
GraphicsLanguage(HP-GL)forcontrolofplottergraphicscapabilities.
Unlessspecificallynoted,allinformationinthismanualpertainstoall
configurations.
NOTE:AllinformationinthismanualforOption001plottersapplies
equallytoRS-232-CandCCITTV.24interfaces.Forpurposesofsim-
plicity,botharereferredtoasRS-232-C.■
Documentationforthisplotterisdesignedtoenableyoutousethe
plottereasilywithoutreadingunnecessarymanuals.Allplottersare
shippedwiththismanual,anOperator'sManual(PartNo.07470-
90002),anInterconnectionGuide(07470-90003),anda ReferenceCard
(07470-90004).TheOperator'sManualcontainsallinformationyouwill
needtooperate,butnotprogram,theplotter.TheInterconnectGuide
explainshowtophysicallyconnectyourplottertocertaincomputersor
calculators,andcontainsinstructionsforverifyingthattheconnection
hasbeenmade.TheReferenceCardcontainsa listoftheplotter'sHP-
GLinstructionswiththeirparameters,itsdevicecontrolinstructions
fortheRS-232-Cversion,anda listoferrornumbersandtheirmeanings.
1-2GETTINGSTARTED
ForFirstEncounterswiththe7470
IfyouhavejustreceivedyourHP7470,readtheOperator'sManual
andtheInterconnectionGuidebefore attemptingtooperatetheplotter.
Afterinspectingyourplotter,itspowercord,andaccessoriesas
describedintheOperator'sManual,refertotheappropriatechapterof
thismanualforinitialsetupandaddressingorhandshakingprotocol
foryourconfiguration.RS-232-CusersshouldreadChapter10,HP-IB
usersshouldreadChapter9,andHP-ILusersshouldreadChapter11.
ForFirstEncounterswithHP-GL
IfyouhaveneverprogrammedinHP-GL,afterreadingtheinterfacing
chapter,readChapters1 through5 inorder.Thesechaptersdescribe
theinstructionsyouwilluseinalmosteveryapplication.Runningthe
examplesgivenwiththeinstructionswill helpyoulearn.Next,read
Chapter8 toseehowalltheinstructionsworktogetherina program.
Whenyouhaveanapplicationrequiringdigitizingorplotteroutput,
readChapters6 and7.
ForExperiencedHP-GLProgrammers
IfyouareanexperiencedHP-GLprogrammer,youmayfindAppendix
BofthismanualortheReferenceCardmosthelpful.Sincethereare
differencesinsyntaxbetweenthisandotherplotters,youshouldread
Chapter1 ofthismanualbefore programming.The7470hasadded
capabilitiesnotfoundinearlierplotters.Amongthesearetheabilityto
plottonon-integeruser-unitvalues,tomirrorlabelsusingnegativesize
anddirectionparameters,andtooutputthecurrentwindowvalues.To
understandthesedifferences,youneedtoreadthesectionsonscaling
(SC,
Chapter
2),-
plotting(PAandPR,Chapter3),andsettinglabelsize
anddirectioninChapter5.IntheinstructionsetsummaryinAppendix
B,
pagenumbersforthecompletedescriptionarelistedwitheach
instruction.
UnderstandingManualConventionsandSyntax
Beforereadinganypartofthismanual,youshouldunderstandthe
meaningoftypestyles,symbols,andnumberrepresentationusedin
text.A detailedexplanationofsyntaxsymbolsisgiveninthesection
entitledHP-GLSyntaxinthischapterandCommandSyntaxfor
DeviceControlInstructionsinChapter10.Thefollowingconventions
alsoapply.Wordstypedinsmallboldfacetypeareeitherbuttons,
switches,orwordsactuallyfoundontheplotterorcomputer.Headings
inliWHiMJItypeareusedtohelplocatespecificpartsofthewriteupof
aninstruction.i:i*'ia:M^typeina smallersizeisusedtodenotea single
ASCIIcharacterwhichshouldbesenttotheplotter.Numbersare
typedusingSI(InternationalSystemofUnits)standards;numbers
withmorethanfourdigitsareplacedingroupsofthree,separatedbya
GETTINGSTARTED1-3

MMMU
.)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
;
)
)
)
)
)
)
)
)
;
)
)
J

tf
)
'
)
V
)
)
)
■■
.)
)
<:
)
;
)
'
)
<■
)
(
)
spaceinsteadofcommas,countingbothtotheleftandrightofthe
decimalpoint(54321.12345).
Followthedocumentationroadmapbelow:
ALLUSERS
OPERATOR'S
MANUAL
07470-90002
INTERCONNECTION
GUIDE
07470-90003
RS-232-CUSER
HP-IB,
HP-IL
USERS
INTERFACINGAND
PROGRAMMING
MANUAL,
CHAPTER10
07470-90001
»
^
—4
t
•
►
USEROFSOFTWARE
PACKAGE GRAPHICSROMUSER HP-GLPROGRAMMER
YOUR
SOFTWAREMANUAL GRAPHICSROM
MANUAL
INTERFACINGAND
PROGRAMMING
MANUAL
07470-90001
CHAPTERS1-8,AND
CHAPTER9,10,OR11
{
)
1-4GETTINGSTARTED
MIMH
tJUmitmi/aH
ABriefLookatthe7470Plotter
TheHP7470GraphicsPlotteris
a
vectorplotterwhichproduceshigh
quality,multicolorgraphicsplotsontwosizesofdrawingmedia:
EnglishANSIA
(8V2X
11in.)ormetricISOA4(210X 297mm).With
programmablepenvelocityanda choiceofstandardfiber tiportrans-
parencypens,the7470canproducedistinctivegraphicsnotonlyon
standardpaper,butalsoonothermediasuchastransparencyfilm.
Theplotteroffersbothfastplottingspeedandhighlinequality,
achievedusingHewlett-Packard'smicro-gripdrivetechnology.This
technologyprovideslow-inertiagrit-coveredwheelstomovethepaper
inoneaxiswhilethepenmovesalongtheotheraxis.Plottingoccurs
withapproximately2
g
accelerationand
a
maximumvelocityof38.1
cm/s(15in./s).Theresultisexceptionallineandcharacterqualityand
highthroughput.The7470hasaddressableresolutionof0.025mm
(0.001in.)andrepeatabilityof0.10mm(0.004in.)foranygivenpen.
Themulticolorgraphicscapabilityisprovidedbyprogrammedorfront-
panelselectionoftwopens.Ifadditionalcolorsaredesired,thepro-
gramcanbepausedtoallowmanualinstallationofadditionalpens.
Sevendifferentdashed-linefontsandsymbolmodeplottingprovide
additionaltraceidentificationcapabilities.
Characterplottingspeedofuptosixcharacterspersecondenablesyou
toproducefully-letteredgraphsquickly.Annotationcanbeeasilydone
usinganyoffive charactersets,includingthreeEuropeansets.Text
canbewritteninanydirection,withorwithoutcharacterslant,andin
varyingsizes.
The7470isengineeredtobeespeciallyusefulintheareasofbusiness
graphics,statistics,medicine,numericalcontrol,surveying,andengi-
neeringdesign.Anoptionaloverheadtransparencykitenablesyouto
producehighqualitygraphictransparenciesfromyourplottingpro-
grams.Forfastercomprehension,youcanpresenteconomictrends,
engineeringorscientificdata,marketingplans,profitdata,orsales
forecastspictorially.Andwitha choiceofmedia,youcancreatepaper
hardcopyforanindividual'sattentionortransparenciesforgroup
presentations.
Whetherdataaretabulated,measured,orcomputed,dependonthe
reliable7470topreparemulticoloredplotsofexcellentlinequalityand
highresolution.
GETTINGSTARTED
1-5
■^^^^—
■J-^**—^-**;*
-^.--
•,Q...i^^.

m*
MMMMH
■■•
■'
-
)
)
)
)
0
)
)
)
)
)
)
)
)
)
)
)
)
)
i
)
)
;
)
)
)
)
;■)
')
\)
)
)
.
)
)
«*_J

)
iThe7470Plotter'sInstructionSet
AllthreeinterfaceconfigurationsfortheHP7470Plotterusethesame
Hewlett-PackardGraphicsLanguage(HP-GL)instructionset,with
minorexceptions.*HP-GLconsistsoftwo-lettermnemonicinstructions
whichactivatetheplotter.A tablelistingtheinstructionsalphabetically
islocatedattheendofthenextsection.Syntaxdescriptionsand
explanationsoftheseinstructionsarecontainedinChapters1 through
8.SixadditionalHP-GLinstructionscausenooperationbutarein-
cludedforcompatibilitywithotherHPplotters.Theseinstructionsare
listedinAppendixC.
Fourteenadditionalinstructions,calleddevicecontrolinstructions,are
requiredbytheRS-232-Cconfiguration.Theseinstructionsareusedto
establishplotteroutputandhandshakeprotocol,andtocontrolcondi-
tionswhicharepertinentonlytotheRS-232-Cenvironment.Inan
RS-232-Cplotter,allHP-GLinstructionsentertheplotter'sinternal
bufferandareexecutedina first-in,first-outsequence.Devicecontrol
instructionsdonotenterthebuffer,butinsteadareexecutedimme-
diatelyuponreceipt.RefertoChapter10forthesyntaxdescriptionand
anexplanationofthedevicecontrolinstructions.
HP-GLSyntax
AnHP-GLinstructionisa two-lettermnemonic,whichmaybeupper-
orlowercase.A commandisdefinedasaninstructionfollowedbyits
parameterfield,ifany,anda terminator.Ifparametersfollowthe
mnemonic,theymustbeseparatedfromeachotherbyatleastone
commaorspace,orbya + or
—
signwhichmaybeprecededbycommas
orspaces.Optionalcommasand/orspacesmaybeusedasseparators
before,after,andbetweenthemnemonicandbeforetheterminator.An
instructionisterminatedbya semicolon,nonalphabeticandnonnu-
mericcharacterssuchas# or$,orbythenextmnemonic.Ifyouhave
anHP-IBorHP-ILplotter,a linefeedcanalsoterminateaninstruction.
(NotethatifyouhaveanRS-232-Cplotter,a linefeedisnota valid
terminator.)Someinstructionswillexecuteimmediatelyafterthe
mnemonicorlastrequiredparameterisreceived.Whenthisisthecase,
thedesignationfortheterminatorisshowninparenthesesinthe
syntaxdescription.Thesyntaxisshownonthenextpage.
*Option001provides45instructions;Option002provides42instructions;
Option003provides41instructions.RefertothePlotterInstructionSettable
inthischapter.
1-6GETTINGSTARTED
Mann «itei ^^tmm^timtmit^tmimi^iiiitmm
INSTRUCTIONPARAMETERFIELD
MNEMONIC(ASREQUIRED)(ASREQUIRED)
J-^LI _J
SepX SepX SepParameterSepParameterSepTerminator
OPTIONALSEPARATORS^^REQUIREDSEPARATOR
(0ORMORECOMMAS
AND/ORSPACES)
NOTE:Thesyntaximplementedonthe7470isextremelyflexibleand
differsfromthatusedonotherHewlett-Packardplotterssuchasthe
HP9872.Therefore,anysoftwarewrittenforthe7470whichtakesad-
vantageofitslessrigoroussyntaxwillnotbeabletodrivemostother
HPplotters.IfsoftwareistobeusedwithotherHP-GLplotters,the
morerigoroussyntaxoftheHP9872plottershouldbeused.
XXParameters(.Parameters)Terminator
INSTRUCTION' FORRS-232-CPLOTTERS
;ORLFFORHP-IBOR
HP-ILPLOTTERS
OPTIONALPARAMETERS
The9872syntaxdoesnotallowseparatorsbetweenthecharactersof
themnemonic.Onecommamustseparateparameters.Only;orLF
maybeusedastheterminatorforHP-IBorHP-ILplotters,andonly;
maybeusedastheterminatorforRS-232-Cplotters.Inaddition,pa-
rametersrequiringintegerformatmaynotcontaina decimalpointor
decimalfraction.■
Someinstructionshaveoptionalparameterswhich,whenomitted,
assumea defaultvalue.Inordertoomita parameter,allsubsequent
parametersinthesameinstructionmustbeomitted.Theonlyexcep-
tionisthepenparametersintheHP-GLinstruction,UC.
Thelabelinstruction,LB,isa specialcase;itmustbeterminatedwith
thelabelterminatorcharacter.ThischaracterdefaultstotheASCII
end-of-textcharacter,ETX,whosedecimalequivalentis3.Thelabel
terminatormaybechangedfromitsdefaultvalueusingthedefine
terminatorinstruction,DT.
Theparameterfieldsmustbespecifiedintheformatdefinedbythe
syntaxofeachrespectiveHP-GLinstruction.Theformatcanbeof
threetypes:
1.
IntegerFormat— a parameterinintegerformatbetween—32768.0000
and+32767.9999.Decimalfractionsofparameterswhichmustbe
integersaretruncated.Ifnosignisspecified,theparameteris
assumedtobepositive.
GETTINGSTARTED1-7

;
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
;
)
)
)
)
)
)
)
mmmmm MlHiiiliHtfiilMiHiialli
MHWiE&i:^
mm
)
)
;
)
)
J

;
)
)
)
)
:>
)
)
)
)
)
2.
DecimalFormat— a numberbetween-128.0000and127.9999with
anoptionaldecimalpointanddecimalfractionwithuptofour
significantdigits.Ifnosignisspecified,theparameterisassumedto
bepositive.
3.
LabelFields— anycombinationoftext,numericexpressions,or
stringvariables.RefertoTheLabelInstruction,LB,Chapter5,fora
completedescription.
SomeinstructionssuchasPA,PR,PU,andPDmayhavemultiple
parameters.Separatorsarerequiredbetweentheseparameters.These
optionalparametersareshowninparenthesesinthesyntaxdescriptions.
ThesyntaxshownunderthedescriptionofeachHP-GLinstruction
usesthefollowingnotations:
AfA/emonic
necessaryparameter
()
C....C
(...)
terminator
(terminator)
Forreadability,themnemonicisshownupper-
caseandseparatedfromtheparametersand/or
terminator.
Alltypesetitemsarerequiredparameters.
Allitemsinparenthesesareoptional.
Anynumberoflabelingcharacters.
AnynumberofX,Ycoordinatepairs.
;oranynonnumericornonalphabeticcharacter
suchas$ or#,orthenextmnemonic.LFisalso
validforHP-IBandHP-ILplotters.
Terminatorforaninstructionwhichwillexecute
afterthelastnecessaryparameterisreceived.
Thefollowingtableshowsthe7470'sHP-GLinstructionset.
PlotterInstructionSet
Instruction
AA
AR
CA
CI
CP
CS
DC
DF
X,Y,arcangle(,chordangle)
X,Y,arcangle(,chordangle)
n
radius(,chordangle)
spaces,lines
m
Description
Arcabsolute*
Arcrelative*
Designatealternatesetn
Circle*
Characterplot
Designatestandardsetm
Digitizeclear
Setdefaultvalues
1-8GETTINGSTARTED
MMiiiHiiiitaMii
warn
PlotterInstructionSet(Continued)
Instruction
DI
DP
DR
DT
IM
IN
IP
IW
LB
LT
OA
OC
OD
OE
OF
OI
OO
OP
OS
OW
PA
PD
PR
PU
SA
SC
SI
SL
SM
SP
SR
ss
TL
UC
VS
XT
YT
run,rise
run,rise
c
e(,s(,p))
Plx.Ply(,P2x,P2y)
Xio,Yi0,Xhi,Yhi
C....C
t(,l)
x,y(,x,y(....))
(x,y(,...))
x,y(,x,y(,...))
(x,y(,...))
Xmin,Xmax,Ymin,Ymax
width,height
tan0
c
n
width,height
tp(,tn)
(pen,)x,y,pen(,...)
V
Description
Absolutedirection
Digitizepoint
Relativedirection
Definelabelterminator
Inpute,s,andp masks
Initialize
InputPIandP2
Inputwindow
LabelASCIIstring
Designatelinetypeandlength
Outputactualposition
andpenstatus
Outputcommandedposition
andpenstatus
Outputdigitizedpoint
andpenstatus
Outputerror
Outputfactors
Outputidentification
Outputoptions
OutputPIandP2
Outputstatus
Outputwindow
Plotabsolute
Pendown
Plotrelative
Penup
Selectalternatecharacterset
Scale
Absolutecharactersize
Absolutecharacterslant
(fromvertical)
Symbolmodec
Selectpen
Relativecharactersize
Selectstandardcharacterset
Ticklength
Userdennedcharacter**
Selectvelocityv
X-axistick
Y-axistick
*AvailableonlywithOption001plottersthathavetheserialprefixnumber
2308Aorhigher.
'*NotavailablewithOption003.
GETTINGSTARTED1-9

)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
;
>
>
)
Other manuals for 7470A
3
Table of contents
Other HP Plotter manuals

HP
HP DesignJet 700 User manual

HP
HP Designjet 8000s Series User manual

HP
HP DesignJet 750c plus Series User manual

HP
HP 7475a User manual

HP
HP 7470A Owner's manual

HP
HP 7475a User manual

HP
HP C2858A User manual

HP
HP 650c - DesignJet Color Inkjet Printer User manual

HP
HP C2858A User manual

HP
HP 7585B User manual

HP
HP Designjet 510 series Manual

HP
HP Designjet 330 User manual

HP
HP 54 Basic Cutter User manual

HP
HP DesignJet 650C C2858B User instructions

HP
HP Designjet 230 User manual

HP
HP 4280A Operation manual

HP
HP DesignJet 200 User manual

HP
HP 7470A User manual

HP
HP DesignJet Z6610 60 User manual

HP
HP DesignJet 2500CP User manual