Finite state automaton-based power distribution network CPS element modeling method and system

By modeling the CPS components of the power grid based on the method of finite state automata, the problem of high complexity of the power grid system is solved, the stability and reliability of the system are improved, the modeling process is simplified and the occurrence of faults is reduced.

CN118673667APending Publication Date: 2024-09-20GUIZHOU POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410664195.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Due to the complex interactions between physical and computing systems, the power grid CPS system is difficult to effectively model and manage, resulting in high system complexity and difficulty in ensuring stability and reliability.

Method used

A method based on finite state automata is used to model power grid components. By dividing the finite working state set of components, constructing physical layer, information layer and fusion layer models, the state transition rules and paths are clarified to achieve effective management of component states.

Benefits of technology

It reduces the modeling complexity of the power grid CPS system, makes the system structure and behavior easier to understand, improves the stability and reliability of the system, and reduces fault occurrence and maintenance time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673667A
    Figure CN118673667A
Patent Text Reader

Abstract

The invention discloses a modeling method and system for CPS elements of a power distribution network based on a finite state automaton, and the method comprises the steps: extracting the working states of various CPS elements through the power distribution network, dividing a limited working state set of the CPS elements, carrying out the modeling based on the single working state of each CPS element, and determining a state transition rule of the CPS element and a transition path between working states of the CPS element. The modeling complexity of the power grid CPS system is reduced, the structure and behaviors of the system are easier to understand and describe, and engineers and researchers can develop and test the system more quickly. By effectively managing the state transition of each element, the method can improve the stability and reliability of the system. By more effectively managing the state transition and behavior of the system, the occurrence and maintenance time of system faults can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent power distribution network, and in particular to a modeling method and system for a power distribution network CPS element based on a finite state automaton. Background Art

[0002] With the continuous development of UHV technology and renewable energy applications in China, the level of intelligence of power grids, especially distribution networks, is getting higher and higher. The White Paper on Cyber-Physical Systems (2017) divides CPS into three levels: unit level, system level, and SoS (system of systems). Power grid CPS is a typical multi-level CPS. CPSs at different levels include closed-loop processes of state perception, real-time analysis, scientific decision-making, and precise execution. Regardless of how the CPS level is divided, its underlying building blocks are clear and limited.

[0003] For a huge system like the power grid CPS that includes a large number of physical and information components and complex communication protocols, sorting out the logical relationships between the various parts of the power grid CPS has become the basis and key to modeling. For each level of CPS, a finite state automaton model can be established for the "component" corresponding to each logical function. Clarifying the state set and working characteristics of massive physical and information components is the first step in realizing the modeling of power grid CPS components. Modeling the basic components of the power grid CPS is a necessary condition for power grid CPS analysis.

[0004] Therefore, it is necessary to propose a power grid CPS component modeling method based on finite state automata to clarify the model characteristics of components at each level of the power grid CPS system and provide basic support for the overall modeling and simulation analysis of the power grid CPS system. Summary of the invention

[0005] In view of the above-mentioned problems, the present invention is proposed.

[0006] Therefore, the technical problem solved by the present invention is: the power grid CPS involves the field of complex physical and computing systems interacting with each other. Through the method based on finite state automata, the power grid components can be modeled more effectively, thereby reducing the complexity of modeling and making the system easier to understand and manage. In the power grid system, various components may be in different states, such as normal operation, failure, restart, etc. Through the modeling method of finite state automata, the state transition of each component can be more effectively managed, the state change can be accurately identified, and corresponding measures can be taken to maintain the stability and reliability of the system.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a modeling method of CPS components of distribution network based on finite state automata, comprising:

[0008] The working status of various CPS components is extracted through the distribution network, and a limited set of working status of CPS components is divided;

[0009] Modeling based on the single working state of each CPS component;

[0010] Clarify the state transition rules of CPS components and the transfer paths between various working states of CPS components.

[0011] As a preferred scheme of the modeling method of CPS elements of distribution network based on finite state automaton described in the present invention, wherein: dividing the finite working state set of CPS elements includes extracting the working state of CPS elements based on the internal working mechanism of CPS elements, and defining a finite state set of CPS elements, while ensuring that the physical dynamic evolution process of CPS elements has the same expression form under a single working state, and the CPS elements are in only one operating state at any time.

[0012] As a preferred solution of the modeling method of the distribution network CPS element based on the finite state automaton described in the present invention, wherein: modeling based on the single working state of various CPS elements includes the construction of the distribution network physical layer element model, the construction of the distribution network information layer element model, and the construction of the distribution network fusion layer element model;

[0013] The physical layer component models of the distribution network include circuit breaker component models, dynamic load models, wind turbine component models, and photovoltaic inverter component models;

[0014] The circuit breaker element model includes circuit breaker element state, circuit breaker element state transition rules, circuit breaker element properties and circuit breaker element working functions;

[0015] The circuit breaker component status includes the following four working states:

[0016] S0: The equipment is operating normally and is in the disconnected state. At this time, no current flows through the circuit breaker.

[0017] S1: The device is operating normally and is in the closed state, allowing current to flow;

[0018] S2: The equipment is in standby mode and does not participate in grid operation;

[0019] S3: The device is in a faulty state and cannot operate normally;

[0020] The circuit breaker element state transition rules include:

[0021] From S0 to S1: When a closing command is received, the circuit breaker switches from the open state to the closed state.

[0022] From S1 to S0: When receiving the opening command, the circuit breaker changes from the closed state to the open state.

[0023] From any state to S2: When performing inspection or scheduled maintenance, the circuit breaker enters the standby state.

[0024] From any state to S3: When the circuit breaker fails, it enters the fault state.

[0025] The circuit breaker element attributes include, I1 and I2 respectively represent the currents at the left and right ends of the circuit breaker element, U1 and U2 respectively represent the voltages at the left and right ends of the circuit breaker element, the input includes a control signal for instructing the closing or opening of the circuit breaker element, and the output includes the voltage and current at both ends of the circuit breaker element;

[0026] The working function of the circuit breaker element includes: The working function of the circuit breaker element describes the physical behavior of the circuit breaker element in different states:

[0027] S0 state: the circuit breaker is in the disconnected state, and the currents I1 and I2 at both ends are 0;

[0028] S1 state: the circuit breaker is closed, allowing current to pass through. At this time, U1 and U1 are equal, and I1 is equal to I2, indicating that the current passes continuously;

[0029] S2 state: standby state, disconnected state, currents I1 and I2 are 0;

[0030] S3 state: fault state, currents I1 and I2 are 0, and the circuit breaker cannot perform any operation;

[0031] The dynamic load model includes the dynamic load element state, the dynamic load element state transfer rule, the dynamic load element attribute and the dynamic load element work function;

[0032] The dynamic load element status includes the following three working states:

[0033] Son: The equipment is operating normally, the load is turned on, and power is consumed;

[0034] Soff: The equipment is operating normally, the load is turned off, and no power is consumed;

[0035] Sfail: The equipment fails and cannot operate normally. Regardless of the state of the load switch, the load cannot be turned on;

[0036] The dynamic load element state transition rules include, the dynamic load element state transition rules describe the dynamic changes between load states: from Son to Soff: shutting down the load through an event;

[0037] From Soff to Son: Load initiation through events;

[0038] From Son or Soff to Sfail: A failure occurs in the running or dormant state, making the load unable to work normally;

[0039] From Sfail to Soff: After the fault is repaired, the load returns to the dormant state;

[0040] Dynamic load element properties include: power S reflects the energy consumption of the load, voltage U indicates that the voltage across the load affects the power consumption of the load;

[0041] The working function of a dynamic load element includes:

[0042] Son state: Power P is related to the impedance Z and voltage U of the load. The impedance Z may change due to changes in voltage and frequency. The power P can be expressed as P(Z,U), which is the basic working characteristic of the load;

[0043] Soff state: load is off, power S=0;

[0044] Sfail state: due to a fault, the load cannot consume any electric energy, and the power S = 0;

[0045] The wind turbine component model includes wind turbine component states, wind turbine component state transfer rules, wind turbine component properties and wind turbine component work functions;

[0046] Wind turbine component states include the following four states:

[0047] Srun: running state, wind turbine components operate normally and generate electricity;

[0048] Spause: Pause state, the wind turbine element is in standby mode, not generating electricity but ready to restart at any time;

[0049] Sstop: shutdown state, the wind turbine components are completely stopped due to planned maintenance or non-emergency situations such as low wind speed;

[0050] Semergency: Emergency shutdown state, due to system failure or extreme weather conditions, wind turbine components need to stop operating immediately to prevent equipment damage;

[0051] The state transition rules of wind turbine components include:

[0052] From Srun to Spause: Switch from the running state to the paused state after system debugging or minor fault repair;

[0053] From Srun or Spause to Sstop: When the wind speed is too low or the system detects a non-urgent repairable fault, it changes from the running or pause state to the stop state;

[0054] From Srun, Spause, or Sstop to Semergency: In case of an emergency failure, immediately switch to the emergency stop state;

[0055] From any state to Srun: Only under normal conditions, the wind turbine element is restored from the paused or stopped state to the running state;

[0056] The properties of wind turbine components include: wind speed v represents the input parameter of the wind turbine, which determines the operating capacity of the generator, voltage U represents the voltage generated by the wind turbine, and power P represents the actual power output by the wind turbine;

[0057] The working function of a wind turbine generator element includes:

[0058] Srun state: power P is related to wind speed v;

[0059] Spause state: the fan is in standby mode and does not generate power, P = 0;

[0060] Sstop state: the fan is stopped and does not generate power, P = 0;

[0061] Semergency state: emergency shutdown, the fan does not generate power, P = 0;

[0062] The photovoltaic inverter component model includes photovoltaic inverter component states, photovoltaic inverter component state transition rules, photovoltaic inverter component properties and photovoltaic inverter component work functions;

[0063] The status of photovoltaic inverter components includes the following five states:

[0064] Sready state: The inverter is ready to start running and waiting for the start signal;

[0065] Ssleep state: the inverter is inactive and does not generate output;

[0066] Srun working state: the inverter is active and converts power;

[0067] Slimit restriction state: The inverter is in a restricted operation state and the output power is limited;

[0068] Sfault fault state: the inverter stops working due to a fault;

[0069] The state transition rules of photovoltaic inverter components include:

[0070] From Sready to Ssleep: The system does not receive a start signal during the waiting period;

[0071] From Ssleep to Srun: When the inverter receives a start signal and the input voltage is higher than the threshold;

[0072] From Srun to Slimit: When the output power reaches the preset upper limit or other parameters are abnormal;

[0073] From any state to Sfault: when the inverter detects any fault;

[0074] From Sfault to Sready: When the fault is repaired, the inverter is ready to resume operation;

[0075] PV inverter component properties include input voltage U in Represents the DC voltage generated by the photovoltaic panel, input power P in Represents the power input of the photovoltaic panel, and the output power P out Indicates the AC power supplied to the grid after conversion by the inverter;

[0076] The working functions of photovoltaic inverter components include:

[0077] Sready state: The inverter is in standby mode, output power P out =0;

[0078] Ssleep state: The inverter is in sleep state, and the output power P out =0.

[0079] Srun state: The inverter calculates the maximum output power according to the input and the set maximum power point MPPT algorithm, that is, P out =max{P(U)}, where P(U) represents a function according to voltage.

[0080] Slimit state: output power is limited, P out =P thresh , where P thresh Indicates the preset power threshold.

[0081] Sfault state: shutdown due to fault, output power is zero, P out =0.

[0082] As a preferred solution of the modeling method of the distribution network CPS element based on the finite state automaton described in the present invention, wherein: the distribution network information layer element model includes a switch element model and a control terminal element model;

[0083] The switch element model includes switch element states, switch element state transition rules, switch element working process and switch element working network security;

[0084] The switch element status includes the following two states:

[0085] S0 Normal operation: In this state, the switch normally generates IP address tables and distributes messages, and normally handles network traffic and communication between devices;

[0086] S1 Failure: In this state, the switch cannot perform its functions properly due to hardware problems;

[0087] The switch element state transition rules include:

[0088] From S0 to S1: When the switch detects a fault or is attacked, it moves from the normal operation state to the fault state;

[0089] From S1 to S0: After the device is restarted or the problem is solved, the switch element recovers from the fault state to the normal operation state;

[0090] The working process of the switch element includes, generating an IP address table: the switch actively sends a snoop message to all network segments;

[0091] Distribute messages: Based on the generated IP address table, the switch is responsible for correctly distributing the received messages to the corresponding devices according to the destination IP address;

[0092] Switch component working network security includes,Hardware attack handling: Switch overheating or conductivity problems are prevented through proper hardware maintenance and environmental control.

[0093] Software attack processing: DDoS attacks or cache tampering, using security protocols and software defense measures to ensure the security of switches and networks;

[0094] The control terminal component model includes the control terminal component state, the control terminal component state transfer rule and the control terminal component work function logic;

[0095] The control terminal element status includes the following five states:

[0096] S0: The equipment operates normally, and the remote control and remote signaling functions are normal;

[0097] S1: Remote control function fails, remote signaling function is normal;

[0098] S2: Remote signaling function fails, remote control function is normal;

[0099] S3: The device is in standby state;

[0100] S4: Both remote control and remote signaling functions are invalid;

[0101] The control terminal element state transition rules include: The control terminal element state transition rules describe the flow of the control terminal between different functional states, which change due to the operation problems of the control terminal element or external commands:

[0102] From S0 to S1 or S2: when the corresponding function fails;

[0103] From S1 or S2 to S3: When the equipment needs to enter the standby state due to a failure;

[0104] From any state to S4: when both remote control and remote signaling functions are ineffective;

[0105] Return from S3 to S0, S1, S2: When the device is restored from the standby state and the relevant functions are restored;

[0106] The working function logic of the control terminal element includes: the core function of the control terminal element is to process and transmit the control signal, and the switching operation of the device includes the following operations:

[0107] In state S0: receiving control signal X(t) and current circuit breaker state S(t);

[0108] If X(t) and S(t) do not match, a control signal Y(t) is generated to change the circuit breaker state;

[0109] If X(t) and S(t) match, no operation is performed, that is, Y(t) is empty;

[0110] In S1 state: only remote signaling function is processed, no control output is generated;

[0111] In S2 state: only remote control functions are processed, control signals can be generated but feedback cannot be received;

[0112] In S3 state: the device is in standby state and does not perform any function;

[0113] In S4 state: all functions fail, no control or communication capability.

[0114] As a preferred solution of the modeling method of the distribution network CPS element based on the finite state automaton described in the present invention, wherein: the distribution network fusion layer element model includes a DTU element model, a differential protection element model, and a current sensor model;

[0115] The DTU component model includes DTU component status, DTU component status transition rules and DTU component working functions;

[0116] DTU component status includes:

[0117] In the normal operation state Srun, functions a and b both work normally;

[0118] In other states, function a or b fails, or both fail at the same time, or the device needs to be restarted / repaired, or suffers from false data injection attack;

[0119] The DTU component state transition rules include: The DTU component state transition rules describe the changes in the DTU state when different events occur:

[0120] From the normal operation state Srun to other states: when a function fails, it enters the corresponding error state Serr-a or Serr-b; when two functions fail at the same time, it enters the dual function failure state Sstp; when the device is attacked by false data injection, it enters the false data injection state SFDI;

[0121] From error state to restart / maintenance state Srst: When the device needs to be restarted or repaired, it enters the restart / maintenance state from the error state Serr-a, Serr-b, Sstp;

[0122] From false data injection state to data isolation state: When the device is attacked by false data injection, data isolation can be performed to protect system data security;

[0123] The DTU component working functions include:

[0124] In the normal operation state Srun, functions a and b both work normally;

[0125] In other states, function a or b fails, or both fail at the same time, or the device needs to be restarted / repaired, or suffers from false data injection attack;

[0126] The differential protection element includes a differential protection element state, a differential protection element state transition rule and a differential protection element working function;

[0127] The differential protection element status includes the following three states:

[0128] S0: The device is operating normally;

[0129] S1: The device fails;

[0130] S2: Equipment restart / maintenance;

[0131] The state transition rules of differential protection elements include:

[0132] From normal operation state S0 to other states: when the equipment fails S1, it enters the fault state;

[0133] When the equipment needs to be restarted or repaired, S2 starts restarting or repairing the equipment;

[0134] From fault state S1 to normal operating state S0: When the fault has been repaired, it returns to normal operating state S0;

[0135] The working function of the differential protection element is expressed as:

[0136] In normal operation state S0, the working function of the differential protection element model is expressed as:

[0137]

[0138] Among them, I in Indicates the input current, I out Represents the output current, I thresh Indicates the preset current;

[0139] In the fault state S1 and the restart / maintenance state S2, the differential protection element model fails and has no working function;

[0140] The current sensor element model includes a current sensor element state, a current sensor element state transition rule and a current sensor element working function;

[0141] The current sensor element status includes the following two states:

[0142] Snormal: normal state; Sabnormal: failure state;

[0143] The state transition rules of the current sensor element include: from the failure state Sabnormal to the normal state Snormal: when the function is restored, it is transferred from the failure state to the normal state;

[0144] The working function of the current sensor element includes: the working characteristics of the current sensor element describe the characteristics under normal working and failure conditions, but there is no specific formula description. Under normal conditions, it can accurately measure the current value of the object; while under failure conditions, its output is always 0.

[0145] As a preferred solution of the modeling method of the CPS element of the distribution network based on the finite state automaton described in the present invention, wherein: the state transition rules of the CPS element and the transfer paths between the various working states of the CPS element are clarified, including the state transition caused by the external driving conditions of the same type of element, such as the state transition of the information element caused by the information content and the communication volume, and the state transition of the power element caused by the power flow;

[0146] State transitions caused by external driving conditions of different types of components.

[0147] As a preferred solution of the modeling method of the CPS element of the distribution network based on the finite state automaton described in the present invention, wherein: the state transition rules of the CPS element and the transfer paths between the various working states of the CPS element are clarified, and also include a finite state set of the element described by the basic state finite machine model, a set of events affecting the state of the CPS element, and a mapping function of the events affecting the state of the CPS element to the state migration of the CPS element; based on the functional analysis of the power CPS equipment, a finite state set of the CPS element and a method for extracting the working characteristics under each state are proposed, and the state transfer rules of the power CPS finite state machine element are designed;

[0148] Based on the finite state machine, the component properties and working functions are extended, and a finite state machine modeling method for the expansion board is proposed. In addition to characterizing the CPS component state and the impact of events that affect the CPS component state, the finite state machine of the expansion board also considers the continuous dynamic characteristics of the components under specific states, as well as the input and output properties.

[0149] A modeling system for CPS components of distribution network based on finite state automata, wherein:

[0150] The acquisition module extracts the working status of various CPS components through the distribution network and divides the limited working status set of CPS components;

[0151] Modeling module, which models various CPS components based on their single working states;

[0152] The rule module clarifies the state transition rules of CPS components and the transfer paths between various working states of CPS components.

[0153] A computer device comprises: a memory and a processor; the memory stores a computer program, wherein the processor implements the steps of any one of the methods of the present invention when executing the computer program.

[0154] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any one of the methods of the present invention.

[0155] Beneficial effects of the present invention: The modeling method of the CPS components of the power distribution network based on the finite state automaton provided by the present invention can reduce the modeling complexity of the power grid CPS system, make the structure and behavior of the system easier to understand and describe, and help engineers and researchers develop and test the system more quickly. By effectively managing the state transitions of each component, this method can improve the stability and reliability of the system. By more effectively managing the state transitions and behaviors of the system, the occurrence of system failures and maintenance time can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0156] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0157] Figure 1 An overall flow chart of a modeling method for a CPS component of a distribution network based on a finite state automaton provided in the first embodiment of the present invention;

[0158] Figure 2 A schematic diagram of component state transition in a modeling method for distribution network CPS components based on finite state automata provided in a second embodiment of the present invention;

[0159] Figure 3 A state transition diagram of a circuit breaker component model of a modeling method of a distribution network CPS component based on a finite state automaton provided in a first embodiment of the present invention;

[0160] Figure 4 A finite state transition diagram of a dynamic load element of a modeling method of a distribution network CPS element based on a finite state automaton provided in the first embodiment of the present invention;

[0161] Figure 5 A finite state transition diagram of a wind turbine generator according to a modeling method of a distribution network CPS component based on a finite state automaton provided in the first embodiment of the present invention;

[0162] Figure 6 A finite state transition diagram of a photovoltaic inverter according to a modeling method of a distribution network CPS component based on a finite state automaton provided in the first embodiment of the present invention;

[0163] Figure 7 A finite state transition diagram of a switch according to a modeling method of a distribution network CPS element based on a finite state automaton provided in the first embodiment of the present invention;

[0164] Figure 8 A control terminal finite state transition diagram of a modeling method of a distribution network CPS element based on a finite state automaton provided in the first embodiment of the present invention;

[0165] Fig. 9 A DTU finite state transition diagram of a modeling method of a distribution network CPS component based on a finite state automaton provided in the first embodiment of the present invention;

[0166] Fig.10A finite state transition diagram of a differential protection element according to a modeling method of a distribution network CPS element based on a finite state automaton provided in the first embodiment of the present invention;

[0167] Fig.11 A finite state transition diagram of a current sensor according to a modeling method of a distribution network CPS component based on a finite state automaton is provided in the first embodiment of the present invention. DETAILED DESCRIPTION

[0168] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0169] Example 1

[0170] Reference Figure 1 , as an embodiment of the present invention, provides a modeling method for CPS components of a distribution network based on a finite state automaton, comprising:

[0171] S1: Extract the working status of various CPS components through the distribution network and divide the limited working status set of CPS components.

[0172] Aiming at the internal working mechanism of the components, the working status of various components, such as startup, shutdown, abnormality, etc., are extracted, and a finite state set of each component is defined. The components are divided into a finite set of working states to ensure that under a single working state, the physical dynamic evolution process of the component has the same expression form, and the component is in and only in one operating state at any time.

[0173] S2: Modeling based on a single working state of each type of CPS component.

[0174] The operating characteristics and input / output quantities of various components under different working conditions are defined, and the function representation of various working conditions is defined as the working function of the component. The working function in one state is expressed using a continuous function or a specific value, and a suitable model is used to integrate the information process and physical process of the component under each single working state.

[0175] Specific modeling process of power grid CPS components:

[0176] Specific modeling process of power grid CPS components:

[0177] Construction of physical layer component model of distribution network

[0178] breaker

[0179] 1) Component status

[0180] The circuit breaker component model is set to have two functions: "open" and "close". The circuit breaker component model receives command control from control terminals, protection devices, DTUs and other equipment; when a fault occurs or a maintenance plan is executed, it receives physical operations from the operation and maintenance personnel and suspends receiving command control. The flow data of the circuit breaker component model can be measured by current transformers and voltage transformers, and the circuit breaker component model and other primary equipment component models jointly realize flow transmission.

[0181] (1) S0, the device is operating normally and is in the disconnected state;

[0182] (2) S1, the equipment is operating normally and is in the closed state;

[0183] (3) S2, the equipment is in standby state;

[0184] (4) S3, the device is in a fault state.

[0185] 2) State Transfer

[0186] The state transition process of the circuit breaker component model is shown in the following table.

[0187] Table 1-1 Circuit breaker state transition rules

[0188]

[0189] 3) Component properties

[0190] The properties of the circuit breaker element include the left and right end currents I1 and I2, the left and right end voltages U1 and U2, the input includes the control signal, and the output is the voltage and current U1, U2, I1, I2 at both ends.

[0191] 4) Work function

[0192] (1) The working function of the circuit breaker component model in the S0 state is I1=I2=0.

[0193] (2) The working function of the circuit breaker element model in the S1 state is U1-U2=0, I1=I2.

[0194] (3) The circuit breaker element model working function in the S2 state is I1=I2=0.

[0195] The circuit breaker element model working function I1=I2=0 in the S3 state.

[0196] 1.2 Dynamic load

[0197] 1) Component status

[0198] The dynamic characteristics of dynamic loads reflect the characteristics of load power changes when voltage and frequency change sharply. When the voltage changes over a large range at a faster speed, the use of static load models will lead to large calculation errors in the future, especially for those nodes that are sensitive to composite membrane properties, dynamic models must be used. Therefore, the dynamic characteristics of the load are mainly determined by the transient process of the induction motor in the load. This type of load often has three working states:

[0199] (1) Son: The equipment operates normally, the load is turned on, and power is consumed.

[0200] (2) Soff: The equipment operates normally, the load is turned off, and no power is consumed.

[0201] (3) Sfail: The equipment fails and cannot operate normally. The load cannot be turned on regardless of whether the switch is open or closed.

[0202] 2) State transfer

[0203] Switching from Son to Soff is done by shutting down the load through an event, while switching from Soff to Son is done by starting the load through an event. Switching from Son to Sfail means that a fault occurs when the load is working, and the load cannot work normally at this time. Switching from Soff to Sfail means that a fault occurs when the load is dormant, and it cannot work normally even if the load switch is started. Switching from Sfail to Soff means that after the load is repaired, the load remains in dormant state after resuming working state.

[0204] The state transition rules of dynamic load are shown in the following table.

[0205] Table 1-2 Dynamic load state conversion rules

[0206]

[0207] 3) Component properties

[0208] The properties of dynamic load components include power S and voltage U.

[0209] 4) Work function

[0210] (1) When the power supply is in normal operation and in Son, its power consumption characteristics are related to its own impedance Z, and the impedance will change greatly. Z is related to the supply voltage U and frequency f. Therefore, the power P is a function P(Z, U).

[0211] S=P(Z,U) (1-1)

[0212] (2) Normal operation and the off state Soff working function is S=0.

[0213] (3) The working function of the fault state Sfail is S=0.

[0214] 1.3 Wind turbine

[0215] 1) Component status

[0216] The operating state of the wind turbine is at the highest level, and the emergency shutdown state is at the lowest level. The operating state can only be improved layer by layer, and the operating state can be reduced by one or more layers. When the system detects a fault during the state transition, it automatically enters the shutdown state. When a fault is detected and fatal, it goes directly from the operating state to the emergency state. Finite state set of wind turbine components:

[0217] (1) Srun, running status

[0218] (2) Spause, pause state

[0219] (3) Sstop, shutdown state

[0220] (4) Semergency, emergency shutdown state

[0221] 2) State transfer

[0222] Table 1-3 Wind turbine state transition rules

[0223]

[0224] 3) Component properties

[0225] The input of wind turbine components is wind speed v, and the output is voltage U and power P.

[0226] 4) Work function

[0227] (1) In Srun state:

[0228] P = f(v) (1-2)

[0229] Where is the wind turbine output power curve.

[0230] (2) In Sparse state, P=0.

[0231] (3) In Sstop state, P=0.

[0232] (4) In the Semergency state, P=0.

[0233] 1.4 Photovoltaic Inverter

[0234] 1) Component status

[0235] A photovoltaic inverter (PV inverter or solar inverter) is an inverter that can convert the variable DC voltage generated by photovoltaic (PV) solar panels into mains frequency alternating current (AC), which can be fed back to the commercial transmission system or used for off-grid power grids.

[0236] The operation process of a single-phase two-level inverter can be divided into five states:

[0237] (1) Sready, ready state

[0238] (2) Ssleep, sleep state

[0239] (3) Srun, working status

[0240] (4) Slimit, limit status

[0241] (5) Sfault, fault status

[0242] 2) State transfer

[0243] The transfer rules of PV inverter component states are shown in the following table.

[0244] PV inverter status table 1-4

[0245]

[0246] 3) Component properties

[0247] The input of the photovoltaic inverter is the input voltage Uin and the input power Pin, and the output is the output power Pout.

[0248] 4) Work function

[0249] In the working state and the limiting state, when light shines on the photovoltaic cell, the cell will generate a voltage. The maximum power point voltage can be calculated based on the volt-ampere characteristic curve, and the battery will output the corresponding current and power.

[0250] (1) The working function in the Sready state is Pout=0.

[0251] (2) The working function in the Ssleep state is Pout=0.

[0252] (3) The working function Pout in the Srun state is P(U)=max{P(U)}, which is the highest point of the P(U) curve of the photovoltaic panel under the current temperature conditions.

[0253] (4) The working function in the Slimit state is Pout=Pthresh, where Pthresh is the output power threshold.

[0254] (5) The working function in the Sfault state is Pout=0.

[0255] 2. Construction of distribution network information layer component model

[0256] 2.1 Switch

[0257] 1) Component status

[0258] The switch is set to have two functions, function 1 "generate IP address table" and function 2 "distribute message". The switch first generates the cache address table of function 1, and then completes the message forwarding of function 2. The switch matches the destination IP according to the generated IP address table and sends the message to the target device such as DTU normally. At the same time, the switch may be subject to hardware attacks such as overheating and electrical conduction, and may also be subject to network attacks such as tampering with the cache table, DDOS, and limiting the cache capacity.

[0259] (1) S0, normal operation;

[0260] (2) S1, fault occurs;

[0261] 2) State transfer

[0262] The state transition process of the switch element model is shown in the following table.

[0263] Table 2-1 Switch state transition rules

[0264]

[0265] The master station or the slave station sends a message to the switch, and the switch distributes the message according to the destination IP address in the message. In this process, the switch works in two steps. The first step is to actively send monitoring messages to the entire network segment to generate an IP address table within a limited time; then it switches to passive monitoring. Once a new device is added to the network segment, the IP address table is passively updated. The second step is that under the matching of the complete IP address table, the switch distributes the message from the master station or the slave station to the target device.

[0266] 1.2 Control Terminal

[0267] 1) Component status

[0268] The control terminal is set to have only control functions. When the function fails, the upper device decides whether to restart the control terminal immediately. The control terminal component model receives control signals from the master station and the substation, and then sends the control signals to the primary equipment component models such as circuit breakers, tie switches, and section switches.

[0269] (1) S0: The equipment operates normally, and the remote control and remote signaling functions are normal;

[0270] (2) S1, fault occurs, remote control function fails, remote signaling function is normal;

[0271] (3) S2, fault occurs, remote signaling function fails, remote control function is normal;

[0272] (4) S3, equipment standby state;

[0273] (5) S4, a fault occurs, and both remote control and remote signaling functions fail.

[0274] 2) State transfer

[0275] The state transition process of the control terminal component model is shown in the following table.

[0276] Table 2-2 Control terminal state transition rules

[0277]

[0278] Take the control terminal controlling the circuit breaker as an example. The master station / substation sends a signal X(t) to the control terminal. Its value of 0 means "execute the switch opening action", and its value of 1 means "execute the switch closing action". The current state S(t) of the circuit breaker stored in the control terminal is the state of the circuit breaker at the previous moment. 0 means the circuit breaker is open, and 1 means the circuit breaker is closed. The control terminal performs a command legitimacy check based on the combination logic of X(t) and S(t), and then sends a control signal Y(t) to the circuit breaker: when the values ​​of X(t) and S(t) are different, the circuit breaker is activated. When the value of Y(t) is 0, the switch is opened. When the value of Y(t) is 1, the switch is closed, and S(t) is uploaded to the master station / substation; when the values ​​of X(t) and S(t) are the same, the circuit breaker does not act, that is, Y(t) is empty, the logic of the control command is wrong, and S(t) is uploaded to the master station / substation.

[0279] (1) The working function of the control terminal in the S0 state is as shown in equations (2-31)-(2-32). Equation (2-31) is the working function of the remote control function, and equation (2-32) is the working function of the remote signaling function.

[0280]

[0281]

[0282] stS(t0)={0,1}

[0283] 3. Construction of distribution network fusion layer component model

[0284] 3.1DTU

[0285] 1) Component status

[0286] The DTU is set to have two functions a (control) and b (measurement). The two functions run independently of each other. When a function fails, the master station / slave station decides whether to restart / repair the DTU immediately.

[0287] DTU finite state set

[0288] (1) Srun, the equipment is running normally, and functions a and b are both normal;

[0289] (2) Serr-a, the device fails, function a fails, and function b is normal;

[0290] (3) Serr-b, the device fails, function a is normal, and function b fails;

[0291] (4) Sstp, the device fails, and both functions a and b fail;

[0292] (5) Srst, equipment restart / maintenance.

[0293] (6) SFDI, the device is attacked by false data injection. The device operates normally, functions a and b are normal, but the uploaded data is tampered.

[0294] 2) State Transfer

[0295] The state transition rules of DTU are event-driven, as shown in the following table.

[0296] Table 3-1 DTU state transition rules

[0297]

[0298] 3.2 Differential protection elements

[0299] 1) Component status

[0300] The differential device is set to have a function to perform a "disconnect" action when the current value measured by the protection device exceeds the protection setting value. It is controlled by the master station / substation and other equipment. When the differential protection element fails, the master station / substation decides whether to immediately restart / repair the measuring device.

[0301] Differential protection finite state set:

[0302] (1) S0, equipment operates normally;

[0303] (2) S1, equipment failure;

[0304] (3) S2, equipment restart / maintenance.

[0305] 2) State Transfer

[0306] The state transition rules of the differential protection element model are shown in the following table.

[0307] Table 3-2 State transition rules of differential protection element model

[0308]

[0309] 3) Component properties

[0310] The differential protection device collects the current difference between the two ends of the power primary equipment and sets the protection setting value X(t) = (I in (t),I out (t)), where I in (t) and I out (t) are the current sensing quantities on both sides. Comparison of differential protection devices |I1(t)-I2(t)| With the set protection setting I thresh (t) The protection command Y(t) is issued. If its value is 1, the action is executed to disconnect the protection device. If its value is empty, the differential protection device does not act.

[0311] 4) Work function

[0312] (1) Working function of the differential protection element model in the S0 state:

[0313]

[0314] (2) In the S1 and S2 states, the differential protection element model fails and has no working function.

[0315] 3.3 Current Sensor

[0316] 1) Component status

[0317] The current sensor is used to sense the current state, which is divided into normal operation and functional failure. The state can be detected by connecting an ammeter or other detection instrument. The finite state set of the current sensor is:

[0318] (1) S abnormal , failure state

[0319] (2) S normal , normal state

[0320] 2) State transfer

[0321] The state transition rule of the current sensor satisfies the following process.

[0322] Table 3-3 Current sensor state transition rules

[0323]

[0324]

[0325] The extended working attribute of the current sensor is whether it works normally. For the system, the input quantity of the current sensor is the current value (physical quantity) of the object it collects, and the output quantity is the collected measurement value.

[0326] For the current sensor, S normal In the state, its working characteristic is that it can accurately measure the current value of the object. S abnormal In this state, the current sensor cannot work normally, and its working characteristic is that the measured value is always 0. Considering that this is a functional description, a specific formula is not used to describe its working characteristics.

[0327] See also Figure 2 It is a detailed description of the component state conversion method of the power grid CPS component modeling method based on finite state automaton of the present invention, which is specifically explained as follows:

[0328] The finite state machine model has Markov properties, so its state transition rules can be summarized into three elements, namely the current state, conditions, and next state. The "initial state" and "conditions" are causes, and the "next state" is the result.

[0329] (1) Initial state: refers to the current working state.

[0330] (2) Condition: refers to a set of inputs that can change the state of the current finite automaton model. When the input meets a specific value range, a state transition will be triggered.

[0331] (3) Secondary state: the new state to be moved to after the conditions are met. The "secondary state" is relative to the "initial state". Once the "secondary state" is activated, it will transform into the new "initial state".

[0332] S3: Clarify the state transition rules of CPS components and the transfer paths between various working states of CPS components.

[0333] Aiming at the external interaction control mechanism between components, the state transition rules of various types of power and information components under different external driving conditions are clarified, including: state transitions caused by external driving conditions of components of the same type, such as information component state transitions caused by information content and communication volume, and power component state transitions caused by power flow; state transitions caused by external driving conditions of different types of components; component state changes, including changes in its own physical state and changes in its working logic, using a finite state machine model (i.e., a mathematical model that represents a finite number of states and behaviors such as transfers and actions between these states) to set component states and transition rules between states, and condense state transition functions.

[0334] The rules of state transfer are limited between the initial state and the next state, which is specifically manifested in selecting the corresponding execution action according to the triggering conditions, while the state transition function is the abstract rule of each state transition.

[0335] In power grid CPS, trigger conditions can be simply divided into two categories: (1) time-driven. For example, the supervisory control and data acquisition system (SCADA) completes the process of information collection, information communication, command calculation, and control issuance according to a fixed working cycle, and each driving condition has a clear time scale; (2) event-driven. State transfer is driven by information system events (such as sudden communication system failures) and physical system events (such as line short circuits, frequency limit violations, etc.). Since the occurrence of events is accidental, event-driven does not rely on time scales.

[0336] The basic state finite machine model describes the finite state set of components, the set of events that affect the component states, and the mapping function of events to component state transitions. Based on the functional analysis of power CPS equipment, a method for extracting the finite state set of components and the working characteristics under each state is proposed, and the component state transition rules of the power CPS finite state machine are designed. On the basis of the basic finite state machine, the component properties and working functions are expanded, and a finite state machine modeling method for the expansion board is proposed. In addition to describing the component state and event impact, the finite state machine of the expansion board also considers the continuous dynamic characteristics of the components under specific states, as well as the input and output properties.

[0337] On the other hand, this embodiment also provides a modeling system for distribution network CPS elements based on finite state automata, which includes:

[0338] The acquisition module extracts the working status of various CPS components through the distribution network and divides the limited working status set of CPS components.

[0339] The modeling module is used to model the single working state of various CPS components.

[0340] The rule module clarifies the state transition rules of CPS components and the transfer paths between various working states of CPS components.

[0341] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0342] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0343] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0344] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0345] Example 2

[0346] An embodiment of the present invention provides a modeling method for CPS components of a distribution network based on a finite state automaton. In order to verify the beneficial effects of the present invention, a scientific demonstration is carried out through simulation experiments.

[0347] The test was conducted in a simulated distribution network. Taking various CPS components in the distribution network as the object, by extracting their working status data, and modeling and analyzing based on the method of the present invention, the current changes in the power grid are simulated, including normal and abnormal conditions, and the output signal strength of the current sensor is recorded. The working state of the protection device is changed to observe its protective effect on the power grid. The ambient temperature is adjusted to observe the changes in the working state of the CPS components. A simulation environment is set up, including a simulated power grid, protection device, current sensor, and CPS components. The power grid is simulated under different conditions and the experimental data is recorded. The experimental data is analyzed to evaluate the effectiveness of the modeling method of the present invention. The experimental results are shown in Table 1.

[0348] Table 1 Experimental table

[0349]

[0350] Experimental results show that the proposed modeling method can effectively describe the working state of CPS components and accurately predict the state transition rules. Our modeling method can maintain good performance under different conditions and has high applicability and versatility. By modeling and monitoring the state of CPS components, we can timely identify potential problems and risks and take appropriate measures to deal with them. This helps to improve the safety and stability of the distribution network, reduce the possibility of failures, and thus reduce the risk of system operation.

[0351] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A modeling method for CPS components of distribution network based on finite state automata, It is characterized in that include: The working status of various CPS components is extracted through the distribution network, and a limited set of working status of CPS components is divided; Modeling based on the single working state of each CPS component; Clarify the state transition rules of CPS components and the transfer paths between various working states of CPS components.

2. The modeling method of the CPS component of the distribution network based on the finite state automaton as claimed in claim 1, Features: Dividing the CPS element into a finite set of working states includes extracting the working states of the CPS element based on the internal working mechanism of the CPS element, and defining a finite set of states of the CPS element. While ensuring that the CPS element is in a single working state, the physical dynamic evolution process of the CPS element has the same expression form, and the CPS element is in only one operating state at any time.

3. The modeling method of the CPS component of the distribution network based on the finite state automaton as claimed in claim 2, Features: Modeling based on the single working state of various CPS components includes the construction of distribution network physical layer component model, distribution network information layer component model, and distribution network fusion layer component model; The physical layer component models of the distribution network include circuit breaker component models, dynamic load models, wind turbine component models, and photovoltaic inverter component models; The circuit breaker element model includes circuit breaker element state, circuit breaker element state transition rules, circuit breaker element properties and circuit breaker element working functions; The circuit breaker component status includes the following four working states: S0: The equipment is operating normally and is in the disconnected state. At this time, no current flows through the circuit breaker. S1: The device is operating normally and is in the closed state, allowing current to flow; S2: The equipment is in standby mode and does not participate in grid operation; S3: The device is in a faulty state and cannot operate normally; The circuit breaker element state transition rules include: From S0 to S1: When a closing command is received, the circuit breaker switches from the open state to the closed state; From S1 to S0: When receiving the disconnect command, the circuit breaker switches from the closed state to the open state; From any state to S2: When performing inspection or scheduled maintenance, the circuit breaker enters the standby state; From any state to S3: When the circuit breaker fails, it enters the fault state; Circuit breaker element properties include, I 1 and I 2 Respectively represent the current at the left and right ends of the circuit breaker element, U 1 and U 2 Respectively represent the voltages at the left and right ends of the circuit breaker element, the input includes a control signal for instructing the closing or opening of the circuit breaker element, and the output includes the voltage and current at both ends of the circuit breaker element; The working function of the circuit breaker element includes: The working function of the circuit breaker element describes the physical behavior of the circuit breaker element in different states: S0 state: the circuit breaker is in the disconnected state, and the current I 1 and I 2 is 0; S1 state: The circuit breaker is closed, allowing current to flow. At this time, U 1 and U 1 Equal, I 1 Equal to I 2 , indicating that the current passes continuously; S2 state: standby state, disconnected state, current I 1 and I 2 is 0; S3 state: fault state, current I 1 and I 2 When it is 0, the circuit breaker cannot perform any operation; The dynamic load model includes the dynamic load element state, the dynamic load element state transfer rule, the dynamic load element attribute and the dynamic load element work function; The dynamic load element status includes the following three working states: Son: The equipment is operating normally, the load is turned on, and power is consumed; Soff: The equipment is operating normally, the load is turned off, and no power is consumed; Sfail: The equipment fails and cannot operate normally. Regardless of the state of the load switch, the load cannot be turned on; The dynamic load element state transition rules include, the dynamic load element state transition rules describe the dynamic changes between load states: from Son to Soff: shutting down the load through an event; From Soff to Son: Load initiation through events; From Son or Soff to Sfail: A failure occurs in the running or dormant state, making the load unable to work normally; From Sfail to Soff: After the fault is repaired, the load returns to the dormant state; Dynamic load element properties include: power S reflects the energy consumption of the load, voltage U indicates that the voltage across the load affects the power consumption of the load; The working function of a dynamic load element includes: Son state: Power P is related to the impedance Z and voltage U of the load. The impedance Z may change due to changes in voltage and frequency. The power P can be expressed as P(Z,U), which is the basic working characteristic of the load; Soff state: load is off, power S=0; Sfail state: due to a fault, the load cannot consume any electric energy, and the power S = 0; The wind turbine component model includes wind turbine component states, wind turbine component state transfer rules, wind turbine component properties and wind turbine component work functions; Wind turbine component states include the following four states: Srun: running state, wind turbine components operate normally and generate electricity; Spause: Pause state, the wind turbine element is in standby mode, not generating electricity but ready to restart at any time; Sstop: shutdown state, the wind turbine components are completely stopped due to planned maintenance or non-emergency situations such as low wind speed; Semergency: Emergency shutdown state, due to system failure or extreme weather conditions, wind turbine components need to stop operating immediately to prevent equipment damage; The state transition rules of wind turbine components include: From Srun to Spause: Switch from the running state to the paused state after system debugging or minor fault repair; From Srun or Spause to Sstop: When the wind speed is too low or the system detects a non-urgent repairable fault, it changes from the running or pause state to the stop state; From Srun, Spause, or Sstop to Semergency: In case of an emergency failure, immediately switch to the emergency stop state; From any state to Srun: Only under normal conditions, the wind turbine element is restored from the paused or stopped state to the running state; The properties of wind turbine components include: wind speed v represents the input parameter of the wind turbine, which determines the operating capacity of the generator, voltage U represents the voltage generated by the wind turbine, and power P represents the actual power output by the wind turbine; The working function of a wind turbine generator element includes: Srun state: power P is related to wind speed v; Spause state: the fan is in standby mode and does not generate power, P = 0; Sstop state: the fan is stopped and does not generate power, P = 0; Semergency state: emergency shutdown, the fan does not generate power, P = 0; The photovoltaic inverter component model includes photovoltaic inverter component states, photovoltaic inverter component state transition rules, photovoltaic inverter component properties and photovoltaic inverter component work functions; The status of photovoltaic inverter components includes the following five states: Sready state: The inverter is ready to start running and waiting for the start signal; Ssleep state: the inverter is inactive and does not generate output; Srun working state: the inverter is active and converts power; Slimit restriction state: The inverter is in a restricted operation state and the output power is limited; Sfault fault state: the inverter stops working due to a fault; The state transition rules of photovoltaic inverter components include: From Sready to Ssleep: The system does not receive a start signal during the waiting period; From Ssleep to Srun: When the inverter receives a start signal and the input voltage is higher than the threshold; From Srun to Slimit: When the output power reaches the preset upper limit or other parameters are abnormal; From any state to Sfault: when the inverter detects any fault; From Sfault to Sready: When the fault is repaired, the inverter is ready to resume operation; PV inverter component properties include input voltage U in Represents the DC voltage generated by the photovoltaic panel, input power P in Represents the power input of the photovoltaic panel, and the output power P out Indicates the AC power supplied to the grid after conversion by the inverter; The working functions of photovoltaic inverter components include: Sready state: The inverter is in standby mode, output power P out =0; Ssleep state: The inverter is in sleep state, and the output power P out =0; Srun state: The inverter calculates the maximum output power according to the input and the set maximum power point MPPT algorithm, that is, P out =max{P(U)}, where P(U) represents a function according to voltage. Slimit state: output power is limited, P out =P thresh , where P thresh Indicates the preset power threshold; Sfault state: shutdown due to fault, output power is zero, P out =0.

4. The modeling method of the CPS component of the distribution network based on the finite state automaton as claimed in claim 3, Features: The component model of the information layer of the distribution network includes a switch component model and a control terminal component model; The switch element model includes switch element states, switch element state transition rules, switch element working process and switch element working network security; The switch element status includes the following two states: S0 Normal operation: In this state, the switch normally generates IP address tables and distributes messages, and normally handles network traffic and communication between devices; S1 Failure: In this state, the switch cannot perform its functions properly due to hardware problems; The switch element state transition rules include: From S0 to S1: When the switch detects a fault or is attacked, it moves from the normal operation state to the fault state; From S1 to S0: After the device is restarted or the problem is solved, the switch element recovers from the fault state to the normal operation state; The working process of the switch element includes, generating an IP address table: the switch actively sends a snoop message to all network segments; Distribute messages: Based on the generated IP address table, the switch is responsible for correctly distributing the received messages to the corresponding devices according to the destination IP address; Working network security of switch components includes,Hardware attack handling: Switch overheating or conductivity problems are prevented through proper hardware maintenance and environmental control; Software attack processing: DDoS attacks or cache tampering, using security protocols and software defense measures to ensure the security of switches and networks; The control terminal component model includes the control terminal component state, the control terminal component state transfer rule and the control terminal component work function logic; The control terminal element status includes the following five states: S0: The equipment operates normally, and the remote control and remote signaling functions are normal; S1: Remote control function fails, remote signaling function is normal; S2: Remote signaling function is invalid, but remote control function is normal; S3: The device is in standby state; S4: Both remote control and remote signaling functions are invalid; The control terminal element state transition rules include: The control terminal element state transition rules describe the flow of the control terminal between different functional states, which change due to the operation problems of the control terminal element or external commands: From S0 to S1 or S2: when the corresponding function fails; From S1 or S2 to S3: When the equipment needs to enter the standby state due to a failure; From any state to S4: when both remote control and remote signaling functions are ineffective; Return from S3 to S0, S1, S2: When the device is restored from the standby state and the relevant functions are restored; The working function logic of the control terminal element includes: the core function of the control terminal element is to process and transmit the control signal, and the switching operation of the device includes the following operations: In state S0: receiving control signal X(t) and current circuit breaker state S(t); If X(t) and S(t) do not match, a control signal Y(t) is generated to change the circuit breaker state; If X(t) and S(t) match, no operation is performed, that is, Y(t) is empty; In S1 state: only remote signaling function is processed, no control output is generated; In S2 state: only remote control functions are processed, control signals can be generated but feedback cannot be received; In S3 state: the device is in standby state and does not perform any function; In S4 state: all functions fail, no control or communication capability.

5. The modeling method of the CPS component of the distribution network based on the finite state automaton as claimed in claim 4, Features: The distribution network fusion layer component models include DTU component model, differential protection component model, and current sensor model; The DTU component model includes DTU component status, DTU component status transition rules and DTU component working functions; DTU component status includes: In the normal operation state Srun, functions a and b both work normally; In other states, function a or b fails, or both fail at the same time, or the device needs to be restarted / repaired, or suffers from false data injection attack; The DTU component state transition rules include: The DTU component state transition rules describe the changes in the DTU state when different events occur: From the normal operation state Srun to other states: when a function fails, it enters the corresponding error state Serr-a or Serr-b; when two functions fail at the same time, it enters the dual function failure state Sstp; when the device is attacked by false data injection, it enters the false data injection state SFDI; From error state to restart / maintenance state Srst: When the device needs to be restarted or repaired, it enters the restart / maintenance state from the error state Serr-a, Serr-b, Sstp; From false data injection state to data isolation state: When the device is attacked by false data injection, data isolation can be performed to protect system data security; The DTU component working functions include: In the normal operation state Srun, functions a and b both work normally; In other states, function a or b fails, or both fail at the same time, or the device needs to be restarted / repaired, or suffers from false data injection attack; The differential protection element includes a differential protection element state, a differential protection element state transition rule and a differential protection element working function; The differential protection element status includes the following three states: S0: The device is operating normally; S1: The device fails; S2: Equipment restart / maintenance; The state transition rules of differential protection elements include: From normal operation state S0 to other states: when the equipment fails S1, it enters the fault state; When the equipment needs to be restarted or repaired, S2 starts restarting or repairing the equipment; From fault state S1 to normal operating state S0: When the fault has been repaired, it returns to normal operating state S0; The working function of the differential protection element is expressed as: In normal operation state S0, the working function of the differential protection element model is expressed as: Among them, I in Indicates the input current, I out Represents the output current, I thresh Indicates the preset current; In the fault state S1 and the restart / maintenance state S2, the differential protection element model fails and has no working function; The current sensor element model includes a current sensor element state, a current sensor element state transition rule and a current sensor element working function; The current sensor element status includes the following two states: Snormal: normal state; Sabnormal: failure state; The state transition rules of the current sensor element include: from the failure state Sabnormal to the normal state Snormal: when the function is restored, it is transferred from the failure state to the normal state; The working function of the current sensor element includes: the working characteristics of the current sensor element describe the characteristics under normal working and failure conditions, but there is no specific formula description. Under normal conditions, it can accurately measure the current value of the object; while under failure conditions, its output is always 0.

6. The modeling method of the CPS component of the distribution network based on the finite state automaton according to claim 5, Features: The state transition rules of the CPS elements and the transfer paths between the various working states of the CPS elements are clarified, including the state transition caused by external driving conditions of the same type of elements, such as the state transition of information elements caused by information content and communication volume, and the state transition of power elements caused by power flow; State transitions caused by external driving conditions of different types of components.

7. The modeling method of the CPS component of the distribution network based on the finite state automaton according to claim 6, Features: The state transition rules of the CPS components and the transfer paths between the various working states of the CPS components are clarified, and the basic state finite machine model describes the finite state set of the components, the event set that affects the state of the CPS components, and the mapping function of the events that affect the state of the CPS components to the state migration of the CPS components; based on the functional analysis of the power CPS equipment, a method for extracting the finite state set of the CPS components and the working characteristics under each state is proposed, and the state transition rules of the power CPS finite state machine components are designed; Based on the finite state machine, the component properties and working functions are extended, and a finite state machine modeling method for the expansion board is proposed. In addition to characterizing the CPS component state and the impact of events that affect the CPS component state, the finite state machine of the expansion board also considers the continuous dynamic characteristics of the components under specific states, as well as the input and output properties.

8. A modeling system for CPS components of a distribution network based on a finite state automaton using the method according to any one of claims 1 to 7, Features: The acquisition module extracts the working status of various CPS components through the distribution network and divides the limited working status set of CPS components; Modeling module, which models various CPS components based on their single working states; The rule module clarifies the state transition rules of CPS components and the transfer paths between various working states of CPS components.

9. A computer device, include: A memory and a processor; the memory stores a computer program, characterized in that: when the processor executes the computer program, the steps of the modeling method of the CPS element of the distribution network based on the finite state automaton are implemented.

10. A computer-readable storage medium having a computer program stored thereon, Features: When the computer program is executed by a processor, the steps of the modeling method of the CPS element of the power distribution network based on the finite state automaton are implemented.