摘要
在直线感应加速器控制系统中,可编程逻辑控制器(PLC)作为前端控制器被广泛应用于人身安全保护系统中,实现PLC于实验物理及工业控制系统(EPICS)中的输入输出控制(IOC)集成成为系统架构中必须解决的问题。为此,介绍了一种新型的基于S7nodave设备驱动和异步通讯模块Asyn的IOC与PLC通信方法。该方法可实现IOC对S7PLC过程映像区及内存变量的透明访问,而不需要制定通讯协议。分析了基于S7nodave和Asyn模块与S7PLC的通信机制,并给出了应用实例。
In the control system of linear induction accelerator(LIA),Programmable Logic Controller(PLC)is widely used as front end controller in personal protection system(PPS).It is necessary to integrate PLC into input/output controller(IOC)based on EPICS.This paper introduces a new communication method between IOC and PLC based on S7nodave device support and asynchronous communication module,which can achieve the transparent access of IOC to S7PLC process image area and memory variables without establishing communication buffer,thus keep the independence of the PLC programs.This paper also presents the development procedures and operating interface for PPS.
引文
[1]Argonne National Laboratory.Experimental physics industrial control[EB/OL].(2016).http://www.aps.anl.gov/epics/index.php/.
[2]Zhao Jijiu,Yin Zaosheng.Particle accelerator technology[M].Beijing:Higher Education Press,2006:1-10.
[3]Kraimer R,Johnson A,Anderson J,et al.EPICS application developer’s guide[BE/OL].(2015).http://www.aps.anl.gov/epics/base/R3-15/2-docs/AppDevGuide.pdf.
[4]Zhang Demin,JIN Xiao,LI Ming,et al.Application of EPICS to accelerator control system[J].High Power Laser and Particle Beams,2008,20(4):597-600.
[5]Sun Shuhuan,Kong Xiangcheng,Wu Xueting.Research on open source library of libnodave for Siemens PLC devices[J].Nuclear Electronics&Detection Technology,2013,33(7):847-851.
[6]Qiu Wenjun,Zhou Dayong,Chen Jianfeng,et al.Machine interlock and protection system based on PLC for the SSRF Linac[J].Nuclear Techniques,2008,31(7):506-510.
[7]Lin Yuhan.EPICS using SLS S7PLC driver PLC configurations[DB/OL].http://epics.web.psi.ch/software/s7plc/YHLhtcPLCa.
[8]Zimoch D.S7plc EPICS driver communication[DB/OL].http://epics.web.psi.ch/style/software/s7plc/s7plc.html.
[9]Vitale V,Centioli C,Di Maio F,et al.FTU toroidal magnet power supply slow control using ITER CODAC Core System[J].Fusion Engineering and Design,2012,87(12):2012-2015.
[10]Sebastian M.S7nodave for EPICS manual[DB/OL].http://oss.aquenos.com/epics/s7nodave/.