摘要
本文介绍了带模拟器的组合型自定义功能块的实现方法,旨在解决现有技术中用户自定义功能块在实时控制系统(如DCS、PLC)中存在的问题,如内存占用大、无效计算多、可读性差、数据类型设计不灵活、功能验证不便等。通过在组态软件中使用基础功能块和简单自定义功能块组合,再通过高级语言代码编辑器进行修改、编译、模拟和调试,形成符合用户需求的自定义功能块。不仅提高了自定义功能块的灵活性和便利性,还通过模拟器复用控制器解释器实现高级语言的白盒调试,提高了调试效率。此外,通过设计执行顺序参数和执行周期,进一步增强了自定义功能块的灵活性和应用范围。该方法适用于工业自动控制领域中涉及对自定义功能块编辑的场景,应用前景广泛,具有较高的实用性和便利性。
This article presents an implementation method for a combined custom function block with a simulator,aimed at addressing the issues existing in user-defined function blocks in real-time control systems(such as DCS,PLC),including high memory usage,redundant calculations,poor readability,inflexible data type design,and inconvenient function verification.By utilizing a combination of basic function blocks and simple custom function blocks within configuration software,and then modifying,compiling,simulating,and debugging through a high-level programming language code editor,custom function blocks tailored to user needs are created.This approach not only enhances the flexibility and convenience of custom function blocks but also achieves white-box debugging of high-level languages through reusing the controller interpreter with the simulator,thereby improving debugging efficiency.Furthermore,by designing execution sequence parameters and execution cycles,the flexibility and applicability of custom function blocks are further strengthened.This method is applicable to scenarios in industrial automation control involving the editing of custom function blocks,exhibiting broad application prospects,high practicality,and convenience.
作者
刘斌
张明惠
董胜刚
Liu Bin;Zhang Minghui;Dong Shenggang(Guodian Nanjing Automation Co.,Ltd.,Nanjing,Jiangsu,China,210032;Nanjing SAC Valmet Automation Co.,Ltd.,Nanjing,Jiangsu,China,210032)
出处
《仪器仪表用户》
2024年第8期88-91,共4页
Instrumentation
关键词
自定义功能块
模拟器
组态软件
执行顺序
执行周期
custom function block
simulator
configuration software
execution sequence
execution cycle