| The accelerator control system is generally a distributed control system based on network.It follows the"Standard Models" and consists of three parts:operator inter-face,data communication,and front-end computer.Data communication is the bond in the accelerator control system.As the scale and complexity of accelerators increases,the requirements for data communication performance become higher and higher.Real-time performance is the key factor affecting accelerator control system,carrying out research on real-time application has very important engineering application value.As an open source real-time Ethernet technology,Ethernet POWERLINK(referred as to POWERLINK)has been widely used in the field of industrial control,especially in some occasions with high real-time requirements,such as high-performance syn-chronous motion control applications,currently there is little research on POWERLINK application in the field of accelerator control.EPICS is the most widely used develop-ment tool in the field of accelerator control,currently there is no POWERLINK ap-plication in the EPICS control system.This thesis integrates POWERLINK real-time ethernet technology with EPICS environment to carry out a series of research on POW-ERLINK application.Firstly,this thesis analyzes and tests the POWERLINK communication protocol.openPOWERLINK is the open source implementation of the POWERLINK protocol stack.Based on openPOWERLINK,two sets of test systems based on RT-Linux PC and FPGA soft core are built.POWERLINK data frames are captured and analyzed using the network analyzer netANALYZER and Wireshark software.The data frame structure and communication mechanism of the POWERLINK protocol are grasped,the communication cycle time of the two systems is tested.Based on the measured communication parameters of the test system,two methods of theoretical calculation and model simulation are developed to estimate the communication cycle time of the POWERLINK system.Secondly,a distributed IO system based on Gigabit POWERLINK under EPICS environment is designed.The slave nodes of the system use the Zynq-based controller.The master node is an RT-Linux PC.The PC runs the IOC application and the open-POWERLINK master node program in the kernel space.The corresponding EPICS device driver is developed based on Inter-process Socket communication.We build a test system composed of a master node and 10 slave nodes,the shortest communication cycle time of the test system is 275μs,the local response time of the slave node is about 400μs,and the global response time of the system is 870μs.Through the analysis of the test results,the optical coupler delay of the slave node and the response delay of the master node are the main factor affecting the system performance.For these two points,an upgraded design is proposed.The master and slave nodes of the upgraded design all use Zynq-based controllers,and the input/output interface of the slave nodes uses the ADuM1400 high-speed digital isolator.We build a test system composed of 1 master node and 5 slave nodes based on the upgraded design,the shortest communication cycle time of the system is 50μS,the local response time of the slave node is about 5μs,and the global response time of the system is 160μs.The test results show that the real-time performance of the upgraded design has been significantly increased.According to the measurement results of the upgraded design,the theoretical calculation and model sim-ulation methods are further improved to provide a basis for the design of POWERLINK application.Finally,Hefei Advanced Light Facility Equipment Protection System(HALF EPS)is designed based on Gigabit POWERLINK.HALF is the fourth generation of syn-chrotron radiation source based on diffraction limit storage ring,it is proposed by the National Synchrotron Radiation Laboratory,the HALF pre-research project is in pro-cess.The HALF EPS is composed of an injector EPS and a storage ring EPS.The injec-tor EPS and the storage ring EPS is designed by independent Gigabit POWERLINK,and the interlock controller use the Zynq-based controller.We describe the interlock protection logic of HALF EPS and count the number of interlock signals.Through theoretical calculation and model simulation,the response time of the injector EPS is estimated to be 802.100 μs and 798.184μs,the response time of the storage ring EPS is estimated to be 1.643ms and 1.634ms.Both meet the 10ms design requirment of response time.Finally,the historical data archiving and query system of HALF EPS is designed based on Archive Appliance,and the HALF EPS alarm system is designed based on Phoebus/Alarms. |