Design and implementation of one key on/off program at the accelerator of CSNS
-
摘要: 中国散裂中子源加速器上有几百套电源和高频设备。每次开关机过程都要通过操作二十多个控制界面来完成这几百台设备的开关机流程,过程繁琐,耗时较多,容易出错且很难发现。为了简化开关机流程和避免人为错误发生,开发了一套一键开关机程序。该程序将分散于二十多个界面的所有硬件设备开关机操作集成到一个界面中,同时将每个硬件开关机流程抽象为单独线程,界面上一键操作,使用多线程并发完成所有设备的开关机操作。该程序实现了运行模式状态的一键存储和恢复,能够一键完成整个加速器的开关机流程,将原来耗时40 min的开关机流程压缩到约2 min完成,提升了操作效率,很好地满足了中国散裂中子源加速器运行需求。该程序具有一定的通用性,可以在其它装置推广应用。
-
关键词:
- CSNS /
- 控制系统 /
- 实验物理与工业控制系统 /
- 一键开关机 /
- 模式存储和恢复
Abstract: There are hundreds of electric power supplies and radio frequency equipment in the accelerator of CSNS. Operations of these devices are executed through twenty-odd operator interfaces, which are time-consuming and cumbersome. During these processes, breakdowns are easy to occur but difficult to debug. To simplify the machine operation process, a one-key-on/off-operation program is developed. This program integrates the twenty-odd operator interfaces into a single one. The switch on/off operation of every device is realized in a thread, and the program completes the operation of all the devices concurrently. This program accomplishes the machine snapshot save/restore and the switch on/off operation of all the electric power supplies and radio frequency equipment through a one-button operation in the operator interface. With this program, the time needed to switch on/off all the devices in the machine is reduced from forty minutes to about two minutes. This program could be applied to other facilities. -
[1] Wang Sheng, An Yuwen, Fang Shouxian, et al. An overview of design for CSNS/RCS and beam transport[J]. Science China Physics, Mechanics and Astronomy, 2011, 54(s2): 239-244. doi: 10.1007/s11433-011-4564-x [2] Zhang Yuliang, Jin Dapeng, Zhu Peng, et al. The accelerator control system of CSNS[J]. Radiation Detection Technology and Methods, 2020, 4(4): 478-491. doi: 10.1007/s41605-020-00203-y [3] EPICS[EB/OL]. [2023-01-11]. https://epics.anl.gov/. [4] EPICS. What PV save and restore tools are available[EB/OL]. [2023-01-11]. https://wiki-ext.aps.anl.gov/epics/index.php/What_PV_Save_and_Restore_Tools_are_available. [5] Tim Mooney. synApps: autosave[EB/OL]. [2023-01-11]. https://epics.anl.gov/bcda/synApps/autosave/autosave.html. [6] Tim Mooney. autosaveRestore[EB/OL]. [2023-01-11]. https://epics-modules.github.io/autosave/autoSaveRestore.html. [7] OpenXAL. SCORE[EB/OL]. [2023-01-11]. https://github.com/openxal/app.SCORE. [8] An Yuwen, Wei Yuanyuan, Wang Sheng, et al. XAL development for CSNS/RCS commissioning[C]//Proceedings of the 6th International Particle Accelerator Conference. 2015: 3821-3823. [9] Li Yong, Liu Weibin, Li Zhiping, et al. XAL applications development for CSNS transport lines[C]//Proceedings of the HB2016. 2016: 98-100. [10] CSS Phoebus. Save-and-restore service[EB/OL]. [2023-01-11]. https://control-system-studio.readthedocs.io/en/latest/services/save-and-restore/doc/index.html.