Logix5000SLC500通过DH方式交换数据.docx
《Logix5000SLC500通过DH方式交换数据.docx》由会员分享,可在线阅读,更多相关《Logix5000SLC500通过DH方式交换数据.docx(9页珍藏版)》请在冰豆网上搜索。
Logix5000SLC500通过DH方式交换数据
NetworkMessageExample
SLC5/04to1756-L1processorviaDHRIO&2ENETModules
ThefollowingillustratesaSLC5/04processor(CH1DH+node76)sendingamessagetoa1756-L1
ControlLogixprocessor(slot0).ThemessagewillpassthruaDHRIOmodule,aControlLogixchassis
(Gateway)andaENETmoduletoanotherENETmoduleinanotherControlLogixchassis.Inorderforthe
messagetopassthroughthenetworkaDHRIORoutingtablemustexist!
DHRIORoutingtablecreation
TocreateaDHRIORoutingtableopenupRSLinxandunderCommunicationselectRSWho.
SelectadriverthatwillallowyoutoseeandconnectuptotheDHRIOmodule.
RightClickyourmouseontopoftheDHRIOmoduleandadropdownboxwillopen.
SelectModuleConfigurationbyclickingwiththeleftmousebutton.
SelectDHRIORoutingTabletab.Ifnoroutingtablehasbeencreatedthefollowingshouldappear.
RightclickonBackplaneandthanleftclickonEditModule.
EntertheLinkIDfortheControlLogixBackplane.
ClickonOK.
RightClickon1756-DHRIOandthanLeftClickonEditModule.
EntertheslotnumberfortheDHRIOmoduleandaLinkIDforeachCH.
ClickonOK.
RightClickonBackplaneandthanLeftClickonAddModule.
Select1756-ENETmodule.
ClickonOK.
EntertheslotnumberandaLinkIDfortheEthernetmodule.
ClickonOK.
RightClickonENETLinkandthanLeftClickonAddModule.
Select1756-ENETModuletypeandthanClickonOK.
EntertheIPaddressofthe2ndENETmoduleandthebackplaneofthe2ndControlLogixchassis.
ClickonOK.
ClickonApplyandselectYestodownloadchanges!
ClickonOK.
TheDHRIOConfigurationshouldnowresemblethefollowing:
RSLogix5000TagcreationandSLCMapping
UsingRSLogix5000softwarecreatethecontrollertagslc_data.
DoubleclickonControllerTags,selectEditTagsandenterthenameofthetagtobecreated.
MakesurethattheTypeissetforINTandArrayDimensionsforDim0issetfor5!
SelectlogicfromthetoolbarinRSlogix5000andthenMapPLC/SLCMessagesfromthedropdownmenu.
Enterthefile#youwishtoassociatewithtagslc_data.
Inthisexamplefile9isusedandwillbeaddressedasN9:
0-4intheSLCmessage.
Thefollowingladderprogramwillcontinuouslyre-sendtheMSGinstruction.
ThefollowingistheMSGSetup.
Inthisexample5wordsofdatawillbewrittenfromtheSLC5/04processorstartingatwordN12:
50tothe2nd1756-L1processor(100.100.113.2)ataddressN9:
0-4.
LocalBridgeAddress:
istheDH+nodeaddressofthe1756-DHRIOmodule.
RemoteBridgeAddressisnotrequiredifthetargetdeviceisremote-capable.
RemoteStationAddressistheslotnumberofthe1756-L1processorinthecontrollogixchassis
RemoteBridgeLinkIDisthebackplanelinkidassignedinthereceivingControlLogixchassis.