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