计算机应用

• 人工智能与仿真 •    下一篇

基于国产操作系统的EtherCAT的控制系统开发

李国辉1,韩利峰2,李丹青1,余嘉莉1,陈永忠2   

  1. 1. 上海应用物理研究所
    2. 中国科学院上海应用物理研究所
  • 收稿日期:2019-12-02 修回日期:2020-01-04 发布日期:2020-01-04 出版日期:2020-05-09
  • 通讯作者: 李国辉

Development of EtherCAT control system based on SylixOS operating system

  • Received:2019-12-02 Revised:2020-01-04 Online:2020-01-04 Published:2020-05-09

摘要: 国产控制系统在火电、化工和核能等领域已能替代国外整体方案,但针对控制系统的核心控制器操作系 统主要依赖进口的问题,提出在完全自主化的翼辉实时操作系统(SylixOS)上,基于EtherCAT总线协议进行实验物理与工业控制系统(EPICS)的开发方法。通过创建socket服务器实现EPICS IOC间的通信,并通过IgH EtherCAT Master的底层协议栈,实现 EPICS IOC 与 EtherCAT 从站的通信。再利用 EPICS 异步驱动机制,实现 socket 服务器和 EPICS IOC 间的异步通信。将开源 EPICS和 IgH EtherCAT Master 软件,以及 dls epics ethercat 移植到 SylixOS 中,在控制器同时实现EtherCAT主站功能(EtherCAT输入输出设备通信)和EPICS实时数据库功能,并实现基于EPICS的过程控制逻辑。在核能综合利用超轻水项目上的应用表明系统稳定可靠,并能满足该项目10 ms采样率的需求。该项工作提高了控制系统的自主可控性,实现基于EtherCAT的更紧凑的架构,可以在更高同步率和采样率的运动控制领域扩展应用,并且极大压缩了控制系统成本。

关键词: 国产操作系统, SylixOS, EPICS, EtherCAT, 控制系统

Abstract: Chinese control systems have been able to replace foreign overall solutions in most industrial sites such as thermal power,chemicals and nuclear power. But as the control system core,the operating system of controller mainly depends on imports. A development method of Experimental Physics and Industrial Control System(EPICS)based on the EtherCAT protocol on SylixOS was introduced,which is a 100% autonomous real-time operating system. The communication between EPICS IOCs was implemented by creating a socket server. Besides,through the underlying protocol stack of IgH EtherCAT Master,the communication between EPICS IOCs and EtherCAT slave was realized. Then EPICS asynchronous drive mechanism was used to realize asynchronous communication between socket server and EPICS IOCs. The open source EPICS and IgH EtherCAT Master,and dls epics ethercat were ported to the SylixOS,the EtherCAT master function (EtherCAT input and output device communication)and the EPICS real-time database function were realized together in the controller,and the EPICS process control logic was implemented based on it. The application on nuclear energy comprehensive utilization ultra-light water project shows that the system is stable and reliable,and can meet the control system requirements of the project’s 10 ms sampling rate. This work improves the autonomy of the control system,realizes a more compact architecture based on EtherCAT,which can be expanded to the field of motion control with higher synchronization and sampling rates,and greatly reduces the cost of the control system.

Key words: domestic operating system, SylixOS, EPICS, EtherCAT, control system

中图分类号: