• 论文 •    

基于以太网的数控系统实时通信和时间同步

张向利, 唐小琦, 陈吉红   

  1. 1.华中科技大学 国家数控系统工程技术研究中心,湖北武汉430074;2.桂林电子科技大学 计算机与控制学院,广西桂林541004
  • 出版日期:2008-06-15 发布日期:2008-06-25

Ethernet-based real-time communication and time synchronization of CNC system

ZHANG Xiang-li, TANG Xiao-qi, CHEN Ji-hong   

  1. 1.State Engineering Research Center of Numerical Control System, Huazhong University of Science & Technology, Wuhan 430074, China; 2.School of Computer & Control, Guilin University of Electronic Technology, Guilin 541004, China
  • Online:2008-06-15 Published:2008-06-25

摘要: 为实现基于以太网的数控系统运动控制层的实时通信和精确时间同步,对避免时间片冲突的实时通信算法和基于精确时间协议的同步算法进行了优化处理。为提高处理效率,在实时通信的同时进行时间同步,并对实时通信和时间同步的报文结构进行了融合和简化处理。在以太网帧中,增加了时间域来存放时间信息,将报文分为同步报文、跟随报文和从站报文三类。采用时间片配置方法,配置了实验参数,保证了通信的实时性和时间同步的精度,满足了数控系统的需求。

关键词: 数控系统, 以太网, 实时通信, 精确时间同步

Abstract: To realize the motion control level communication and precision time synchronization of Computer Numerical Control (CNC) system based on Ethernet, real-time communication algorithm avoiding time slot collision and time synchronization algorithm based on Precision Time Protocol (PTP) was optimized. To enhance processing efficiency, the time synchronization process was run in the real-time communication cycle, and the packet structure of real-time communication and time synchronization was incorporated and simplified. A time domain was added to the Ethernet frame, and the data were classified as synchronization, following, and slave data packet. The time slot configuration method was proposed and used to configure the parameters of the experiment. And the result of real-time communication and time synchronization could meet the requirement of the CNC system.

Key words: computer numerical control system, Ethernet, real-time communication, precision time synchronization

中图分类号: