摘要
在工业过程控制领域,常常需要对控制器内的复杂控制逻辑进行单步执行、断点调试,以便明确诊断逻辑的正确性和合理性,但目前各厂家的工业控制器并不具备该功能。为了解决该问题,对高级编程语言C/C++的调试器功能进行了系统的研究,包括其程序断点的设计原理和调试器的实现机制。结合工业控制器算法组态的语言特点,设计了一种面向算法组态的调试器,并将其运用到工业控制器的嵌入式软件系统中。通过与算法逻辑运算单元的交互设计,成功实现了复杂控制逻辑的单步执行、逐页逐模块以及断点调试等功能。试验结果表明,集成组态调试器功能的工业控制器,能够极大地方便项目实施过程中的现场组态和深入调试,有效降低组态算法的错误率和提高工程调试的效率。该控制器为工业控制器的全方位诊断功能以及虚拟仿真的实现提供了一定的参考。
In the field of industrial process control, the single step execution and breakpoint debugging of the complex control logic in controller are usually necessary to ensure the correctness and rationality of the logic. However,most industrial controllers provided by the manufacturers do not support such functions. In order to solve this problem,the functions of debugger of advanced programming language C/C+ + are researched systematically, and the design principle of program breakpoint and the implementation mechanism of debugger are included. A debugger orienting algorithm configuration is designed according to the language features of industrial controller algorithm configuration. The debugger is applied in the embedded software system of the industrial controller, through the interactive design of algorithm logic operation unit, the test functions of single step execution, page by page, module by module and breakpoint for the complex logic are implemented successfully. The test results indicate that the industrial controller which integrates the functions of configuration debugger can greatly ease the field configuration and deep debugging for the project implementation, and effectively reduce the error rate of the configuration algorithm, and improve the efficiency of project commissioning. This controller references for realizing omnidirectional diagnostic function and virtual simulation of industrial controllers.
出处
《自动化仪表》
CAS
2017年第9期95-98,102,共5页
Process Automation Instrumentation
关键词
工业控制器
算法组态
调试器
单步执行
断点调试
嵌入式开发
DCS
PLC
Industrial controller
Algorithm configuration
Debugger
Single step execution
Breakpoint debugging
Embedded development
DCS
PLC