《通过Modbus转EtherNetIP网关连接ABPLC的配置案例.docx》由会员分享,可在线阅读,更多相关《通过Modbus转EtherNetIP网关连接ABPLC的配置案例.docx(18页珍藏版)》请在第壹文秘上搜索。
1、通过Modbus转EtherNet/IP网关连接ABPLC的配置案例本案例为西门子S7-1200PLC通过稳联Modbus转EtherNet/IP网关连接ABPLC的配置案例。使用的硬件设备如下:1:西门子S7-200PLC2:ABPLC(1769-L32E)一台3:MOdbUS转EtherNet/IP网关一台(型号:WL-ABC2001)4:电脑一台理0包之能相靠能!U三hCOmPedLOfltt粘meEtherNeVIPModbus5、操作步骤,打开RSLOgiX5000,进行硬件组态,首先添加MOdbUS转EthCrNet/IP网关的EDS文件;ggRSLogix5000-EIP1769
2、-L32E20.12aEneEditWeWSearChLogiCCommunicationsIoolsAindOWHelpIfi百R&OfflineRUN-fiNoForcesOKBATNOEdK昌I/O印觞ControllerOrganizer*tionsSeCUrity0DocumentationLangUageSImportE/port%EQSHardwareInstallationTool:CJUngroupedAxesCJAdd-OnInstructions由台DataTypesqUser-Defined国CjStringsQAdd-On-Defined6、安装完成后添加模块,选择M
3、CWModUle;MotionMonitorEquipmentEhaSeSCustomTools.ControIFLASHControllerOrganizerCUngroupedAxesCAdd-OnInstructions白&DataTypesUser-Defined(S%StringsAdd-On-Definedl,Predefined+.Module-DefinedOTrends自I/OConfigurationE-筋Backplane,CompactLogixSystem曲1769-L32EEIP白1769-L32EEthernetPortL。CalErIEthern(17691日*
4、用COmPgBFNewModule.DiscoverModulesBusSizePasteCtrl+VPrint7、输入EIP寻找MOdbUS转EthCrNCt/IP网关模块,名称显示为ElPOO1;SelectModuleTypeCtlocKolDiICOVtryFavorites(JrFiltersMiBdFiltrKoulTypCt(orModuleTypVendorFaCt*loNwbtrKIPOOIDescriptionEIP2C(三VendorCtgoryPyreftidSolR=rvd8、双击Modbus转EtherNet/IP网关模块设置参数;ControllerOrganiz
5、erQXClUngroupedAxesCAdd-OnInstructions3SDataTypes;iUser-DefinedCStringsAdd-On-Defined由PredefinedQiModule-DefinedLTrends-HI/OConfiguration白MBackplane,CompactLogixSystem1769-L32EEIPE.I769-L32EEthernetPortLoCaIE卜Ethernet1769-L32EEthernetPortL5SEEQl31用CompactBusLocal9、设置MOdbUS转EtherNet/IP网关的设备名称(名称可随意)和
6、IP地址,本例为KJlIP192.168.1.5;GeneralConnectionModuleInfoIntefnetPrOtOColPortCTigufatiOnType:EIPOOIEIP2C0MVendor:FVamidSolutions.Inc.ParentLocaENBEthwnet AddressO PliVaJe Network.:OO H8, Name:192.168.15 :Naje:Description:ModuleDefinitionRevision:1.9ElectronicKejngCompatibleModuleConnections:ExclusiveOwne
7、rStatus:Offline10、点击Change设置数据的输入输出长度,本例为16个字节;Type;EIP001 EIPXOMVendor:Pyramid Solutions, Inc.ParenJ:LocaENBName:kDescr6on: , Module DefinitionRevision:Electronic Keying:CompdtibIeModuIeComectiom:NameSizeExclusiveOwnerInput16StJTOutput16MOdUteDefinitionRevision:Electronic KeyingCompatible ModuleCon
8、nections:Exclusive OwnerOKCancelHelp11、下载配置到PLC;翻RSLogix5000-EIP1769-L32E20.12”FileEditYieWSearchLogicCommunicationsTools圜QS S3 与 X rOffline RUNNo Forces OKATI dAINOEditS昌 I/O觞 Controller Organizer 11CA,二CJ Ungrouped AxesCJ Add-On Instructions 6 Data Types% User-Defined StringsL Add-On-Defined_Vho A
9、ctiveSelect Recent Path .Go Online Upload.DownloadProgram Mode Run Mode Test ModeLock ControllerClear FaultsGQ To Faults13、设置与PLC的通讯参数;B-EIP2MMIP设定方式静态配置-Port-O:ethernet:EtherNet/IPL-EtherNet/IPB-Port-1:RS485:ModbusRTU-ModbusRTU-NodeReadHoldingRegistersI-WriteMulipleRegistersIP地址192.168.1.5子网掩码255.2
10、55.255.0网关地址IOSizeInIOSizeOut192.168.1.11616父EntalkConfigurationStudio潘一I设备名kjl文件(E)编辑工具帮助(三)-日P2MM中POrt-O:ethernet:EtherNet/IPJEtheNet/IPB-Port-1:RS485:ModbusRTUB-ModbusRTU-NodeReadHoldingRegisters-WriteMulipleRegistersB-EIP2MMB-Port - O:ethernet:EtherNet/IP L-EtherNet/IPPort - 1:RS485:ModbusRTUB-M
11、odbusRTU-NodeI-Read Holding RegistersWrite Muliple Registers协议类型选择mod bus主站V波特率选择9600V数据位选择8V奇偶校验选择无V停止位选择1V传输模式RTUV响应等待ms100轮洵延时ms100输出命令轮询模式连续输出V脉冲输出时间ms100015、在MOdbUSRTlJ处单击鼠标右键选择插入从站站号;会EntalkConfigurationStudio!文件(F)编辑(E)工具(T)帮助(三)上口。目J花纪匐而散善J帚二B-日P2MM-Port-O:ethernet:EtherNet/IPJEtherNet/IPB-P
12、ort-1:RS485:ModbusRTUra4uCvyU插入I-ReadHoldingRegistersJWriteMulipleRegisters16、填写从站站号,如有多个InodbUS设备可添加多个从站;GatewayConfigurationStudio文件(E)编辑旧工具CD帮助(三)rH.:若超匐初飞明JB-EIP2MMtPOrt-O:ethernet:EtherNet/IPl-EtherNetIPPort-1:RS485:ModbusRTUModbusRTUNode%一 从站地址1017、同样在NoDE处单击鼠标右键插入功能码,并填写读取的寄存器参数;父EntalkConfigurationStudio文件(E)编辑(E)工具CD帮助(三)汨r目J再数的和飞明J端一B-日P2MM-Port-0:ethernet:EtherNet/lPEtherNet/IPB-Port-l:RS485:ModbusRTUS-ModbusRTUNode功能码3跳唠0保持寄存器数量4内存映射起始地址0字节交换不交换ReadHoldingRegistersLWHteMulipleRegisters扫描方式快速扫描命令状态字不使能无响应动作保持18、配置完成后选择Modbus转EtherNet/IP网关的com口进行下载;1央通讯设置串口TCP请选择COM 口COM19sers