A cross-system industrial software recovery admission method, system, device and medium

By constructing a cross-system state dependency graph and introducing a timing gating mechanism, the problems of lack of state consistency prediction and dynamic updating of dependency graphs in existing technologies are solved, and the safety and reliability of cross-system recovery operations are achieved, avoiding state misalignment and equipment safety hazards.

CN123137992APending Publication Date: 2026-11-20CLP JIUTIAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611334174.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing industrial software recovery methods lack a unified state modeling mechanism, state consistency prediction mechanism, state dependency graph dynamic update mechanism, and state convergence verification mechanism, which makes cross-system state recovery operations prone to state misalignment, instruction conflict, and equipment safety hazards.

Method used

By constructing a cross-system state dependency graph and introducing a timing gating mechanism, propagation paths that do not meet industrial timing requirements are shielded. State consistency deviation and timing deviation are coupled into a single scalar function to achieve unified quantitative judgment of cross-system recovery access. The topology drift of the state dependency graph is monitored in real time and a rollback is triggered when the drift exceeds the limit.

Benefits of technology

It achieves unified quantitative judgment for cross-system recovery operations, avoiding the passage of pseudo-safe states that are normal in state but abnormal in timing, thus ensuring the safety and reliability of recovery operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137992A_ABST
    Figure CN123137992A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of industrial software system operation control, in particular to a cross-system industrial software recovery admission method, system, device and medium; instead of using the state dependency graph as a common graph structure, the state dependency graph is expanded into a cross-system state control model containing state propagation edges, propagation weights, timing constraints and recovery process dynamic topology; the state propagation relationship of MES, EAP and PLC is described through the cross-system state dependency graph, the propagation path that does not meet the timing condition is shielded or attenuated through the timing gate matrix, and the propagation path that does not meet the industrial timing requirement is shielded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial software system operation control technology, and more specifically, to a cross-system industrial software access recovery method, system, device, and medium. Background Technology

[0002] In industrial manufacturing systems, there are complex business couplings and state dependencies among Manufacturing Execution Systems (MES), Equipment Automation Programs (EAPs), and Programmable Logic Controllers (PLCs). Taking semiconductor manufacturing as an example, the MES system is responsible for batch (lot) status management and process route scheduling, the EAP system is responsible for communication and data acquisition between equipment, and the PLC system is responsible for executing the underlying equipment control logic. These three systems form a complete chain from production planning to equipment communication and execution control; any abnormality in any link can lead to production interruptions or product quality problems.

[0003] When any of the MES, EAP, or PLC systems malfunctions, maintenance personnel typically need to perform recovery operations. For example, MES system recovery may involve batch state rollback, process parameter reloading, or job queue reconstruction; EAP system recovery may involve rebuilding device communication links, synchronizing data caches, or restarting device services; and PLC system recovery may involve reloading control programs, resetting I / O states, or switching control modes. However, due to the close state propagation and timing dependencies among these three types of systems—for example, changes in MES batch states can trigger updates to EAP device occupancy states, thus affecting the output of PLC control enable signals—if cross-system state consistency is not assessed before recovery, the recovery operation can easily lead to state misalignment, instruction conflicts, and even equipment safety hazards. Summary of the Invention

[0004] This invention addresses the shortcomings of existing recovery access methods, which lack a unified state modeling mechanism, a state consistency prediction mechanism, a dynamic update mechanism for state dependency graphs, and a state convergence verification mechanism. It proposes a cross-system industrial software recovery access method, system, equipment, and medium. Instead of using the state dependency graph as a simple graph structure, it extends it to a cross-system state control model that includes state propagation edges, propagation weights, timing constraints, and a dynamic topology for the recovery process. The cross-system state dependency graph describes the state propagation relationships of MES, EAP, and PLC, and a timing gating matrix is ​​used to shield or attenuate propagation paths that do not meet timing conditions, thus shielding propagation paths that do not meet industrial timing requirements.

[0005] The specific implementation details of this invention are as follows: A method for restoring access control to industrial software across systems, specifically including the following steps: Step S1: Based on the obtained configuration database and interface description file, generate a recovery object metamodel instance, and obtain the set of status nodes through the database query interface; Step S2: Construct a cross-system state dependency graph based on the set of state nodes; Step S3: Construct a state vector based on the obtained current state value and state timestamp; Step S4: Based on the cross-system state dependency graph, construct the adjacency matrix, and based on the comprehensive state matrix, construct the time-gated propagation matrix to obtain the time-gated propagation matrix; Step S5: Based on the time-gated propagation matrix and the constructed recovery operation driving input vector, obtain the state vector after the pre-recovery propagation converges; Step S6: Based on the state vector after pre-recovery propagation convergence, the set unified state space mapping matrix, and the target state vector, obtain the state consistency deviation; Step S7: Calculate the cross-system timing deviation based on the timestamp of the state node, and combine it with the state consistency deviation to obtain the consistency manifold function value. Obtain the recovery admission judgment result based on the consistency manifold function value.

[0006] To better realize the present invention, step S2 further includes the following steps: Step S21: Obtain the set of state propagation edges based on the set of state nodes; Step S22: Construct state edge weights based on the set minimum allowable delay, maximum allowable delay, and timing constraint type; Step S23: Construct a cross-system state dependency graph based on the set of state nodes, the set of state propagation edges, the weights of state edges, and the set of time constraints.

[0007] To better realize the present invention, step S3 further includes the following steps: Step S31: Based on the obtained original semantic state value, call the Encode() function to obtain the state value of the current state node; Step S32: Construct a state vector based on the current state value of the state node and the number of state nodes; Step S33: Construct a state timestamp vector based on the current node's state timestamp; Step S34: Construct a priority vector based on the recovery priority of the current node; Step S35: Construct a comprehensive state matrix based on the state vector, state timestamp vector, and priority vector.

[0008] To better realize the present invention, step S4 further includes the following steps: Step S41: Sort the nodes of the cross-system state dependency graph according to the set index to obtain the edge mapping; Step S42: Construct an adjacency matrix based on the edge mapping; Step S43: Based on the source node state timestamp and target node state timestamp extracted from the state timestamp vector, and combined with the edge mapping, obtain the state time difference; Step S44: Obtain the timing constraint type based on the edge mapping, and call the corresponding gating function to calculate the timing gating value; Step S45: Construct a timing gating matrix based on the timing gating value and the number of nodes; Step S46: Obtain the time-gated propagation matrix based on the time-gated matrix and the adjacency matrix.

[0009] To better realize the present invention, step S5 further includes the following steps: Step S51: Construct the recovery operation driving input vector based on the direct effect of the recovery operation on the state node; Step S52: Obtain the pre-recovery propagation vector based on the recovery operation driving input vector, the timing gated propagation matrix, and the state vector of the current iteration; Step S53: Based on the pre-recovery propagation vector and the set pre-recovery propagation convergence threshold, construct the pre-recovery propagation convergence condition by calling the L2 norm operation; Step S54: Obtain the state vector after pre-recovery propagation convergence based on the pre-recovery propagation convergence condition.

[0010] To better realize the present invention, step S6 further includes the following steps: Step S61: Based on the state vector after the pre-recovery propagation convergence and the set unified state space mapping matrix, obtain the mapping result of the current state in the unified state space; Step S62: Based on the set unified state space mapping matrix and the target state vector expected to be reached after recovery, obtain the mapping result of the target state in the unified state space; Step S63: Based on the mapping results of the current state in the unified state space and the mapping results of the target state in the unified state space, call the L2 norm operation to obtain the state consistency deviation.

[0011] To better realize the present invention, step S7 further includes the following steps: Step S71: Calculate the cross-system timing deviation based on the timestamp of the state node, and obtain the normalized timing deviation according to the set reference timing window; Step S72: Obtain the uniform manifold function value based on the normalized timing deviation, state consistency deviation, and the set timing sensitivity coefficient; Step S73: Obtain the recovery admission judgment result based on the consistent manifold function value and the set recovery admission threshold.

[0012] Based on the above-mentioned cross-system industrial software recovery access method, in order to better realize the present invention, a cross-system industrial software recovery access system is further proposed to execute the above-mentioned cross-system industrial software recovery access method; including a state acquisition unit, a state dependency graph construction unit, a state matrix construction unit, a timing gating propagation unit, a pre-recovery propagation calculation unit, a unified consistency manifold calculation unit, and a recovery access judgment unit. The status acquisition unit is used to generate a recovery object meta-model instance based on the acquired configuration database and interface description file, and obtain a set of status nodes through the database query interface; The state dependency graph construction unit is used to construct a cross-system state dependency graph based on the set of state nodes; The state matrix construction unit is used to construct a comprehensive state matrix based on the acquired current state value and state timestamp. The time-gated propagation unit is used to construct an adjacency matrix based on the cross-system state dependency graph and a time-gated matrix based on the comprehensive state matrix to obtain the time-gated propagation matrix. The pre-recovery propagation calculation unit is used to obtain the state vector after pre-recovery propagation convergence based on the time-gated propagation matrix and the constructed recovery operation driving input vector; The unified consistency manifold computation unit is used to obtain the state consistency deviation based on the state vector after pre-recovery propagation convergence, the set unified state space mapping matrix, and the target state vector. The recovery admission judgment unit is used to calculate the cross-system timing deviation based on the timestamp of the state node, and combine it with the state consistency deviation to obtain the consistency manifold function value, and obtain the recovery admission judgment result based on the consistency manifold function value.

[0013] Based on the above-described cross-system industrial software access recovery method, to better implement the present invention, an electronic device is further proposed, including a memory and a processor; the memory stores a computer program; when the computer program is executed on the processor, the above-described cross-system industrial software access recovery method is implemented.

[0014] Based on the above-described cross-system industrial software access recovery method, to better realize the present invention, a computer-readable storage medium is further proposed, wherein computer instructions are stored on the computer-readable storage medium; when the computer instructions are executed on the above-described electronic device, the above-described cross-system industrial software access recovery method is realized.

[0015] The present invention has the following beneficial effects: (1) By introducing a timing gating mechanism, this invention extends the cross-system state propagation constraint from a simple topology connection to a dual constraint of topology connection and timing compliance, thus shielding propagation paths that do not meet industrial timing requirements.

[0016] (2) This invention achieves unified quantitative judgment of cross-system recovery access by coupling state consistency deviation and timing deviation into a single scalar function, thereby avoiding the passage of pseudo-safe states with normal state but abnormal timing.

[0017] (3) This invention monitors the topological drift of the state dependency graph in real time during the recovery process and triggers rollback when the drift exceeds the limit or the consistency manifold function value exceeds the critical threshold, forming a closed-loop control of pre-recovery prediction, in-recovery monitoring and post-recovery verification. Attached Figure Description

[0018] Figure 1 A schematic diagram of the cross-system industrial software access recovery method provided by the present invention. Detailed Implementation

[0019] To more clearly illustrate the technical solutions of the embodiments of the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments, and therefore should not be regarded as a limitation on the scope of protection. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "set up," "connected," and "linked" 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 of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0021] Example 1: This embodiment proposes a cross-system industrial software access recovery method, which specifically includes the following steps: Step S1: Based on the obtained configuration database and interface description file, generate a recovery object metamodel instance, and obtain the set of status nodes through the database query interface; Step S2: Construct a cross-system state dependency graph based on the set of state nodes; Step S2 specifically includes the following steps: Step S21: Obtain the set of state propagation edges based on the set of state nodes; Step S22: Construct state edge weights based on the set minimum allowable delay, maximum allowable delay, and timing constraint type; Step S23: Construct a cross-system state dependency graph based on the set of state nodes, the set of state propagation edges, the weights of state edges, and the set of time constraints.

[0022] Step S3: Construct a state vector based on the obtained current state value and state timestamp; Step S3 specifically includes the following steps: Step S31: Based on the obtained original semantic state value, call the Encode() function to obtain the state value of the current state node; Step S32: Construct a state vector based on the current state value of the state node and the number of state nodes; Step S33: Construct a state timestamp vector based on the current node's state timestamp; Step S34: Construct a priority vector based on the recovery priority of the current node; Step S35: Construct a comprehensive state matrix based on the state vector, state timestamp vector, and priority vector.

[0023] Step S4: Based on the cross-system state dependency graph, construct the adjacency matrix, and based on the comprehensive state matrix, construct the time-gated propagation matrix to obtain the time-gated propagation matrix; Step S4 specifically includes the following steps: Step S41: Sort the nodes of the cross-system state dependency graph according to the set index to obtain the edge mapping; Step S42: Construct an adjacency matrix based on the edge mapping; Step S43: Based on the source node state timestamp and target node state timestamp extracted from the state timestamp vector, and combined with the edge mapping, obtain the state time difference; Step S44: Obtain the timing constraint type based on the edge mapping, and call the corresponding gating function to calculate the timing gating value; Step S45: Construct a timing gating matrix based on the timing gating value and the number of nodes; Step S46: Obtain the time-gated propagation matrix based on the time-gated matrix and the adjacency matrix.

[0024] Step S5: Based on the time-gated propagation matrix and the constructed recovery operation driving input vector, obtain the state vector after the pre-recovery propagation converges; Step S5 specifically includes the following steps: Step S51: Construct the recovery operation driving input vector based on the direct effect of the recovery operation on the state node; Step S52: Obtain the pre-recovery propagation vector based on the recovery operation driving input vector, the timing gated propagation matrix, and the state vector of the current iteration; Step S53: Based on the pre-recovery propagation vector and the set pre-recovery propagation convergence threshold, construct the pre-recovery propagation convergence condition by calling the L2 norm operation; Step S54: Obtain the state vector after pre-recovery propagation convergence based on the pre-recovery propagation convergence condition.

[0025] Step S6: Based on the state vector after pre-recovery propagation convergence, the set unified state space mapping matrix, and the target state vector, obtain the state consistency deviation; Step S6 specifically includes the following steps: Step S61: Based on the state vector after the pre-recovery propagation convergence and the set unified state space mapping matrix, obtain the mapping result of the current state in the unified state space; Step S62: Based on the set unified state space mapping matrix and the target state vector expected to be reached after recovery, obtain the mapping result of the target state in the unified state space; Step S63: Based on the mapping results of the current state in the unified state space and the mapping results of the target state in the unified state space, call the L2 norm operation to obtain the state consistency deviation.

[0026] Step S7: Calculate the cross-system timing deviation based on the timestamp of the state node, and combine it with the state consistency deviation to obtain the consistency manifold function value. Obtain the recovery admission judgment result based on the consistency manifold function value.

[0027] Step S7 specifically includes the following steps: Step S71: Calculate the cross-system timing deviation based on the timestamp of the state node, and obtain the normalized timing deviation according to the set reference timing window; Step S72: Obtain the uniform manifold function value based on the normalized timing deviation, state consistency deviation, and the set timing sensitivity coefficient; Step S73: Obtain the recovery admission judgment result based on the consistent manifold function value and the set recovery admission threshold.

[0028] Working principle: This embodiment introduces a timing gating mechanism to extend the cross-system state propagation constraint from simple topology connection to a dual constraint of topology connection and timing compliance, shielding propagation paths that do not meet industrial timing requirements; by coupling state consistency deviation and timing deviation into a single scalar function, it achieves unified quantitative judgment of cross-system recovery access, preventing pseudo-safe states with normal state but abnormal timing from passing through access; by monitoring the topology drift of the state dependency graph in real time during the recovery execution process, and triggering rollback when the drift exceeds the limit or the consistency manifold function value exceeds the critical threshold, a closed-loop control is formed, consisting of pre-recovery prediction, in-recovery monitoring, and post-recovery verification.

[0029] Example 2: This embodiment is based on the above embodiment 1, such as... Figure 1 As shown, a specific embodiment will be described in detail.

[0030] Step S1: Restore object modeling; The recovery object model includes: manufacturing execution system objects; equipment automation system objects; and programmable logic control system objects.

[0031] Among them: MES system objects use batch Lot, work order, process step, and equipment dispatch object as modeling objects; EAP system objects use equipment unit, communication connection, equipment service, equipment event, and equipment status as modeling objects; PLC system objects use control task, control program, control mode, I / O mapping, and control enable signal as modeling objects.

[0032] Each recovery object includes at least: object identifier, object type, current status value, current status timestamp, status variable field, recovery priority, system to which it belongs, and associated upstream and downstream objects.

[0033] Modeling method: By reading the configuration database or interface description files of each system (such as the work order definition table of MES, the equipment configuration SECS message of EAP, and the variable symbol table of PLC), the object identifier, state variable domain and the relationship between objects are automatically extracted to generate a recovery object meta-model instance.

[0034] Status acquisition methods: MES acquires data through the MES API or database query interface; EAP acquires data through the SECS / GEM communication protocol or device event subscription mechanism; PLC acquires data through the OPC UA or Modbus TCP protocol.

[0035] Step S2: Construct a cross-system state dependency graph; Construct a cross-system state dependency graph between MES, EAP, and PLC.

[0036] The formula is as follows: G=(N,E,W,T) Where G: cross-system state dependency graph; N: set of state nodes; E: set of state propagation edges; W: set of state propagation edge weights; T: set of state transition timing constraints, whose elements are the timing constraint parameters of each edge, i.e., T={w ij |e ij ∈E}, where w ij =(T min_ij ,T max_ij ,T type_ij The set of state nodes is defined as follows: N=N MES ∪N EAP ∪N PLC Where, N MES N represents the set of state nodes in the MES system. EAP N represents the set of status nodes in the EAP system. PLC Represents the set of status nodes in a PLC system; ∪: set union operation.

[0037] The set of state propagation edges is defined as follows:

[0038] Where E represents the set of state propagation edges; N×N represents the ordered pair of nodes among the sets of state nodes; e ij =(n i ,n j ): From state node n i Pointing to state node n j The directed propagation edge.

[0039] The state variable domain is defined as follows: D i ={d i1 ,d i2 ,...,d ir} Among them, D i State node n i The state variable domain; d i1 to d ir Node n i The possible state values; r: the number of state values ​​in the state variable domain.

[0040] The edge weights for state propagation are defined as follows: w ij =(T min_ij ,T max_ij ,T type_ij ) Among them, w ij From node n ito node n j Propagation edge weights; T min_ij Minimum allowable delay; T max_ij Maximum allowable delay; T type_ij : Timing constraint type; where T type_ij It includes at least: prior constraints, synchronization constraints, and delay constraints.

[0041] Step S3: State vector construction; Collect the current status values ​​and timestamps of MES, EAP, and PLC, and convert semantic states into numerical representations. Semantic states refer to discrete status identifiers with business meaning in industrial systems, such as MES batch waiting / running / paused / completed, EAP device online / offline / faulty, and PLC control tasks running / stopping / alarming. These states are of string or enumeration type and need to be converted into numerical representations using an Encode function.

[0042] The node state encoding formula is as follows: x i =Encode(s i ) Where, x i State node n i The numerical state value; s i State node n i The original semantic state value; Encode: state encoding function.

[0043] The state value vector is as follows: X=[x1,x2,...,x n ] T Where X is the state value vector; x i : The numerical state value of the i-th state node; n: The total number of state nodes; T: Transpose symbol, representing a column vector.

[0044] The timestamp vector is as follows: T vec =[t1,t2,...,t n ] T Among them, T vec : State timestamp vector; t i Node n i Status timestamp.

[0045] The priority vector is as follows: P=[p1,p2,...,p n ] T Where P: state node priority vector; p iNode n i Recovery priority or business importance weight.

[0046] The overall state matrix is ​​as follows: V=[X,T vec ,P] Where V: comprehensive state matrix; X: state value vector; T vec : Timestamp vector; P: Priority vector.

[0047] In this invention, state propagation calculation mainly operates on the state value vector X and the timestamp vector T. vec Used for timing gating judgment; priority vector P is used for risk control, recovery strategy sorting or alarm level judgment.

[0048] Step S4: Construct the adjacency matrix; Its elements are the timing constraint parameters of each edge, i.e., T={w ij |e ij ∈E}, where w ij =(T min_ij ,T max_ij ,T type_ij ).

[0049] Among them, a ij =r ji If edge e exists ji =(n j ,n i )∈E; a ij =0, if there is no edge e ji ∈E.

[0050] Where r ji For edge e ji The base propagation strength (calculated from the weight W, see below).

[0051] To ensure a consistent convention for matrix propagation direction: When there exists a node n j to node n i When the propagation edge is reached, a ij Not equal to 0; When there is no node n j to node n i When the propagation edge is reached, a ij =0.

[0052] a ij =r ji If edge e exists ji =(n j ,n i ) a ij=0, if there is no edge e ji =(n j ,n i ) Where, r ji From node n j to node n i Basic propagation strength; e ji From node n j to node n i The directed propagation edge.

[0053] The basic propagation strength is defined as follows: r ij =alpha ij / (1+beta1*T min_ij +beta2*T max_ij ) Variable description: r ij From node n i to node n j The basic propagation intensity; alpha ij : Propagation edge e ij Business impact coefficient; beta1: Minimum delay adjustment coefficient; beta2: Maximum delay adjustment coefficient; T min_ij : edge e ij The preset minimum allowable delay (timing constraint threshold) is used to compare with the time difference calculated from the actual timestamp of the node; T max_ij : edge e ij The preset maximum allowable delay (timing constraint threshold) is used to compare with the time difference calculated from the actual timestamp of the node.

[0054] The specific steps to construct A from G: Node sorting: Sort the nodes in the node set N of graph G according to their indices i = 1, 2, ..., n; Edge mapping: For each edge e ji =(n j ,n i )∈E, fill in a in the i-th row and j-th column of A. ij =r ji ; No connection set to zero: If (n j ,n i ) E, then a ij =0.

[0055] That is, the positions of non-zero elements in A are determined by the edge set E of G, and the element values ​​are calculated by the edge weights W.

[0056] Construction of time-series gating matrix; To prevent ordinary graph propagation algorithms from failing to identify temporally irregular propagation paths, this embodiment introduces a temporal gating mechanism.

[0057] The time difference between nodes is defined as follows: Delta t_ij =t j -t i Delta t_ij Node n i to node n j The time difference between states; t i : Source node n i Status timestamp; t j Target node n j Status timestamp.

[0058] Precedence constraint gating function When T type_ij When it is a preorder constraint: Gate ij =1, if T min_ij <=Delta t_ij <=T max_ij Gate ij =0, if the above conditions are not met. Variable description: Gate ij From node n i to node n j Timing gate values; Gate ij =1: The propagation path satisfies the timing constraints; Gate ij =0: The propagation path does not meet the timing constraints.

[0059] Synchronization constraint gating function When T type_ij When it is a synchronization constraint: Gate ij =1, if abs(Delta) t_ij )<=T sync_ij Gate ij =0, if abs(Delta) t_ij )>T sync_ij Where abs() is the absolute value function; Delta t_ij : The maximum time window allowed by the synchronization constraint.

[0060] Delay constraint gating function When T type_ij When it is a delay constraint: Gate ij =1, if T delay_min_ij <=Delta t_ij <=T delay_max_ij Gate ij =0, if the above conditions are not met. Variable description: T delay_min_ij Minimum delay time; T delay_max_ij Maximum delay time.

[0061] Steps for constructing a Gate matrix: For each edge e ij ∈E, from T vec Extract t i and t j Calculate Delta t_ij =t j -t i ; According to e ij Timing constraint type T type_ij Select the corresponding gate function to calculate the Gate. ij ; If e ij ∉E, then Gate ij =0; All Gates ij Arranged into an n×n matrix Gate by node index.

[0062] The timing gate matrix is ​​defined as follows: Gate=[Gate ij ] Where Gate: timing gate matrix; Gate ij : Gating values ​​between nodes.

[0063] The gated propagation matrix is ​​defined as follows: A prime =A⊙Gate Among them, A prime : Temporal gate propagation matrix; A: Basic adjacency matrix; Gate: Temporal gate matrix; ⊙: Element-wise multiplication of matrices.

[0064] A primeThis is a key feature that distinguishes this embodiment from ordinary graph propagation methods. Through this matrix, propagation paths that do not meet temporal constraints are shielded, thereby enabling the prediction of the impact of recovery operations to possess industrial temporal constraints.

[0065] Step S5: Pre-recovery state propagation calculation Before the recovery operation is executed, based on A prime Perform pre-recovery propagation calculations.

[0066] The recovery operation driving input vector is as follows: b=[b1,b2,...,b n ] T Where b: the input vector driving the recovery operation; b i The recovery operation applies to state node n. i The direct effect; if the recovery operation acts directly on node n i Then b i Not zero; if the recovery operation does not apply to node n i Then b i =0.

[0067] The formula for the pre-recovery propagation iteration is as follows: X (k+1) = A prime * X (k) + b Among them, X (k) X: The state value vector at the k-th iteration; (k+1) : The state value vector at the (k+1)th iteration; A prime b: Timing-gated propagation matrix; k: Recovery operation driving input vector; b: Number of iterations.

[0068] The convergence conditions for pre-recovery propagation are as follows: Norm2(X (k+1) - X (k) ) < epsilon s Norm2(): L2 norm operation; epsilon s : Pre-recovery propagation convergence threshold.

[0069] The convergent state vector is as follows: X star = X (K) Among them, X star : The state vector after the pre-recovery propagation converges; K: The final number of iterations when the convergence condition is met.

[0070] Step-by-step execution process: Determine b: The node n that directly affects the recovery operation. i b i =Encode(target state) - Encode(current state); Other nodes b j =0; Initialization: X (0) =X (current actual state vector); Iteration: Press X (k+1) = A prime * X (k) + b calculate, k=0,1,2,...; Convergence criterion: Calculate ||X (k+1) - X (k) ||2, if <epsilon s Then stop and output X. star = X (K) If k > K max If the convergence is still not achieved, it is determined to be divergent, and recovery is prohibited.

[0071] Step S6: Unified state space mapping To calculate the cross-system state consistency deviation, the convergent state vector is mapped to a unified state space.

[0072] The unified state-space mapping formula is as follows: Y = M * X star Where Y: the mapping result of the current state in the unified state space; M: the unified state space mapping matrix; X star : Converging state vector.

[0073] The target state mapping formula is as follows: Y target = M * X target Among them, Y target : The mapping result of the target state in the unified state space; X target : The target state vector expected to be reached after recovery.

[0074] The formula for state consistency deviation is as follows: delta = Norm2(Y - Y target ) Where delta: state consistency deviation; Y: current state mapping result; Y target : Target state mapping result.

[0075] Cross-system timing deviation is defined as follows: tau = max(abs(ti - t j ), where i, j belong to S key Where tau: cross-system timing bias; t i State node n i timestamp; t j State node n j timestamp; S key : The set of key state nodes involved in admission judgment.

[0076] The time series normalization formula is as follows: tau norm = tau / tau ref Among them, tau norm : Normalized time series bias; tau ref : Reference timing window.

[0077] To avoid simply concatenating state deviation and timing deviation for judgment, this embodiment introduces a consistent manifold function.

[0078] F = delta * (1 + lambda * tau norm ) Where F: consistent manifold function value; delta: state consistency deviation; lambda: time sensitivity coefficient; tau norm : Normalized time series bias.

[0079] This formula couples state deviation with timing deviation. Even if the state deviation is small, if the timing deviation is large, F may still exceed the admission threshold, thus prohibiting recovery operations.

[0080] Step S7: Restore Admission Judgment The formula for restoring access is as follows: Allow = 1, if F <= epsilon a Allow = 0, if F > epsilon a Wherein, Allow: restores the admission judgment result; Allow = 1: Allow the recovery operation to be performed; Allow = 0: Disable recovery operations; epsilon a : Restore the admission threshold.

[0081] When Allow = 1, the system allows the recovery operation to be performed.

[0082] When Allow = 0, the system prohibits the execution of recovery operations and outputs the reasons for not meeting the admission conditions, including but not limited to: state consistency deviation exceeding the limit; timing deviation exceeding the limit; timing gating matrix blocking critical propagation paths; target state unreachable; propagation process not converged.

[0083] Step S8: Resume dynamic updates during execution. During the recovery operation, the cross-system state dependency graph is no longer considered a static graph, but is dynamically updated according to real-time state changes.

[0084] The dynamic state dependency graph is as follows: G(t) = (N(t), E(t), W(t), T(t)) Wherein, G(t): the dynamic state dependency graph at time t; N(t): the set of state nodes at time t; E(t): the set of state propagation edges at time t; W(t): the set of state propagation edge weights at time t; T(t): the set of state transition timing constraints at time t.

[0085] The dynamic gated propagation matrix is ​​as follows: A prime (t) = A(t) ⊙ Gate(t) Among them, A prime A(t): Dynamic gated propagation matrix at time t; A(t): Basic adjacency matrix at time t; Gate(t): Temporal gated matrix at time t.

[0086] The state propagation during the resumption of execution is as follows: X(t+1) = A prime (t) * X(t) + b(t) where, X(t): state value vector at time t; X(t+1): state value vector at time t+1; b(t): input vector for recovery operation or control action at time t.

[0087] The diagram structure drift is as follows: D graph (t) = Norm_F(A prime (t+1) - A prime (t)) Among them, D graph (t): Graph structure drift; Norm_F(): Matrix Frobenius norm.

[0088] The conditions for dynamically updating alarms are as follows: Alarm = 1, if D graph (t) > epsilon g Alarm = 0, if D graph (t) <= epsilon g Among them, Alarm: alarm indicator during recovery process; epsilon g : Graph structure drift threshold.

[0089] Step S9: Restore Aborted and Rollback The system triggers recovery abort when the consistent manifold function value exceeds the critical threshold or the graph structure drift exceeds the threshold during the recovery process.

[0090] Stop = 1, if F(t) > epsilon critical Or Alarm = 1 Stop = 0, if F(t) <= epsilon critical And Alarm = 0 Where Stop: Resumption abort flag; F(t): Consistent manifold function value at time t; epsilon critical : Resumption abort threshold; Alarm: Alarm flag during the recovery process.

[0091] The rollback target status is as follows: X rollback = X safe Among them, X rollback : Rollback target state vector; X safe : The safety state vector recorded before the recovery operation was performed.

[0092] When a rollback is triggered, the system executes in the following order: Pause recovery process; Lock the currently related MES, EAP, and PLC objects; Set the target state to X safe ; Re-execute the gated propagation calculation; Verify whether the rollback path meets the timing constraints; Restore each system to a safe state; Recalculate the consistent manifold function; Output the rollback result.

[0093] Step S10: Verification after recovery After the recovery is complete, the actual status of MES, EAP, and PLC is re-collected and consistency verification is performed.

[0094] The consistency deviation after recovery is as follows: delta verify = Norm2(M * X verify - M * X target ) Among them, delta verify : Deviation in consistency of state after recovery; X verify : The actual state vector collected after recovery; X target : Recover the target state vector; M: Unified state space mapping matrix.

[0095] The timing deviation after recovery is as follows: tau verify = max(abs(t i_verify - t j_verify ), where i, j belong to S key Among them, tau verify Timing deviation after recovery; t i_verify : Restored node n i Status timestamp; t j_verify : Restored node n j Status timestamp.

[0096] The verification conditions after recovery are as follows: Verify = 1, if delta verify <= delta limit And tau verify <= tau limit Verify = 0, if delta verify delta limit or tau verify > tau limit Where Verify: the verification result after recovery; Verify = 1: recovery passed verification; Verify = 0: recovery failed verification; delta limit : The threshold for allowed state consistency deviation after recovery; tau limit : The allowed timing deviation threshold after recovery.

[0097] The other parts of this embodiment are the same as those in Embodiment 1 above, so they will not be described again.

[0098] Example 3: Based on any one of Embodiments 1-2 above, and in order to better realize the present invention, this embodiment further proposes a cross-system industrial software recovery access system for executing the cross-system industrial software recovery access method described above; it includes a state acquisition unit, a state dependency graph construction unit, a state matrix construction unit, a timing gating propagation unit, a pre-recovery propagation calculation unit, a unified consistency manifold calculation unit, and a recovery access judgment unit; The status acquisition unit is used to generate a recovery object meta-model instance based on the acquired configuration database and interface description file, and obtain a set of status nodes through the database query interface; The state dependency graph construction unit is used to construct a cross-system state dependency graph based on the set of state nodes; The state matrix construction unit is used to construct a comprehensive state matrix based on the acquired current state value and state timestamp. The time-gated propagation unit is used to construct an adjacency matrix based on the cross-system state dependency graph and a time-gated matrix based on the comprehensive state matrix to obtain the time-gated propagation matrix. The pre-recovery propagation calculation unit is used to obtain the state vector after pre-recovery propagation convergence based on the time-gated propagation matrix and the constructed recovery operation driving input vector; The unified consistency manifold computation unit is used to obtain the state consistency deviation based on the state vector after pre-recovery propagation convergence, the set unified state space mapping matrix, and the target state vector. The recovery admission judgment unit is used to calculate the cross-system timing deviation based on the timestamp of the state node, and combine it with the state consistency deviation to obtain the consistency manifold function value, and obtain the recovery admission judgment result based on the consistency manifold function value.

[0099] Based on the above-described cross-system industrial software access recovery method, to better implement the present invention, an electronic device is further proposed, including a memory and a processor; the memory stores a computer program; when the computer program is executed on the processor, the above-described cross-system industrial software access recovery method is implemented.

[0100] Based on the above-described cross-system industrial software access recovery method, to better realize the present invention, a computer-readable storage medium is further proposed, wherein computer instructions are stored on the computer-readable storage medium; when the computer instructions are executed on the above-described electronic device, the above-described cross-system industrial software access recovery method is realized.

[0101] The other parts of this embodiment are the same as any one of the above embodiments 1-2, so they will not be described again.

[0102] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Any simple modifications or equivalent changes made to the above embodiments based on the technical essence of the present invention shall fall within the protection scope of the present invention.

Claims

1. A cross-system industrial software access recovery method, characterized in that, Specifically, the following steps are included: Step S1: Based on the obtained configuration database and interface description file, generate a recovery object metamodel instance, and obtain the set of status nodes through the database query interface; Step S2: Construct a cross-system state dependency graph based on the set of state nodes; Step S3: Construct a state vector based on the obtained current state value and state timestamp; Step S4: Based on the cross-system state dependency graph, construct the adjacency matrix, and based on the comprehensive state matrix, construct the time-gated propagation matrix to obtain the time-gated propagation matrix; Step S5: Based on the time-gated propagation matrix and the constructed recovery operation driving input vector, obtain the state vector after the pre-recovery propagation converges; Step S6: Based on the state vector after pre-recovery propagation convergence, the set unified state space mapping matrix, and the target state vector, obtain the state consistency deviation; Step S7: Calculate the cross-system timing deviation based on the timestamp of the state node, and combine it with the state consistency deviation to obtain the consistency manifold function value. Obtain the recovery admission judgment result based on the consistency manifold function value.

2. The cross-system industrial software access recovery method according to claim 1, characterized in that, Step S2 specifically includes the following steps: Step S21: Obtain the set of state propagation edges based on the set of state nodes; Step S22: Construct state edge weights based on the set minimum allowable delay, maximum allowable delay, and timing constraint type; Step S23: Construct a cross-system state dependency graph based on the set of state nodes, the set of state propagation edges, the weights of state edges, and the set of time constraints.

3. The cross-system industrial software access recovery method according to claim 1, characterized in that, Step S3 specifically includes the following steps: Step S31: Based on the obtained original semantic state value, call the Encode() function to obtain the state value of the current state node; Step S32: Construct a state vector based on the current state value of the state node and the number of state nodes; Step S33: Construct a state timestamp vector based on the current node's state timestamp; Step S34: Construct a priority vector based on the recovery priority of the current node; Step S35: Construct a comprehensive state matrix based on the state vector, state timestamp vector, and priority vector.

4. The cross-system industrial software access recovery method according to claim 1, characterized in that, Step S4 specifically includes the following steps: Step S41: Sort the nodes of the cross-system state dependency graph according to the set index to obtain the edge mapping; Step S42: Construct an adjacency matrix based on the edge mapping; Step S43: Based on the source node state timestamp and target node state timestamp extracted from the state timestamp vector, and combined with the edge mapping, obtain the state time difference; Step S44: Obtain the timing constraint type based on the edge mapping, and call the corresponding gating function to calculate the timing gating value; Step S45: Construct a timing gating matrix based on the timing gating value and the number of nodes; Step S46: Obtain the time-gated propagation matrix based on the time-gated matrix and the adjacency matrix.

5. The method for restoring access to cross-system industrial software according to claim 1, characterized in that, Step S5 specifically includes the following steps: Step S51: Construct the recovery operation driving input vector based on the direct effect of the recovery operation on the state node; Step S52: Obtain the pre-recovery propagation vector based on the recovery operation driving input vector, the timing gated propagation matrix, and the state vector of the current iteration; Step S53: Based on the pre-recovery propagation vector and the set pre-recovery propagation convergence threshold, construct the pre-recovery propagation convergence condition by calling the L2 norm operation; Step S54: Obtain the state vector after pre-recovery propagation convergence based on the pre-recovery propagation convergence condition.

6. The cross-system industrial software access recovery method according to claim 1, characterized in that, Step S6 specifically includes the following steps: Step S61: Based on the state vector after the pre-recovery propagation convergence and the set unified state space mapping matrix, obtain the mapping result of the current state in the unified state space; Step S62: Based on the set unified state space mapping matrix and the target state vector expected to be reached after recovery, obtain the mapping result of the target state in the unified state space; Step S63: Based on the mapping results of the current state in the unified state space and the mapping results of the target state in the unified state space, call the L2 norm operation to obtain the state consistency deviation.

7. The cross-system industrial software access recovery method according to claim 1, characterized in that, Step S7 specifically includes the following steps: Step S71: Calculate the cross-system timing deviation based on the timestamp of the state node, and obtain the normalized timing deviation according to the set reference timing window; Step S72: Obtain the uniform manifold function value based on the normalized timing deviation, state consistency deviation, and the set timing sensitivity coefficient; Step S73: Obtain the recovery admission judgment result based on the consistent manifold function value and the set recovery admission threshold.

8. A cross-system industrial software recovery access system, used to execute the cross-system industrial software recovery access method as described in claim 1; characterized in that, It includes a state acquisition unit, a state dependency graph construction unit, a state matrix construction unit, a timing-gated propagation unit, a pre-recovery propagation calculation unit, a unified consistency manifold calculation unit, and a recovery admission judgment unit; The status acquisition unit is used to generate a recovery object meta-model instance based on the acquired configuration database and interface description file, and obtain a set of status nodes through the database query interface; The state dependency graph construction unit is used to construct a cross-system state dependency graph based on the set of state nodes; The state matrix construction unit is used to construct a comprehensive state matrix based on the acquired current state value and state timestamp. The time-gated propagation unit is used to construct an adjacency matrix based on the cross-system state dependency graph and a time-gated matrix based on the comprehensive state matrix to obtain the time-gated propagation matrix. The pre-recovery propagation calculation unit is used to obtain the state vector after pre-recovery propagation convergence based on the time-gated propagation matrix and the constructed recovery operation driving input vector; The unified consistency manifold computation unit is used to obtain the state consistency deviation based on the state vector after pre-recovery propagation convergence, the set unified state space mapping matrix, and the target state vector. The recovery admission judgment unit is used to calculate the cross-system timing deviation based on the timestamp of the state node, and combine it with the state consistency deviation to obtain the consistency manifold function value, and obtain the recovery admission judgment result based on the consistency manifold function value.

9. An electronic device, characterized in that, It includes a memory and a processor; the memory stores a computer program; when the computer program is executed on the processor, it implements a cross-system industrial software recovery access method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions; when the computer instructions are executed on the electronic device as described in claim 9, they implement a cross-system industrial software access recovery method as described in any one of claims 1-7.