电子科技 ›› 2025, Vol. 38 ›› Issue (8): 49-56.doi: 10.16180/j.cnki.issn1007-7820.2025.08.007

• • 上一篇    下一篇

分布式EtherCAT转CAN高速控制模块

洪宇琪1,2, 李清都1(), 牟海明1, 刘常义1   

  1. 1.上海理工大学 机器智能研究院,上海 200093
    2.上海理工大学 健康科学与工程学院,上海 200093
  • 收稿日期:2024-01-25 修回日期:2024-02-16 出版日期:2025-08-15 发布日期:2025-07-10
  • 通讯作者: 李清都(1980-),男,E-mail:liqd@usst.edu.cn,博士,教授。研究方向:仿生机器人理论与技术、复杂系统的动力学与控制。
  • 作者简介:洪宇琪(2000-),男,硕士研究生。研究方向:机器人通信系统、机器人运动控制。
  • 基金资助:
    国家自然科学基金(92048205);东方学者计划(TP2019064)

Research on Distributed EtherCAT to CAN High Speed Control Module

HONG Yuqi1,2, LI Qingdu1(), MOU Haiming1, LIU Changyi1   

  1. 1. Institute of Machine Intelligence,University of Shanghai for Science and Technology,Shanghai 200093,China
    2. School of Health Science and Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China
  • Received:2024-01-25 Revised:2024-02-16 Online:2025-08-15 Published:2025-07-10
  • Supported by:
    National Natural Science Foundation of China(92048205);Oriental Scholars Program(TP2019064)

摘要:

针对人形机器人领域中传统转换模块系统资源占用率高、控制频率慢以及控制电机数量少的问题,文中提出了一种将EtherCAT(Ethernet Control Automation Technology)协议转换为CAN(Controller Area Network)总线协议的设计方案。采用EtherCAT工业实时以太网作为现场网络,构建ARM(Advanced RISC Machines)处理器结合AX58100芯片作为EtherCAT从站硬件平台。针对模块中实时周期的控制任务,设计了基于SOEM(Simple Open EtherCAT Master)的主站。分析和研究了不同主站平台对转换模块的通信延时影响,主站向AX58100发出数据报文,经AX58100传输至STM32F405,通过内部逻辑判断并进行转换输出,从而实现设备控制。实验结果验证了EtherCAT转CAN模块的可行性和有效性,传输速率可以达到3 328 000 bit·s-1,实时抖动时间达到微秒级,系统资源占用率减小到9.6%左右,连接设备数量与单协议无异,满足现有项目的实际需求。

关键词: EtherCAT总线, CAN总线, 协议转换, 分布式控制模块, 多电机控制, 从站控制器, 嵌入式, 工业以太网

Abstract:

In view of the problems of high resource utilization, slow control frequency and small number of simultaneous control motors of the traditional conversion module system in the field of humanoid robots, a design scheme based on the conversion of EtherCAT(Ethernet Control Automation Technology) protocol to CAN(Controller Area Network) bus protocol is proposed in this study. The EtherCAT industrial real-time Ethernet is used as the field network, and the ARM(Advanced RISC Machines) processor combined with the AX58100 chip is constructed as the EtherCAT slave hardware platform. In view of the control tasks of real-time cycle in the module, the master station based on SOEM (Simple Open EtherCAT Master) is designed. The impact of different master platforms on the communication delay of the conversion module is analyzed and studied. The master sends data messages to AX58100, which are transmitted to STM32F405 via AX58100, and the device control is realized by internal logic judgment and conversion output. The experimental results verify the feasibility and effectiveness of the EtherCAT to CAN module, the transmission rate can reach 3 328 000 bit·s-1, the real-time jitter time reaches the microsecond level, the system resource utilization reduced to about 9.6%, and the number of connected devices is no different from that of the single protocol, which meets the actual demand of the existing project.

Key words: EtherCAT bus, CAN bus, protocol conversion, distributed control module, multi-motor control, slave controllers, embedded, industrial Ethernet

中图分类号: 

  • TP17