Energy storage inverter control method and device, medium and electronic equipment

By acquiring virtual power in the control loop of the energy storage inverter and feeding it back, seamless switching between grid-connected and grid-linked control modes of the energy storage inverter is achieved, solving the output fluctuation problem during switching and improving the stability and switching efficiency of the power system.

CN121643069APending Publication Date: 2026-03-10SOLAR POWER NETWORK TECHNOLOGY (ZHEJIANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510906933.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

When energy storage inverters switch between grid-connected control mode and grid-linked control mode, output fluctuations may occur, affecting the stability of the power system.

Method used

Under the control loop of the energy storage inverter operating in the current working mode, virtual power is obtained through the control loop of the target working mode and used as the power loop feedback input to achieve seamless switching between the two control modes.

Benefits of technology

It enables stable switching of the energy storage inverter between different operating modes, avoids output fluctuations, and improves the stability and switching efficiency of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121643069A_ABST
    Figure CN121643069A_ABST
Patent Text Reader

Abstract

The invention provides an energy storage inverter control method and device, a storage medium and electronic equipment, and the method comprises the steps: obtaining virtual power through the output of a second control ring corresponding to a target working mode under the condition that an energy storage inverter operates a first control ring corresponding to a current working mode; inputting the virtual power as a power loop feedback to a power loop of a second control loop corresponding to the target working mode so as to operate the second control loop; and when a switching instruction is received, switching the energy storage inverter from receiving the output of the first control loop to receiving the output of the second control loop so as to switch the energy storage inverter from the current working mode to the target working mode. According to the invention, seamless switching of the energy storage inverter among different working modes can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power electronics, and in particular to a control method and device for an energy storage inverter, a storage medium and an electronic device. BACKGROUND

[0002] The operation of a power system is complex and dynamic. The control mode of an energy storage inverter in the power system usually includes a grid-forming grid-connected control mode and a grid-following grid-connected control mode. The grid-forming grid-connected control mode has the advantages of real-time voltage stabilization, inertia support, voltage construction, and improvement of grid strength, but the grid-forming grid-connected control has insufficient stability under a strong grid and slow dispatching response, and the combination of the grid-following grid-connected control can play a complementary role. Therefore, in actual applications, different control modes are often switched to meet actual needs.

[0003] However, the grid-forming grid-connected control mode and the grid-following grid-connected control mode may cause output fluctuations of the energy storage inverter during mutual switching, thereby affecting the stability of the power system. SUMMARY

[0004] Therefore, the embodiments of the present application aim to provide a control method and device for an energy storage inverter, a storage medium and an electronic device to solve the problem that the output of the energy storage inverter fluctuates when the energy storage inverter is switched between different control modes in the prior art.

[0005] In one aspect, the present application provides a control method for an energy storage inverter, which comprises:

[0006] In the case that the energy storage inverter operates in a first control loop corresponding to a current working mode, a virtual power is obtained through the output of a second control loop corresponding to a target working mode;

[0007] The virtual power is input to a power loop of the second control loop corresponding to the target working mode as a power loop feedback, so as to operate the second control loop;

[0008] When a switching instruction is received, the energy storage inverter is switched from receiving the output of the first control loop to receiving the output of the second control loop, so as to switch the energy storage inverter from the current working mode to the target working mode.

[0009] In one embodiment, the current working mode is a grid-forming working mode, the target working mode is a grid-following working mode, the first control loop is a grid-forming power loop, and the second control loop is a grid-following control loop. The virtual power is obtained through the output of the second control loop corresponding to the target working mode, which comprises:

[0010] A power loop reference and a grid voltage of a grid where the energy storage inverter is located are obtained;

[0011] inputting the power loop reference to a grid-following power loop to obtain a first current loop reference output by the grid-following power loop;

[0012] determining the virtual power according to the first current loop reference and the grid voltage.

[0013] In one embodiment, the method further comprises:

[0014] inputting the power loop reference to a grid-forming power loop to obtain a virtual internal voltage and a phase angle output by the grid-forming power loop;

[0015] inputting the virtual internal voltage and the phase angle to a grid-forming voltage loop to obtain a second current loop reference output by the grid-forming voltage loop;

[0016] inputting the second current loop reference to a grid-forming current loop to obtain a second real current output by the grid-forming current loop;

[0017] determining a second real power according to the second real current and the grid voltage.

[0018] inputting the second real power as a power loop feedback to the grid-forming power loop to operate the grid-forming control loop.

[0019] In one embodiment, the current operating mode is a grid-following operating mode, the target operating mode is a grid-forming operating mode, the first control loop is a grid-following power loop, the second control loop is a grid-forming control loop, and the obtaining the virtual power through the output of the second control loop corresponding to the target operating mode comprises:

[0020] obtaining a power loop reference and a grid voltage of a grid in which the energy storage inverter is located;

[0021] inputting the power loop reference to a grid-forming power loop to obtain a virtual internal voltage and a phase angle output by the grid-forming power loop;

[0022] inputting the virtual internal voltage and the phase angle to a grid-forming voltage loop to obtain a third current loop reference output by the grid-forming voltage loop;

[0023] determining the virtual power according to the third current loop reference and the grid voltage.

[0024] In one embodiment, the method further comprises:

[0025] inputting the power loop reference to a grid-following power loop to obtain a fourth current loop reference output by the grid-following power loop;

[0026] input the fourth current loop reference to a grid-following current loop to obtain a fourth real current output by the grid-following current loop;

[0027] determine a fourth real power according to the fourth real current and the grid voltage;

[0028] input the fourth real power as power loop feedback to the grid-following power loop to operate the grid-following control loop.

[0029] In one embodiment, the current working mode is any one of the grid-forming working mode and the grid-following working mode, the target working mode is the working mode other than the current working mode in the grid-forming working mode and the grid-following working mode, and before the energy storage inverter is switched from the current working mode to the target working mode when the switching instruction is received, the method further comprises:

[0030] obtain a phase angle output by the grid-forming working mode;

[0031] perform preset coordinate system conversion on first output information output by a first current loop in the first control loop based on the phase angle to obtain converted first output information;

[0032] update second output information output by a second current loop in the second control loop to the converted first output information.

[0033] In one embodiment, the method further comprises:

[0034] obtain a voltage variation of a grid voltage of a grid in which the energy storage inverter is located within a specified time period;

[0035] generate the switching instruction according to the voltage variation.

[0036] In another aspect, the present application provides an energy storage inverter control device, the device comprising:

[0037] an obtaining module configured to obtain a virtual power when the energy storage inverter operates a first control loop corresponding to a current working mode;

[0038] an input module configured to input the virtual power as power loop feedback to a power loop of a second control loop corresponding to a target working mode to operate the second control loop;

[0039] a switching module configured to switch the energy storage inverter from receiving output of the first control loop to receiving output of the second control loop when a switching instruction is received, so as to switch the energy storage inverter from the current working mode to the target working mode.

[0040] In yet another aspect, the present application provides a computer readable storage medium having stored thereon computer executable instructions that, when executed by a processor, implement the energy storage inverter control method as described in any of the above embodiments.

[0041] In yet another aspect, the present application provides an electronic device comprising:

[0042] a processor;

[0043] a memory for storing the processor executable instructions;

[0044] the processor, configured to execute the energy storage inverter control method as described in any of the above embodiments.

[0045] Compared with the related art, the energy storage inverter control method provided by the present application has the following beneficial effects:

[0046] The energy storage inverter control method provided by the present application comprises: in the case that the energy storage inverter is running a first control loop corresponding to a current working mode, simultaneously obtaining a virtual power through an output of a second control loop corresponding to a target working mode; and inputting the virtual power as a power loop feedback to a power loop of the second control loop corresponding to the target working mode, so as to run the second control loop; when a switching instruction is received, switching the energy storage inverter from receiving an output of the first control loop to receiving an output of the second control loop, so as to switch the energy storage inverter from the current working mode to the target working mode. That is, while the first control loop corresponding to the current working mode is running, the virtual power can be used as a power loop feedback of the power loop of the second control loop, so as to run the second control loop. The first control loop and the second control loop can both be independently and stably run, and the current loop output of the first control loop and the current loop output of the second control loop in the running process can be kept substantially consistent. When it is needed to switch the working mode, only the output of the target control loop needs to be connected to the energy storage inverter. The output fluctuation problem of the energy storage inverter when the working mode is switched is avoided, and the seamless switching of the energy storage inverter between different working modes is realized. BRIEF DESCRIPTION OF DRAWINGS

[0047] Figure 1 Fig. 1 shows a flowchart of an energy storage inverter control method provided by an embodiment of the present application.

[0048] Figure 2 Fig. 2 shows a structure diagram of a tracking network power loop provided by an embodiment of the present application.

[0049] Figure 3 Fig. 3 shows a structure diagram of a network building power loop provided by an embodiment of the present application.

[0050] Figure 4Fig. 1 shows a structure diagram of a grid-following power loop and a grid-forming power loop provided by another embodiment of the present application.

[0051] Figure 5 Fig. 2 shows a switching flowchart of a flow working mode provided by an embodiment of the present application.

[0052] Figure 6 Fig. 3 shows a switching flowchart of a flow working mode provided by another embodiment of the present application.

[0053] Figure 7 Fig. 4 shows a principle block diagram of a storage inverter control device provided by an embodiment of the present application.

[0054] Figure 8 Fig. 5 shows a block diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of the present application.

[0056] In actual operation, the energy storage system needs to flexibly switch the control mode and cannot cause output fluctuation.

[0057] In the related art, when the energy storage inverter switches between the grid-forming grid-connected control mode and the grid-following grid-connected control mode, the phase reference of the grid-forming grid-connected control mode and the grid-following grid-connected control mode is mutually exclusive, and the control loop needs to be reset when switching. Usually, the system is shut down, then the control mode is switched, and then restarted. However, this switching method not only has low switching efficiency, but also causes overshoot when restarting to reestablish the voltage, thereby causing the output fluctuation problem of the energy storage inverter.

[0058] In view of the above problems, an embodiment of the present application provides an energy storage inverter control method, which can be applied to an energy storage inverter. As shown in the figure, Figure 1 The energy storage inverter control method can include:

[0059] 110、In the case that the energy storage inverter operates the first control loop corresponding to the current working mode, simultaneously obtaining the virtual power through the output of the second control loop corresponding to the target working mode.

[0060] In some embodiments, the current working mode is a grid-forming working mode, the target working mode is a grid-following working mode, the first control loop is a grid-forming power loop, and the second control loop is a grid-following control loop. In step 110, the specific implementation of obtaining the virtual power through the output of the second control loop corresponding to the target working mode can include:

[0061] A1, obtaining a power loop reference and a grid voltage of a grid where the energy storage inverter is located.

[0062] Among them, the voltage collected at the grid connection point of the energy storage inverter and the grid can be determined as the grid voltage. Illustratively, the grid voltage can include a d-axis voltage Vd and a q-axis voltage Vq. Wherein, the d-axis and the q-axis are two axes in the dq coordinate system.

[0063] Optionally, the power loop reference can be customized according to actual needs. Illustratively, the power loop reference can include an active power reference Pref and a reactive power reference Qref.

[0064] A2, inputting the power loop reference into the grid-following power loop to obtain a first current loop reference output by the grid-following power loop.

[0065] Illustratively, the grid-following power loop (hereinafter also referred to as the grid power loop) can be as shown in Figure 2 The active power reference Pref and the reactive power reference Qref can be input into the grid-following power loop to obtain a first current loop reference Idref1, Iqref1 output by the grid-following power loop, wherein Idref1 is a d-axis reference current and Iqref1 is a q-axis reference current.

[0066] A3, determining a virtual power according to the first current loop reference and the grid voltage.

[0067] Following the above example, the first current loop reference Idref1, Iqref1 can be input into a power calculation module (PQ Calc), which can calculate a virtual power based on the first current loop reference Idref1, Idref1 and the grid voltage. The virtual power includes a virtual active power Pv and a virtual reactive power Qv.

[0068] The virtual active power Pv and the virtual reactive power Qv can be input into the grid-following power loop in the grid-following control loop as power loop feedback, so that the grid-following power loop forms a closed loop. Specifically, the virtual active power Pv can be feedback in the PLL-P loop in the grid-following power loop, and the virtual reactive power Qv can be feedback in the PLL-Q loop in the grid-following power loop to form a stable closed loop.

[0069] It can be understood that, since Figure 2The power loop feedback of the grid-following power loop shown is a calculated virtual power, not a real power, thus the grid-following power loop can be regarded as a virtual grid-following power loop, which can simulate the operating condition of a real grid-following power loop based on the virtual power.

[0070] In the embodiment, the method can further include:

[0071] B1, inputting the power loop reference into the grid-forming power loop to obtain a virtual internal voltage and a phase angle output by the grid-forming power loop.

[0072] Exemplarily, the active power reference Pref and the reactive power reference Qref can be input into the grid-forming power loop shown in FIG. 2, and the virtual internal voltage E and the phase angle θ output by the grid-forming power loop can be obtained. Figure 3

[0073] B2, inputting the virtual internal voltage and the phase angle into the grid-forming voltage loop to obtain a second current loop reference output by the grid-forming voltage loop.

[0074] Exemplarily, the virtual internal voltage E and the phase angle θ can be input into the grid-forming voltage loop (such as the voltage loop in FIG. 3) and the second current loop reference Idref2, Iqref2 output by the grid-forming voltage loop can be obtained. Figure 3

[0075] B3, inputting the second current loop reference into the grid-forming current loop to obtain a second real current output by the grid-forming current loop.

[0076] Exemplarily, the second current loop reference Idref2, Iqref2 can be input into the grid-forming current loop (such as the current loop in FIG. 4) to obtain the second real current output by the grid-forming current loop. Figure 3

[0077] B4, determining a second real power according to the second real current and the grid voltage.

[0078] Exemplarily, the second real power can be calculated by multiplying the second real current and the grid voltage, and the second real power can include the active power P and the reactive power Q in FIG. 5. Figure 3

[0079] B5, inputting the second real power as the power loop feedback into the grid-forming power loop to operate the grid-forming control loop.

[0080] Exemplarily, referring back to FIG. 1, the grid-forming control loop shown in FIG. 1 can be operated by inputting the second real power as the power loop feedback into the grid-forming power loop. Figure 3 ​​​​The active power P and the reactive power Q can be input to the grid-forming power loop as power loop feedback. Specifically, the active power P can be taken as feedback of a VSG-PF loop in the grid-forming power loop, and the active power Q can be taken as feedback of a VSG-QF loop in the grid-forming power loop to form a stable closed loop, so that stable operation of the grid-forming control loop including the grid-forming power loop can be achieved.

[0081] In some other embodiments, the current working mode is the grid-following working mode, the target working mode is the grid-forming working mode, the first control loop is the grid-following power loop, and the second control loop is the grid-forming control loop. In step 110, the specific implementation of obtaining the virtual power through the output of the second control loop corresponding to the target working mode can include:

[0082] C1, obtaining a power loop reference and a grid voltage of the energy storage inverter.

[0083] The specific implementation of step C1 can refer to step A1, and thus will not be described again.

[0084] C2, inputting the power loop reference to the grid-forming power loop to obtain a virtual internal voltage and a phase angle output by the grid-forming power loop.

[0085] For example, the active power reference Pref and the reactive power reference Qref can be input to the grid-forming power loop in Figure 4 , and the virtual internal voltage E and the phase angle θ output by the grid-forming power loop can be obtained.

[0086] C3, inputting the virtual internal voltage and the phase angle to the grid-forming voltage loop to obtain a third current loop reference output by the grid-forming voltage loop.

[0087] For example, the virtual internal voltage E and the phase angle θ can be input to the grid-forming voltage loop to obtain the third current loop reference Idref3, Iqref3 output by the grid-forming voltage loop.

[0088] C4, determining the virtual power according to the third current loop reference and the grid voltage.

[0089] For example, the third current loop reference Idref3, Iqref3 can be input to the power calculation module (PQ Calc) in Figure 4 , which can calculate the virtual power based on the third current loop reference Idref3, Iqref3 and the grid voltage. The virtual power includes a virtual active power Pv and a virtual reactive power Qv.

[0090] The virtual active power Pv and the virtual reactive power Qv can be input as power loop feedback to the grid-forming power loop in the grid-forming control loop, so that the grid-forming power loop forms a closed loop.

[0091] It can be understood that, since Figure 4 the power loop feedback of the grid-forming power loop shown in FIG. 6 is the calculated virtual power, not the real power, the grid-forming power loop can be regarded as a virtual grid-forming power loop, which can simulate the operating condition of the real grid-forming power loop based on the virtual power.

[0092] In the embodiment, the method can further include:

[0093] D1, inputting the power loop reference to the grid-following power loop to obtain a fourth current loop reference output by the grid-following power loop.

[0094] Exemplarily, the active power reference Pref and the reactive power reference Qref can be input to the grid-following power loop as shown in FIG. 6, and the fourth current loop reference Idref4, Iqref4 output by the grid-following power loop can be obtained. Figure 4

[0095] D2, inputting the fourth current loop reference to the grid-following current loop to obtain a fourth real current output by the grid-following current loop.

[0096] Following the above example, the fourth current loop reference Idref4, Iqref4 can be input to the current loop in the grid-following current loop as shown in FIG. 6 to obtain the fourth real current output by the grid-forming current loop. Figure 4

[0097] D3, determining a fourth real power according to the fourth real current and the grid voltage.

[0098] Following the above example, the fourth real current and the grid voltage can be multiplied to obtain the fourth real power, which can include the active power P and the reactive power Q in FIG. 6. Figure 4

[0099] D4, inputting the fourth real power as power loop feedback to the grid-following power loop to operate the grid-following control loop.

[0100] Following the above example, referring again to FIG. 6, Figure 4 the active power P and the reactive power Q can be input as power loop feedback to the grid-following power loop to form a stable closed loop for the grid-following power loop, and thus the stable operation of the grid-following control loop including the grid-following power loop can be achieved.

[0101] ​​​120. The virtual power is fed back as a power loop input to the power loop of the second control loop corresponding to the target operating mode to run the second control loop.

[0102] Specifically, this applies when the current working mode is network following mode and the target working mode is network building mode. Alternatively, it applies when the current working mode is network building mode and the target working mode is network following mode.

[0103] As an example, please refer again. Figure 2 When the target operating mode is grid-connected, the virtual active power Pv and virtual reactive power Qv can be used as power loop feedback inputs to... Figure 2 In the shown grid-type power loop, the grid-type power loop is made into a closed loop, thereby simulating the stable operation of the grid-type control loop containing the grid-type power loop.

[0104] As another example, please refer again. Figure 4 When the target operating mode is the grid-connected operating mode, the virtual active power Pv and virtual reactive power Qv can be used as power loop feedback inputs to... Figure 4 The networked power loop in the networked control loop shown is used to form a closed loop, thereby simulating the stable operation of the networked control loop containing the networked power loop.

[0105] 130. When a switching command is received, the energy storage inverter is switched from receiving the output of the first control loop to receiving the output of the second control loop, so as to switch the energy storage inverter from the current working mode to the target working mode.

[0106] As an example, for a mesh control loop, upon receiving a control command, it can be done through, for example... Figure 5 The process shown is used to switch operating modes. Specifically, by referencing the grid-type power loop output current loop, it can be determined whether the system is in grid-type operating mode.

[0107] If in grid-connected operation mode, virtual power Pv and Qv can be calculated based on the current loop reference and grid voltage. Then, virtual power Pv and Qv are fed back to the grid-connected power loop as power loop feedback input to form a closed loop.

[0108] If not in grid-connected operating mode, the current loop reference can be input to the grid-connected current loop, and the grid-connected current loop can output the actual current. Then, based on the actual current and grid voltage, the actual power P and Q can be calculated. Finally, the actual power P and Q are fed back to the grid-connected power loop as power loop feedback input to form a closed loop.

[0109] As another example, for a network-type control loop, upon receiving a control command, it can be done through methods such as... Figure 6The flowchart shown is used to switch the working mode. Specifically, in the case of grid-forming power loop outputting virtual internal voltage and phase angle, the virtual internal voltage and phase angle are input to the grid-forming voltage loop, and the current loop reference is output by the grid-forming voltage loop.

[0110] Then, it can be judged whether it is in the grid-forming working mode.

[0111] If it is not in the grid-forming working mode, the virtual power Pv, Qv can be calculated according to the current loop reference and the grid voltage, and then the virtual power Pv, Qv is input to the grid-forming power loop as the power loop feedback to form a closed loop.

[0112] If it is in the grid-forming working mode, the current loop reference can be input to the grid-forming current loop, and the real current is output by the grid-forming current loop. Then, the real power P, Q is calculated according to the real current and the grid voltage, and then the real power P, Q is input to the grid-forming power loop as the power loop feedback to form a closed loop.

[0113] It can be understood that since the grid-following control outer loop reference (such as the power loop reference) is the same as the grid-forming control outer loop reference, the current loop outputs are approximately the same in the two control modes, so in this example, the grid-following control loop and the grid-forming control loop are run simultaneously based on the same power loop reference, and the first control loop corresponding to the current working mode is actually running, and the second control loop corresponding to the target working mode is virtually running, which can keep the outputs of the grid-following control loop and the grid-forming control loop substantially the same, and thus facilitate the switching between the two working modes.

[0114] In addition, the current inner loop is much faster than the outer loop, so it can be considered that for the outer loop, the real current and the current loop reference are approximately the same, and thus it can be known that the real power P, Q corresponding to the real current and the virtual power Pv, Qv corresponding to the current loop reference are also approximately the same. It can be further known that the power loop uses the virtual power Pv, Qv as feedback to form a closed loop output result, which is approximately the same as the closed loop output result using the real P, Q as feedback, and the outputs are the same stable. Therefore, in this example, by using the virtual power Pv, Qv as the power loop feedback, the running state of the power loop corresponding to the working mode to be switched can be effectively simulated.

[0115] In some embodiments, the current working mode is any one of the grid-forming working mode and the grid-following working mode, and the target working mode is the working mode other than the current working mode in the grid-forming working mode and the grid-following working mode, and before step 130, the method can further include:

[0116] Obtaining the phase angle output by the grid-forming working mode.

[0117] The first output information output by the first current loop in the first control loop is subjected to preset coordinate system conversion based on the phase angle, to obtain converted first output information.

[0118] The second output information output by the second current loop in the second control loop is updated as the converted first output information.

[0119] Exemplarily, the first control loop is a tracking network type control loop, and the second control loop is a network construction type control loop. Please refer to Figure 4 , the first output information output by the first current loop in the first control loop is the tracking network type control loop output in Figure 4 , and the first output information output by the second current loop in the second control loop is the network construction type control loop output in Figure 4 . Therefore, the tracking network type control loop output can be converted based on the phase angle θ through the dq coordinate system and the three-phase coordinate system transformation relationship (dq-ABC transformation) to obtain the converted tracking network type control loop output. Then, the network construction type control loop output is updated as the converted tracking network type control loop output. Thus, the current loop outputs in the tracking network type control loop and the network construction type control loop are consistent. Wherein, ABC is the A phase, B phase and C phase in the three-phase coordinate system.

[0120] In some embodiments, the method can further include:

[0121] Obtaining a voltage variation of a grid voltage of a grid where the energy storage inverter is located within a specified time period.

[0122] Generating a switching instruction according to the voltage variation.

[0123] Exemplarily, the voltage variation can be compared with a variation threshold value. If the voltage variation exceeds the variation threshold value, indicating that the grid voltage fluctuation is large, the switching instruction can be automatically generated, and the working mode can be switched in time, so as to ensure the stable operation of the grid system.

[0124] It can be seen that, in the embodiment, the virtual power is obtained through the output of the second control loop while the energy storage inverter runs the first control loop corresponding to the current working mode, and the virtual power is input as the power loop feedback to the power loop of the second control loop corresponding to the target working mode, so as to run the second control loop; when the switching instruction is received, the energy storage inverter is switched from receiving the output of the first control loop to receiving the output of the second control loop, so as to switch the energy storage inverter from the current working mode to the target working mode. That is, while running the first control loop corresponding to the current working mode, the virtual power can be used as the power loop feedback of the power loop of the second control loop to run the second control loop. The first control loop and the second control loop can be independently and stably run, and the current loop output of the first control loop and the current loop output of the second control loop in operation can be kept substantially consistent, and when the working mode needs to be switched, only the output of the target control loop needs to be connected to the energy storage inverter. The output fluctuation problem of the energy storage inverter when the working mode is switched is avoided, and seamless switching of the energy storage inverter between different working modes is realized.

[0125] Figure 7 Fig. 1 shows a block diagram of an energy storage inverter control device provided by an embodiment of the present application. As shown in the figure, Figure 7 The device 700 can include:

[0126] The obtaining module 710 is configured to obtain virtual power through the output of the second control loop corresponding to the target working mode while the energy storage inverter runs the first control loop corresponding to the current working mode.

[0127] The input module 720 is configured to input the virtual power as the power loop feedback to the power loop of the second control loop corresponding to the target working mode, so as to run the second control loop.

[0128] The switching module 730 is configured to switch the energy storage inverter from receiving the output of the first control loop to receiving the output of the second control loop when the switching instruction is received, so as to switch the energy storage inverter from the current working mode to the target working mode.

[0129] In some embodiments, the current working mode is a grid-forming working mode, the target working mode is a grid-following working mode, the first control loop is a grid-forming power loop, and the second control loop is a grid-following control loop. The obtaining module 710 is specifically configured to:

[0130] obtain a power loop reference and a grid voltage of a power grid in which the energy storage inverter is located.

[0131] input the power loop reference to the grid-following power loop to obtain a first current loop reference of the grid-following power loop output.

[0132] determine the virtual power according to the first current loop reference and the grid voltage.

[0133] In some embodiments, the apparatus 700 further comprises a running module configured to:

[0134] inputting the power loop reference into the grid-forming power loop to obtain a virtual internal voltage and a phase angle output by the grid-forming power loop.

[0135] inputting the virtual internal voltage and the phase angle into the grid-forming voltage loop to obtain a second current loop reference output by the grid-forming voltage loop.

[0136] inputting the second current loop reference into the grid-forming current loop to obtain a second real current output by the grid-forming current loop.

[0137] determining a second real power according to the second real current and the grid voltage.

[0138] inputting the second real power as a power loop feedback into the grid-forming power loop to run the grid-forming control loop.

[0139] In some embodiments, the current working mode is the grid-following working mode, the target working mode is the grid-forming working mode, the first control loop is the grid-following power loop, and the second control loop is the grid-forming control loop, and the obtaining module 710 is specifically configured to:

[0140] obtain the power loop reference and a grid voltage of a grid in which the energy storage inverter is located.

[0141] inputting the power loop reference into the grid-forming power loop to obtain a virtual internal voltage and a phase angle output by the grid-forming power loop.

[0142] inputting the virtual internal voltage and the phase angle into the grid-forming voltage loop to obtain a third current loop reference output by the grid-forming voltage loop.

[0143] determining a virtual power according to the third current loop reference and the grid voltage.

[0144] In some embodiments, the apparatus 700 further comprises a running module configured to:

[0145] inputting the power loop reference into the grid-following power loop to obtain a fourth current loop reference output by the grid-following power loop.

[0146] inputting the fourth current loop reference into the grid-following current loop to obtain a fourth real current output by the grid-following current loop.

[0147] determining a fourth real power according to the fourth real current and the grid voltage.

[0148] inputting the fourth real power as a power loop feedback into the grid-following power loop to run the grid-following control loop.

[0149] In some embodiments, the current working mode is any one of the network construction working mode and the network following working mode, and the target working mode is the working mode other than the current working mode in the network construction working mode and the network following working mode, and the apparatus 700 further comprises an updating module configured to:

[0150] obtain the phase angle output by the network construction working mode.

[0151] perform preset coordinate system conversion on the first output information output by the first current loop in the first control loop based on the phase angle, to obtain converted first output information.

[0152] update the second output information output by the second current loop in the second control loop to the converted first output information.

[0153] In some embodiments, the apparatus 700 further comprises an instruction generating module configured to:

[0154] obtain the voltage variation of the grid voltage of the grid where the energy storage inverter is located within a specified time period.

[0155] generate the switching instruction according to the voltage variation.

[0156] The implementation process of the functions and roles of each module in the above apparatus is specifically described in the implementation process of the corresponding steps of the energy storage inverter control method in the above embodiments, which will not be repeated here.

[0157] Figure 8 Fig. 8 shows a block diagram of an electronic device 800 according to an embodiment of the present application.

[0158] Referring to Figure 8 , the electronic device 800 includes a processing component 810, which further includes one or more processors, and a memory resource represented by a memory 820, for storing instructions executable by the processing component 810, such as an application program. The application program stored in the memory 820 can include one or more than one module each corresponding to a set of instructions. In addition, the processing component 810 is configured to execute the instructions to perform the above-mentioned energy storage inverter control method.

[0159] The electronic device 800 can further include a power supply component configured to perform power management of the electronic device 800, a wired or wireless network interface configured to connect the electronic device 800 to a network, and an input / output (I / O) interface. The electronic device 800 can operate based on an operating system stored in the memory 820, such as Windows ServerTM, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM or the like.

[0160] A non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of the electronic device 800, enables the electronic device 800 to perform the energy storage inverter control method.

[0161] Those skilled in the art can clearly understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0162] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

[0163] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.

[0164] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. According to actual needs, some or all of the units can be selected to achieve the purpose of the embodiment.

[0165] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit.

[0166] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the present application that essentially contribute to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.

[0167] In addition, it should be noted that the combination of the technical features in the present case is not limited to the combination described in the claims of the present case or the combination described in the specific embodiments. All technical features described in the present case can be freely combined or combined, unless they contradict each other.

[0168] It should be noted that the above only lists specific embodiments of the present application. Obviously, the present application is not limited to the above embodiments, and there are many similar changes. All modifications directly derived or inferred from the disclosure of the present application by those skilled in the art shall fall within the scope of the present application.

[0169] It should be understood that the adjectives first, second, etc. mentioned in the embodiments of the present application are only used to more clearly describe the technical solutions of the embodiments of the present application, and cannot be used to limit the protection scope of the present application.

[0170] The above only describes the preferred embodiments of the present application and does not limit the present application. Any modification, equivalent replacement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method of controlling an energy storage inverter, the method comprising: The method comprises the following steps: In the case that the energy storage inverter operates a first control loop corresponding to a current working mode, a virtual power is obtained through an output of a second control loop corresponding to a target working mode; The virtual power is input as a power loop feedback into a power loop of the second control loop corresponding to the target working mode, so as to operate the second control loop; When a switching instruction is received, the energy storage inverter is switched from receiving the output of the first control loop to receiving the output of the second control loop, so as to switch the energy storage inverter from the current working mode to the target working mode.

2. The method of claim 1, wherein, The current working mode is a grid-forming working mode, the target working mode is a grid-following working mode, the first control loop is a grid-forming power loop, and the second control loop is a grid-following control loop. The method further comprises the following steps: A power loop reference and a grid voltage of a grid in which the energy storage inverter is located are obtained; The power loop reference is input into a grid-following power loop, so as to obtain a first current loop reference output by the grid-following power loop; 3. The method of claim 2, wherein, The virtual power is determined according to the first current loop reference and the grid voltage. The method further comprises the following steps: The power loop reference is input into a grid-forming power loop, so as to obtain a virtual internal voltage and a phase angle output by the grid-forming power loop; The virtual internal voltage and the phase angle are input into a grid-forming voltage loop, so as to obtain a second current loop reference output by the grid-forming voltage loop; The second current loop reference is input into a grid-forming current loop, so as to obtain a second real current output by the grid-forming current loop; A second real power is determined according to the second real current and the grid voltage; 4. The method of claim 1, wherein, The second real power is input as a power loop feedback into the grid-forming power loop, so as to operate the grid-forming control loop. The current working mode is a grid-following working mode, the target working mode is a grid-forming working mode, the first control loop is a grid-following power loop, and the second control loop is a grid-forming control loop. The method further comprises the following steps: A power loop reference and a grid voltage of a grid in which the energy storage inverter is located are obtained; The power loop reference is input into a grid-forming power loop, so as to obtain a virtual internal voltage and a phase angle output by the grid-forming power loop; 5. The method of claim 4, wherein, The virtual internal voltage and the phase angle are input into a grid-forming voltage loop, so as to obtain a third current loop reference output by the grid-forming voltage loop; The virtual power is determined according to the third current loop reference and the grid voltage. The method further comprises the following steps: The power loop reference is input into a grid-following power loop, so as to obtain a fourth current loop reference output by the grid-following power loop; The fourth current loop reference is input into a grid-following current loop, so as to obtain a fourth real current output by the grid-following current loop; A fourth real power is determined according to the fourth real current and the grid voltage; The fourth real power is input as a power loop feedback into the grid-following power loop, so as to operate the grid-following control loop.

6. The method according to any one of claims 1 to 5, characterized in that, The current working mode is any one of a network construction working mode and a network following working mode, and the target working mode is a working mode other than the current working mode in the network construction working mode and the network following working mode, and before the energy storage inverter is switched from the current working mode to the target working mode when the switching instruction is received, the method further comprises: acquiring a phase angle output by the network construction working mode; performing preset coordinate system conversion on first output information output by a first current loop in the first control loop based on the phase angle to obtain converted first output information; updating second output information output by a second current loop in the second control loop to the converted first output information.

7. The method according to any one of claims 1 to 5, characterized in that, The method further comprises: acquiring a voltage variation of a grid voltage of a grid in which the energy storage inverter is located within a specified time period; generating the switching instruction according to the voltage variation.

8. An energy storage inverter control device, characterized by, comprise: an acquisition module, configured to acquire virtual power through output of a second control loop corresponding to a target working mode while a first control loop corresponding to the current working mode is running for the energy storage inverter; an input module, configured to input the virtual power as power loop feedback into a power loop of the second control loop corresponding to the target working mode to run the second control loop; a switching module, configured to switch the energy storage inverter from receiving output of the first control loop to receiving output of the second control loop when a switching instruction is received, so as to switch the energy storage inverter from the current working mode to the target working mode.

9. A computer-readable storage medium having stored thereon computer- executable instructions, wherein, The executable instructions are executed by the processor to implement the energy storage inverter control method in any one of claims 1 to 7.

10. An electronic device, comprising: The electronic device comprises: a processor; a memory for storing instructions executable by the processor; the processor is configured to execute the energy storage inverter control method in any one of claims 1 to 7.