Research on the High Precision Synchronous Control Method of the Fieldbus Control System
Abstract
:1. Introduction
2. Analysis of Synchronization Factors in FCS
2.1. Basics of FCS
2.2. Communication and Control Principles of FCS
- Physical layer: Provide physical media for ethernet data transmission between master and slave, mainly including a PHY circuit, Category 5 cable (CAT-5), registered jack 45 (RJ45), etc. To ensure the independence of each slave in the linear topology, the physical layer of the slave includes two independent network ports.
- Data link layer: primarily consists of a MAC controller that integrates a real-time data transmission protocol. The real-time data transmission protocol processes physical layer data and transmits it directly to the application layer, bypassing the network layer and transport layer.
- Application layer: It mainly consists of the master runtime and the slave device controller. Runtime consists mainly of POU, data dictionary, and an application layer protocol stack. The POU runs the user application periodically and stores the operation results in the master data dictionary. The application layer protocol stack updates each slave data dictionary by sending ethernet frames according to the set communication period, where the master data dictionary is essentially the sum of the data dictionaries of all slaves. The slave device controller updates its own data dictionary by exchanging communication data with the MAC controller and executes device control algorithms to control its connected devices according to the data dictionary parameters.
2.3. Synchronization Error Analysis
- Factor 1: Communication transmission delay. The master sends data frames containing the control commands for this cycle to the slaves at tm2. Since the communication link length of each slave is different, the time t1c~tnc for receiving ethernet frames from slaves 1~N is different. This causes the start time of the slave control task to be out of synchronization.
- Factor 2: Slave task processing time differences. After receiving the master data frame, the slave station needs to perform data reading, protocol processing, and control algorithm operation tasks. However, different functional types of slaves may receive different lengths of data and experience differences in protocol processing times and inconsistent levels of control algorithm complexity. This leads to different task processing times (tsd1~tsdn) for slaves 1~N as well, which affects the synchronization of the slave control signal output.
- Factor 3: Timeliness differences in slave feedback data. Due to the different sensor sampling times of each slave, the feedback data of each slave read by the master at tm1 via Ethernet frame may not be consistent in time. This may lead to some deviation in the POU operation results, causing the control logic to be out of synchronization.
3. Fieldbus Communication Synchronization Method Based on Distributed Clock
3.1. Analysis of Communication Transmission Delay
3.2. Method of Communication Delay Measurement
- Cable transmission delay calculation
- 2.
- Station processing delay calculation
3.3. Distributed Clock Synchronization
- Clock offset compensation
- 2.
- Clock drift compensation
4. Collaborative Method of System Communication and Device Control
4.1. CANopen Data Transmission Method over Ethernet Links
4.2. System Communication Scheduling Method
- Initialization state scheduling
- 2.
- Pre-operation state scheduling
- 3.
- Operation state scheduling
- Stage 1: At the beginning of communication period 1, the master sends syncf1 to each slave station, and the read-back information is ignored. After the device controller of the slave reads syncf1, it updates the sensor data and writes it to the MAC controller through the RPDO1 frame of CANopen, waiting for the next frame to be read back.
- Stage 2: The master sends a query frame to read back the RPDO1 information in the MAC controller of each slave. If an SDO frame is requested to be sent during the period, the query frame is replaced by a TSDO1 data frame. After reading back RPDO1, the master takes the RPDO1 data as a POU input parameter and runs POU.
- Stage 3: The master sends the POU operation result through the TPDO1 frame. The slave runs the device control algorithm according to the instructions of TPDO1 and controls the actuator.
4.3. Slave Control Timing Sequence Design
5. Experiment
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Zeng, P.; Wang, Z.; Jia, Z.; Kong, L.; Li, D.; Jin, X. Time-slotted software-defined Industrial Ethernet for real-time Quality of Service in Industry 4.0. Futur. Gener. Comput. Syst. 2019, 99, 1–10. [Google Scholar] [CrossRef]
- Erwinski, K.; Paprocki, M.; Grzesiak, L.M.; Karwowski, K.; Wawrzak, A. Application of Ethernet Powerlink for Communication in a Linux RTAI Open CNC system. IEEE Trans. Ind. Electron. 2012, 60, 628–636. [Google Scholar] [CrossRef]
- Wang, S.; Ouyang, J.; Li, D.; Liu, C. An Integrated Industrial Ethernet Solution for the Implementation of Smart Factory. IEEE Access 2017, 5, 25455–25462. [Google Scholar] [CrossRef]
- Danielis, P.; Skodzik, J.; Altmann, V.; Schweissguth, E.; Golatowski, F.; Timmermann, D.; Schacht, J. Survey on real-time com-munication via ethernet in industrial automation environments. In Proceedings of the 2014 IEEE Emerging Technology and Factory Automation, Barcelona, Spain, 16–19 September 2014. [Google Scholar]
- Liang, G.; Li, W. Some Thoughts and Practice on Performance Improvement in Distributed Control System Based on Fieldbus and Ethernet. Meas. Control. 2016, 49, 109–118. [Google Scholar] [CrossRef] [Green Version]
- Jia, Z.-Y.; Ma, J.-W.; Song, D.-N.; Wang, F.-J.; Liu, W. A review of contouring-error reduction method in multi-axis CNC machining. Int. J. Mach. Tools Manuf. 2018, 125, 34–54. [Google Scholar] [CrossRef]
- Li, Y.-H.; Zheng, Q.; Yang, L. Multi Hydraulic Motors Synchronized Control Based on Field Bus with FlexRay Protocol. Adv. Sci. Lett. 2012, 9, 603–608. [Google Scholar] [CrossRef]
- Zhong, G.; Shao, Z.; Deng, H.; Ren, J. Precise Position Synchronous Control for Multi-Axis Servo Systems. IEEE Trans. Ind. Electron. 2017, 64, 3707–3717. [Google Scholar] [CrossRef]
- Shi, T.; Liu, H.; Geng, Q.; Xia, C. Improved relative coupling control structure for multi-motor speed synchronous driving system. IET Electr. Power Appl. 2016, 10, 451–457. [Google Scholar] [CrossRef]
- Liang, G. Control and communication co-design: Analysis and practice on performance improvement in distributed meas-urement and control system based on fieldbus and Ethernet. ISA Trans. 2015, 54, 169–192. [Google Scholar] [CrossRef]
- Kurata, N. Development and application of an autonomous time synchronization sensor device using a chip scale atomic clock. Sens. Transducers 2018, 219, 17–25. [Google Scholar]
- Chen, R.; Liu, Y.; Li, X.; Fan, D.; Yang, Y. High-precision time synchronization based on common performance clock source. In Proceedings of the 2019 14th IEEE International Conference on Electronic Measurement & Instruments (ICEMI), Changsha, China, 1–3 November 2019. [Google Scholar]
- Guo, H.; Crossley, P. Design of a Time Synchronization System Based on GPS and IEEE 1588 for Transmission Substations. IEEE Trans. Power Deliv. 2016, 32, 2091–2100. [Google Scholar] [CrossRef]
- Bello, L.L.; Steiner, W. A Perspective on IEEE Time-Sensitive Networking for Industrial Communication and Automation Systems. Proc. IEEE 2019, 107, 1094–1120. [Google Scholar] [CrossRef]
- Pedretti, D.; Bellato, M.; Isocrate, R.; Bergnoli, A.; Brugnera, R.; Corti, D.; Corso, F.D.; Galet, G.; Garfagnini, A.; Giaz, A.; et al. Nanoseconds Timing System Based on IEEE 1588 FPGA Implementation. IEEE Trans. Nucl. Sci. 2019, 66, 1151–1158. [Google Scholar] [CrossRef] [Green Version]
- Idrees, Z.; Granados, J.; Sun, Y.; Latif, S.; Gong, L.; Zou, Z.; Zheng, L. IEEE 1588 for Clock Synchronization in Industrial IoT and Related Applications: A Review on Contributing Technologies, Protocols and Enhancement Methodologies. IEEE Access 2020, 8, 155660–155678. [Google Scholar] [CrossRef]
- Popescu, D.A.; Moore, A.W. Measuring Network Conditions in Data Centers Using the Precision Time Protocol. IEEE Trans. Netw. Serv. Manag. 2021, 18, 3753–3770. [Google Scholar] [CrossRef]
- Lam, D.K.; Yamaguchi, K.; Nagao, Y.; Kurosaki, M.; Ochi, H. An improved precision time protocol for industrial WLAN communication systems. In Proceedings of the 2016 IEEE International Conference on Industrial Technology (ICIT), Taipei, Taiwan, 14–17 March 2016. [Google Scholar]
- Chen, C.-H.; Lin, M.-Y.; Tew, W.-P. Wireless fieldbus networking with precision time synchronization for a low-power WSAN. Microprocess. Microsyst. 2022, 90, 104509. [Google Scholar] [CrossRef]
- Seo, Y.; Son, K.; An, G.; Nam, K.; Chang, T.; Kang, S. Improved Time-Synchronization Algorithm Based on Direct Compen-sation of Disturbance Effects. Sensors 2019, 19, 3499. [Google Scholar] [CrossRef] [Green Version]
- Gutierrez-Rivas, J.L.; Torres-Gonzalez, F.; Ros, E.; Diaz, J. Enhancing White Rabbit Synchronization Stability and Scalability Using P2P Transparent and Hybrid Clocks. IEEE Trans. Ind. Inform. 2021, 17, 7316–7324. [Google Scholar] [CrossRef]
- Romanov, A.; Slepynina, E. Real-time Ethernet POWERLINK communication for ROS. Part II. Hardware and software. In Proceedings of the 2020 Ural Smart Energy Conference (USEC), Ekaterinburg, Russia, 13–15 November 2020. [Google Scholar]
- Paprocki, M.; Erwiński, K. Synchronization of Electrical Drives via EtherCAT Fieldbus Communication Modules. Energies 2022, 15, 604. [Google Scholar] [CrossRef]
- Buhr, S.; Kreisig, M.; Protze, F.; Ellinger, F. Subnanosecond Time Synchronization Using a 100Base-TX Ethernet Transceiver and an Optimized PI-Clock Servo. IEEE Trans. Instrum. Meas. 2020, 70, 1–8. [Google Scholar] [CrossRef]
- Gong, F.; Sichitiu, M.L. Temperature compensated Kalman distributed clock synchronization. Ad Hoc Netw. 2017, 62, 88–100. [Google Scholar] [CrossRef]
- Qing, L.; Xinyang, R. IEEE 1588 and a dynamic delay correction clock synchronization algorithm. In Proceedings of the 2019 IEEE 5th International Conference on Computer and Communications (ICCC), Chengdu, China, 6–9 December 2019. [Google Scholar]
NO. | Name | Definition |
---|---|---|
1 | tNR0 | The time the data frame arrives at port R0 of slave N. |
2 | tNT1 | The time the data frame leaves the T1 port of slave N. |
3 | tNR1 | The time the data frame arrives at port R1 of slave N. |
4 | tNT0 | The time the data frame leaves the T0 port of slave N. |
5 | tdNP | Station processing delay of slave N during forward transmission. |
6 | tdNR | Station processing delay of slave N during reverse transmission. |
7 | tdN | Station processing delay of the last slave. |
8 | tdlAB | Transmission delay of communication cables between slaves A and B. |
Test Time | Synchronization Error of SYNC | Synchronization Error of Pulse |
---|---|---|
Day 1 | 36 ns | 140 ns |
Day 2 | 37 ns | 143 ns |
Day 3 | 37 ns | 140 ns |
Day 4 | 35 ns | 137 ns |
Day 5 | 40 ns | 146 ns |
Day 6 | 37 ns | 141 ns |
Day 7 | 36 ns | 140 ns |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Chen, L.; Zheng, J.; Fan, D.; Chen, N. Research on the High Precision Synchronous Control Method of the Fieldbus Control System. Machines 2023, 11, 98. https://doi.org/10.3390/machines11010098
Chen L, Zheng J, Fan D, Chen N. Research on the High Precision Synchronous Control Method of the Fieldbus Control System. Machines. 2023; 11(1):98. https://doi.org/10.3390/machines11010098
Chicago/Turabian StyleChen, Lingyu, Jieji Zheng, Dapeng Fan, and Ning Chen. 2023. "Research on the High Precision Synchronous Control Method of the Fieldbus Control System" Machines 11, no. 1: 98. https://doi.org/10.3390/machines11010098
APA StyleChen, L., Zheng, J., Fan, D., & Chen, N. (2023). Research on the High Precision Synchronous Control Method of the Fieldbus Control System. Machines, 11(1), 98. https://doi.org/10.3390/machines11010098