Energy storage power station ems multi-mode control linkage fault simulation analysis method and system
By obtaining the timestamps of device nodes and establishing a directed acyclic graph model, combined with asynchronous timing disturbance matrix to simulate network congestion, injecting hardware fault vector sets, and synthesizing emergency degradation instruction sequences, the problem that existing simulation analysis methods cannot truly reflect network congestion and hardware faults is solved, thus improving the safety and simulation accuracy of the EMS of energy storage power stations.
Patent Information
- Application Number
- CN202611464718.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-20
- Publication Date
- 2026-11-24
AI Technical Summary
Existing simulation analysis methods for energy storage power station EMS cannot accurately reflect fault-tolerant responses under network congestion and hardware failures when verifying degradation control strategies. This leads to the safety time margin assessment deviating from the physical system's ultimate tolerance capability, affecting the safety of the energy storage system.
By obtaining the network transmission and action response timestamps of device nodes, calculating the empirical lower and upper bound times, establishing a directed acyclic graph model, simulating network congestion by combining an asynchronous timing disturbance matrix, injecting hardware fault vector sets, synthesizing an emergency degradation instruction sequence, and evaluating the safety margin of the control system.
It improves the timing matching between the simulation environment and the real physical system, accurately locates logical deadlock nodes, compensates for the execution delay in theoretical degradation logic, and objectively reflects the real safety time margin of the system under complex fault conditions.
Smart Images

Figure CN123156644A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of energy storage power station control technology, specifically to a method and system for simulating and analyzing faults in multi-mode control linkage of energy storage power stations' EMS. Background Technology
[0002] As the scale of energy storage power stations expands, energy management systems need to perform complex multi-mode control and linkage operations on underlying devices such as energy storage converters and battery management systems. When verifying the control logic of the energy management system, simulation analysis is usually required. Most existing control simulation methods are based on idealized communication network assumptions and set fixed network transmission delay constants in the simulation model. In the physical network, data packet congestion and loss are inevitable. The fixed delay setting method cannot map the impact of asynchronous timing disturbances on the state transition process and can easily mask the logic deadlock problem caused by timing misalignment of underlying devices.
[0003] Existing simulation analysis methods, when verifying degraded control strategies, typically use theoretical design time spans for time estimation, ignoring the objective physical dead zone delays that exist when the underlying physical hardware receives commands and executes actions. This leads to an idealized assessment of fault-tolerant response time under concurrent network congestion and hardware failure scenarios in the simulation system. Consequently, the calculated safety time margin cannot accurately reflect the ultimate tolerance capability of the physical system, easily causing control logic failure in energy storage power stations under extreme operating conditions, affecting the overall operational safety of the energy storage system. Therefore, this invention proposes a multi-mode control linkage fault simulation analysis method and system for energy storage power stations to address the shortcomings of existing technologies. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides a method and system for simulating and analyzing faults in multi-mode control linkage of energy storage power stations' EMS. It solves the problems of equipment logic deadlock caused by the inability to map real network congestion due to the setting of fixed network delays in existing technologies, and the problem that the safety time margin assessment deviates from the real limit tolerance capability of the physical system when verifying degraded control strategies due to ignoring the physical dead zone delay of the underlying hardware.
[0005] To achieve the above objectives, the present invention provides the following technical solution: In a first aspect, this invention provides a simulation analysis method for multi-mode control linkage faults in energy storage power stations (EMS), comprising the following steps: Obtain the network transmission timestamp and action response timestamp of the device node control message, calculate the empirical lower bound time and empirical upper bound time, compare the actual running time span of the device node with the theoretical design time span, and extract the correction compensation factor. Establish a directed acyclic graph model containing directed edges for state transitions, and assign the lower bound time of the empirical state and the upper bound time of the empirical state to the directed edges for state transitions; Based on the asynchronous temporal perturbation matrix, perturbation feature variables are specified for the directed edges of the state transition, and the absolute arrival timestamp is rewritten in combination with the perturbation feature variables; Traverse the directed acyclic graph model, update the discrete state space data set in combination with the absolute arrival timestamp, and write the hardware fault vector set into the state register image corresponding to the device node when the set injection clock step is reached. Perform a global consistency scan assessment. If a deadlock is detected, merge the correction compensation factor into a preset theoretical degradation instruction step to synthesize an emergency degradation instruction sequence. The forward reachability time is obtained by deriving the emergency degradation instruction sequence. Based on the preset limit tolerance time threshold, the reverse safety cutoff time is generated by reverse deduction. The forward reachability time and the reverse safety cutoff time are compared to perform convergence robustness evaluation calculation.
[0006] The present invention provides a multi-mode control linkage fault simulation analysis method for energy storage power stations. It utilizes extracted real timestamps to establish the time boundary for control logic deduction, eliminating the deviation of fixed communication delays in theoretical simulations. A directed acyclic graph model is established to map the control timing of multi-device linkage. Communication delay and packet loss characteristics are injected into the directed edges of state transitions through an asynchronous timing disturbance matrix, simulating non-deterministic congestion within the network. During discrete event-driven deduction, a dynamic overwrite function is called to write the hardware fault vector set, altering the continuity of state transitions maintained by standard control messages. When the system is in a deadlock state, the extracted correction compensation factor compensates for the dead-zone delay of the underlying hardware logic execution in the theoretical degradation instruction steps, synthesizing an emergency degradation instruction sequence. The time parameters obtained by combining the reverse safety boundary deduction process and the forward disturbance deduction process are used to calculate convergence robustness indicators, evaluating the safety margin of the control system when facing network congestion and hardware faults.
[0007] Preferably, the process of obtaining the network transmission timestamp and action response timestamp of the device node control message, calculating the empirical lower bound time and empirical upper bound time, and comparing the actual operating time span of the device node with the theoretical design time span to extract correction and compensation factors specifically includes: Extract the network transmission timestamp and the action response timestamp of the standard mode switching control message; For standard mode switching control messages of the same type, perform multiple sampling tests, extract the network transmission timestamp and action response timestamp of multiple samples and calculate the difference between them. The minimum difference among multiple samples is taken as the lower bound time of the empirical state, and the maximum difference is taken as the upper bound time of the empirical state. Inject a benchmark test fault signal into the device node and record the actual running time span during which the device node performs underlying fault self-healing actions after receiving the benchmark test fault signal. The theoretical design time span is retrieved from the system settings database, and the difference between the actual running time span and the theoretical design time span is calculated to extract the correction compensation factor.
[0008] Preferably, establishing a directed acyclic graph model containing directed edges for state transitions, and assigning the lower bound time and the upper bound time of the empirical state to the directed edges for state transitions specifically includes: Extract multi-mode control linkage operation process information, and map the expected state snapshot recorded in the multi-mode control linkage operation process information to the node set of the directed acyclic graph model; The control command action that triggers the expected state snapshot to undergo a transition is mapped to the directed state transition edges contained in the directed acyclic graph model; A single state transition directed edge is encapsulated into a control transition triplet containing a control message condition, a lower time limit condition, and a higher time limit condition. The lower bound time of the empirical state is set as the lower time limit condition, and the upper bound time of the empirical state is set as the upper time limit condition.
[0009] Preferably, specifying perturbation feature variables for the directed edges of the state transition based on the asynchronous temporal perturbation matrix, and rewriting the absolute arrival timestamp in combination with the perturbation feature variables specifically includes: The total number of directed edges for state transitions contained within the directed acyclic graph model is used as the row dimension value, and the preset total number of discrete deduction clock steps is obtained as the column dimension value to generate the asynchronous timing perturbation matrix of the two-dimensional data matrix structure. The matrix element value space is set to include delayed superimposed scalar feature values and packet loss blocking feature values. The delayed superimposed scalar feature values are synchronously injected into multiple state transition directed edges under the same network architecture as the disturbance feature variables. Read the simulated transmission timestamp and the reference network transmission time constant, perform a linear summation operation on the simulated transmission timestamp, the reference network transmission time constant and the disturbance characteristic variable, and rewrite to generate the absolute arrival timestamp.
[0010] Preferably, rewriting the absolute arrival timestamp in conjunction with the perturbation feature variables further includes: When the disturbance feature variable is determined to be the packet loss blocking feature value, the linear summation operation is skipped, and the absolute arrival timestamp is directly assigned to the maximum value constant variable. The value of the maximum constant variable is greater than the total number of discrete derivation clock steps.
[0011] Preferably, traversing the directed acyclic graph model, updating the discrete state space data set in conjunction with the absolute arrival timestamp, and writing the hardware fault vector set into the state register image corresponding to the device node when the predetermined injection clock step is reached specifically includes: The directed acyclic graph model is traversed unidirectionally according to the discrete deduction clock step, and the discrete state space data set corresponding to the current deduction node is updated in combination with the absolute arrival timestamp. Establish a mapping dictionary between hardware alarm codes and binary identifier bits, and construct the hardware fault vector set based on the mapping dictionary; When the injection clock step is reached, a dynamic overwrite function that performs bit-level logical OR operation is invoked to write the hardware fault vector set into the status register image corresponding to the device node without changing the original normal operating status bits, thereby activating the hardware fault flag bit.
[0012] Preferably, a global consistency scan assessment is performed, which specifically includes, when a deadlock state is determined, the following: Perform the global consistency scan evaluation to extract the discrete state space data set of all nodes in the directed acyclic graph model at the current virtual simulation time; Set decision boundary rules that include both temporal out-of-bounds constraints and physical mutual exclusion constraints; When the difference between the current virtual simulation timestamp of the target state node during the traversal process and the timestamp of the corresponding control command sent by the target state node is greater than the upper bound of the empirical state time, and the target state node does not undergo the expected level flip, it is determined that the timing out-of-bounds constraint condition is met. When the operating state of the energy storage converter node and the operating state of the battery management system node constitute an illegal electrical association logic in the preset electrical safety truth table, it is determined that the physical mutual exclusion constraint condition is met. When the timing out-of-bounds constraint or the physical mutual exclusion constraint is met, the deadlock state is determined.
[0013] Preferably, merging the modified compensation factor into a preset theoretical degradation instruction step to synthesize an emergency degradation instruction sequence specifically includes: The state data that triggers the deadlock state and contains illegal electrical associated logic or timing out-of-bounds characteristics is used as the retrieval key value to extract the theoretical degradation instruction steps containing the theoretical preset interval time from the safety degradation trajectory constraint dictionary; The correction compensation factor and the theoretical preset interval time are numerically added and combined to synthesize the emergency downgrade instruction sequence; A redirection interrupt signal is sent to the virtual memory instruction execution address pointer, which is then overwritten and changed to the memory starting address where the emergency degradation instruction sequence is located.
[0014] Preferably, the process of deriving the forward reachability time from the emergency degradation instruction sequence, generating a reverse safety deadline based on a preset limit tolerance time threshold, and comparing the forward reachability time with the reverse safety deadline to perform a convergence robustness assessment specifically includes: Based on the received redirection interrupt signal, the forward achievable time is obtained by forward deducing the emergency degradation instruction sequence; Starting from the final safety target node, the directed acyclic graph model is traversed in reverse along the directed edge of the state transition, with the limit tolerance time threshold as the starting point. The empirical lower bound time of the previous state transition process is subtracted step by step to calculate and generate the reverse safety cutoff time. Divide the difference between the reverse safety deadline and the forward reachability time by the reverse safety deadline to obtain a percentage value, and use the percentage value as a convergence robustness index. The control logic fault tolerance verification is considered successful when the convergence robustness index is greater than zero, and it is considered unsuccessful when the convergence robustness index is less than or equal to zero.
[0015] Secondly, the present invention provides a multi-mode control linkage fault simulation analysis system for energy storage power stations, used to execute the aforementioned multi-mode control linkage fault simulation analysis method for energy storage power stations, including: The probe sniffing module is used to obtain the network transmission timestamp and action response timestamp of the control message, calculate the empirical lower bound time and empirical upper bound time, compare the actual running time span of the device node with the theoretical design time span, and extract the correction compensation factor. The model building module is used to build a directed acyclic graph model containing directed edges for state transitions, and to assign the lower bound time of the empirical state and the upper bound time of the empirical state to the directed edges for state transitions. The matrix generation module is used to specify perturbation feature variables for the directed edges of the state transition based on the asynchronous temporal perturbation matrix, and to rewrite the absolute arrival timestamps in combination with the perturbation feature variables; The logic deduction module is used to traverse the directed acyclic graph model, update the discrete state space data set in combination with the absolute arrival timestamp, and write the hardware fault vector set into the state register image corresponding to the device node when the injection clock step is reached. The conflict checking module is used to perform a global consistency scan evaluation and send a trigger signal when a deadlock is detected. The reconstruction evaluation module is used to receive the trigger signal, merge the correction compensation factor into the theoretical degradation instruction step to synthesize the emergency degradation instruction sequence, deduce the positive reachability time of the emergency degradation instruction sequence, generate the reverse safety deadline based on the limit tolerance time threshold, and perform convergence robustness evaluation calculation by comparing the positive reachability time with the reverse safety deadline.
[0016] This invention provides a method and system for simulating and analyzing faults in the multi-mode control linkage of an energy storage power station's EMS. It has the following beneficial effects: 1. This invention obtains the network transmission timestamp and action response timestamp of the control message, calculates the empirical lower bound time and empirical upper bound time, and rewrites the absolute arrival timestamp based on the asynchronous time-series perturbation matrix and specified perturbation characteristic variables. This eliminates the theoretical deviation caused by setting a fixed communication delay in traditional simulations, incorporates the delay superposition and packet loss blocking characteristics that occur during the operation of the physical network into the deduction model, and improves the matching degree between the simulation environment and the real physical system in terms of time-series changes.
[0017] 2. This invention combines absolute arrival timestamps to update the discrete state space data set. When the simulation reaches the set injection clock step, the hardware fault vector set is written into the state register image corresponding to the device node. Then, a global consistency scan evaluation is performed. The writing operation and the scan evaluation steps can be synchronously triggered during the continuous simulation process to identify the logical conflict state caused by the underlying hardware fault, and accurately locate the deadlock node in the multi-device linkage control process that meets the timing out-of-bounds constraint condition or the physical mutual exclusion constraint condition.
[0018] 3. After determining that a deadlock is in effect, this invention merges the correction compensation factor into the preset theoretical degradation instruction steps to synthesize an emergency degradation instruction sequence. It then deduces the forward reachable time of the emergency degradation instruction sequence and compares it with the reverse safety cutoff time generated by the reverse deduction of the limit tolerance time threshold. By using the actual operating time span of the equipment, the execution delay in the theoretical degradation logic is compensated, so that the final calculated convergence robustness index can objectively reflect the true safety time margin of the system under complex fault conditions. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of the system architecture of the present invention; Figure 2 This is a schematic diagram of the overall method flow of the present invention; Figure 3 This is a schematic diagram of the probe sniffing and empirical state parameter extraction process of the present invention; Figure 4 This is a schematic diagram of the asynchronous timing perturbation matrix generation and mapping process of the present invention; Figure 5This is a schematic diagram illustrating the communication disturbances and absolute arrival times of the present invention. Figure 6 This is a schematic diagram of the device state flipping and deadlock capture logic of the present invention; Figure 7 This is a schematic diagram comparing the convergence time of the present invention. Detailed Implementation
[0020] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. 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.
[0021] Please see Figure 1 This invention provides a multi-mode control linkage fault simulation analysis system for energy storage power stations, including: a probe sniffing module, a model building module, a matrix generation module, a logic deduction module, a conflict verification module, and a reconstruction evaluation module.
[0022] The multi-mode control linkage fault simulation analysis system of the energy storage power station EMS is deployed in a standard industrial server. The standard industrial server establishes a physical communication connection with the energy management system host. The probe sniffing module is connected to the industrial Ethernet network inside the energy storage power station through a bypass port mirroring method. The industrial Ethernet network connects the energy management system host, several energy storage converter nodes, and several battery management system nodes. The probe sniffing module is used to capture the time parameters and status flow data of the underlying control messages in the physical environment, and provide the time constraints required for the logic sandbox simulation.
[0023] Within a standard industrial server, the probe sniffing module, model building module, matrix generation module, logic deduction module, conflict detection module, and reconstruction evaluation module establish logical communication connections via an internal data bus or shared memory. Specifically, the probe sniffing module outputs extracted time boundary parameters to the model building module and corrective compensation factors to the reconstruction evaluation module. The model building module distributes the constructed directed acyclic graph model to the matrix generation module and the logic deduction module. The matrix generation module inputs the generated absolute arrival timestamps to the logic deduction module. The logic deduction module interacts with the conflict detection module at the deduction clock step node, exchanging state data. When a deadlock is detected, the conflict detection module sends a trigger signal to the reconstruction evaluation module, which then feeds back the generated emergency degradation instruction sequence and redirection instructions to the logic deduction module, thus forming a closed-loop simulation control chain.
[0024] See attached document Figure 2This invention provides a simulation analysis method for multi-mode control linkage faults in energy storage power stations' EMS, comprising the following steps: S11, the probe sniffing module sends standard mode switching control messages to device nodes in the physical network and records the network sending timestamp and action response timestamp. It combines the network sending timestamp and action response timestamp to calculate the empirical lower bound time and empirical upper bound time of the device firmware response. It injects benchmark test fault signals into the device nodes and records the actual running time span of the device nodes performing fault self-healing actions. It compares the actual running time span with the theoretical design time span to extract correction compensation factors. S12, the model building module extracts the multi-mode control linkage operation process information of the energy management system host and transforms it into a discrete state space data set, establishes a directed acyclic graph model representing the control logic transition relationship, assigns the lower bound time of the empirical state and the upper bound time of the empirical state to the directed edge of the state transition contained in the directed acyclic graph model, and outputs the control logic benchmark traversal path carrying physical time boundary constraints. S13, the matrix generation module generates an asynchronous temporal disturbance matrix for all control transfer steps included in the directed acyclic graph model. The asynchronous temporal disturbance matrix records the delay superposition scalar characteristic value representing communication delay and the packet loss blocking characteristic value representing communication link breakage. The matrix generation module specifies the disturbance characteristic variable for the corresponding state transition directed edge and rewrites the absolute arrival timestamp of the control message to the target state node. S14, the logic deduction module traverses the directed acyclic graph model in one direction based on the discrete clock step beat, updates the state parameters of the nodes in the model by combining the absolute arrival timestamp, and calls the dynamic overwrite function to write the hardware fault vector set into the state register image of the device node when the set injection clock step is reached. S15, the conflict detection module performs a global system node state scan during the discrete clock step settlement stage and compares the actual state update time with the empirical state upper bound time. It analyzes the physical mutual exclusion state deadlock situation that exists in the system after the hardware fault vector set is intervened. When the system is determined to be in a deadlock state, the reconstruction evaluation module is triggered to retrieve the safety degradation trajectory constraint dictionary. The reconstruction evaluation module merges the correction compensation factor into the theoretical degradation instruction step to synthesize the emergency degradation instruction sequence and sends an interrupt redirection instruction to the logic deduction module so that the execution pointer points to the initial node of the emergency degradation instruction sequence. S16, after the logic deduction module performs the redirection operation, it maintains the asynchronous timing disturbance matrix in effect and forward deduces the emergency degradation instruction sequence. When the reconstruction evaluation module evaluates the system status and finds that the system has entered an irreversible deadlock state if it fails to completely enter the static offline hibernation state within the limited protection timeout threshold, it aggregates the original directed acyclic graph traversal slice data, the diverted timing disturbance feature matrix, and the mounted hardware fault vector set and outputs the underlying control flow tracing analysis data file.
[0025] See attached document Figure 3 Step S11 specifically includes sub-steps S111 to S113.
[0026] In the actual operating environment of energy storage power stations, theoretical control models usually assume that the communication delay is fixed and the hardware response is fast. However, real industrial Ethernet has packet jitter, and the firmware of the underlying device has unpredictable computational delay when processing instructions. The probe sniffing module obtains the real delay fluctuation range through physical sampling, providing boundary conditions that are close to the physical reality for logical deduction.
[0027] S111, the probe sniffing module accesses the industrial Ethernet network inside the energy storage power station via a mirrored switch port. The probe sniffing module captures standard mode switching control messages sent from the energy management system host to the device nodes. The device nodes specifically include energy storage converter nodes and battery management system nodes. The probe sniffing module extracts the network transmission timestamp of the standard mode switching control message at the data link layer. The probe sniffing module has a built-in high-precision hardware clock for uniformly recording time nodes. The probe sniffing module reads the level flip data of the device's underlying status register through the debugging communication port set by the device node, and records the action response timestamp corresponding to the state flip action of the device's underlying status register based on the high-precision hardware clock.
[0028] S112, the probe sniffing module performs multiple sampling tests on the same type of standard mode switching control message. The probe sniffing module extracts the network transmission timestamp and action response timestamp from the multiple samples, and calculates the empirical lower bound time and empirical upper bound time of the device firmware response. The formulas for calculating the empirical lower bound time and empirical upper bound time performed by the probe sniffing module are as follows: ; ; In the formula, Represents the lower bound time of the empirical state; Indicates the upper bound of the empirical state time; This indicates the total number of samples performed by the probe sniffing module. The value is set by those skilled in the art based on the network size, and typically ranges from [value range missing]. ; Indicates the sequence number of the current sampling count; Indicates the probe sniffing module number The network transmission timestamp obtained from the second sampling; Indicates the probe sniffing module number The action response timestamps obtained from the second sampling. The probe sniffing module transforms the theoretically fixed response time in the control manual into an empirical time boundary interval that includes the actual communication fluctuations of the physical device and the firmware execution fluctuations.
[0029] S113, the probe sniffing module injects a benchmark test fault signal into the device node. This benchmark test fault signal includes a battery cell overvoltage alarm status variable simulated by a write register instruction, and a converter insulation impedance low status level simulated by a hard-wired dry contact closure operation. After receiving the benchmark test fault signal, the probe sniffing module monitors the actual operating time span of the underlying fault self-healing actions performed by the device node. These actions include an insulated-gate bipolar transistor pulse blocking action and a DC-side contactor disconnection action. The probe sniffing module retrieves the theoretical design time span for the corresponding fault handling steps. This theoretical design time span is pre-stored in the system settings database, and its value originates from the factory test benchmark file provided by the equipment manufacturer. The probe sniffing module calculates the difference between the actual operating time span and the theoretical design time span to extract the correction compensation factor for the specific device node. The formula for calculating the correction compensation factor executed by the probe sniffing module is as follows: ; In the formula, This represents the correction compensation factor corresponding to a specific device node. This indicates the actual runtime span during which a specific device node performs underlying fault self-healing actions. This represents the theoretical design time span for a specific device node to handle similar faults. The probe sniffing module extracts correction compensation factors to quantify the hardware waiting dead time and program logic execution delays that are not disclosed by the equipment manufacturer. The correction compensation factors provide the basic compensation values for the refactoring evaluation module to synthesize an emergency degradation instruction sequence with physical characteristic compensation.
[0030] Step S12 specifically includes sub-steps S121 to S124.
[0031] During the switching of different operating modes in an energy storage power station, the energy management system host needs to schedule multiple underlying physical devices to perform coordinated actions. Converting the control logic of the energy management system host into a data structure that can be traversed by a computer enables the simulation system to get rid of its dependence on solving complex electrical and physical equations, thereby improving the operational efficiency of control logic verification. The model building module abstracts the temporal logic of the interaction between physical devices into a graph theory model, and solidifies the order of control message issuance and the expected device response actions through the graph theory model.
[0032] S121, the model building module extracts the multi-mode control linkage operation process information of the energy management system host. The specific multi-mode control linkage operation process information includes the business logic manual data of the energy storage power station seamlessly switching from grid-connected constant power mode to off-grid voltage and frequency support mode, as well as the coordinated start-stop control flowchart data under the master-slave control architecture of the energy storage converter. The model building module transforms the multi-mode control linkage operation process information into a discrete state space data set. The discrete state space data set is a memory-mapped data structure used to characterize the internal state of the energy storage converter node and the internal state of the battery management system node. The model building module constructs the discrete state space data set of the entire system, which includes the control words, operating status words, and hardware fault register words of all tested physical devices in the system at a specific time section.
[0033] S122, the model building module establishes a directed acyclic graph model representing the control logic transition relationship based on the discrete state space data set. The directed acyclic graph model contains a set of nodes and a set of directed edges. The model building module maps the expected state snapshots recorded in the multi-mode control linkage operation process information at each time section to the set of nodes of the directed acyclic graph model. The expected state snapshot is used to record the steady-state parameter combination of the device after the execution of a specific action. The model building module maps the control command action that triggers the expected state snapshot to change to the set of directed edges of state transition contained in the directed acyclic graph model.
[0034] S123, the model building module calls the empirical lower bound time and empirical upper bound time output by the probe sniffing module. The model building module assigns the empirical lower bound time and empirical upper bound time to the directed edges of the state transition contained in the directed acyclic graph model. The model building module encapsulates a single directed edge of the state transition into a control transition triple containing control message conditions, lower time limit conditions, and upper time limit conditions. The encapsulation formula for the time constraint of the directed edge of the state transition executed by the model building module is as follows: ; In the formula, This represents the state of a directed acyclic graph model starting from the initial state node. Point to the target state node Directed edge for state transition, starting state node With the target state node All of them belong to the node set of the directed acyclic graph model; This indicates that the starting state node is issued and triggered by the energy management system host. The control command message that causes a state transition is in the form of hexadecimal underlying communication protocol frame data. Represents the lower bound time of the empirical state; This represents the upper bound time of the empirical state. The model building module establishes the legal timing determination interval during the simulation process by embedding empirical state time parameters into the directed edges of state transitions.
[0035] S124, the model building module outputs a control logic baseline traversal path carrying physical time boundary constraints. This path represents the optimal execution chain in an ideal communication environment free from communication network congestion and physical hardware failures, where a multi-mode switching instruction sequence is issued from the energy management system host to the underlying physical devices and executed. The control logic baseline traversal path forms the basic network framework for discrete event extrapolation and analysis, providing an unbiased benchmark for subsequent injection of communication network disturbance variables and device hardware failure variables.
[0036] See attached document Figure 4 Step S13 specifically includes sub-steps S131 to S133.
[0037] In real-world energy storage power station industrial sites, communication cables are often intersected with high-power power electronic devices. Electromagnetic interference generated by the high-frequency switching action of the inverter can couple to the communication bus, causing nondeterministic congestion delays or even data frame loss during the transmission of control messages. In order to reproduce this harsh underlying network environment in the logic sandbox, the matrix generation module establishes a numerical disturbance matrix to convert the random electromagnetic interference in the physical environment into an equivalent additional delay value in the time dimension.
[0038] S131, the matrix generation module defines the dimension parameters of the asynchronous timing perturbation matrix, parses the directed acyclic graph model, counts the total number of directed edges for state transitions contained in the directed acyclic graph model, uses the total number of directed edges for state transitions as the row dimension value of the asynchronous timing perturbation matrix, obtains the total number of discrete simulation clock steps preset by the system, uses the total number of discrete simulation clock steps as the column dimension value of the asynchronous timing perturbation matrix, and generates a two-dimensional data matrix structure based on the row dimension value and the column dimension value. The two-dimensional data matrix structure is used to assign perturbation features to specific control transfer steps in different simulation time slots.
[0039] S132, the matrix generation module executes the assignment rules for the elements inside the asynchronous timing disturbance matrix. The matrix generation module sets the value space of the matrix elements to include delay superimposed scalar eigenvalues, packet loss blocking eigenvalues, and zero eigenvalues. The delay superimposed scalar eigenvalues represent the congestion delay that occurs in the network transmission of control messages. The packet loss blocking eigenvalues represent the loss of data frames caused by check errors in control messages. In the processing of computer program data types, the packet loss blocking eigenvalues are specified as a maximum constant that is much larger than the system's preset extrapolation lifetime, so as to represent at the algebraic operation level that the message is delayed indefinitely and can never be received by the target node. The zero eigenvalues represent that the control message is in an ideal transmission state without communication disturbances.
[0040] The matrix generation module allocates feature variables based on the energy storage physical topology. For multiple state transition directed edges under the same cascaded switch port, the matrix generation module synchronously injects scalar feature values of the same order of magnitude of delay superposition under the same clock step column index to simulate the local cascaded congestion phenomenon occurring within the industrial Ethernet network. The element expression formula for the asynchronous timing perturbation matrix constructed by the matrix generation module is as follows: ; ; In the formula, This represents the asynchronous timing perturbation matrix generated by the matrix generation module; This represents the row dimension value, which is composed of the total number of directed edges for state transitions in the directed acyclic graph model. The column dimension value represents the total number of discrete simulation clock steps preset by the system; This indicates that the asynchronous timing perturbation matrix is located at the first position. Line and number The perturbation characteristic variables of the column; This represents the row index, and its value range is defined as follows: ; This represents a column index, and its value range is defined as follows: ; This represents a delayed superposition scalar eigenvalue, with a specific value greater than zero. This represents the packet loss blocking characteristic value; This represents the zero eigenvalue.
[0041] The initialization and element assignment of the asynchronous timing perturbation matrix follow the following generation rules: (1) In the matrix initialization stage, all matrix elements are set to zero eigenvalue 0, which indicates that each state transition directed edge is in an ideal transmission state without communication disturbance in each deduction clock step. (2) Delayed superposition of scalar eigenvalues The matrix generation module is used to simulate congestion delay. The value is greater than zero and can be set by those skilled in the art based on the historical delay statistics of the industrial Ethernet under test. The matrix generation module can be randomly generated within the range according to a preset distribution (such as uniform distribution or normal distribution) or a fixed value can be preset according to the test scenario. The matrix generation module allocates feature variables in combination with the energy storage physical topology architecture. For multiple state transition directed edges under the same switch cascade port, the matrix generation module synchronously injects the same order of magnitude of delay superposition scalar feature values under the same clock step column index to simulate the local cascaded congestion phenomenon that occurs inside the industrial Ethernet network. (3) Packet loss blocking feature value Used to simulate data frame loss, it is specified as a maximum constant variable that is much larger than the preset total number of discrete simulation clock steps; The allocation position can be randomly inserted into the matrix row index corresponding to the directed edge of a specific state transition under the preset clock step column index, based on the link bit error rate statistics. Alternatively, it can be injected with a preset packet loss probability within the dense communication interaction time window to simulate data frame cyclic redundancy check errors and packet dropping phenomena in real networks. (4) The use of zero eigenvalue 0 is: by default, matrix elements that have not been injected with delay or packet loss disturbance are kept as zero eigenvalue 0, which represents the ideal transmission state.
[0042] S133, the matrix generation module executes the matrix mapping matching algorithm, assigns specified disturbance feature variables to all control transfer steps contained in the directed acyclic graph model, and establishes a fixed mapping data table between the directed edge identifiers of state transitions and the row indices of the asynchronous temporal disturbance matrix. During the process of the logic deduction module advancing according to discrete clock steps, the matrix generation module receives the clock step number of the current deduction stage and uses the clock step number of the current deduction stage as the column index of the matrix. The matrix generation module retrieves the corresponding matrix row index in the fixed mapping data table according to the control transfer step currently being traversed. The matrix generation module addresses and extracts the disturbance feature variables at the corresponding positions in the asynchronous temporal disturbance matrix through the column index and row index.
[0043] The matrix generation module reads the simulated transmission timestamp and the reference network transmission time constant of the control command issued by the logic deduction module. The matrix generation module sums the simulated transmission timestamp, the reference network transmission time constant, and the extracted disturbance feature variables to rewrite the absolute arrival timestamp of the control message to the target state node. The absolute arrival timestamp calculation formula executed by the matrix generation module is as follows: ; In the formula, This represents the absolute arrival timestamp of the rewritten control message to the target state node. This represents the simulated transmission timestamp of the control command issued by the logic deduction module at the current deduction clock step; This represents the baseline network transmission time constant, the value of which is fixed based on the physical forwarding performance of the industrial Ethernet network switch. This indicates that the asynchronous timing perturbation matrix is located at the first position. Line and number The perturbation characteristic variables of the column. The matrix generation module outputs the calculated absolute arrival timestamps to the logic deduction module, completing the combination of spatial topology links and time-dimensional perturbation variables.
[0044] S134, when the disturbance characteristic variable is determined to be a packet loss blocking characteristic value, the matrix generation module starts the communication blocking truncation mechanism. The packet loss blocking characteristic value is specifically manifested as a maximum constant variable that far exceeds the preset total number of discrete deduction clock steps. The matrix generation module skips the linear summation operation and directly assigns the absolute arrival timestamp to the maximum constant variable. The absolute arrival timestamp assigned to the maximum constant variable exceeds the upper limit of the legal time boundary for the logic deduction module to run, so that the corresponding control command message can never trigger the state flip event of the target physical device node within the limited time slot. By assigning the maximum constant variable, the matrix generation module accurately equates the data frame cyclic redundancy check error and message dropping phenomenon in the physical network at the logic operation level. The matrix generation module feeds back the rewritten absolute arrival timestamp to the event scheduling queue set by the logic deduction module, providing a time boundary driving condition with disturbance for subsequent multi-node state consistency deduction.
[0045] Step S14 specifically includes sub-steps S141 to S143.
[0046] In the process of verifying the control logic of energy storage power stations, traditional electromagnetic transient simulation relies on the solution of complex differential equations, which is time-consuming and difficult to cover long-cycle scheduling logic. In actual multi-machine collaborative scheduling, the most vulnerable link of the system is often during the transition period when the control command is in the middle of network transmission and some devices have responded while others have not yet responded, when a sudden underlying hardware failure occurs. In order to test the system's resilience under such control flow interruption, the logic deduction module adopts a discrete event-driven architecture without differential equations. It replaces electrical numerical integration calculation with the logic flip of state nodes and establishes an interrupt mechanism to support the forced injection of sudden physical hardware failure states at any deduction node.
[0047] S141, the logic deduction module sets a global virtual deduction clock. The global virtual deduction clock advances according to a fixed discrete clock step. The step size of the discrete clock step is determined by the minimum communication scheduling cycle of the energy management system host. Those skilled in the art usually set it to a fixed value of 10 milliseconds to 100 milliseconds. The logic deduction module traverses the directed acyclic graph model in one direction. At each discrete clock step settlement node, the logic deduction module compares the virtual time value corresponding to the current clock step with the absolute arrival timestamp output by the matrix generation module. When the virtual time value is greater than or equal to the absolute arrival timestamp, the logic deduction module triggers a state transition event. The logic deduction module updates the discrete state space data set of the target state node in the directed acyclic graph model. The logic deduction module overwrites the running state word of the target state node in the memory image from the standby pre-charge sub-state to the grid-connected constant power running sub-state.
[0048] S142, the logic deduction module extracts the hardware alarm manual data associated with the physical device. The logic deduction module establishes a mapping dictionary between hardware alarm codes and binary identifier bits. Based on the mapping dictionary, the logic deduction module constructs a hardware fault vector set. The specific lower-level feature of the hardware fault vector set is a multi-dimensional binary data array encapsulated in a specific memory structure. The data bit width of the multi-dimensional binary data array is strictly aligned with the register bit width of the underlying hardware control chip of the physical device under test. It usually adopts a 16-bit or 32-bit unsigned integer data format. The multi-dimensional binary data array includes fault placeholders for characterizing the low insulation impedance alarm of the energy storage converter, fault placeholders for characterizing the AC side overcurrent trip alarm of the energy storage converter, and fault placeholders for characterizing the single cell overtemperature alarm of the battery management system. The logic deduction module sets the specific fault placeholders to a valid high level, representing the occurrence of a specific physical hardware damage event at the logic level.
[0049] S143, the logic deduction module monitors the progress of the global virtual deduction clock. When the global virtual deduction clock reaches the set injection clock step, the logic deduction module calls the dynamic overwrite function. The injection clock step is an absolute time coordinate pre-specified by the system to trigger fault intervention. The value of the injection clock step is manually specified by the tester based on the communication interaction intensive time window in the control logic reference traversal path, or it is randomly generated by the test system within the preset total number of deduction clock steps using a random number generation algorithm. This is used to simulate the unpredictability of the timing of hardware fault occurrence in a real industrial environment. The dynamic overwrite function performs bit-level logical OR operation. Through the dynamic overwrite function, the logic deduction module directly writes the constructed hardware fault vector set into the status register image corresponding to the device node. The forced writing of the hardware fault vector set truncates the continuity of the standard state transition maintained by the standard mode switching control message. The dynamic overwrite fault mounting calculation formula executed by the logic deduction module is as follows: ; In the formula, This represents the new value of the device node status register image after being processed by the dynamic overwrite function; This indicates the original state value that the device node state register image retains before the injected clock step arrives; Represents the bit-level logical OR operator; This represents the set of hardware fault vectors constructed by the logic deduction module.
[0050] The logic deduction module uses bit-level logical OR operations to forcibly activate specific hardware fault flag bits without changing the original normal operating state bits. This enables the tested physical device nodes to exhibit underlying hardware fault response characteristics in the virtual deduction environment, providing a test scenario for deadlock identification and self-healing scheduling of the subsequent test system.
[0051] Step S15 specifically includes sub-steps S151 to S153.
[0052] In a multi-device collaborative energy storage system, when a severe network congestion or a sudden hardware failure occurs in a single device, the original preset control link of the energy management system host will be forcibly cut off. At this time, the system faces the risk of state misalignment, that is, some devices may have already performed the operation mode switching action, while other devices are still in the initial state or in a crash response state. In order to avoid illegal combination of operating states causing actual electrical short circuits or physical damage to equipment, the conflict detection module scans the discrete state of each node in real time and uses the real physical characteristic parameters extracted in the early stage to assemble a sequence of control commands that can guide the system to a safe shutdown.
[0053] S151, the conflict detection module performs a global consistency scan evaluation operation. The module extracts the discrete state-space data set of all physical device nodes in the directed acyclic graph model at the current virtual simulation time. The module sets judgment boundary rules including timing out-of-bounds constraints and physical mutual exclusion constraints. The specific judgment characteristic of the timing out-of-bounds constraint is: the difference between the current virtual timestamp of the target state node and the timestamp of the corresponding control command sent by that node is greater than the empirical upper bound time specified by the directed edge of the state transition, and the target state node has not undergone the expected level flip. The specific lower-level characteristic of the physical mutual exclusion constraint is: the energy storage converter node is in grid-connected inverter operation state, and the corresponding battery management system node is in the DC side contactor open state. The operating states of the energy storage converter node and the battery management system node constitute an illegal electrical association logic. The global consistency scan evaluation function formula executed by the conflict detection module is as follows: ; In the formula, This represents a Boolean decision value indicating whether the system is in a deadlock state. A deadlock is determined when the result is true. This represents the current virtual deduction timestamp output by the logic deduction module; Indicates the simulated transmission timestamp of the corresponding control command; Indicates the upper bound of the empirical state time; This refers to the physical mutual exclusion determination operator used to determine whether discrete states between devices conflict. In the low-level implementation of the computer, this operator compares the input device states by performing a logical AND operation on the input device states by querying the system's preset electrical safety truth table to output the determination result. This represents the current discrete state data of the energy storage converter node; This represents the current discrete state data of the battery management system nodes; Represents the logical OR operator.
[0054] The conflict detection module accurately captures the execution stagnation caused by the disturbance matrix or fault mounting in the system by using the above-mentioned judgment boundaries.
[0055] S152, after the refactoring evaluation module detects a deadlock state, it triggers a safety degradation response mechanism. The refactoring evaluation module sets up a safety degradation trajectory constraint dictionary in memory. The safety degradation trajectory constraint dictionary is a non-relational database based on a key-value pair structure. The refactoring evaluation module uses the illegal state combination data that triggers physical mutual exclusion constraints as the retrieval key value and performs data addressing matching in the safety degradation trajectory constraint dictionary. The refactoring evaluation module extracts the theoretical degradation instruction steps corresponding to the retrieval key value. The theoretical degradation instruction steps specifically include a preset insulated gate bipolar transistor pulse blocking instruction frame, a theoretical preset interval time, and a main contactor disconnection instruction frame.
[0056] S153, the reconstruction evaluation module calls the probe sniffing module to correct the compensation factor of the specific device node extracted in the early stage. The reconstruction evaluation module adds the corrected compensation factor to the theoretical preset interval time included in the theoretical degradation instruction step and performs a merging operation. The actual degradation interval time executed by the reconstruction evaluation module is calculated as follows: ; In the formula, This represents the calculated actual degradation interval time, which possesses true physical characteristics. This indicates the theoretical preset interval time retrieved during the theoretical degradation instruction step; This represents the correction compensation factor corresponding to a specific device node retrieved from the probe sniffing module.
[0057] The reconstruction evaluation module injects the dead-zone delay values of the underlying hardware logic, which are not reflected in the control device manual, into the theoretical degradation process through merging operations. This synthesizes an emergency degradation instruction sequence with real physical timing characteristics. The reconstruction evaluation module sends an execution pointer redirection interrupt signal to the logic deduction module. The reconstruction evaluation module forcibly changes the virtual memory instruction execution address pointer of the logic deduction module from the original multi-mode control linkage operation process address space to the memory starting address of the synthesized emergency degradation instruction sequence. By executing the pointer redirection action, the reconstruction evaluation module guides the logic deduction engine out of the original deadlock loop and into the preset state transition link for safe device shutdown, thereby completing the self-healing logic verification of the system for extreme hardware and communication failures.
[0058] Step S16 specifically includes sub-steps S161 to S163.
[0059] After completing the synthesis of the emergency degradation instruction sequence, it is necessary to verify whether the energy storage power station control system can complete the shutdown self-healing action before irreversible damage to physical equipment when facing continuous network congestion and physical hardware failure. The reconfiguration evaluation module combines the forward execution time and the reverse safety margin to quantify and evaluate the fault tolerance boundary of the control logic.
[0060] S161, the reconstruction evaluation module initiates the forward disturbance simulation process. The reconstruction evaluation module uses the synthesized emergency degradation instruction sequence as input stimulus and executes the instructions in discrete clock steps in the virtual simulation simulation engine. During the simulation, the reconstruction evaluation module maintains the delay injection mechanism of the asynchronous timing disturbance matrix and the mounting state of the hardware fault vector set. The reconstruction evaluation module records the total virtual time span consumed from the issuance of the first degradation control instruction to the system entering the global quiescent state. The total virtual time span is defined as the forward reachable time. The specific manifestation of the global quiescent state is that the status registers of all physical device nodes in the system stop flipping the status word and no longer generate new event trigger signals. In the computer's underlying calculation implementation, the reconstruction evaluation module reads the global virtual simulation clock stamp when the system enters the global quiescent state and subtracts the starting clock stamp when the first degradation control instruction is issued. The difference between the two is used as the specific value of the forward reachable time, thereby avoiding the floating-point calculation error caused by the item-by-item accumulation of local delays.
[0061] S162, the reconstructive evaluation module initiates the reverse safety boundary deduction process. The reconstructive evaluation module anchors the final safety target node in the directed acyclic graph model. The specific physical state of the final safety target node is as follows: the insulated gate bipolar transistor of the energy storage converter is in a pulse blocking state and the DC main contactor of the battery management system is in a physically open state. The reconstructive evaluation module extracts the limit tolerance time threshold specified in the equipment alarm operation manual. The limit tolerance time threshold characterizes the maximum time delay that the equipment can experience from the occurrence of a specific fault to the occurrence of physical burnout. For the determination of the limit tolerance time threshold, the reconstructive evaluation module retrieves the short-circuit thermal capacity curve data table provided by the underlying hardware manufacturer and extracts the time point when the device junction temperature reaches the limit failure temperature under a specific fault current as the threshold. In this field, for severe faults such as overcurrent of the insulated gate bipolar transistor, the value range of this limit tolerance time threshold is usually between tens of microseconds and several milliseconds.
[0062] The reconstruction evaluation module starts from the final safety target node and traverses the directed acyclic graph model in reverse along the directed edges of state transitions. Starting from the limit tolerance time threshold, the module subtracts the empirical lower bound time of the preceding state transition process step by step to calculate the reverse safety deadline. The empirical lower bound time represents the shortest physical time required for the device to complete the action under the most ideal communication conditions. By subtracting the shortest time of each action from the limit tolerance time, the maximum congestion waiting time balance that the system can consume at the network communication layer can be derived and exposed, which is the reverse safety deadline. For the reverse topology traversal algorithm of the directed acyclic graph model, those skilled in the art can use the existing graph theory depth-first search backtracking technology to implement it. The program code design of the graph theory depth-first search backtracking technology is a well-known technology in this field and will not be described in detail here.
[0063] S163, the reconstruction evaluation module performs convergence robustness evaluation calculations. The module extracts the forward reachability time and the reverse safety deadline, compares the values of these two times, and quantifies the safety margin of the system control logic under extreme failure scenarios through mathematical operations. The convergence robustness index calculation formula performed by the reconstruction evaluation module is as follows: ; In the formula, This represents the convergence robustness index calculated and obtained by the reconstruction evaluation module; This indicates the reverse security deadline calculated by the refactoring assessment module through the reverse security boundary deduction process; This indicates the forward reachability time obtained by the reconstruction evaluation module through the forward perturbation deduction process.
[0064] The reconstruction evaluation module determines the numerical range of the convergence robustness index. When the convergence robustness index is greater than zero, the reconstruction evaluation module determines that the system can effectively resist communication disturbances and converge to a safe shutdown state before physical damage, and the control logic fault tolerance verification passes. When the convergence robustness index is less than or equal to zero, that is, the forward reachability time has exceeded or equaled the reverse safety cutoff time, the reconstruction evaluation module determines that the system has the risk of thermal runaway or hardware overcurrent damage, and the control logic fault tolerance verification fails. The reconstruction evaluation module outputs a test evaluation data table containing the convergence robustness index, forward reachability time, and reverse safety cutoff time, providing quantitative data support for testers to optimize the underlying control code and protection thresholds.
[0065] Specific application examples: To assist those skilled in the art in more intuitively understanding the logical link and feasibility of the energy storage power station EMS multi-mode control linkage fault simulation analysis method and system of the present invention, the following is combined with Figures 5-7 A specific application example is provided.
[0066] This application example is for an industrial-grade energy storage power station with a nominal power of 50MW / 100MWh. The business simulation scenario is set as follows: when the energy storage power station control system faces communication congestion caused by electromagnetic interference, the fault tolerance and degradation simulation of sudden equipment hardware failure is performed. The system's preset global discrete simulation clock step size is set to 1ms, that is, the clock step number corresponds one-to-one with the number of milliseconds in physical time.
[0067] Reference Figure 5 The probe sniffing module captures steady-state packets from the Ethernet network inside the energy storage power station, performs 100 samplings, and detects the network transmission timestamps. With action response timestamp The difference, i.e., the reference delay fluctuation, is distributed between 3ms and 7ms, such as Figure 5 As shown, substituting into the formulas for calculating the lower bound time and upper bound time of the empirical state: ; .
[0068] Subsequently, the probe sniffing module injects a benchmark test fault signal to retrieve the factory theoretical design time span. The actual operating time span Substitute into the formula for calculating the correction compensation factor: .
[0069] The model building module assigns the extracted time boundaries to the directed edges of the state transition, generating topological edges with physical constraints, and then substitutes them into the encapsulated formula for the time constraints of the directed edges of the state transition: ; To verify the system's resistance to out-of-order delivery, extreme delay characteristics were injected into the matrix generation module, and observations were made. Figure 5 At the 53rd discrete derivation clock step, a congestion spike appeared, according to the element expression formula of the asynchronous timing perturbation matrix. row index at this position Column index Assignment delay superposition scalar eigenvalues That is, the perturbation characteristic variable To facilitate independent calculation of the time consumed by a single transmission, this step is assumed to be relative to the reference time of the instruction being sent. Read Figure 5 The reference network transmission time constant for this clock step Substitute into the absolute arrival timestamp calculation formula: ; The derived calculation result corresponds to 26ms. Figure 5 The highest peak point of the solid line waveform at step 53.
[0070] Reference Figure 6 Entering the full-process timeline simulation phase, the first track shows that the EMS management system is... When the control command stream is sent, the level jumps from 0 to 1. At this time, the normal target node status register flips accordingly, and the logic deduction module runs to the preset injection clock step and outputs the current virtual deduction timestamp. At that time, the original status register image is in the working state, and the original status value is... The hardware fault vector set is Simulate sudden hardware failure and substitute the results into the dynamic overwrite fault mounting calculation formula: ; This overwrite action resulted in Figure 6 In the second track, the status register of the device under test (DUT) experiences an abnormal drop at 80ms. The conflict detection module performs a scan at the 80ms clock step. Substituting this into the global consistency scan evaluation function formula: ; Since the execution difference of 30ms is greater than the empirical upper bound of 7ms, the judgment is valid. Therefore, as Figure 6 As shown in the third track, the system released a high-level conflict deadlock trigger signal at 80ms.
[0071] The theoretical preset interval for the reconstruction evaluation module to retrieve the theoretical degradation instruction step Substitute into the actual downgrade interval calculation formula: ; The system overwrites the original memory pointer with a security downgrade sequence containing a physical latency of 12ms, prompting the device to shut down urgently.
[0072] Reference Figure 7 The effectiveness of this fault-tolerant reconfiguration was quantitatively evaluated by calibrating the reverse safety boundary through reverse safety boundary deduction and combining the short-circuit thermal capacity limit of the equipment, thus determining the reverse safety cutoff time. After the degradation instruction sequence generated by the method of this invention is executed, the system enters a resting state, and the recorded positive reachability time is recorded. Substitute into the convergence robustness index calculation formula: ; The derivation results show that the method of the present invention has a 12.5% quantization safety margin. For comparison, Figure 7 The risk peak representing the traditional transient continuous simulation method shifts backward because it does not calculate and compensate for the dead zone delay of the underlying firmware execution. The positive reach time is extended to about 58ms, which exceeds the physical damage red line of 48ms.
[0073] The above embodiments and formula verifications fully demonstrate that the present invention, through asynchronous matrix perturbation injection and rigorous empirical state compensation calculation, can capture logical chain breaks under extreme operating conditions and guide the system to converge safely before physical damage, thus possessing high engineering feasibility.
Claims
1. A method for EMS multi-mode control linkage fault simulation analysis of energy storage power stations, characterized in that, Includes the following steps: Obtain the network transmission timestamp and action response timestamp of the device node control message, calculate the empirical lower bound time and empirical upper bound time, compare the actual running time span of the device node with the theoretical design time span, and extract the correction compensation factor. Establish a directed acyclic graph model containing directed edges for state transitions, and assign the lower bound time of the empirical state and the upper bound time of the empirical state to the directed edges for state transitions; Based on the asynchronous temporal perturbation matrix, perturbation feature variables are specified for the directed edges of the state transition, and the absolute arrival timestamp is rewritten in combination with the perturbation feature variables; Traverse the directed acyclic graph model, update the discrete state space data set in combination with the absolute arrival timestamp, and write the hardware fault vector set into the state register image corresponding to the device node when the set injection clock step is reached. Perform a global consistency scan assessment. If a deadlock is detected, merge the correction compensation factor into a preset theoretical degradation instruction step to synthesize an emergency degradation instruction sequence. The forward reachability time is obtained by deriving the emergency degradation instruction sequence. Based on the preset limit tolerance time threshold, the reverse safety cutoff time is generated by reverse deduction. The forward reachability time and the reverse safety cutoff time are compared to perform convergence robustness evaluation calculation.
2. The EMS multi-mode control linkage fault simulation analysis method for energy storage power stations according to claim 1, characterized in that, Obtain the network transmission timestamp and action response timestamp of the device node control message, calculate the empirical lower bound time and empirical upper bound time, compare the actual operating time span of the device node with the theoretical design time span, and extract correction and compensation factors, specifically including: Extract the network transmission timestamp and the action response timestamp of the standard mode switching control message; For standard mode switching control messages of the same type, perform multiple sampling tests, extract the network transmission timestamp and action response timestamp of multiple samples and calculate the difference between them. The minimum difference among multiple samples is taken as the lower bound time of the empirical state, and the maximum difference is taken as the upper bound time of the empirical state. Inject a benchmark test fault signal into the device node and record the actual running time span during which the device node performs underlying fault self-healing actions after receiving the benchmark test fault signal. The theoretical design time span is retrieved from the system settings database, and the difference between the actual running time span and the theoretical design time span is calculated to extract the correction compensation factor.
3. The simulation analysis method for multi-mode control linkage faults in an energy storage power station EMS according to claim 1, characterized in that, Constructing a directed acyclic graph model containing directed edges for state transitions, and assigning the lower bound time and upper bound time of the empirical state to the directed edges for state transitions specifically includes: Extract multi-mode control linkage operation process information, and map the expected state snapshot recorded in the multi-mode control linkage operation process information to the node set of the directed acyclic graph model; The control command action that triggers the expected state snapshot to undergo a transition is mapped to the directed state transition edges contained in the directed acyclic graph model; A single state transition directed edge is encapsulated into a control transition triplet containing a control message condition, a lower time limit condition, and a higher time limit condition. The lower bound time of the empirical state is set as the lower time limit condition, and the upper bound time of the empirical state is set as the upper time limit condition.
4. The simulation analysis method for multi-mode control linkage faults in an energy storage power station EMS according to claim 1, characterized in that, Based on the asynchronous temporal perturbation matrix, perturbation feature variables are assigned to the directed edges of the state transition. Rewriting the absolute arrival timestamp using these perturbation feature variables specifically includes: The total number of directed edges for state transitions contained within the directed acyclic graph model is used as the row dimension value, and the preset total number of discrete deduction clock steps is obtained as the column dimension value to generate the asynchronous timing perturbation matrix of the two-dimensional data matrix structure. The matrix element value space is set to include delayed superimposed scalar feature values and packet loss blocking feature values. The delayed superimposed scalar feature values are synchronously injected into multiple state transition directed edges under the same network architecture as the disturbance feature variables. Read the simulated transmission timestamp and the reference network transmission time constant, perform a linear summation operation on the simulated transmission timestamp, the reference network transmission time constant and the disturbance characteristic variable, and rewrite to generate the absolute arrival timestamp.
5. The simulation analysis method for multi-mode control linkage faults in an energy storage power station EMS according to claim 4, characterized in that, Rewriting the absolute arrival timestamp in conjunction with the aforementioned perturbation feature variables also includes: When the disturbance feature variable is determined to be the packet loss blocking feature value, the linear summation operation is skipped, and the absolute arrival timestamp is directly assigned to the maximum value constant variable. The value of the maximum constant variable is greater than the total number of discrete derivation clock steps.
6. The method for simulation analysis of multi-mode control linkage faults in an energy storage power station EMS according to claim 1, characterized in that, Traversing the directed acyclic graph model, updating the discrete state space data set in conjunction with the absolute arrival timestamps, and writing the hardware fault vector set into the state register image corresponding to the device node upon reaching the set injection clock step specifically includes: The directed acyclic graph model is traversed unidirectionally according to the discrete deduction clock step, and the discrete state space data set corresponding to the current deduction node is updated in combination with the absolute arrival timestamp. Establish a mapping dictionary between hardware alarm codes and binary identifier bits, and construct the hardware fault vector set based on the mapping dictionary; When the injection clock step is reached, a dynamic overwrite function that performs bit-level logical OR operation is invoked to write the hardware fault vector set into the status register image corresponding to the device node without changing the original normal operating status bits, thereby activating the hardware fault flag bit.
7. The method for simulation analysis of multi-mode control linkage faults in energy storage power stations according to claim 1, characterized in that, Performing a global consistency scan assessment, specifically when a deadlock state is determined, includes: Perform the global consistency scan evaluation to extract the discrete state space data set of all nodes in the directed acyclic graph model at the current virtual simulation time; Set decision boundary rules that include both temporal out-of-bounds constraints and physical mutual exclusion constraints; When the difference between the current virtual simulation timestamp of the target state node during the traversal process and the timestamp of the corresponding control command sent by the target state node is greater than the upper bound of the empirical state time, and the target state node does not undergo the expected level flip, it is determined that the timing out-of-bounds constraint condition is met. When the operating state of the energy storage converter node and the operating state of the battery management system node constitute an illegal electrical association logic in the preset electrical safety truth table, it is determined that the physical mutual exclusion constraint condition is met. When the timing out-of-bounds constraint or the physical mutual exclusion constraint is met, the deadlock state is determined.
8. The method for simulation analysis of multi-mode control linkage faults in an energy storage power station EMS according to claim 7, characterized in that, The process of merging the modified compensation factor into the preset theoretical degradation instruction steps to synthesize the emergency degradation instruction sequence specifically includes: The state data that triggers the deadlock state and contains illegal electrical associated logic or timing out-of-bounds characteristics is used as the retrieval key value to extract the theoretical degradation instruction steps containing the theoretical preset interval time from the safety degradation trajectory constraint dictionary; The correction compensation factor and the theoretical preset interval time are numerically added and combined to synthesize the emergency downgrade instruction sequence; A redirection interrupt signal is sent to the virtual memory instruction execution address pointer, which is then overwritten and changed to the memory starting address where the emergency degradation instruction sequence is located.
9. The simulation analysis method for multi-mode control linkage faults in an energy storage power station EMS according to claim 1, characterized in that, The process of deriving the forward reachability time from the emergency degradation instruction sequence, generating a reverse safety cutoff time based on a preset limit tolerance time threshold, and comparing the forward reachability time with the reverse safety cutoff time to perform a convergence robustness assessment calculation specifically includes: Based on the received redirection interrupt signal, the forward achievable time is obtained by forward deducing the emergency degradation instruction sequence; Starting from the final safety target node, the directed acyclic graph model is traversed in reverse along the directed edge of the state transition, with the limit tolerance time threshold as the starting point. The empirical lower bound time of the previous state transition process is subtracted step by step to calculate and generate the reverse safety cutoff time. Divide the difference between the reverse safety deadline and the forward reachability time by the reverse safety deadline to obtain a percentage value, and use the percentage value as a convergence robustness index. The control logic fault tolerance verification is considered successful when the convergence robustness index is greater than zero, and it is considered unsuccessful when the convergence robustness index is less than or equal to zero.
10. A multi-mode control linkage fault simulation analysis system for energy storage power stations (EMS), characterized in that, The method for performing multi-mode control linkage fault simulation analysis of energy storage power station EMS as described in any one of claims 1 to 9 includes: The probe sniffing module is used to obtain the network transmission timestamp and action response timestamp of the control message, calculate the empirical lower bound time and empirical upper bound time, compare the actual running time span of the device node with the theoretical design time span, and extract the correction compensation factor. The model building module is used to build a directed acyclic graph model containing directed edges for state transitions, and to assign the lower bound time of the empirical state and the upper bound time of the empirical state to the directed edges for state transitions. The matrix generation module is used to specify perturbation feature variables for the directed edges of the state transition based on the asynchronous temporal perturbation matrix, and to rewrite the absolute arrival timestamps in combination with the perturbation feature variables; The logic deduction module is used to traverse the directed acyclic graph model, update the discrete state space data set in combination with the absolute arrival timestamp, and write the hardware fault vector set into the state register image corresponding to the device node when the injection clock step is reached. The conflict checking module is used to perform a global consistency scan evaluation and send a trigger signal when a deadlock is detected. The reconstruction evaluation module is used to receive the trigger signal, merge the correction compensation factor into the theoretical degradation instruction step to synthesize the emergency degradation instruction sequence, deduce the positive reachability time of the emergency degradation instruction sequence, generate the reverse safety deadline based on the limit tolerance time threshold, and perform convergence robustness evaluation calculation by comparing the positive reachability time with the reverse safety deadline.
