摘要
各类异常在过程控制系统中无法完全规避,对异常的科学处理能提高程序健壮性并利于程序维护和错误诊断。概述了过程控制系统中采用C#的异常处理机制,并提出了异常处理的通用方案及自定义异常方案,最后对过程控制系统的异常管理模块进行功能说明。基于此技术的过程控制系统在现场运行良好,为工厂创造了巨大效益。
All kinds of exceptions cannot be completely avoided in the process control system.Scientific treatment of exceptions can improve the robustness of the program and facilitate program maintenance and error diagnosis.The exception handling mechanism using C# in the process control system is outlined,and the general and custom exception handling schemes for exception handling are proposed.Finally,the exception management module of process control system is explained.The process control system based on this technology works well on site,creating huge benefits for the factory.
作者
王盛
肖庭喜
孔祥华
林峰
WANG Sheng;XIAO Ting-xi;KONG Xiang-hua;LIN Feng(WISDRI(Xinyu)Cold Processing Engineering Co.,Ltd,Xinyu 338000,China)
出处
《电脑知识与技术》
2020年第31期251-253,共3页
Computer Knowledge and Technology
关键词
过程控制系统
异常处理
异常管理
C#
process control system
exception handling
exception management
C#