DES-Based Synchronization Algorithm Optimization for EtherCAT Master–Slave System
EtherCAT, known for its exceptional real-time performance and synchronization capabilities, is widely used in industrial multi-axis control systems. In these systems, the synchronization status of slave axes plays a critical role in determining the precision of the end-effector. While the distributed clock synchronization technology in EtherCAT achieves effective overall synchronization for the master–slave system, notable synchronization errors persist between non-reference slaves and the reference slave. To address this issue, this paper proposes an improved EtherCAT master–slave synchronization method based on the Double Exponential Smoothing (DES) algorithm. The proposed method begins by measuring the transmission delay between the master and the reference slave. Using this delay, the exponential moving average technique is applied to periodically adjust and compensate for synchronization errors between the master and the reference slave. Subsequently, the DES algorithm is employed to periodically calculate the clock drift of non-reference slave clocks relative to the reference clock, enabling corresponding compensation for the slave clocks. To validate the feasibility of the proposed method, an EtherCAT master–slave experimental platform was established using the Xenomai real-time operating system, and synchronization performance was evaluated. Experimental results show that the proposed method controls synchronization errors within ±90 ns in a six-slave experimental setup. Compared with synchronization error ranges achieved using only exponential moving average (EMA) for clock drift compensation, the proposed method reduces the synchronization error by approximately 16.36%, thereby validating its effectiveness.
Authors
- Meng Ge (ORCID: https://orcid.org/0000-0002-3468-6149)
- Binjun Wang
- Kun Zhou (ORCID: https://orcid.org/0000-0001-7550-5888)
- Haochun Wang (ORCID: https://orcid.org/0000-0003-2908-9750)
- Xingyu Chen (ORCID: https://orcid.org/0009-0003-6488-4992)
- Yinglian Jin
Institutions
- Zhejiang Lab (CN)
- Hangzhou Vocational and Technical College (CN)
- China Jiliang University (CN)
Publication Details
- Journal
- Processes
- Published
- 2025-11-11
- DOI
- https://doi.org/10.3390/pr13113643
- Primary Topic
- Network Time Synchronization Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00