清华大学紧凑型准单能伽马源(VIGAS)是基于逆康普顿散射的一种新型光源,计划应用于先进辐射成像、核共振荧光物质成像与识别等方向,服务于我国核安全及能源安全等领域。VIGAS装置运行时,需要对各个分系统进行全面控制,满足装置中被控设备的状态监测和参数设置、数据存储和调用、报警管理和运行状态切换等控制需求,使装置达到最佳运行状态,得到高质量γ射线并应用。本文调研了国内外加速器控制系统的研究现状,并对VIGAS装置进行了需求分析,选择实验物理及工业控制系统(EPICS)作为VIGAS装置控制系统的软件开发架构;设计了控制系统“三横三纵”的总体架构,开发了加速器、激光、射线探测和联锁保护分系统IOC,并针对不同通讯协议和设备接口单独开发,降低了软件代码开发量,提高了系统对设备的兼容性和灵活性;采用S7nodave设备支持模块对PLC设备进行控制和配置,通过开发SNL程序实现系统的状态切换,并对相机控制模块进行了二次开发,提升了系统对相机的控制和数据处理能力;通过建立EPICS服务器实现对谱仪的数据集成,进一步提升了系统的整体集成水平。利用Phoebus开发了VIGAS的OPI,实现被控设备的监测、控制和数据库服务功能;采用RDB Channel Archiver和MySQL配置了VIGAS的关系数据库,实现了数据存储、历史数据查询与导出和数据备份等功能;利用Phoebus Alarms开发了VIGAS的报警管理系统,并使用Python编写了报警信息发送程序,提高了系统对异常情况的响应速度和处理效率;使用Python改进了PV值保存与恢复工具,并将其集成到Phoebus中,提升了操作人员的操作便捷性。目前已经完成了VIGAS控制系统所有IOC和OPI的开发工作,并连接设备进行了参数读取和设置、数据存储与调用、报警显示和通知和PV值保存与恢复等功能测试,测试结果满足VIGAS装置的控制需求,为下一步装置的调试和运行提供了有力支持。
The Very Compact Inverse Compton Scattering Gamma-ray Source(VIGAS) program at Tsinghua University is a new type of light source based on inverse Compton scattering. It is designed to be utilized in advanced radiation imaging, nuclear resonance fluorescence material imaging and identification, and serves various fields including nuclear security and energy security in China. During the operation of the VIGAS device, comprehensive control of each subsystem is required to meet the control requirements such as state monitoring and parameter setting of controlled devices, data storage and retrieval, alarm management, and operational state switching. These controls are essential for achieving optimal device operation, generating high-quality gamma rays, and facilitating their applications.This paper investigates the current research status of accelerator control systems both domestically and internationally, and conducts a needs analysis for the VIGAS device. The Experimental Physics and Industrial Control System (EPICS) is selected as the software development architecture for the control system of the VIGAS device. A "three horizontal and three vertical" overall architecture for the control system is designed. Subsystems for accelerator, laser, radiation detection, and interlock protection are developed within EPICS. These subsystems are individually developed to accommodate different communication protocols and device interfaces, reducing software code development while enhancing system compatibility and flexibility with devices. PLC devices are controlled and configured using the S7nodave device support module. System state transitions are achieved through the development of SNL programs. Additionally, a secondary development of the camera control module improves the system‘s control and data processing capabilities for cameras. EPICS servers are established to integrate data from spectrometers, further enhancing the overall integration level of the system. The VIGAS Operational Panel Interface (OPI) is developed using Phoebus, enabling monitoring, control, and database service functions for controlled devices. The VIGAS relational database is configured using RDB Channel Archiver and MySQL, facilitating functions such as data storage, historical data querying, export, and backup. A alarm management system for VIGAS is developed using Phoebus Alarms, with alarm information sending programs written in Python, enhancing the system‘s response speed and processing efficiency to abnormal situations. Python is utilized to enhance the PV value saving and restoration tool, which is integrated into Phoebus, improving the operational convenience for operators.The development of all Input/Output Controller (IOC) and Operator Panel Interfaces (OPI) for the VIGAS control system has been completed. Functional tests, including parameter reading and setting, data storage and retrieval, alarm display and notification, and PV value saving and restoration, have been conducted by connecting the devices. The test results meet the control requirements of the VIGAS device, providing strong support for the subsequent debugging and operation of the device.