ABB DCS 系统 培训课程 系列讲座 Basic HW Config.docx
《ABB DCS 系统 培训课程 系列讲座 Basic HW Config.docx》由会员分享,可在线阅读,更多相关《ABB DCS 系统 培训课程 系列讲座 Basic HW Config.docx(10页珍藏版)》请在冰豆网上搜索。
ABBDCS系统培训课程系列讲座BasicHWConfig
Chapter15BasicHWConfigurationandI/OConnection
15.1GeneralInformation
15.1.1Description
Thischapterdescribeshowtoconfigurethebasichardware,howtoconnecttoI/OandhowtohandleI/Oon-line.
15.1.2Objectives
Oncompletionofthischapteryouwillbeableto:
∙ConfigureabasichardwareinordertoconnecttoI/O.
∙Describehowthehierarchicaldotnotationworks.
∙Describethedifferencebetweenthealloweddatatypesandwhentousethem.
∙ConnectvariablestoI/O.
∙On-linehandlingofI/O.
15.1.3ReferenceDocumentation
Usetheonlinehelp:
Contentstab,HardwareConfiguration
Usetheonlinehelp:
Contentstab,I/OConfiguration
15.2
Lesson1–BasicHardwareConfiguration
15.2.1Description
Thislessondescribeshowtoconfigureabasichardware.
15.2.2Objectives
Oncompletionofthislessonyouwillbeableto:
∙DescribehowtosetupabasichardwareconfigurationinordertoconnecttoI/O.
∙Describehowthehierarchicaldotnotationworks.
15.2.3InsertingI/Ounitsinthehardwareconfiguration
HardwareunitsareaddedtothetreestructureintheProjectExplorerrepresentphysicalhardwareunits.Someunitscontainsubunits,suchasserialchannels,thatareautomaticallycreated.Belowisanexampleofahardwareconfiguration.
15.2.3.1
AddingHardwareUnits
ToaddanewhardwareunittothehardwaretreestructureintheProjectExplorer,proceedasfollows:
∙Selecttheunittowhichyouwanttoaddthenewhardwareunit.
∙Withthenewunitselected,right-clickontheunitandselectNewunit.Asubmenulistingpossiblehardwareisdisplayed.Selectthetypeofhardwareyouwishtoadd.IfNewunitisdimmedtheunityouhaveselectedinstep1maynotcontainanysubunits,orthemaximumnumberofsubunitshasbeenreached.
∙Selectapositionforthehardwareunitinthedialogboxdisplayed.Thefirstavailablepositionischosenbydefault.Ifanotherpositionisdesired,clickthelistboxtodisplayavailablepositions.ClickOK.
∙Thehardwareunitisnowaddedtothetree,andthenameofthehardwareunit,aswellasitsposition,isdisplayednexttotheiconofthehardwareunit.Theiconslookdifferentdependingonwhichtypeofunitwasadded.
15.2.3.2Hierarchicaldotnotation
Thehardwareaddressofahardwareunitiscomposedfromthehardwaretreepositionnumbersoftheunitanditsparentunits,describedfromlefttorightandseparatedbydots.
Forexamplechannel1ontheI/OunitDO810havetheaddressController_1.0.11.1.1.
15.3Exercise15.1–AbasichardwareConfiguration
Pleasedoexercise15.1
15.4
Lesson2–I/OConnectionandOn-linehandlingofI/O
15.4.1Description
ThislessondescribeshowtoconnecttoI/Oandon-linehandlingofI/O.
15.4.2Objectives
Oncompletionofthislessonyouwillbeableto:
∙DescribethedifferentwaystoconnecttoI/O.
∙Describethedifferencebetweenthealloweddatatypesandwhentousethem.
∙MakeanI/Oconnectionintwoways.
15.4.3Connection
UsetheconnectionstabofthehardwareconfigurationeditortomakeconnectionsbetweenvariablesandI/Ochannelsorotherhardwarechannels.AllI/OaccessiscarriedoutthroughavariableconnectedtoanI/Ochannel.
ConnectionscanbeeditedonlyinOfflinemode.Theconnectionstabisnotavailableforunitswithoutchannelstowhichyoucanconnectvariables.
Theconnectionstabcontainsagrid.TheheadingrowfeaturestheheadingsChannel,Name,Type,VariableandI/ODescription.Thereareasmanyrowsastherearechannelstowhichyoucanconnect.Adigitalunitcanalsobeconnectedtoallchannelsasadoubleword(dword).
15.4.3.1AllowedDataTypes
VariablesconnectedtoI/Ocanbeofanyofthesimpledatatypesbool,dint,dwordorreal,oranyofthesystem-definedI/Odatatypes.
15.4.3.1.1BoolIO
ThedatatypeBoolIOhasthefollowingcomponents.
Name
Datatype
Description
Value
Bool
Valueusedbytheapplication.
IOValue
Bool
ValueoftheI/Ochannel.IOValueandValueareequalifthechannelisnotforced.
Forced
Bool
Specifieswhetherornotthechannelisforced.
15.4.3.1.2
RealIO
YoucanusetheRealIOdatatypeforvariablesconnectedtoI/O.TheValue,IOValue,ForcedandStatuscomponentsaregivenbythesystemtotheapplication.TheInverted,Max,Min,UnitandFractioncomponentsaregivenbytheuseroftheapplicationtothesystemintheScalingtab.Thedatatypehasthefollowingcomponents.
Name
Datatype
Description
Value
Real
Valueusedbytheapplication.
IOValue
Real
ValueoftheI/Ochannel.IOValueandValueareequalifthechannelisnotforced.
Forced
Bool
Specifieswhetherornotthechannelisforced.
Status
Dint
IfthechannelstatusisnotOK,Statuscantakeanyofthesevalues:
-4029Underflow
-4030Overflow
-4031UnitError
-4032ChannelError
Parameters
SignalPar
Measuringrange
ThedatatypeSignalParhasthefollowingcomponents.
Name
Datatype
Description
Max
Real
Maximumvaluetowhichyoucanscaleamaximuminputsignal.
Min
Real
Minimumvaluetowhichyoucanscaleaminimuminputsignal.
Inverted
Bool
SpecifiesiftheconnectiontotheanalogI/Oisreversed
(0mA->100%,20mA->0%).
Fraction
Dint
Specifiesthenumberofdecimalstobedisplayed.
Unit
string
Displayunit.
15.4.3.1.3
DintIO
ThedatatypedintIOhasthefollowingcomponents.
Name
Datatype
Description
Value
dint
Valueusedbytheapplication.
IOValue
Dint
ValueoftheI/Ochannel.IOValueandValueareequalifthechannelisnotforced.
Forced
Bool
Specifieswhetherornotthechannelisforced.
15.4.3.1.4DwordIO
ThedatatypedintIOhasthefollowingcomponents.
Name
Datatype
Description
Value
dword
Valueusedbytheapplication.
IOValue
dword
ValueoftheI/Ochannel.IOValueandValueareequalifthechannelisnotforced.
Forced
Bool
Specifieswhetherornotthechannelisforced.
15.4.3.2FromanI/Ochanneltoavariable
ItisonlypossibletoconnectvariablestoaphysicalI/O,toconnectvariablestoI/Ounits,proceedasfollows:
Double-clickontheI/Ounit.
Awindowliketheonebelowwillbevisible.TheappearanceofthewindowisdifferentdependingofwhichI/Ounityouuse.
Right-clickinthevariablecolumnandchoose(Insert>Path,Attributefromlist…)or(Insert>PathfromTree…).ItisalsopossibletousetheacceleratorsCtrl+JorCtrl+T.
Usethedotnotationfunctionorexpandthetreetoreachthewantedvariable.
15.4.3.3FromavariabletoanI/Ochannel
ItispossibletoconnectvariablestoI/OfromthePOUeditor,butisrecommendedtodoitfromtheI/Ounit,becauseyoucannotbrowsetothecorrectI/OaddressfromtheI/OaddresscolumninthePOUeditor.
15.4.4OnlinehandlingofI/O
15.4.4.1Status
Usethestatustabofthehardwareconfigurationeditor,inonlinemode,fordynamiconlinedisplayofI/Ochannelvaluesandforcing.I/Ochannelvaluesareupdatedonceeverysecond.ThetabisavailableinOfflinemode,butnoteditable.Thetabconsistsoffivecolumns:
Channel,Channelvalue,Forced,VariablevalueandVariable.
Underflow,overflow,channelanduniterrorsinonlinemodeareindicatedintheChannelvaluecellbythefollowingicons:
15.4.4.1.1Signalerrors
underflow
Thesignalisbelowtherange.
overflow
Thesignalisabovetherange.
15.4.4.1.2Hardwareerrors
channelerror
Thechannelcanhaveunderrange,power-uporfieldpowererrors.
Uniterror
Theunitcanbemissingorofthewrongtype.
15.4.4.2Forcing
ForcingofI/Oispossibleinonlinemode.YoucheckacheckboxintheForcedcolumnandthentypeinavalueintheChannelvaluecolumnforoutputsandtheinVariablevaluecolumnforinputs.Thisvalueoverridesthevaluesineachofthosecolumns.Thebackgroundoftheforcedcellchangestoyellowtoindicateforcing.ForcingisdeactivatedwhenyouremovethecheckfromtheForcedcheckboxofthechannelinquestion.
AllI/Ochannelsthatcanbeconnectedtoavariableinanapplicationcanalsobeforcedinonlinemode,exceptforchannelssuchasUnitStatusoneachI/OunitandAllUnitsStatusonthecurrentcontroller.ForcingisperformedinthehardwareconfigurationeditorundertheStatustaborthePOUeditor.ApplicationprogramsrequiringinformationaboutforcingandforcedvaluescanusethesystemdefinedI/OdatatypeswhenconnectingvariablestoI/Ochannels.TheI/OdatatypescontaintheIOValuesandForcedcomponents.TheForcedcomponentindicatesiftheI/Ochannelisforced.TheIOValuecomponentcontainsthevalueoftheI/Ochannel.
Normallyonlychannelswithvariableconnectionstoapplicationprogramscanbeforced.However,ifnovariableisconnectedyouhavetochangetheparameterCopyunconnectedchannelsundertheSettingstabforthecurrentcontrollertogetastatusupdate.TheI/OchannelsyoucanselecttocopyareNone,theInputsortheOutputsorboththeInputsandOutputs.Ifselected,thecopyingofunconnectedI/OchannelsaremadeonceasecondsotheirstatusareavailableintheStatustablikenormallyconnectedI/Ochannels.WhenachannelisforcedallcopyingbetweentheI/Ovalueandtheapplicationvalueceases.Theforcedvalueisdifferentforinputsandoutputs.Forinputstheforcingchangesthevariablevaluetotheapplication.ForoutputstheforcingchangesthephysicalI/Ochannelvalue.InthiswaytheapplicationcanseeboththeVariable(application)valueandtheChannel(I/O)value.
15.5Exercise15.2-ConnectionofI/O
Pleasedoexercise15.2
Dukantagbortdennaosynligatextmenlåt
nedanståendePageBreakliggakvar!
Låtävendenefterföljandesidanliggakvar!
Thispageisintentionallyleftblank