Industrial configuration variable binding failure self-recovery method, system and storage medium

By persisting the identifier and name information of variables in the binding relationship, performing double verification and automatic migration, the problems of the binding relationship not being able to be automatically restored after variable deletion and reconstruction and the hidden misbinding are solved, thus improving the reliability and maintenance efficiency of industrial configuration software.

CN123178155APending Publication Date: 2026-11-27XIANGTAN HONGDA VACUUM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611698206.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, the binding relationship cannot be automatically restored after variable deletion and reconstruction in industrial configuration software, and there is a lack of a verification mechanism for hidden misbinding caused by identifier reuse, resulting in high engineering maintenance costs and serious hidden fault risks.

Method used

When the binding relationship is established, the variable's identifier and name information are persisted together. At runtime, double verification is performed. The binding configuration is retrieved and updated by name information, and the binding is automatically migrated to the new variable to prevent hidden misbinding.

Benefits of technology

It enables automatic restoration of binding relationships after variable deletion and reconstruction without manual intervention, reducing the maintenance cost of large screens, eliminating the risk of hidden misbinding, and improving the reliability and performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178155A_ABST
    Figure CN123178155A_ABST
Patent Text Reader

Abstract

The application discloses an industrial configuration variable binding failure self-recovery method and system and a storage medium, and comprises the following steps: when a binding relationship between a bearing object and a variable is established, a first identifier of the variable and name information of the variable at that time are stored in a binding configuration; at runtime, the variable is queried by using the first identifier, and it is checked whether the current name of the queried variable is consistent with the name information; when the check fails, the variable with the matched name is searched in a variable storage area by using the name information; and when the search hits, the first identifier in the binding configuration is updated to the first identifier of the hit variable. Through the composite binding storage of the first identifier and the name information, the application considers both the quick positioning in the regular operation and the recoverability after the identifier failure; through the runtime name consistency check, the hidden wrong binding caused by the identifier reuse is intercepted; through the name search and the identifier automatic update, the zero-intervention self-recovery of the binding relationship is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial automation monitoring configuration software technology, specifically to a method, system, and storage medium for self-healing failure of industrial configuration variable binding based on name snapshots. Background Technology

[0002] Industrial monitoring configuration software (such as SCADA / HMI systems) enables the monitoring and control of industrial field equipment through configuration screens. Graphical controls in the configuration screen (such as numerical displays, dynamic elements, buttons, I / O fields, etc.) are bound to variables to achieve real-time data display and control command issuance.

[0003] In existing configuration software, the binding relationship between controls and variables is generally stored and indexed using the variable's location identifier. This location identifier is a combination of the connection identifier of the communication connection to which the variable belongs and the address identifier of the variable within that connection, or it is the record identifier of the variable in the project database. This binding method based on identifiers works normally during the initial configuration of the project—controls quickly locate the corresponding variables through the identifiers, read their current values, or write values ​​to them.

[0004] However, in the actual evolution of the project, this approach can trigger two types of failure modes.

[0005] The first type of failure mode: Floating Bindings. When an engineer deletes a variable and recreates one with the same name (e.g., by modifying the data type, changing the communication connection, or re-importing the variable table from a higher-level device), the new variable acquires a new identifier. At this point, all control bindings pointing to the old identifier become invalid. On the screen, this manifests as numerous controls having no values, and the configuration interface only displays a string of meaningless numeric identifiers. Engineers cannot determine which variable the control was originally bound to and must rebind them one by one from memory. On complex process screens containing thousands of controls, this workload is enormous and may even render the project unmaintainable.

[0006] The second type of failure mode: Hidden misbinding caused by identifier reuse. When an original variable is deleted, and engineers recreate a new variable with completely different semantics on the same address of the same communication connection (for example, the original "cavity pressure" occupied address DB1,X58.3, and after the variable was deleted, the same address was occupied by the newly created "cooling water temperature"), the identifier pointed to by the old binding happens to "hit" the new variable. At this time, the binding "appears to be effective" at the system level—the screen displays the value normally, without any errors—but it displays the wrong process quantity. This failure is extremely insidious and can lead to misjudgment and misoperation by operators on site, with serious consequences.

[0007] To address the aforementioned issues, several solutions exist in the prior art. Chinese patent document CN103942311A discloses a method for reusing variables in a monitoring system. This solution assigns a unique identifier ID and application configuration file to each lower-level machine, defines a data table in the upper-level machine, and allows the same variable or the same group of variables to be associated with data tables on different lower-level machines, thereby achieving variable reuse. This solution addresses the problem of "reusing the same variable template across different lower-level machines," solving the development efficiency problem of configuration software. It does not involve the automatic recovery of bindings after variable deletion and reconstruction, nor does it involve the verification of the validity of binding identifiers.

[0008] Chinese patent document CN122613876A discloses a method for parsing and processing variables in a configuration screen. This scheme establishes a unified binding parsing entry point, locates and assigns variables of different categories according to their identifiers, and returns the connection identifier and variable name to which the variable belongs, thereby achieving isolation and debugging of local variables and engineering variables within the screen. The binding relationship in this scheme still uses the identifier as the sole link, focusing on the assignment and isolation of variables of different categories at the parsing entry point. This scheme does not involve persisting variable name information in the binding configuration, does not involve verifying whether the semantic identity of the variable matched by the identifier has changed based on the name information, and does not involve relocating the binding to the new variable based on the name information after the variable has been deleted and rebuilt.

[0009] Furthermore, some configuration software (such as Siemens WinCC) uses the "cross-reference" function to check where variables are used before deletion to assess the impact of deletion. If binding needs to be restored after variable deletion, engineers must manually recreate the variable and re-establish the binding relationship. This method relies on manual operation, is inefficient, and prone to errors. Some solutions (such as KingSCADA) check references before deleting variables, preventing deletion if references exist. This solution only provides prevention and cannot address the problem of restoring variables after they have been deleted and rebuilt.

[0010] Therefore, existing technologies lack a mechanism that can automatically identify the semantic equivalence of variables and migrate the bindings to new variables, resulting in the binding relationship not being automatically restored after variable deletion and reconstruction; at the same time, there is a lack of a verification mechanism for the scenario of "identifier hit but semantics changed", which makes it impossible to identify and intercept hidden misbindings. Summary of the Invention

[0011] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a self-healing method, system and storage medium for industrial configuration variable binding failure.

[0012] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: A self-healing method for industrial configuration variable binding failure includes: When establishing the binding relationship between the host object and the variable, the first identifier of the variable and the name information of the variable at that time are persisted together in the binding configuration; At runtime, the variable is first queried using the first identifier, and the current name of the retrieved variable is verified to be consistent with the name information. If the verification fails, retrieve the variable with the matching name from the variable storage area using the name information; When a match is found, the first identifier in the binding configuration is updated to the first identifier of the match variable.

[0013] As a further improvement to the above technical solution: The first identifier includes the connection identifier of the communication connection to which the variable belongs and the address identifier of the variable within the communication connection, or it is the record identifier of the internal variable in the project database.

[0014] This includes: when establishing the binding relationship between a control and a variable, persisting the variable's record identifier and the variable's current name snapshot together in the binding configuration; at runtime, first querying the variable using the record identifier, and comparing the current name of the retrieved variable with the name snapshot; when the record identifier does not match the variable, or the record identifier matches the variable but the variable's current name is inconsistent with the name snapshot, searching for a variable with the same name in the variable table using the name snapshot; when a match is found, updating the record identifier in the binding configuration to the record identifier of the matched variable.

[0015] When retrieving a variable with a matching name in the variable storage area using the name information, priority is given to matching within the same communication connection range; if there is no match within the same communication connection range, and the name is unique within the entire project range, then the unique match within the entire project range is used as the retrieval result; when there are multiple indistinguishable candidates with the same name, the first identifier is not updated.

[0016] The verification failure includes: the first identifier does not match any variable, or the first identifier matches a variable but the current name of the variable is inconsistent with the name information; wherein, when the first identifier matches a variable but the current name is inconsistent with the name information, it is determined as identifier reuse and the variable is rejected.

[0017] When determining the binding status in the configuration editor: if the first identifier is invalid but the name information can be matched with a variable of the same name in the variable storage area, no invalidation is indicated; only when the name information cannot be matched with any variable of the same name is it determined to be a true invalidation.

[0018] Bindings deemed truly invalid are displayed in the configuration interface with the name information appended with an invalidation identifier, but the first identifier is not displayed.

[0019] The self-healing method is uniformly applicable to screen control binding, template window control binding, and variable references in dynamic configuration items, which include dynamic coloring, range mapping, and value-based graphics switching.

[0020] Before deleting the variable, all the storage tables that are bound to it are traversed, and a reverse lookup is performed based on the first identifier and the name information. The consistency check of the preset data source list is used to confirm that the reverse lookup covers all bound storage sources.

[0021] An industrial configuration variable binding failure self-healing system includes: The binding establishment module is used to persist the first identifier of the variable and the name information of the variable at that time in the binding configuration when establishing the binding relationship between the carrier object and the variable; The runtime binding resolution module is used to first query the variable with the first identifier at runtime, and verify whether the current name of the found variable is consistent with the name information; when the verification fails, it retrieves the variable with the name matching in the variable storage area with the name information; when the retrieval is successful, it updates the first identifier in the binding configuration to the first identifier of the matched variable. The editor failure determination and display module is used to determine the binding status in the configuration editor, and when the failure is determined to be true, it is displayed in the form of name information with a failure identifier attached. The reference reverse lookup module is used to traverse all storage tables that are bound to the variable before deletion, and perform a reference reverse lookup based on the first identifier and the name information in two dimensions.

[0022] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the industrial configuration variable binding failure self-healing method as described above.

[0023] Compared with the prior art, the advantages of the present invention are as follows: The industrial configuration variable binding failure self-healing method provided by this invention persists the first identifier of the variable and its current name information in the binding configuration when establishing the binding relationship between the carrier object and the variable. This allows the binding configuration to simultaneously carry two types of information: the first identifier is used for quick variable location (an efficient path during normal operation), and the name information is used to identify the semantic identity of the variable when the identifier fails. Existing technologies only store the record identifier; when the identifier fails, the binding completely loses its recovery basis. This invention, through composite binding storage, allows the binding to follow the fast identifier path during normal operation (without introducing additional overhead), while still having name information as a recovery clue when the identifier fails, balancing runtime performance and post-failure recoverability. During runtime, the first identifier is used to query the variable, and the current name of the found variable is verified to be consistent with the name information. This ensures that when the system performs binding resolution, it not only checks whether the identifier can hit the variable, but also verifies whether the hit variable is still the semantically expected variable for binding. Existing technologies only verify whether the identifier hits; when the identifier is reused for a variable with completely different semantics, the binding "appears valid" but displays an incorrect value without any error message. This invention, through name consistency verification, detects the abnormal state of "identifier match but semantics changed" during the binding resolution phase and triggers a recovery process, eliminating this most dangerous hidden fault mode in industrial settings at its root. When verification fails, the system retrieves a variable with a matching name from the variable storage area using the name information. If a match is found, the first identifier in the binding configuration is updated to the first identifier of the matched variable, enabling the binding to automatically migrate to the new variable after the original variable is deleted and rebuilt. After engineers delete and rebuild a variable with the same name, although the first identifier of the binding is invalid, the name information can still retrieve the rebuilt new variable. The system automatically updates the identifier in the binding configuration to the identifier of the new variable, and subsequent cycles revert to the fast identifier path. The entire process requires no manual intervention, eliminating the enormous workload of rebinding each element in large-scale images, and also making the migration of images between different projects no longer dependent on external global variable definitions. This invention achieves superior technical effects compared to existing technologies in terms of runtime performance, reliability, and maintainability, proving that this invention truly solves the technical problems in existing technologies such as floating bindings due to variable deletion and reconstruction, hidden misbindings due to identifier reuse, and high manual maintenance costs due to the lack of an automatic recovery mechanism.

[0024] The industrial configuration variable binding failure self-healing system provided by this invention achieves a complete functional closed loop of the aforementioned self-healing method at the system architecture level through the coordinated operation of a binding establishment module, a runtime binding parsing module, an editor failure judgment and display module, and a reference reverse lookup module. The binding establishment module writes name information during binding creation, establishing a data foundation for subsequent self-healing; the runtime binding parsing module automatically performs double verification and identifier updates when performing value retrieval or assignment operations, making the self-healing process completely transparent to upper-level controls; the editor failure judgment and display module allows engineers to identify the binding status during the configuration phase and uses semantic name information to assist in repair decisions; the reference reverse lookup module provides security before deleting variables, preventing accidental deletion of variables still referenced by templates or dynamic configurations. All modules interact through standardized interfaces, and any module can be upgraded independently without affecting the overall functionality.

[0025] The computer-readable storage medium provided by this invention stores a computer program that, when executed by a processor, implements all the steps of the aforementioned self-healing method for binding failure. By embedding the self-healing logic in program form within the storage medium, the method can be easily ported and deployed across different industrial configuration software platforms, reducing the engineering implementation costs of the self-healing function on different configuration systems. The storage medium can be pre-installed in the configuration software installation package as a standard feature, or it can be distributed as a standalone patch package to deployed systems for feature upgrades, achieving self-healing capability for binding failure without modifying existing project files. Attached Figure Description

[0026] Figure 1 This is an overall flowchart of the industrial configuration variable binding failure self-healing method of the present invention.

[0027] Figure 2 This is a schematic diagram of the data structure for binding configuration in this invention.

[0028] Figure 3 This is a flowchart of the two-level verification process for runtime binding and parsing in this invention.

[0029] Figure 4 This is a schematic diagram illustrating the binding status determination on the editor side in this invention.

[0030] Figure 5 This is a module architecture diagram of the industrial configuration variable binding failure self-healing system of the present invention.

[0031] The labels in the diagram represent: 10. Binding creation module; 20. Runtime binding parsing module; 30. Editor failure detection and display module; 40. Reference reverse lookup module; 50. Binding configuration; 60. Variable storage area. Detailed Implementation

[0032] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0033] Example of an industrial configuration variable binding failure self-healing method: S1: Composite Binding Storage When establishing the binding relationship between the host object (such as screen control, template window control, or dynamic configuration item) and the variable in the configuration project, the system executes as follows: Figure 1 The S1 step shown: Persist the first identifier of the variable and the variable's name information at that time in the binding configuration.

[0034] Specifically, such as Figure 2 As shown, when establishing the binding relationship between controls and variables, the system writes the first identifier of the variable and the snapshot of the variable's name at that time (such as "cavity pressure", "main pump speed" and other engineering semantic names) into the binding configuration and persists them in storage.

[0035] The first identifier includes two forms: for external communication variables (such as PLC variables), the first identifier is a combination of the connection identifier of the communication connection to which the variable belongs and the address identifier of the variable within the communication connection (such as DB1,X58.3 under connection C1); for internal variables, the first identifier is the record identifier of the variable in the project database (such as an auto-incrementing primary key ID or an internal address).

[0036] The first identifier is used for quick location during normal operation, and the name information is used to identify the semantic identity of the variable when the first identifier fails.

[0037] Through the aforementioned composite binding storage, the binding configuration simultaneously carries two types of information: it retains the fast identification path of the traditional solution, while also storing name information as a recovery clue. Therefore, during normal operation, following the fast identification path introduces no additional overhead, and even after identification failure, the name information can still be used to trace the originally intended variables of the binding. Following the fast identification path during normal operation maintains the system's original responsiveness, while the existence of name information as a recovery clue ensures that the binding remains recoverable after identification failure. Both aspects balance runtime performance and post-failure recoverability.

[0038] S2: Runtime Dual Validation and Misbinding Interception When the configuration screen is running, and a control needs to read or write a variable value, the system executes the following... Figure 1 The S2 step shown is as follows: First, query the variable with the first identifier and verify whether the current name of the retrieved variable is consistent with the name information.

[0039] Figure 3The detailed judgment logic of this dual verification is shown: the system first checks whether the first identifier matches the variable, and then checks whether the current name of the matched variable matches the name information. Name retrieval is triggered when the identifier is not matched or the name does not match; when the identifier matches but the name does not match, it is judged as "identifier reuse" and the variable is rejected to prevent hidden misbinding.

[0040] Specifically, the system first queries the variable table using the first identifier. If the identifier matches, it further compares the current name of the retrieved variable with the name snapshot in the binding configuration. If the names match, it is determined as a "direct match," and the system directly uses that variable for the fast path. If the identifier matches but the current name does not match the name snapshot, the system determines it as "identifier reuse"—that is, the identifier has been reclaimed and assigned to a new variable with completely different semantics—at this time, the system rejects the use of that variable and proceeds to the name retrieval process.

[0041] Existing technologies only verify whether the identifier is matched, without verifying whether the matched variable semantically still retains the expected variable for binding. When an identifier is reused for a variable with completely different semantics, the binding "appears valid" at the system level—the screen displays the value normally without any errors—but it displays the incorrect process quantity. This fault is highly insidious and can lead to misjudgment and misoperation by operators in industrial settings. This invention, through runtime dual verification, detects the abnormal state of "identifier matched but semantics changed" during the binding resolution phase and triggers a recovery process, eliminating this hidden fault mode at its root.

[0042] S3: Name Search When the double check fails, the system executes as follows: Figure 1 The S3 step shown is to retrieve the variable with the matching name from the variable storage area using the name information.

[0043] Specifically, a failed validation includes two scenarios: either the first identifier does not match any variable (i.e., the original variable has been deleted), or the first identifier matches but the name is inconsistent (i.e., the identifier has been reused). In both cases, the system retrieves the variable with the same name from the variable table using a name snapshot.

[0044] During retrieval, priority is given to matching within the same communication connection—that is, variables belonging to the same communication connection as the original variable are prioritized for searching, because variables with the same name within the same connection range are most likely semantically reconstructed versions of the original variable. When no match is found within the same connection range, if the name is unique across the entire project, then the unique match across the entire project is used as the search result. When multiple indistinguishable candidates with the same name exist, the first identifier is not updated to avoid incorrectly binding to semantically uncertain variables. This ambiguity handling strategy does not create incorrect bindings at the expense of eliminating invalidation prompts, avoiding new risks that may arise from automatic drift when semantics are uncertain.

[0045] S4: Automatic ID update After a match is found, the system executes the following... Figure 1 The S4 step shown is to update the first identifier in the binding configuration to the first identifier of the hit variable.

[0046] Specifically, after retrieving the reconstructed variable with the same name, the system automatically updates the old first identifier in the binding configuration to the first identifier of the new variable. Subsequent cycles will then revert to the fast identifier path (direct hit), without repeating the name search.

[0047] Through the aforementioned automatic migration mechanism that retrieves and updates identifiers by name, after engineers delete and recreate variables with the same name, the original bindings automatically migrate to the new variables, eliminating the need for manual rebinding. The entire self-healing process is completed automatically at runtime without manual intervention, eliminating the enormous workload of rebinding variables one by one in large-scale projects, and also making the migration of images between different projects no longer dependent on external global variable definitions.

[0048] Editor-side binding status determination and display: In the configuration editor, the system uses the same rules as at runtime to determine the binding status: if the first identifier fails but the name information can be matched with a variable of the same name in the variable storage area, it is determined to be in a "self-healing state"—the system does not prompt a failure because the runtime binding will automatically drift and recover, and early warnings would only cause confusion and misjudgment for engineers. Only when the name information cannot be matched with any variable of the same name is it determined to be a "true failure".

[0049] Bindings deemed truly invalid are displayed in the configuration interface as name information with an additional failure identifier (e.g., "Cavity Pressure (Invalid)"), without displaying the first identifier (e.g., not displaying the raw ID "#8743"). This allows engineers to directly see which variable the control was originally bound to, significantly reducing the maintenance costs of large-scale interfaces.

[0050] The unified rules apply to all carrier objects: the self-healing method described above applies uniformly to screen control binding, template window control binding, and variable references in dynamic configuration items, including dynamic coloring, range mapping, and value-based graphics switching. The same set of parsing and judgment rules covers all carrier-bound object types, ensuring consistent self-healing behavior across all carrier objects and eliminating any locally unhealed, dead configurations.

[0051] Reverse reference full coverage prevents accidental deletion: Before deleting a variable, the system traverses all storage tables that are bound to it, performing a reverse reference lookup based on both the first identifier and name information. A pre-defined data source list consistency check confirms that the reverse reference lookup covers all bound storage sources. Omission of any table will cause an error in the "no reference" judgment, potentially leading to the accidental deletion of variables still referenced by templates or dynamic configurations. Through dual-dimensional reverse reference lookups and full coverage verification, the accidental deletion of in-use variables is effectively prevented.

[0052] Example of an industrial configuration variable binding failure self-healing system: like Figure 5 As shown, this embodiment provides an industrial configuration variable binding failure self-healing system. The system includes a binding establishment module 10, a runtime binding parsing module 20, an editor failure judgment and display module 30, and a reference reverse lookup module 40. The data flow and control flow relationships between the modules are as follows: The binding establishment module 10 is triggered when establishing the binding relationship between the host object and the variable. It persists the variable's first identifier and its current name information to the binding configuration 50, and stores the binding configuration 50 in the binding storage area. This module establishes a composite binding data foundation from the source—writing the name information during binding creation—ensuring that the conventional fast identification path and failure recovery clues are associated during the binding establishment phase, providing a data prerequisite for subsequent self-healing. The binding configuration 50 output by the module is also used by the runtime binding parsing module 20 and the editor failure judgment and display module 30.

[0053] The runtime binding resolution module 20 is triggered when the configuration screen is running. It first queries the variable storage area 60 using the first identifier in the binding configuration 50, and verifies whether the current name of the retrieved variable matches the name information in the binding configuration 50. If the verification fails, it searches the variable storage area 60 for a matching name using the name information. If a match is found, the first identifier in the binding configuration 50 is updated to the first identifier of the matched variable. This module makes the self-healing process completely transparent to upper-level controls—controls do not need to be aware of whether the binding has undergone self-healing when retrieving or assigning values; all operations are completed through the resolution output of this module. Binding requests for any carrier object (control, template, dynamic configuration) all pass through the same resolution output, and the extension of the self-healing logic does not affect the functionality of existing carrier objects.

[0054] The editor failure determination and display module 30 determines the binding status in the configuration editor, using the same rules as the runtime binding parsing module 20 to distinguish between valid status, self-healing status, and true failure status. When a true failure is determined, it is displayed with a name information appended with a failure identifier (e.g., ...). Figure 4(As shown). This module enables engineers to identify the binding status during the configuration phase and uses semantic name information to assist in repair decisions, avoiding the dilemma of not being able to determine the original binding target when only the bare identifier is displayed.

[0055] The reference reverse lookup module 40 is triggered before the variable is deleted. It traverses all the storage tables bound to the variable and performs a reference reverse lookup based on both the first identifier and the name information. This module uses a preset data source list consistency check to confirm that the reference reverse lookup covers all bound storage sources. If any table is missing, the check logic will capture it and prompt for its supplement. This avoids the accidental deletion of in-use variables due to missing references in template windows or dynamic configurations.

[0056] The four modules mentioned above interact through standardized data interfaces, decoupling their functions. Upgrading or replacing any module does not affect the normal operation of other modules, enhancing the system's scalability and maintainability. The modules work collaboratively, achieving a complete functional loop at the system architecture level, from "writing name information during binding" to "automatic self-healing at runtime" to "semantic display in the editor" to "secure reverse lookup before deletion."

[0057] Examples of computer-readable storage media: This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements... Figure 1 The following steps are shown: S1: When establishing the binding relationship between the host object and the variable, persist the variable's first identifier and the variable's name information at that time in the binding configuration; S2: At runtime, first query the variable with the first identifier, and then check whether the current name of the retrieved variable is consistent with the name information; S3: When the validation fails, retrieve the variable with the matching name from the variable storage area using the name information; S4: When a match is found, update the first identifier in the binding configuration to the first identifier of the match variable.

[0058] When the above steps are executed on the processor, the composite binding storage provides the data foundation for self-healing. The runtime dual verification actively detects anomalies during the binding resolution phase. Name retrieval and identifier update automatically repair the binding and restore it to the fast path. The synergistic effect of each step achieves a comprehensive improvement in three dimensions of self-healing of industrial configuration variable binding failures: runtime performance (fast identifier path does not introduce additional overhead), reliability (dual verification intercepts hidden misbindings), and maintainability (binding self-healing with zero intervention).

[0059] Those skilled in the art will understand that a computer-readable storage medium can be any tangible medium capable of storing program code, including but not limited to: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, etc.

[0060] By embedding the aforementioned self-healing logic into a storage medium in program form, the method provided in this embodiment can be easily ported and deployed across different industrial configuration software platforms, reducing the engineering implementation cost of the self-healing function on different configuration systems. The storage medium can be pre-installed in the configuration software installation package as a standard feature delivery, or it can be distributed as a standalone patch package to deployed systems for feature upgrades, achieving self-healing capability for bound failures without modifying existing project files.

[0061] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A self-healing method for industrial configuration variable binding failure, characterized in that, include: When establishing the binding relationship between the host object and the variable, the first identifier of the variable and the name information of the variable at that time are persisted together in the binding configuration; At runtime, the variable is first queried using the first identifier, and the current name of the retrieved variable is verified to be consistent with the name information. If the verification fails, retrieve the variable with the matching name from the variable storage area using the name information; When a match is found, the first identifier in the binding configuration is updated to the first identifier of the match variable.

2. The industrial configuration variable binding failure self-healing method according to claim 1, characterized in that, The first identifier includes the connection identifier of the communication connection to which the variable belongs and the address identifier of the variable within the communication connection, or it is the record identifier of the internal variable in the project database.

3. The self-healing method for industrial configuration variable binding failure according to claim 1, characterized in that, include: When establishing the binding relationship between a control and a variable, the record identifier of the variable and the current name snapshot of the variable are persisted together in the binding configuration. At runtime, the variable is first queried using the record identifier, and the current name of the found variable is compared with the name snapshot. If the record identifier does not match the variable, or if the record identifier matches the variable but the current name of the variable is inconsistent with the name snapshot, the variable with the same name is retrieved in the variable table using the name snapshot. When a match is found, the record identifier in the binding configuration is updated to the record identifier of the matched variable.

4. The self-healing method for industrial configuration variable binding failure according to claim 1, characterized in that, When retrieving a variable with a matching name in the variable storage area using the name information, priority is given to matching within the same communication connection range; if there is no match within the same communication connection range, and the name is unique within the entire project range, then the unique match within the entire project range is used as the retrieval result; when there are multiple indistinguishable candidates with the same name, the first identifier is not updated.

5. The self-healing method for industrial configuration variable binding failure according to claim 1, characterized in that, The verification failure includes: the first identifier does not match any variable, or the first identifier matches a variable but the current name of the variable is inconsistent with the name information; wherein, when the first identifier matches a variable but the current name is inconsistent with the name information, it is determined as identifier reuse and the variable is rejected.

6. The self-healing method for industrial configuration variable binding failure according to claim 1, characterized in that, When determining the binding status in the configuration editor: if the first identifier is invalid but the name information can be matched with a variable of the same name in the variable storage area, no invalidation is indicated; only when the name information cannot be matched with any variable of the same name is it determined to be a true invalidation.

7. The industrial configuration variable binding failure self-healing method according to claim 6, characterized in that, Bindings deemed truly invalid are displayed in the configuration interface with the name information appended with an invalidation identifier, but the first identifier is not displayed.

8. The self-healing method for industrial configuration variable binding failure according to claim 1, characterized in that, The self-healing method is uniformly applicable to screen control binding, template window control binding, and variable references in dynamic configuration items, which include dynamic coloring, range mapping, and value-based graphics switching.

9. The self-healing method for industrial configuration variable binding failure according to claim 1, characterized in that, Before deleting the variable, all the storage tables that are bound to it are traversed, and a reverse lookup is performed based on the first identifier and the name information. The consistency check of the preset data source list is used to confirm that the reverse lookup covers all bound storage sources.

10. An industrial configuration variable binding failure self-healing system, characterized in that, include: The binding establishment module is used to persist the first identifier of the variable and the name information of the variable at that time in the binding configuration when establishing the binding relationship between the carrier object and the variable; The runtime binding and parsing module is used to first query the variable with the first identifier at runtime, and then verify whether the current name of the retrieved variable is consistent with the name information. When the verification fails, the variable with the name matching information is retrieved from the variable storage area; when a match is found, the first identifier in the binding configuration is updated to the first identifier of the matched variable. The editor failure determination and display module is used to determine the binding status in the configuration editor, and when the failure is determined to be true, it is displayed in the form of name information with a failure identifier attached. The reference reverse lookup module is used to traverse all storage tables that are bound to the variable before deletion, and perform a reference reverse lookup based on the first identifier and the name information in two dimensions.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the industrial configuration variable binding failure self-healing method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Multiplexing method of monitoring system variables

    CN103942311A

  • Variable debugging method, system and equipment for industrial configuration picture and storage medium

    CN122613876A