搜索
您的当前位置:首页正文

Rx3i以太网接口模块之间的通信实例(EGD协议)

来源:尚佳旅游分享网


GE FANUC - CONFIDENTIAL

Application Note

No: H-

Rx3i以太网接口模块之间的通信实例(EGD协议)

TABLE OF CONTENTS

TABLE OF CONTENTS .................................................................................................... 1 REVISION HISTORY........................................................................................................ 1 设备清单............................................................................................................................. 2 硬件: ............................................................................................................................... 2 软件: ............................................................................................................................... 2 实验描述............................................................................................................................. 3 功能说明:..................................................................................................................... 3 配置临时IP地址: ....................................................................................................... 3 配置以太网接口模块..................................................................................................... 4 配置EGD ....................................................................................................................... 5 配置EGD接收和发送 .................................................................................................. 6 参考资料:........................................................................................................................... 8

REVISION HISTORY

Version Date Page-paragraph Remarks 0.01 08-28-07 Original Issue Author Judy Chen GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or usefulness of the information contained herein.

No warranties of merchantability or fitness for purpose shall apply

Page 1 of 8

GE FANUC - CONFIDENTIAL

设备清单

硬件:

 PACSystem RX3i, IC695CPU310  IC694ETM001  Laptop PC

软件:

 Proficy Machine Edition

GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or usefulness of the information contained herein.

No warranties of merchantability or fitness for purpose shall apply

Page 2 of 8

GE FANUC - CONFIDENTIAL

实验描述

功能说明:

在本实验中,我们将演示两个Rx3i以太网接口模块之间通信的基本步骤。在应用层,我们采用EGD(Ethernet Global Data)协议,如下图所示。 应用层

(EGD)

主机到主机 传输层

(TCP) 网际层(IP)

网络介质访问

(IEEE 802.3)

)

本实验中采用的以太网接口模块为IC695ETM001(以下简称ETM001)。实验中采用的两台Rx3i PLC,以下简称为PLC 1和PLC 2。

实验主要包括以下步骤: 1.配置临时IP地址 2.配置以太网接口模块 3.配置EGD

4.配置EGD接受和发送

配置临时IP地址:

为了建立同编程器之间的初始通信,首先需要给PLC分配一个临时IP地址。当连接建立以后,实际IP地址可以通过编程器下载到ETM001。本实验中,PC的IP地址和掩码分别为: 10.0.0.1, 255.255.255.0。

步骤如下:右键单击target名称,选择offline commands,然后选择Set Temporary IP Address。在Set Temporary IP Address对话框中,参照模块上的标识正确的填写MAC Address,并选择适当的临时IP地址。在本实验中,PLC-1的

GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or usefulness of the information contained herein.

No warranties of merchantability or fitness for purpose shall apply

Page 3 of 8

GE FANUC - CONFIDENTIAL

临时IP地址为10.0.0.3。设置完毕后,单击Set IP按钮,大约1分钟后,会弹出设置完成或错误的提示框。

在进行临时IP地址设置时,请注意以下几点:

1.在设置前,要保证ME和PLC的物理层连通,即双方网口的link灯为绿色。

2.临时IP地址同PC的IP地址要有相同的网段,并且地址在该网段上唯一。

采用相同的步骤,对PLC 2进行临时地址配置。PLC 2的IP地址为10.0.0.4。

配置以太网接口模块

本实验中,选择的是基于背板的以太网接口模块IC695ETM001。下面以对PLC 1的配置为例,进行说明:

GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or usefulness of the information contained herein.

No warranties of merchantability or fitness for purpose shall apply

Page 4 of 8

GE FANUC - CONFIDENTIAL

1.单击展开PACSystems Target的Hardware Configuration,以及main

rack。

2.右键单击ETM001所在的slot,并选择Add Module。

3.在弹出的框内选择Communication选项,选择IC695ETM001。 双击ETM001,对其进行如下设置。

同理,PLC 2的设置如下

配置EGD

在使用EGD协议之前,首先要对PLC进行EGD的配置。

1.右键单击PACSystem Target名称,选择Add Component,然后Ethernet Global Data。

GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or usefulness of the information contained herein.

No warranties of merchantability or fitness for purpose shall apply

Page 5 of 8

GE FANUC - CONFIDENTIAL

2.右键单击Consumed Exchanges和Produced Exchanges,并选择Ins,可以添加接收和发送变量。

配置EGD接收和发送

EGD数据是由一台PLC周期性地发送给另一台(组)PLC的,EGD数据的 发送可分为两种:

1.PLC 1发送给PLC B的EGD数据,需指定PLC 2的IP地址作为EGD数据的接收方地址。

2.PLC 1广播给PLC 2和PLC 3的EGD数据,需指定EGD数据的接收方地址为“组号”,且PLC 2和PLC 3都加入该组。

本实验中,采取第一种发送方式,由PLC1周期性发送数据到PLC 2。 首先,我们来设置发送方PLC 1:

1.右键单击Produced Exchanges,选择Ins,输入名称为send,并在其属性框中定义正确的发送方式的Destination(本实验中为PLC 2的IP地址)。

2.双击名称send,编辑窗口显示发送EGD数据的组态界面 Add: 增加一段EGD数据

Status: 本组EGD数据的发送状态(是否出错)存放在%I001-%I016中 Address: 被发送的EGD数据的起始地址 Length: 被发送的EGD数据的长度

GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or usefulness of the information contained herein.

No warranties of merchantability or fitness for purpose shall apply

Page 6 of 8

GE FANUC - CONFIDENTIAL

同以上的步骤相同,我们接下来将对接收方PLC 2:

实验结果

当所有的配置结束时,我们可以通过ME将配置下载到Rx3i PLC上。在下载前,请注意正确设置了每一个Target属性中的Physical Port为Ethernet和IP Adress。

下载结束后,运行两台PLC。在PLC 1中修改I寄存器的数值如下:

可以看到,相应的PLC 2的寄存器表的结果如下

实验结果说明,两台Rx3i之间采用EGD协议通信成功。

GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or usefulness of the information contained herein.

No warranties of merchantability or fitness for purpose shall apply

Page 7 of 8

GE FANUC - CONFIDENTIAL

参考资料:

 Proficy Machine Edition v5.6 Help Files.  RX3i User’s Manual

GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or usefulness of the information contained herein.

No warranties of merchantability or fitness for purpose shall apply

Page 8 of 8

因篇幅问题不能全部显示,请点此查看更多更全内容

Top