ABB DCS 系统 培训课程 系列讲座 Communication.docx
- 文档编号:27351282
- 上传时间:2023-06-29
- 格式:DOCX
- 页数:8
- 大小:64.78KB
ABB DCS 系统 培训课程 系列讲座 Communication.docx
《ABB DCS 系统 培训课程 系列讲座 Communication.docx》由会员分享,可在线阅读,更多相关《ABB DCS 系统 培训课程 系列讲座 Communication.docx(8页珍藏版)》请在冰豆网上搜索。
ABBDCS系统培训课程系列讲座Communication
Chapter21Communication
21.1GeneralInformation
21.1.1Description
Thischapterdescribesthecommunicationbetweencontrollersandhowtousetheopenserialchannels.
21.1.2Objectives
Oncompletionofthischapteryouwillbeableto:
∙DescribetheuseofAccessVariables.
∙DeclareAccessVariablesusingVariablenamesordirectaddressing.
∙Configurecommunicationbetweencontrollers.
∙Setupcommunicationusinganopenserialchannel.
21.1.3ReferenceDocumentation
21.2
Lesson1-Communicationbetweencontrollers
21.2.1Description
Thischapterdescribesthecommunicationbetweencontrollers.
21.2.2Objectives
Oncompletionofthislessonyouwillbeableto:
∙DescribetheuseofAccessVariables.
∙DeclareAccessVariablesusingVariablenamesordirectaddressing.
∙Configurecommunicationbetweencontrollers.
21.2.3DefiningAccessvariables
Therearethreetabsinthegridwindow:
MMS,ComliandSattBus.Thesetabsshowtheconnectionsforeachcommunicationprotocol.Eachtabcontainsfourcolumns:
Name,Path,DatatypeandAttribute(exceptCOMLI,whichhasnoattributes).
Column
Description
Name
Anaccessnameiscreatedforavariableinacommunicationprotocol.Thenamemustbeuniquewithinthephysicalsystem,thatis,thecontrollerortheengineeringstation.Conversely,onevariablepathcanhavedifferentaccessnames.
Path
Pathreferstoalocalvariable.Thesyntaxisasfollows:
ApplicationName:
ProgramName.FunctionblockName.VariableName
Youcanomitthenameifthereonlyisoneapplicationinthecontrollerorengineeringstation.Toinsertthepath,pressCtrl+J.Thisdisplaysatreecontrolfromwhichyoucanselectthevariablepath.
DataType
Whenapathisgiven,thedatatypeisautomaticallyfilledin.Youcannoteditthiscolumn.
Attribute
YoucansetAttributetoReadOnlyorleavethefieldblank.
21.2.3.1
MMS
MMSvariablescanonlybeaccessedbyname.
AMMSaccessvariablenamecanbeupto32characterslongandcontainletters,digitsandthecharactersdollar($)andunderscore(_).
Theaccessvariablenamecannotbeginwithadigitorthedollar($)character.
Alloweddatatypeforasinglevariable:
alldatatypes
Alloweddatatypeforastructuredvariable:
alldatatypes
Variablesinastructuredvariablecanconsistofdifferentdatatypes.
IfyouwanttolimittheaccessofaMMSvariableyoucansettheAttributetoReadOnlyifblankit’spossibletobothreadandwrite.
21.2.3.2SattBus
Notreleased.
21.2.3.3COMLI
COMLIvariablescanonlybeaccessedintwowayseitherCOMLIdirectaddressingwithcapitalXandthenumberforbooleanandcapitalRandthenumberforregisters(R0-R3071)beginningwithapercentagesignornot,oraccordingtoIEC61131-3standardrepresentationforvariables.
ExampleonCOMLIdirectaddressing:
ThefollowingexamplesallshowhowtoaddressBit10(octal):
%X10orX10
(octal)
Thefollowingexamplesallshowhowtoaddressregister45(decimal):
%R45orR45
(decimal)
Alloweddatatypesforasinglevariablearebool,dint,int,oruint.
Allvariablesinastructuredvariablemustbeofthesamedatatype.
Astructuredvariableisallowedtocontainmorethan512Booleans.Overlappingareasarenotallowed!
Astructuredvariableisallowedtocontainmorethan32componentsofintegerdatatype.Overlappingareasarenotallowed!
Example
Anaccessvariablename"X0"isdefinedandconnectedtoavariablewhichcontains544Booleancomponentsatoctaladdress0-1037.Nextavailableaddressisthen1040inordernottogetoverlappingareas.
Itisacceptabletolefttheaccessvariabletableempty.Theslave/serversystemwillreactbyareplytothemaster/client,asthereactuallyweredefinedaccessvariablesinthesystem.
Followingapplies:
RequesteddataofBooleandatatypewillbereturnedwiththevalueFalseandrequesteddataofintegerdatatypewillbereturnedwiththevalue"0".
21.2.4ConfigurationofFBandControlModules
TheApplicationrunningintheControllerthattakestheinitiativetocommunicatehastobeconfigured.UseoneConnectFunctionBlockandconnectittooneorseveralReadorWriteFunctionBlockthroughanIDparameter.
21.2.4.1Connect
UsetheMMSConnectfunctionblocktoinitiateacommunicationchannelandestablishaconnectiontoaremotesystemwithauniquenodeaddressinanetwork.OtherMMSfunctionblockssuchasMMSReadandMMSWriteusetheconnection.
21.2.4.2Read/Write
Somefunctionblockshaveexpandableparameters,suchasMMSRead.Thismeansthatthenumberofinput/outputparametersisvariableandmustbespecifiedwhenyoudeclarethefunctionblockinthefunctionblocktab.Theeditorautomaticallyinserts[1]whenyouspecifyafunctionblockwithexpandableparameters.Changethisnumberwithinthebracketstotherequirednumberofparameters.
21.3Exercise21.1–CommunicationusingAccessVariables
Pleasedoexercise21.1
21.4
Lesson2–Communicationusinganopenserialchannel
21.4.1Description
Thischapterdescribeshowtousetheopenserialchannels.
21.4.2Objectives
Oncompletionofthislessonyouwillbeableto:
∙Describehowtocommunicatewithotherequipment
∙SetupcommunicationusingSerialListen
21.4.3Howtocommunicatewithotherequipment
Itispossibletocommunicatewithotherequipmentusinganopenserialchannelonthecontroller.ThefollowingFunctionBlocksaredefinedintheControlBuilder:
∙SerialConnect:
UsetheSerialConnectfunctionblocktoopenandcloseadefinedserialcommunicationchannel.
∙SerialListen:
UsetheSerialListenfunctionblockforlistening,thatis,receivingastringsentfromasendingdevice
∙SerialListenReply:
UsetheSerialListenReplyfunctionblockforlistening,thatis,receivingastringsentfromasendingdevicetotheRdparameter.Whendataisreceived,areplyofastringtypevariableissenttothesendingdevice.
∙SerialSetup:
UsetheSerialSetupfunctionblocktochangesettingsforchecksumcalculationandechohandlingwhilesendingandreceivingstringswithanyofthefollowingfunctionblocks:
SerialWriteWait,SerialListenReply,SerialWriteandSerialListen.
∙SerialWrite:
TheSerialWritefunctionblockwritesastringtoareceivingdevice.
∙SerialWriteWait:
UsetheSerialWriteWaitfunctionblocktosendastringtypevariableviatheSdparametertoareceivingdevice.ThefunctionblockwaitsforareplyfromthereceivingdevicewhichwillbereceivedthroughtheparameterRd.
21.4.3.1SerialConnect
Toestablishconnection,activatetheEnableparameter(settingittoTrue)andspecifythephysicalchannelwiththeChannelparameter.AreferencetotheconnectionisputintheIdparametertobeusedbyotherfunctionblockscommunicatingviathesameconnection.
21.4.3.2SerialListen
UsetheSerialListenfunctionblockforlistening,thatis,receivingastringsentfromasendingdevice.
∙EndCharisusedtosetwhichcharacteristodefinetheendofamessage.ThesettingofEndCharonlyapplieswhentheMsgLengthparameterissetto0.
∙ThevalidrangeofEndCharis0-255,where0=noneand13=CR(ASCII).
∙IfMsgLengthissettoavaluegreaterthan0,thevaluedefinesthelengthofthemessage.IfMsgLengthissetto0,themessagecanbeofanylength.TheendcharacterdefinedbytheEndCharparameterindicatestheendofthemessage.
∙NoOfTrailCharsetsthenumberofcharactersaftertheendcharacter.
∙ThisparameterisignoredifChecksumvalidationissetusingthefunctionblockSerialSetup.
21.5Exercise21.2–Creatingauserdefinedserialprotocol
PleasedoExercise21.2
Dukantagbortdennaosynligatextmenlåt
nedanståendePageBreakliggakvar!
Låtävendenefterföljandesidanliggakvar!
Thispageisintentionallyleftblank
Thispageisintentionallyleftblank
Osynligtext:
NästasidamåstebörjapåUDDAsidnummer
LämnaENellerTVÅtommasidorhärOVANFÖR.
NedanståendeSectionBreakfårINTEtasbort!
Kompletteratomsidavidbehovmednedanståendetext
Thispageisintentionallyleftblank
TABLEOFCONTENTS
Chapter21Communication1
21.1GeneralInformation1
21.1.1Description1
21.1.2Objectives1
21.1.3ReferenceDocumentation1
21.2Lesson1-Communicationbetweencontrollers2
21.2.1Description2
21.2.2Objectives2
21.2.3DefiningAccessvariables2
21.2.3.1MMS3
21.2.3.2SattBus3
21.2.3.3COMLI3
21.2.4ConfigurationofFBandControlModules4
21.2.4.1Connect4
21.2.4.2Read/Write4
21.3Exercise21.1–CommunicationusingAccessVariables5
21.4Lesson2–Communicationusinganopenserialchannel6
21.4.1Description6
21.4.2Objectives6
21.4.3Howtocommunicatewithotherequipment6
21.4.3.1SerialConnect6
21.4.3.2SerialListen7
21.5Exercise21.2–Creatingauserdefinedserialprotocol8
Dukantabortdennaosynligatextmenlåt
nedanståendePageBreakliggakvar!
Låtävendenefterföljandesidanliggakvar!
Thispageisintentionallyleftblank
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ABB DCS 系统 培训课程 系列讲座 Communication 培训 课程 系列 讲座
