强激光与粒子束, 2017, 29 (7): 075102, 网络出版: 2017-06-20  

基于EPICS的慢速设备异步控制应用研究

Applications of asynchronous slow devices control system based on EPICS
作者单位
中国工程物理研究院 流体物理研究所, 四川 绵阳 621900
摘要
针对直线感应加速器控制系统大多数前端设备为带通讯接口的慢速设备的实际情况,采用异步通讯模块Asyn和基于字节的模块StreamDevice相结合的方法实现该类设备在实验物理与工业控制系统(EPICS)架构下的分布式控制。系统中使用的国产或自行研制的设备的命令格式不是SCPI格式,而控制系统常需要在一个I/O命令中写入多个参数(PV),而StreamDevice协议中,多个PV设置无法在一个协议函数中实现。采用EPICS实时数据库的Calcout记录作为多参数输入容器,将多个PV组成一个结构化数组,从而实现多个PV变量的同时设置。同样,针对多参数同时读取的情形,使用waveform记录在一次读入操作中能获取多个PV变量的值。
Abstract
For the fact that most of the front-end devices are slow devices with communication port in the control system of Linear Induction Accelerator (LIA), this paper combines synchronous communication module Asyn with StreamDevice module to realize the distributed control of these devices based on the EPICS architecture. The multi-parameter input and output methods are proposed based on SCPI and non-SCPI commands. The command format supported by domestic devices is not SCPI, and it is usually needed to read or write multiple PVs in one I/O command, but the protocol in StreamDevice does not support. In this paper, Calcout record is used to combine several PVs in to a structured array to implement setting multiple PVs at one time, and waveform record is used to implement reading multiple PVs at one time.
参考文献

[1] 石金水, 邓建军, 章林文, 等. 神龙二号加速器及其关键技术[J]. 强激光与粒子束, 2016, 28: 010201. (Shi Jinshui, Deng Jianjun, Zhang Linwen, et al. Dragon-Ⅱ accelerator and its key technology. High Power Laser and Particle Beams, 2016, 28: 010201)

[2] 邓建军, 丁伯南, 王华岑, 等. “神龙一号”直线感应加速器物理设计[J]. 强激光与粒子束, 2003, 15(5): 502-504. (Deng Jianjun, Ding Bonan, Wang Huacen, et al. Physical design of the Dragon-Ⅰ linear induction accelerator. High Power Laser and Particle Beams, 2003, 15(5): 502-504)

[3] 刘波,孔祥成. EPICS下串口通信驱动程序的开发[J]. 中国科学院研究生院学报, 2005, 22(6): 690-694. (Liu Bo, Kong Xiangcheng. Development of serial port device driver under EPICS. Journal of the Graduate School of the Chinese Academy of Sciences, 2005, 22(6): 690-694)

[4] 赵籍九. 加速器控制系统及其进展[J]. 中国物理C, 2008 (s1): 139-141. (Zhao Jijiu. Accelerator control system and its progress. Chinese Physics C, 2008 (s1): 139-141)

[5] 乔显杰, 李刚. 基于EPICS的StreamDevice的应用研究[J]. 核电子学与探测技术, 2011, 31(10): 1073-1076. (Qiao Xianjie, Li Gang. Research of StreamDevice applications based on EPICS. Nuclear Electronics & Detection Technology, 2011, 31(10): 1073-1076)

[6] 张德敏, 黎明, 杨兴繁. 基于EPICS的自由电子激光THz源控制系统[J]. 信息与电子工程, 2010, 8(2): 219-222. (Zhang Demin, Li Ming, Yang Xingfan. Free Electron Laser-THz control system based on EPICS. Information and Electronic Engineering, 2010, 8(2): 219-222)

[7] 于春蕾. ADS注入器II强流质子RFQ加速器控制系统的研究[D]. 兰州: 中国科学院近代物理研究所, 2014: 1-142. (Yu Chunlei. Research of the control system of ADS injector Ⅱ intense-beam pronton RFQ accelerator. Lanzhou: Institute of Modern Physics, Chinese Academy of Sciences, 2014: 1-142)

[8] 张德敏, 金晓, 黎明, 等. EPICS在加速器控制系统中的应用[J]. 强激光与粒子束, 2008, 20(4): 597-600. (Zhang Demin, Jin Xiao, Li Ming, et al. Application of EPICS to accelerator control system. High Power Laser and Particle Beams, 2008, 20(4): 597-600)

[9] Argonne National Laboratory. Experimental physics industrial control system[EB/OL]. 2016. http: //www.aps.anl.gov/epics/index.php.

[10] 赵卓. 基于UNIX操作平台下的EPICS实时数据库开发设计[D]. 阜新: 辽宁工程技术大学, 2002: 1-95. (Zhao Zhuo. The development and design of EPICS real-time database based UNIX operating system. Fuxin: Liaoning Technical University, 2002: 1-95)

[11] Norum W E. How to create EPICS device support for a simple serial or GPIB device[CP/OL].https: //www.aps.anl.gov/epics/download/modules/index.php/asyn4-31.tar.gz /documentation/HowToDoSerial/tutorial.pdf.

[12] Zimoch D. EPICS StreamDevice[CP/OL]. http: //epics.web.psi.ch/software/streamdevice/doc/.

郭帆, 蒋薇, 杨兴林, 章林文. 基于EPICS的慢速设备异步控制应用研究[J]. 强激光与粒子束, 2017, 29(7): 075102. Guo Fan, Jiang Wei, Yang Xinglin, Zhang Linwen. Applications of asynchronous slow devices control system based on EPICS[J]. High Power Laser and Particle Beams, 2017, 29(7): 075102.

关于本站 Cookie 的使用提示

中国光学期刊网使用基于 cookie 的技术来更好地为您提供各项服务,点击此处了解我们的隐私策略。 如您需继续使用本网站,请您授权我们使用本地 cookie 来保存部分信息。
全站搜索
您最值得信赖的光电行业旗舰网络服务平台!