基于PI闭环反馈的EtherCAT分布式时钟漂移补偿优化  

Optimization of EtherCAT Distributed Clock Drift Compensation Based on PI Closed-loop Feedback

在线阅读下载全文

作  者:张恩源 李松 张黎明[2,3] 郭凯[2,3] 赵鹏[2,3,4] ZHANG Enyuan;LI Song;ZHANG Liming;GUO Kai;ZHAO Peng(School of Automation and Electrical Engineering,Shenyang Ligong University;State Key Laboratory of Robotics,Shenyang Institute of Automation,Chinese Academy of Sciences;Institutes for Robotics and Intelligent Manufacturing,Chinese Academy of Sciences;School of Mechanical Engineering,Shenyang Ligong University)

机构地区:[1]沈阳理工大学自动化与电气工程学院 [2]中国科学院沈阳自动化研究所机器人学国家重点实验室 [3]中国科学院机器人与智能制造创新研究院 [4]沈阳理工大学机械工程学院

出  处:《仪表技术与传感器》2024年第5期113-118,126,共7页Instrument Technique and Sensor

基  金:基础加强计划技术领域基金项目(2021-JCJQ-JJ-1088);国家自然科学基金青年项目(52205319)。

摘  要:接入工业总线的设备的增加会导致高延迟等同步性问题。基于EtherCAT对分布式时钟同步算法进行研究与分析,针对其在漂移补偿过程中存在补偿精度低的问题,提出了一种基于闭环反馈控制思想的动态漂移补偿算法。算法先利用定点数改进本地时钟,再利用PI控制调节漂移补偿值。最后搭建了测试平台,包括基于SOEM实现的主站与基于STM32+FPGA架构实现的从站,优化前后的算法分别在FPGA中实现。测试结果表明:定点数改进的本地时钟分辨率可以达到2^(-20) ns, PI闭环反馈优化后的漂移补偿算法可以将同步误差降低到25 ns之内,明显提高从站之间的同步性能。The application of industrial buses in various fields is becoming increasingly important,but the increase in devices connected to the bus can lead to synchronization issues such as high latency.This article conducts research and analysis on distributed clock synchronization algorithms based on EtherCAT.In response to the problem of low compensation accuracy in the drift compensation process,a dynamic drift compensation algorithm based on closed-loop feedback control was proposed.The algorithm first improves the local clock by using fixed point numbers,and then uses PI algorithm to adjust the drift compensation value.Finally,a testing platform was built,including a master station based on SOEM implementation and a slave station based on STM32+FPGA architecture.The optimized algorithms were implemented in FPGA before and after optimization.The test results show that the local clock resolution improved by fixed point number can reach 2^(-20) ns,and the drift compensation algorithm optimized by PI closed-loop feedback can reduce the synchronization error to within 25 ns,significantly improving the synchronization performance between slave stations.

关 键 词:ETHERCAT 时钟同步 漂移补偿 分布时钟 FPGA PI控制 

分 类 号:TP393[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象