首页|一种带模拟器的组合型自定义功能块的实现方法

一种带模拟器的组合型自定义功能块的实现方法

扫码查看
本文介绍了带模拟器的组合型自定义功能块的实现方法,旨在解决现有技术中用户自定义功能块在实时控制系统(如DCS、PLC)中存在的问题,如内存占用大、无效计算多、可读性差、数据类型设计不灵活、功能验证不便等.通过在组态软件中使用基础功能块和简单自定义功能块组合,再通过高级语言代码编辑器进行修改、编译、模拟和调试,形成符合用户需求的自定义功能块.不仅提高了自定义功能块的灵活性和便利性,还通过模拟器复用控制器解释器实现高级语言的白盒调试,提高了调试效率.此外,通过设计执行顺序参数和执行周期,进一步增强了自定义功能块的灵活性和应用范围.该方法适用于工业自动控制领域中涉及对自定义功能块编辑的场景,应用前景广泛,具有较高的实用性和便利性.
An Implementation Method of Composite Custom Function Blocks with a Simulator
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.

custom function blocksimulatorconfiguration softwareexecution sequenceexecution cycle

刘斌、张明惠、董胜刚

展开 >

国电南京自动化股份有限公司,江苏南京 210032

南京国电南自维美德自动化有限公司,江苏南京 210032

自定义功能块 模拟器 组态软件 执行顺序 执行周期

2024

仪器仪表用户
天津仪表集团有限公司,中国仪器仪表学会节能技术应用分会

仪器仪表用户

影响因子:0.255
ISSN:1671-1041
年,卷(期):2024.31(8)