| The heavy ion accelerator is an important tool for understanding the deep structure of matter and exploring the laws of nature.It has great contributions and wide applications in agricultural production,science and technology,medical treatment and public health and other aspects.Its application has positive significance for the development of multiple disciplines field and interdisciplinary fields.The accelerator consists of multiple subsystems such as magnet,power supply,vacuum,and radio frequency.Among them,the vacuum environment is used as the precondition and necessary condition for the normal operation of the beam in the accelerator.Only in the vacuum environment can the beam be continuously accumulated and accelerated to achieve the designed current intensity and energy.The life and stability of beam in the pipeline are guaranteed.Therefore,it is very important to provide a stable,reliable and real-time vacuum monitoring system,which can make the experimental staff understand the vacuum environment of the pipeline at any time,and remotely control the vacuum equipment to protect the vacuum when necessary.The VAC controller module,which is designed based on MSP430F149 microcontroller and Java language,has been adopted to the former vacuum monitoring system of Heavy Ion Research Facility in Lanzhou.With the passage of time,the change of on-site environment and the proposal of new monitoring requirements,this system has exposed more and more problems,such as slow data refresh which makes people wonder whether the data is true,incomplete information collected by fast-closing valve,and difficulty in maintenance and upgrading.The firmware of VAC module needs to be updated on site,and the remote download and change of the program cannot be realized.In order to solve the problems and shortcomings of the former vacuum monitoring system,a remote real-time vacuum monitoring system based on EPICS architecture is designed and implemented by investigating the structures and methods used by accelerator vacuum monitoring systems at home and abroad,combined with the characteristics of HIRFL vacuum equipment,such as large number and miscellaneous types.The hardware and software design of vacuum monitoring system is discussed in this paper.The core controller,data transmission,the MCM control module and pneumatic valve control module are included in the hardware part.The PLC is used as the core controller of the hardware part.The Twin CAT software is used to write a program in ST language to obtain the vacuum gauge data,fast-closing valve and gate valve status,and to control the fast-closing valve and pneumatic valve equipment.Three brand types of serial port servers are used as data transmission modules for data transmission,the MCM module is a monitoring and control module designed for the fast-closing valve controller.The I-7065 D is used to realize 8 state monitoring and 3control instruction output control of the fast-closing valve controller.The control module of the valve realizes the remote control and monitoring of the pneumatic gate valve.The Modbus protocol,EPICS IOC server and OPI programs are discussed in the software part.The Modbus protocol,device support module and dynamic database of EPICS IOC server are introduced in detail.The data in PLC memory is read by EPICA IOC server and published on the network in the form of PV variables.The OPI is designed using CSS software.The PV name is linked to the interface to obtain data and display.The alarm prompt of the vacuum data on the interface,the state change of the fast-closing valve,and the relationship between the main interface and the sub-interface are described precisely and comprehensively.Finally,the vacuum monitoring system is tested and verified in detail,which proves that the vacuum monitoring system meets the upgrade requirements,and real-time,stability,authenticity and reliability.At present,the HIRFL vacuum monitoring system has been successfully put into operation,which can provide real-time and accurate vacuum data for experimental staff. |