本篇文章描述了如何在TwinCAT3中配置EoE(Ethernet over EtherCAT) and FoE(File access EtherCAT),在使用Anybus CompactCom EtherCAT模块时,可以通过EoE协议访问模块的内置网页,通过FoE访问模块文件系统以及升级模块的固件
本次实验使用了个人的PC安装TwinCAT3作为EtherCAT主站,现场安装TwinCAT3的PLC同样适用如下配置。
AB6607-C, Anybus CompactCom for EtherCAT M40
AB6639-C, Anybus CompactCom for EtherCAT M40 with Transparent Ethernet
AB6645-C, Anybus CompactCom for EtherCAT M40 with M12 connectors
AB6677-C, Anybus CompactCom for EtherCAT B40
AB6707-C, Anybus CompactCom for EtherCAT M40 without housing
AB6739-C, Anybus CompactCom for EtherCAT M40 with Transparent Ethernet without housing
AB6745-C, Anybus CompactCom for EtherCAT M40 with M12 connectors without housing
AB6779-C, Anybus CompactCom for EtherCAT B40 with Transparent Ethernet
倍福TwinCAT3软件请自行到官网安装下载
链接如下:
https://tr.beckhoff.com.cn/mod/page/view.php?id=2287
Anybus CompactCom EtherCAT模块的固件版本需要大于 V2.xx。
EoE服务用于EtherCAT主站与从站设备传输非EtherCAT协议的常规以太网数据包,以太网数据包被封装在EtherCAT协议帧中,通过邮箱服务传输,所有来自从站的数据都需要通过主站处理,此时主站类似一个协议转换网关,因此通过浏览器访问内置网页时,会存在一定的延时,延时取决于EtherCAT的通信周期以及单次邮箱数据传输量的大小。
为了保证本次描述的功能可以正常实现, 在驱动程序中请使能 EtherCAT Host Object 0xF5的Attribute16~17. 同时不要禁止 Ethernet Host Object 0xF9.中定义的 HICP, web and FTP server功能
首先将计算机可用于EtherCAT的网卡设置静态IP地址(根据需求设置),配置如下:
在TwinCAT配置EtherCAT主站网卡为刚刚设置的网卡,其中Freerun cycle周期越短,EoE/FoE服务传输数据速率越快
FoE
官网手册下载地址如下: