A method and system for dynamically generating a DCS system encapsulation logic block

By aggregating and deconstructing the control devices in the DCS system, constructing encapsulated sub-models, and dynamically generating logic blocks, the problems of low logic block generation efficiency and high operation and maintenance costs in existing technologies are solved, realizing efficient and intelligent logic block generation and maintenance.

CN121209453BActive Publication Date: 2026-05-01HEBEI HANFENG POWER GENERATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HEBEI HANFENG POWER GENERATION CO LTD
Filing Date
2025-11-26
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

The existing methods for generating and configuring logic blocks in DCS systems are inefficient, error-prone, and have poor readability and maintainability. They also rely heavily on engineers' experience and cannot dynamically create or deeply customize functional logic blocks, resulting in repetitive configurations and high operation and maintenance costs.

Method used

By aggregating control devices in the DCS system to generate device subsets, constructing encapsulated sub-models, generating basic logic programs, and rapidly calling functional sub-components within the device subsets, logic blocks are dynamically generated, including generating runtime dependency values ​​and correction instructions for the logic encapsulation model.

Benefits of technology

It improves the efficiency of generating logical blocks in the DCS system, avoids repetitive configuration, reduces overall operation and maintenance costs, and enhances the system's efficiency and maintainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121209453B_ABST
    Figure CN121209453B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of DCS systems, in particular to a DCS system encapsulation logic block dynamic generation method and system. The method comprises the following steps: setting multiple device subsets based on a DCS system, generating a logic encapsulation model according to all the device subsets; obtaining a feedback data packet of a to-be-controlled device, generating a first-level logic block of the to-be-controlled device according to the feedback data packet and the logic encapsulation model; obtaining a monitoring data packet of the DCS system, judging whether to generate a correction instruction of the logic encapsulation model according to the monitoring data packet; generating multiple device subsets by aggregating all the control devices in the DCS system, and constructing corresponding encapsulation sub-models according to the control parameters of the device subsets, so that the generation efficiency of the logic blocks in the DCS system is improved, the repetitive configuration process is avoided, the overall operation and maintenance cost of the DCS system is reduced, and the working efficiency of the DCS system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of DCS system technology, and in particular to a method and system for dynamically generating encapsulated logic blocks in a DCS system. Background Technology

[0002] Existing methods for generating and configuring logic blocks in DCS systems have significant limitations. The functions of logic blocks are fixed and static. System vendors predefine the types and parameters of all available logic blocks, leaving engineers with no choice but to select and use them. They cannot dynamically create or deeply customize entirely new logic blocks with unique functions during the field configuration phase, based on the specific needs of a particular process. When encountering non-standard, complex, or highly customized control parameters, engineers often need to manually interconnect a large number of basic logic blocks, forming a massive static logic network. This method is not only inefficient and error-prone, but also generates lengthy and complex logic pages with poor readability and maintainability.

[0003] Secondly, existing methods heavily rely on engineers' personal experience and familiarity with the underlying functional blocks. The entire configuration process is a completely manual, static process, lacking intelligent and automated assistance. For a large number of repetitive but structurally similar logics, such as different backup circuits for the same equipment or multiple production lines with the same process, engineers need to perform repetitive manual setup work, resulting in significant manpower and time costs. Summary of the Invention

[0004] The purpose of this application is to provide a method and system for dynamically generating encapsulated logic blocks in a DCS system in order to solve the above-mentioned technical problems, thereby improving the generation efficiency of logic blocks in the DCS system and reducing the overall operation and maintenance cost of the DCS system.

[0005] In some embodiments of this application, multiple device subsets are generated by aggregating all control devices in the DCS system, and corresponding encapsulated sub-models are constructed based on the control parameters of each device subset. This improves the generation efficiency of logic blocks in the DCS system, avoids repetitive configuration processes, and reduces the overall operation and maintenance cost of the DCS system.

[0006] In some embodiments of this application, all devices in a single device subset are deconstructed to generate various control parameters, thereby constructing the basic logic program for each control parameter. This allows for the establishment of various functional sub-components and corresponding encapsulated substructures within the device subset. When a new device to be controlled is added to the device subset, the relevant functional sub-components are quickly called and combined to generate the corresponding logic block, thereby improving the working efficiency of the DCS system.

[0007] In some embodiments of this application, a method for dynamically generating encapsulated logic blocks in a DCS system is provided, characterized by comprising:

[0008] Based on the DCS system, multiple device subsets are defined, and a logical encapsulation model is generated based on all device subsets.

[0009] Obtain the feedback data packet from the device to be controlled, and generate the first-level logic block of the device to be controlled based on the feedback data packet and the logic encapsulation model;

[0010] Obtain monitoring data packets from the DCS system, and determine whether to generate correction instructions for the logical encapsulation model based on the monitoring data packets;

[0011] This includes setting multiple device subsets, such as:

[0012] Establish a sequence of device subsets A, A=(a1,a2…a3) i …a n ), where a i Let be the i-th device subset; n is the number of device subsets.

[0013] In some embodiments of this application, the generated logical encapsulation model includes:

[0014] Based on the device subset sequence A, set a sequentially. i For the target subset;

[0015] Retrieve the associated record package of the target subset;

[0016] A functional component library that generates a target subset based on the associated record package;

[0017] Define the basic logic blocks and identification sub-models of the target subset based on the functional component library;

[0018] The encapsulation sub-model of the target subset is set based on the basic logic block and the identification sub-model;

[0019] Generate the encapsulation sub-models for each device subset in sequence;

[0020] Generate a logical encapsulation model based on all encapsulation sub-models.

[0021] In some embodiments of this application, the basic logic block for generating the target subset includes:

[0022] Based on the functional component set, set the functional component sequence B, B=(b1,b2…b…). i …b m ), where b i Let be the i-th functional component in the target subset; m is the number of functional components.

[0023] Generate an encapsulation substructure for the target subset based on all functional subcomponents;

[0024] b is set sequentially according to the functional sub-component sequence B. iis the sub-component to be evaluated;

[0025] Generate the running dependency value c of the sub-component to be evaluated according to the associated record package;

[0026] c = e * k i ;

[0027] e = U1 * v i ;

[0028] Where e is the dependency compensation coefficient; θ1 is the number of devices in the target subset; k i is the association value between the i-th device in the target subset and the sub-component to be evaluated; U1 is the preset first conversion coefficient; v i is the first-level difference value of the sub-component to be evaluated in the i-th device in the target subset;

[0029] Generate the running dependency values of the target subset for each functional sub-component in sequence;

[0030] Generate the basic logic block of the target subset according to all the running dependency values.

[0031] In some embodiments of the present application, generating the basic logic block of the target subset according to all the running dependency values includes:

[0032] Generate the running dependency value sequence C of the target subset, C = (c1, c2... c i … c m ), where c i is the running dependency value of the i-th functional sub-component in the target subset; m is the number of functional sub-components in the target subset;

[0033] Preset the first running dependency value threshold C1 and the second running dependency value threshold C2, and C1 < C2;

[0034] If c i ≤ C1, set the i-th functional sub-component as the first-level sub-component of the target subset;

[0035] If C1 < c i < C2, set the i-th functional sub-component as the second-level sub-component of the target subset;

[0036] If c i ≥ C2, set the i-th functional sub-component as the third-level sub-component of the target subset;

[0037] Set the first-level encapsulation instruction according to all the second-level sub-components;

[0038] Set the second-level encapsulation instruction according to all the third-level sub-components; <0000The basic logic blocks for generating the target subset are generated based on the first-level encapsulation instructions, the second-level encapsulation instructions, and the encapsulated substructures.

[0040] In some embodiments of this application, generating the first-level logic block of the device to be controlled includes:

[0041] Generate requirement sub-packages and feature sub-packages based on the feedback data packets;

[0042] Generate a first-level encapsulation model of the device to be controlled based on the feature sub-packages and the logical encapsulation model;

[0043] Define the recognition sub-model in the first-level encapsulation model as the target recognition model;

[0044] A logical compensation strategy for the device to be controlled is generated based on the target recognition model and feature sub-packages.

[0045] Define the basic logic block in the first-level encapsulation model as the anchor logic block;

[0046] Generate the first-level logic block of the device to be controlled based on the anchored logic block and logic compensation strategy in the first-level encapsulation model;

[0047] Generate the deviation evaluation value d for the first-level logic block.

[0048] In some embodiments of this application, generating the deviation evaluation value d includes:

[0049] d=g*[ η i *v 1i ];

[0050] Where g is a correction coefficient set according to the third-level sub-components in the first-level logic block; θ2 is the number of second-level sub-components in the anchor logic block; η i v is the influence factor of the i-th secondary component in the anchor logic block; 1i This represents the second-level difference value of the i-th second-level sub-component in the anchor logic block between the anchor logic block and the first-level logic block.

[0051] In some embodiments of this application, determining whether to generate a correction instruction for the logical encapsulation model includes:

[0052] Multiple correction time points are preset;

[0053] Obtain the monitoring data packet for the current correction time point;

[0054] Based on the device subset sequence A, set a sequentially. i The subset to be evaluated;

[0055] A corrected evaluation value f is generated for the subset to be evaluated based on the monitoring data packets;

[0056] f=t*[ j i ];

[0057] t=U2*[ h i ];

[0058] Where t is the deviation compensation coefficient; To adjust the number of evaluation indicators; j i θ4 is the reference value for the i-th correction evaluation index; h is the number of devices in the subset to be evaluated at the current correction time point; i U1 is the auxiliary evaluation value of the i-th device in the subset to be evaluated; U2 is the preset second conversion coefficient;

[0059] Preset correction evaluation value threshold F1;

[0060] If f>F1, the first-level correction instruction for the subset to be evaluated is generated at the current correction time point;

[0061] Check sequentially whether the current correction time node has generated a first-level correction instruction for each subset to be evaluated.

[0062] In some embodiments of this application, a dynamic generation system for encapsulated logic blocks of a DCS system is provided, comprising:

[0063] The central control unit is used to set multiple device subsets based on the DCS system and generate a logical encapsulation model based on all device subsets.

[0064] The encapsulation unit is used to acquire feedback data packets from the device to be controlled.

[0065] The encapsulation unit is also used to generate a first-level logic block of the device to be controlled based on the feedback data packet and the logic encapsulation model.

[0066] The monitoring unit is used to generate monitoring data packets for the DCS system.

[0067] The central control unit includes:

[0068] The first processing module is used to establish a sequence of device subsets A, A=(a1,a2…a…). i …a n ), where a i Let be the i-th device subset; n is the number of device subsets;

[0069] The second processing module is used to generate the logical encapsulation model;

[0070] The third processing module is used to determine whether to generate a correction instruction for the logical encapsulation model based on the monitored data packets.

[0071] In some embodiments of this application, the second processing module is further configured to:

[0072] Based on the device subset sequence A, set a sequentially. i For the target subset;

[0073] Retrieve the associated record package of the target subset;

[0074] A functional component library that generates a target subset based on the associated record package;

[0075] Define the basic logic blocks and identification sub-models of the target subset based on the functional component library;

[0076] The encapsulation sub-model of the target subset is set based on the basic logic block and the identification sub-model;

[0077] Generate the encapsulation sub-models for each device subset in sequence;

[0078] Generate a logical encapsulation model based on all encapsulation sub-models;

[0079] The basic logic blocks for generating the target subset include:

[0080] Based on the functional component set, set the functional component sequence B, B=(b1,b2…b…). i …b m ), where b i Let be the i-th functional component in the target subset; m is the number of functional components.

[0081] Generate an encapsulation substructure for the target subset based on all functional subcomponents;

[0082] b is set sequentially according to the functional sub-component sequence B. i The sub-component to be evaluated;

[0083] Generate the runtime dependency value c of the sub-component to be evaluated based on the associated record package;

[0084] c=e*[ k i ];

[0085] e=U1*[ v i ];

[0086] Where e is the dependency compensation coefficient; θ1 is the number of devices in the target subset; k i Let U be the association value between the i-th device in the target subset and the component to be evaluated; U1 is the preset first conversion coefficient; v i The first-level difference value of the sub-component to be evaluated in the i-th device of the target subset;

[0087] Generate the runtime dependencies of the target subset on each functional component in sequence;

[0088] Generate the base logic blocks of the target subset based on all runtime dependency values.

[0089] In some embodiments of this application, the packaging unit includes:

[0090] The first encapsulation module is used to generate requirement sub-packages and feature sub-packages based on the feedback data packets;

[0091] The second encapsulation module is used to generate a first-level encapsulation model of the device to be controlled based on the feature sub-package and the logical encapsulation model.

[0092] The second encapsulation module is also used to set the recognition sub-model in the first-level encapsulation model as the target recognition model;

[0093] The third encapsulation module is used to generate a logical compensation strategy for the device to be controlled based on the target recognition model and feature sub-packages.

[0094] Define the basic logic block in the first-level encapsulation model as the anchor logic block;

[0095] Generate the first-level logic block of the device to be controlled based on the anchored logic block and logic compensation strategy in the first-level encapsulation model;

[0096] The third encapsulation module is also used to generate the deviation evaluation value d of the first-level logic block.

[0097] Compared with the prior art, the beneficial effects of the DCS system encapsulation logic block dynamic generation method and system disclosed in this application are as follows:

[0098] By aggregating all control devices in the DCS system to generate multiple device subsets, and constructing corresponding encapsulated sub-models based on the control parameters of each device subset, the generation efficiency of logic blocks in the DCS system is improved, repetitive configuration processes are avoided, and the overall operation and maintenance cost of the DCS system is reduced.

[0099] By deconstructing all devices in a single device subset, various control parameters are generated, thereby constructing the basic logic program for each control parameter. This allows for the establishment of multiple functional sub-components and corresponding encapsulated substructures within the device subset. When a new device to be controlled is added to the device subset, the relevant functional sub-components are quickly invoked and combined to generate the corresponding logic block, thus improving the working efficiency of the DCS system. Attached Figure Description

[0100] Figure 1 This is a flowchart illustrating a method for dynamically generating encapsulated logic blocks in a DCS system according to a preferred embodiment of this application. Detailed Implementation

[0101] The specific embodiments of this application will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate this application, but are not intended to limit the scope of this application.

[0102] In the description of this application, it should be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0103] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0104] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0105] like Figure 1 As shown in the preferred embodiment of this application, a method for dynamically generating encapsulated logic blocks in a DCS system includes:

[0106] S101: Based on the DCS system, multiple device subsets are set, and a logical encapsulation model is generated based on all device subsets;

[0107] S102: Obtain the feedback data packet of the device to be controlled, and generate the first-level logic block of the device to be controlled based on the feedback data packet and the logic encapsulation model;

[0108] S103: Obtain the monitoring data packet of the DCS system, and determine whether to generate a correction instruction for the logical encapsulation model based on the monitoring data packet;

[0109] This includes setting multiple device subsets, such as:

[0110] Establish a sequence of device subsets A, A=(a1,a2…a3) i …a n), where a i Let be the i-th device subset; n is the number of device subsets.

[0111] Specifically, the control area of ​​the DCS system is traversed, and all control devices are aggregated to construct multiple device subsets. Each device subset includes one or more devices, and the operating logic of the devices within a single device subset is basically the same (i.e., they are devices of the same type).

[0112] Specifically, each device subset is deconstructed sequentially to generate control parameters for each device subset, and a logical encapsulation model is constructed based on the analysis results of all control parameters, thereby enabling the rapid construction of logic blocks.

[0113] It is understood that in the above embodiments, by aggregating all control devices in the DCS system to generate multiple device subsets, and constructing corresponding encapsulated sub-models based on the control parameters of each device subset, the generation efficiency of logic blocks in the DCS system is improved, repetitive configuration processes are avoided, and the overall operation and maintenance cost of the DCS system is reduced.

[0114] In a preferred embodiment of this application, generating a logical encapsulation model includes:

[0115] Based on the device subset sequence A, set a sequentially. i For the target subset;

[0116] Retrieve the associated record package of the target subset;

[0117] A functional component library that generates a target subset based on the associated record package;

[0118] Define the basic logic blocks and identification sub-models of the target subset based on the functional component library;

[0119] The encapsulation sub-model of the target subset is set based on the basic logic block and the identification sub-model;

[0120] Generate the encapsulation sub-models for each device subset in sequence;

[0121] Generate a logical encapsulation model based on all encapsulation sub-models.

[0122] Specifically, the associated record package consists of the logic blocks of each device in the target subset. By deconstructing the logic blocks of each device, all control parameters existing in the target subset are generated. By classifying all control parameters, multiple different types of control parameters are generated. Initial control programs corresponding to each type of control parameter are generated in sequence. Multiple functional sub-components are generated based on all initial control programs. Each functional sub-component represents an initial control program.

[0123] Specifically, the mapping content of each initial control program in the logic blocks of different devices may differ, but the corresponding control requirements are the same. For example, the warning temperatures of different boilers in a thermal power plant may vary, but essentially they are all warnings of abnormal boiler operating conditions.

[0124] Specifically, the basic logic blocks for generating the target subset include:

[0125] Based on the functional component set, set the functional component sequence B, B=(b1,b2…b…). i …b m ), where b i Let be the i-th functional component in the target subset; m is the number of functional components.

[0126] Generate an encapsulation substructure for the target subset based on all functional subcomponents;

[0127] b is set sequentially according to the functional sub-component sequence B. i The sub-component to be evaluated;

[0128] Generate the runtime dependency value c of the sub-component to be evaluated based on the associated record package;

[0129] c=e*[ k i ];

[0130] e=U1*[ v i ];

[0131] Where e is the dependency compensation coefficient; θ1 is the number of devices in the target subset; k i Let U be the association value between the i-th device in the target subset and the component to be evaluated; U1 is the preset first conversion coefficient; v i The first-level difference value is the sub-component to be evaluated in the i-th device of the target subset; the runtime dependency values ​​of the target subset for each functional sub-component are generated sequentially.

[0132] Generate the base logic blocks of the target subset based on all runtime dependency values.

[0133] Specifically, for the mutual calls and dependencies between all functional sub-components, an encapsulation substructure is constructed. The encapsulation substructure is equipped with preset connection ports for each functional sub-component. Through the encapsulation substructure, the combination and deletion of different functional sub-components can be quickly realized, thereby improving the generation efficiency of logic blocks.

[0134] Specifically, a first-level comparison order is constructed based on the generation time of the logical blocks of each device in the target subset. The earlier the generation time of the logical block, the earlier its position in the first-level comparison order.

[0135] Specifically, it is determined in sequence whether there is a sub-component to be evaluated in the logic block of each device in the target subset. If it exists (i.e., the current device requires the current functional sub-component), the association value between the current device and the sub-component to be evaluated is set to 1. If it does not exist (i.e., the current device does not require the current functional sub-component), the association value between the current device and the sub-component to be evaluated is set to 0. The association values of the sub-components to be evaluated for each device are determined in sequence.

[0136] Specifically, according to the first-level comparison order of the target subset, the device in the first position is selected as the anchoring device, and the content difference degree (i.e., the parameter difference of the corresponding initial control program of the sub-component to be evaluated in the two devices) between the sub-component to be evaluated of the current device and the sub-component to be evaluated of the anchoring device is generated. According to the content difference degree, the first-level difference value of the sub-component to be evaluated in the current device is obtained. The greater the content difference degree, the greater the corresponding first-level difference value. The mapping relationship between the two can be set according to historical parameters.

[0137] Specifically, by presetting the first conversion coefficient, the dependence compensation coefficient e is made to be within the preset value range, and v i the greater the value of [], the smaller the value of the dependence compensation coefficient e. The mapping relationship between the two can be set according to historical parameters, and the value of the compensation coefficient e is always less than 1.

[0138] Specifically, the basic logic block of the target subset is generated according to all the running dependence values, including:

[0139] Generate the running dependence value sequence C of the target subset, C = (c1, c2…c i …c m ), where c i is the running dependence value of the i-th functional sub-component in the target subset; m is the number of functional sub-components in the target subset;

[0140] Preset the first running dependence value threshold C1 and the second running dependence value threshold C2, and C1 < C2;

[0141] If c i ≤ C1, set the i-th functional sub-component as the first-level sub-component of the target subset;

[0142] If C1 < c i < C2, set the i-th functional sub-component as the second-level sub-component of the target subset;

[0143] If c i ≥ C2, set the i-th functional sub-component as the third-level sub-component of the target subset;

[0144] Set the first-level encapsulation instruction according to all the second-level sub-components;

[0145] Set the second-level encapsulation instruction according to all the third-level sub-components;

[0146] The basic logic blocks for generating the target subset are generated based on the first-level encapsulation instructions, the second-level encapsulation instructions, and the encapsulated substructures.

[0147] Specifically, the first runtime dependency threshold and the second runtime dependency threshold can be set based on historical parameters.

[0148] Specifically, Level 1 sub-components are non-essential functional sub-components within the target subset, and not all exist in the logic blocks of all devices. Level 2 sub-components are variable functional sub-components, existing in the logic blocks of most devices in the target subset, but requiring dynamic modification based on the actual needs of each device. In other words, Level 2 sub-components represent control requirements needed by all devices, but with some differences in decision-making criteria during actual operation. Level 3 sub-components are basic functional sub-components present in all devices, and the content of the corresponding initial control program is identical across all devices.

[0149] Specifically, the first-level encapsulation instruction refers to analyzing the current second-level sub-component, generating variable structures (i.e., content that may differ in different devices) and basic structures (i.e., content that is the same in all devices), and dynamically adjusting the variable structures by analyzing the logic blocks of all devices, selecting the variable structure and basic structure with the smallest average difference from each device to combine, and generating the callable content of the current second-level sub-component.

[0150] Specifically, the second-level encapsulation instructions generate the corresponding callable content based on the initial calling program corresponding to the third-level sub-component.

[0151] It is understood that in the above embodiments, by aggregating all control devices in the DCS system to generate multiple device subsets, and constructing corresponding encapsulated sub-models based on the control parameters of each device subset, the generation efficiency of logic blocks in the DCS system is improved, repetitive configuration processes are avoided, and the overall operation and maintenance cost of the DCS system is reduced.

[0152] In a preferred embodiment of this application, generating a first-level logic block for the device to be controlled includes:

[0153] Generate requirement sub-packages and feature sub-packages based on the feedback data packets;

[0154] Generate a first-level encapsulation model of the device to be controlled based on the feature sub-packages and the logical encapsulation model;

[0155] Define the recognition sub-model in the first-level encapsulation model as the target recognition model;

[0156] A logical compensation strategy for the device to be controlled is generated based on the target recognition model and feature sub-packages.

[0157] Define the basic logic block in the first-level encapsulation model as the anchor logic block;

[0158] Generate the first-level logic block of the device to be controlled based on the anchored logic block and logic compensation strategy in the first-level encapsulation model;

[0159] Generate the deviation evaluation value d for the first-level logic block.

[0160] Specifically, the demand sub-analysis is performed based on the target recognition model to determine whether the device to be controlled needs to adjust the second-level sub-components in the first-level encapsulation model, and at the same time, it is determined whether some first-level sub-components need to be encapsulated. Based on the judgment results, the logical compensation strategy of the device to be controlled is quickly generated.

[0161] Specifically, the anchored logic block is corrected through a logic compensation strategy, and a first-level logic block is generated based on the correction result.

[0162] Specifically, the larger the deviation rating value, the greater the adjustment of the anchor logic block when generating the first-level logic block, and the greater the interference with the generation efficiency.

[0163] Specifically, generating the deviation evaluation value d includes:

[0164] d=g*[ η i *v 1i ];

[0165] Where g is a correction coefficient set according to the third-level sub-components in the first-level logic block; θ2 is the number of second-level sub-components in the anchor logic block; η i v is the influence factor of the i-th secondary component in the anchor logic block; 1i This represents the second-level difference value of the i-th second-level sub-component in the anchor logic block between the anchor logic block and the first-level logic block.

[0166] Specifically, the impact factor of each secondary sub-component is set according to its corresponding operational dependency value. The larger the operational dependency value, the larger the corresponding impact factor value. The mapping relationship between the two can be set according to historical parameters.

[0167] Specifically, the setting is based on the content deviation of the second-level sub-component in the anchor logic block and in the first-level logic block. The larger the content deviation, the greater the difference value of the second-level sub-component. The mapping relationship between the two can be set according to historical parameters.

[0168] Specifically, the correction coefficient is set according to the number of third-level sub-components in the first-level logic block. The more third-level sub-components there are, the larger the corresponding correction coefficient g will be. The mapping relationship between the two can be set according to historical parameters, and the value range of the correction coefficient g is always greater than 1.

[0169] In a preferred embodiment of this application, determining whether to generate a correction instruction for the logical encapsulation model includes:

[0170] Multiple correction time points are preset;

[0171] Obtain the monitoring data packet for the current correction time point;

[0172] Based on the device subset sequence A, set a sequentially. i The subset to be evaluated;

[0173] A corrected evaluation value f is generated for the subset to be evaluated based on the monitoring data packets;

[0174] f=t*[ j i ];

[0175] t=U2*[ h i ];

[0176] Where t is the deviation compensation coefficient; To adjust the number of evaluation indicators; j i θ4 is the reference value for the i-th correction evaluation index; h is the number of devices in the subset to be evaluated at the current correction time point; i U1 is the auxiliary evaluation value of the i-th device in the subset to be evaluated; U2 is the preset second conversion coefficient;

[0177] Preset correction evaluation value threshold F1;

[0178] If f>F1, the first-level correction instruction for the subset to be evaluated is generated at the current correction time point;

[0179] Check sequentially whether the current correction time node has generated a first-level correction instruction for each subset to be evaluated.

[0180] Specifically, the correction indicators include, but are not limited to, the average value and variance of the deviation evaluation value of the newly added device block. The larger the reference value of each correction indicator, the worse the operating efficiency of the encapsulated sub-model.

[0181] Specifically, an auxiliary evaluation value is set according to the number of operational logic failures of each device. The greater the number of operational logic failures, the greater the corresponding auxiliary evaluation value. The mapping relationship between the two can be set based on historical parameters.

[0182] Specifically, the correction evaluation value threshold F1 can be set based on historical parameters. When the correction evaluation value is greater than the correction evaluation value threshold, it indicates that the operating efficiency of the encapsulated sub-model corresponding to the subset to be evaluated is worse, and the internal basic logic blocks need to be adjusted in a timely manner to improve the generation efficiency of logic blocks in the DCS system, avoid repetitive configuration processes, and reduce the overall operation and maintenance cost of the DCS system.

[0183] Specifically, by presetting a second conversion coefficient, the deviation compensation coefficient t is always kept within a preset value range, and [ h i The larger the value of ], the larger the corresponding deviation compensation coefficient t, and the value of deviation compensation coefficient t is always greater than 1.

[0184] In another preferred embodiment of the DCS system encapsulation logic block dynamic generation method based on any of the above preferred embodiments, this preferred embodiment provides a DCS system encapsulation logic block dynamic generation system, including:

[0185] The central control unit is used to set multiple device subsets based on the DCS system and generate a logical encapsulation model based on all device subsets.

[0186] The encapsulation unit is used to acquire feedback data packets from the device to be controlled.

[0187] The encapsulation unit is also used to generate a first-level logic block of the device to be controlled based on the feedback data packet and the logic encapsulation model;

[0188] The monitoring unit is used to generate monitoring data packets for the DCS system.

[0189] The central control unit includes:

[0190] The first processing module is used to establish a sequence of device subsets A, A=(a1,a2…a…). i …a n ), where a i Let be the i-th device subset; n is the number of device subsets;

[0191] The second processing module is used to generate the logical encapsulation model;

[0192] The third processing module is used to determine whether to generate a correction instruction for the logical encapsulation model based on the monitored data packets.

[0193] In a preferred embodiment of this application, the second processing module is further configured to:

[0194] Based on the device subset sequence A, set a sequentially. i For the target subset;

[0195] Retrieve the associated record package of the target subset;

[0196] A functional component library that generates a target subset based on the associated record package;

[0197] Define the basic logic blocks and identification sub-models of the target subset based on the functional component library;

[0198] The encapsulation sub-model of the target subset is set based on the basic logic block and the identification sub-model;

[0199] Generate the encapsulation sub-models for each device subset in sequence;

[0200] Generate a logical encapsulation model based on all encapsulation sub-models;

[0201] The basic logic blocks for generating the target subset include:

[0202] Based on the functional component set, set the functional component sequence B, B=(b1,b2…b…). i …b m ), where b i Let be the i-th functional component in the target subset; m is the number of functional components.

[0203] Generate an encapsulation substructure for the target subset based on all functional subcomponents;

[0204] b is set sequentially according to the functional sub-component sequence B. i The sub-component to be evaluated;

[0205] Generate the runtime dependency value c of the sub-component to be evaluated based on the associated record package;

[0206] c=e*[ k i ];

[0207] e=U1*[ v i ];

[0208] Where e is the dependency compensation coefficient; θ1 is the number of devices in the target subset; k i Let U be the association value between the i-th device in the target subset and the component to be evaluated; U1 is the preset first conversion coefficient; v i The first-level difference value of the sub-component to be evaluated in the i-th device of the target subset;

[0209] Generate the runtime dependencies of the target subset on each functional component in sequence;

[0210] Generate the base logic blocks of the target subset based on all runtime dependency values.

[0211] In a preferred embodiment of this application, the packaging unit includes:

[0212] The first encapsulation module is used to generate requirement sub-packages and feature sub-packages based on the feedback data packets;

[0213] The second encapsulation module is used to generate a first-level encapsulation model of the device to be controlled based on the feature sub-package and the logical encapsulation model.

[0214] The second encapsulation module is also used to set the recognition sub-model in the first-level encapsulation model as the target recognition model;

[0215] The third encapsulation module is used to generate a logical compensation strategy for the device to be controlled based on the target recognition model and feature sub-packages.

[0216] Define the basic logic block in the first-level encapsulation model as the anchor logic block;

[0217] Generate the first-level logic block of the device to be controlled based on the anchored logic block and logic compensation strategy in the first-level encapsulation model;

[0218] The third encapsulation module is also used to generate the deviation evaluation value d of the first-level logic block.

[0219] According to the first concept of this application, by aggregating all control devices in the DCS system to generate multiple device subsets, and constructing corresponding encapsulated sub-models based on the control parameters of each device subset, the generation efficiency of logic blocks in the DCS system is improved, repetitive configuration processes are avoided, and the overall operation and maintenance cost of the DCS system is reduced.

[0220] According to the second concept of this application, all devices in a single device subset are deconstructed to generate various control parameters, thereby constructing the basic logic program for each control parameter. This allows for the establishment of various functional sub-components and corresponding encapsulated substructures within the device subset. When a new device to be controlled is added to the device subset, the relevant functional sub-components are quickly called and combined to generate the corresponding logic block, thereby improving the working efficiency of the DCS system.

[0221] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and substitutions can be made without departing from the technical principles of this application, and these improvements and substitutions should also be considered within the scope of protection of this application.

Claims

1. A method for dynamically generating encapsulated logic blocks in a DCS system, characterized in that, include: Based on the DCS system, multiple device subsets are defined, and a logical encapsulation model is generated based on all device subsets. Obtain the feedback data packet from the device to be controlled, and generate the first-level logic block of the device to be controlled based on the feedback data packet and the logic encapsulation model; Obtain monitoring data packets from the DCS system, and determine whether to generate correction instructions for the logical encapsulation model based on the monitoring data packets; This includes setting multiple device subsets, such as: Establish a sequence of device subsets A, A=(a1,a2…a3) i …a n ), where a i Let be the i-th device subset; n is the number of device subsets; Generate a logical encapsulation model, including: Based on the device subset sequence A, set a sequentially. i For the target subset; Retrieve the associated record package of the target subset; A functional component library that generates a target subset based on the associated record package; Define the basic logic blocks and identification sub-models of the target subset based on the functional component library; The encapsulation sub-model of the target subset is set based on the basic logic block and the identification sub-model; Generate the encapsulation sub-models for each device subset in sequence; Generate a logical encapsulation model based on all encapsulation sub-models; The basic logic blocks for generating the target subset include: Based on the functional component set, set the functional component sequence B, B=(b1,b2…b…). i …b m ), where b i Let be the i-th functional component in the target subset; m is the number of functional components. Generate an encapsulation substructure for the target subset based on all functional subcomponents; b is set sequentially according to the functional sub-component sequence B. i The sub-component to be evaluated; Generate the runtime dependency value c of the sub-component to be evaluated based on the associated record package; c=e*[ k i ]; e=U1*[ v i ]; Where e is the dependency compensation coefficient; θ1 is the number of devices in the target subset; k i Let U be the association value between the i-th device in the target subset and the component to be evaluated; U1 is the preset first conversion coefficient; v i The first-level difference value of the sub-component to be evaluated in the i-th device of the target subset; Generate the runtime dependencies of the target subset on each functional component in sequence; Generate the base logic blocks of the target subset based on all runtime dependency values.

2. The method for dynamically generating encapsulated logic blocks in a DCS system as described in claim 1, characterized in that, The basic logic blocks that generate a target subset based on all runtime dependencies include: Generate a sequence of runtime dependency values ​​C, C=(c1,c2…c i …c m ), where c i is the runtime dependency value of the i-th functional component in the target subset; m is the number of functional components in the target subset; A first runtime dependency threshold C1 and a second runtime dependency threshold C2 are preset, and C1 <C2; If c i ≤C1, set the i-th functional component as a first-level component of the target subset; If C1 < c i < C2, set the i-th functional sub-component as the secondary sub-component of the target subset; If c i ≥C2, define the i-th functional component as a third-level component of the target subset; Set the primary packaging instructions based on all secondary sub-components; Set the second-level packaging instructions based on all third-level sub-components; The basic logic blocks for generating the target subset are generated based on the first-level encapsulation instructions, the second-level encapsulation instructions, and the encapsulated substructures.

3. The method for dynamically generating encapsulated logic blocks in a DCS system as described in claim 2, characterized in that, The first-level logic block for generating the device to be controlled includes: Generate requirement sub-packages and feature sub-packages based on the feedback data packets; Generate a first-level encapsulation model of the device to be controlled based on the feature sub-packages and the logical encapsulation model; Define the recognition sub-model in the first-level encapsulation model as the target recognition model; A logical compensation strategy for the device to be controlled is generated based on the target recognition model and feature sub-packages. Define the basic logic block in the first-level encapsulation model as the anchor logic block; Generate the first-level logic block of the device to be controlled based on the anchored logic block and logic compensation strategy in the first-level encapsulation model; Generate the deviation evaluation value d for the first-level logic block.

4. The method for dynamically generating encapsulated logic blocks in a DCS system as described in claim 3, characterized in that, Generate the deviation evaluation value d, including: d=g*[ η i *v 1i ]; Where g is a correction coefficient set according to the third-level sub-components in the first-level logic block; θ2 is the number of second-level sub-components in the anchor logic block; η i v is the influence factor of the i-th secondary component in the anchor logic block; 1i This represents the second-level difference value of the i-th second-level sub-component in the anchor logic block between the anchor logic block and the first-level logic block.

5. The method for dynamically generating encapsulated logic blocks in a DCS system as described in claim 4, characterized in that, Determine whether to generate a correction instruction for the logical encapsulation model, including: Multiple correction time points are preset; Obtain the monitoring data packet for the current correction time point; Based on the device subset sequence A, set a sequentially. i The subset to be evaluated; A corrected evaluation value f is generated for the subset to be evaluated based on the monitoring data packets; f=t*[ j i ]; t=U2*[ h i ]; Where t is the deviation compensation coefficient; To adjust the number of evaluation indicators; j i θ4 is the reference value for the i-th correction evaluation index; h is the number of devices in the subset to be evaluated at the current correction time point; i U1 is the auxiliary evaluation value of the i-th device in the subset to be evaluated; U2 is the preset second conversion coefficient; Preset correction evaluation value threshold F1; If f>F1, the first-level correction instruction for the subset to be evaluated is generated at the current correction time point; Check sequentially whether the current correction time node has generated a first-level correction instruction for each subset to be evaluated.

6. A DCS system encapsulation logic block dynamic generation system, employing the DCS system encapsulation logic block dynamic generation method according to any one of claims 1-5, characterized in that, include: The central control unit is used to set multiple device subsets based on the DCS system and generate a logical encapsulation model based on all device subsets. The encapsulation unit is used to acquire feedback data packets from the device to be controlled. The encapsulation unit is also used to generate a first-level logic block of the device to be controlled based on the feedback data packet and the logic encapsulation model. The monitoring unit is used to generate monitoring data packets for the DCS system. The central control unit includes: The first processing module is used to establish a sequence of device subsets A, A=(a1,a2…a…). i …a n ), where a i Let be the i-th device subset; n is the number of device subsets; The second processing module is used to generate the logical encapsulation model; The third processing module is used to determine whether to generate a correction instruction for the logical encapsulation model based on the monitored data packets; The second processing module is also used for: Based on the device subset sequence A, set a sequentially. i For the target subset; Retrieve the associated record package of the target subset; A functional component library that generates a target subset based on the associated record package; Define the basic logic blocks and identification sub-models of the target subset based on the functional component library; The encapsulation sub-model of the target subset is set based on the basic logic block and the identification sub-model; Generate the encapsulation sub-models for each device subset in sequence; Generate a logical encapsulation model based on all encapsulation sub-models; The basic logic blocks for generating the target subset include: Based on the functional component set, set the functional component sequence B, B=(b1,b2…b…). i …b m ), where b i Let be the i-th functional component in the target subset; m is the number of functional components. Generate an encapsulation substructure for the target subset based on all functional subcomponents; b is set sequentially according to the functional sub-component sequence B. i The sub-component to be evaluated; Generate the runtime dependency value c of the sub-component to be evaluated based on the associated record package; c=e*[ k i ]; e=U1*[ v i ]; Where e is the dependency compensation coefficient; θ1 is the number of devices in the target subset; k i Let U be the association value between the i-th device in the target subset and the component to be evaluated; U1 is the preset first conversion coefficient; v i The first-level difference value of the sub-component to be evaluated in the i-th device of the target subset; Generate the runtime dependencies of the target subset on each functional component in sequence; Generate the base logic blocks of the target subset based on all runtime dependency values.

7. The DCS system encapsulation logic block dynamic generation system as described in claim 6, characterized in that, The packaging unit includes: The first encapsulation module is used to generate requirement sub-packages and feature sub-packages based on the feedback data packets; The second encapsulation module is used to generate a first-level encapsulation model of the device to be controlled based on the feature sub-package and the logical encapsulation model. The second encapsulation module is also used to set the recognition sub-model in the first-level encapsulation model as the target recognition model; The third encapsulation module is used to generate a logical compensation strategy for the device to be controlled based on the target recognition model and feature sub-packages. Define the basic logic block in the first-level encapsulation model as the anchor logic block; Generate the first-level logic block of the device to be controlled based on the anchored logic block and logic compensation strategy in the first-level encapsulation model; The third encapsulation module is also used to generate the deviation evaluation value d of the first-level logic block.

Citation Information

Patent Citations

  • Configurable process logic configuration batch generation method and device

    CN114004108A

  • Low-code management system and method based on AIot Internet of Things

    CN119440513A