新闻
Siemens西门子代理商6ES7658-1CX58-2YH5
2024-07-13 23:48  浏览:5
Siemens西门子代理商6ES7658-1CX58-2YH5

本案例为西门子S7-1200 PLC通过稳联Modbus转EtherNet/IP网关连接AB PLC的配置案例。

使用的硬件设备如下:

1:西门子S7-200 PLC;

2:AB PLC(1769-L32E)一台;

3:Modbus转EtherNet/IP网关一台(型号:WL-ABC2001);

4:电脑一台;

Modbus转EtherNetIP网关连接AB PLC

5、操作步骤,打开RSLogix5000,进行硬件组态,首先添加Modbus转EtherNet/IP网关的EDS文件;

Modbus转EtherNetIP网关连接AB PLC

6、安装完成后添加模块,选择New Module;

Modbus转EtherNetIP网关连接AB PLC

7、输入EIP寻找Modbus转EtherNet/IP网关模块,名称显示为EIP001;

Modbus转EtherNetIP网关连接AB PLC

8、双击Modbus转EtherNet/IP网关模块设置参数;

Modbus转EtherNetIP网关连接AB PLC

9、设置Modbus转EtherNet/IP网关的设备名称(名称可随意)和IP地址,本例为KJ1 IP192.168.1.5;

Modbus转EtherNetIP网关连接AB PLC

10、点击Change设置数据的输入输出长度,本例为16个字节;

Modbus转EtherNetIP网关连接AB PLC

11、下载配置到PLC;

Modbus转EtherNetIP网关连接AB PLC

12、打开Modbus转EtherNet/IP网关配置软件,新建项目选择EIP2MM;

Modbus转EtherNetIP网关连接AB PLC

13、设置与PLC的通讯参数;

Modbus转EtherNetIP网关连接AB PLC

Modbus转EtherNetIP网关连接AB PLC

14、要与PLC那边一一对应,设置Modbus转EtherNet/IP网关的modbus参数,波特率,奇偶校验,数据位,停止位等(注意,在奇偶校验不为无时数据位请选择9);

Modbus转EtherNetIP网关连接AB PLC

15、在Modbus RTU处单击鼠标右键选择插入从站站号;

Modbus转EtherNetIP网关连接AB PLC

16、填写从站站号,如有多个modbus设备可添加多个从站;

Modbus转EtherNetIP网关连接AB PLC

17、同样在NODE处单击鼠标右键插入功能码,并填写读取的寄存器参数;

Modbus转EtherNetIP网关连接AB PLC

18、配置完成后选择Modbus转EtherNet/IP网关的com口进行下载;

Modbus转EtherNetIP网关连接AB PLC

19、Modbus转EtherNet/IP网关重新上电后即可正常使用;

20、设置西门子S7-200PLC,打开S7-200plc编程软件,选择菜单栏中触点建立【常开触点】;

Modbus转EtherNetIP网关连接AB PLC

21、将常开触点命名为【SM0.1】,在项目树中找到【库】点击打开;

Modbus转EtherNetIP网关连接AB PLC

22、然后在【库】文件中找到【modbus Slave Port0】点击打开;

Modbus转EtherNetIP网关连接AB PLC

23、然后选择【MBUS-INIT】创建到程序块中;

Modbus转EtherNetIP网关连接AB PLC

24、参数“地址”(Addr)将地址设置为10;

参数“波特”(Baud)将波特率设置为9600。

参数“奇偶校验”(Parity)设置为0(无奇偶校验)

参数“端口”(Port)设置物理通信端口设置为0

参数“延时”(Delay)设置为0

参数MaxIQ用于设置Modbus地址设置为128

参数MaxAI用于设置Modbus地设置32

读取存储数量(MaxHold)设为2000

起始地址设置为【&vb0】

后面的数据为缓存数据;

Modbus转EtherNetIP网关连接AB PLC

25、然后选择【MBUS-SLAVE】创建到程序块2中,然后设置参数值;

Modbus转EtherNetIP网关连接AB PLC

26、然后在程序块中选择【库存储区】点击进入;

Modbus转EtherNetIP网关连接AB PLC

27、在弹出的【库存储区分配】窗口中选择【建议地址】。点击确定后就创建完成了。将Modbus转EtherNet/IP网关重新上电后即可正常工作,读取200PLC的数据;

Modbus转EtherNetIP网关连接AB PLC

以上为稳联Modbus转EtherNet/IP网关连接西门子S7-1200 PLC和AB PLC(1769-L32E)的配置案例


相关新闻
联系方式
公司:湖南西控自动化设备有限公司
姓名:徐嘉泉(先生)
职位:经理
手机:17838383235
地区:湖南-长沙
地址:中国(湖南)自由贸易试验区长沙片区开元东路1306号开阳智能制造产业园(一期)4#栋301
QQ:3305575995
微信:17838383235
17838383235 请卖家联系我
拨打电话
微信咨询
请卖家联系我