Grid-connected and off-network switching method and system

By using multiple switching modules connected in parallel in the photovoltaic energy storage system, the effective values ​​of the control currents are equal, which solves the power outage problem of the photovoltaic energy storage system during on-grid and off-grid switching, improves the stability and reliability of the system, and is suitable for high-voltage applications. Power scene.

CN118589593APending Publication Date: 2024-09-03NINGBO GINLONG TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410490431.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Photovoltaic energy storage systems have power outage problems during grid-connected and off-grid switching. Especially in high-power scenarios, due to the limited current range of a single thyristor, the current cannot increase infinitely, causing power outages.

Method used

Multiple switching modules are connected in parallel. By obtaining the circuit equivalent impedance of the parallel connection point, the virtual impedance is determined and the current is controlled so that the effective current value of each switching module is equal, so that parallel and off-grid switching is performed under current balance. Disperse the current load to avoid power outage caused by excessive current in a single thyristor.

Benefits of technology

Through multi-module parallel connection and current balance control, the stability and reliability of the system are improved. It is suitable for high-power application scenarios, minimizes interference to the power grid, reduces the risk of power outages, and achieves balanced distribution of current.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118589593A
    Figure CN118589593A
Patent Text Reader

Abstract

The invention provides a grid-connected and off-grid switching method and system, and relates to the technical field of photovoltaic energy storage systems, the grid-connected and off-grid switching method is applied to a grid-connected and off-grid switching device, the grid-connected and off-grid switching device comprises a plurality of switching modules arranged between a photovoltaic / energy storage inverter and a power grid, and the switching modules are connected in parallel to form a parallel connection point; the grid-connected and off-grid switching method comprises the following steps: acquiring circuit equivalent impedance of a switching module between parallel connection points; virtual impedance corresponding to the switching module is determined according to the circuit equivalent impedance, and the virtual impedance is larger than the circuit equivalent impedance; controlling the current flowing through the switching modules according to the virtual impedance so as to enable the current effective values of the switching modules to be equal; and when the current effective values of all the switching modules are equal, grid-connected and off-grid switching is carried out by controlling the change-over switch. According to the invention, the grid-connected and off-grid switching effect of the photovoltaic energy storage system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of photovoltaic energy storage systems, and in particular to a method and system for switching between on-grid and off-grid. Background Art

[0002] At present, the switching method of photovoltaic energy storage systems from grid-connected to off-grid and from off-grid to grid-connected is mainly through closing the circuit breakers, manual switches and relays to achieve the switching of grid-connected and off-grid scene modes. Since the control method of grid-connected is current source control, and the control method of off-grid is voltage source control, there will be tens to hundreds of milliseconds at the moment of closing the circuit. Therefore, there will be a long action time during the closing period. Due to the long action time and the different control methods of grid-connected and off-grid, the load output voltage will be powered off.

[0003] In the prior art, in order to ensure that there will be no power outage during the on-grid and off-grid switching process, a single thyristor is usually used for on-grid and off-grid switching. However, due to the limited heat dissipation of the copper substrate used, the current cannot be increased infinitely, thus limiting the current range of the thyristor, and thus causing the photovoltaic energy storage system to still experience power outages in high-power scenarios. Summary of the invention

[0004] The problem solved by the present invention is how to improve the on-grid and off-grid switching effect of a photovoltaic energy storage system.

[0005] In order to solve the above problems, the present invention provides an on-grid and off-grid switching method, which is applied to an on-grid and off-grid switching device, wherein the on-grid and off-grid switching device comprises a plurality of switching modules for being arranged between a photovoltaic / energy storage inverter and a power grid, each of the switching modules being connected in parallel to form a parallel connection point;

[0006] The on-grid and off-grid switching method comprises:

[0007] Obtaining a circuit equivalent impedance of the switching module between the parallel connection points;

[0008] Determining a virtual impedance corresponding to the switching module according to the circuit equivalent impedance, wherein the virtual impedance is greater than the circuit equivalent impedance;

[0009] Controlling the current flowing through the switching modules according to the virtual impedance so that the effective values ​​of the currents of the switching modules are equal;

[0010] When the effective current values ​​of each of the switching modules are equal, the switching between on-grid and off-grid is performed by controlling the switching switch.

[0011] Optionally, the obtaining of the circuit equivalent impedance of the switching module between the parallel connection points includes:

[0012] According to the circuit structure of the switching module and the loop length of the switching module, the internal resistance of the switching module, the loop equivalent resistance and the loop equivalent inductance of the parallel branch where the switching module is located are measured, and the circuit equivalent impedance is determined according to the internal resistance, the loop equivalent resistance and the loop equivalent inductance.

[0013] Optionally, before controlling the current flowing through the switching module according to the virtual impedance so that the effective values ​​of the currents of the switching modules are equal, the method further includes:

[0014] Determining the peak current of the switching module by means of a current detection circuit of the switching module;

[0015] Determining the module current according to the peak current;

[0016] The effective value of the current of the switching module is obtained according to the module current.

[0017] Optionally, determining the module current according to the peak current includes:

[0018] According to the peak current, determining the module current of each switching module by using a module current calculation formula;

[0019] The module current calculation formula is:

[0020] i n (t) = I pkn *sin(ωt);

[0021] Among them, I pkn is the peak current of the nth switching module, sin(ωt) is a sinusoidal waveform, i n (t) is the module current of the nth switching module, ω represents the frequency of the module current change, and t represents time.

[0022] Optionally, obtaining the effective value of the current of the switching module according to the module current includes:

[0023] According to the module current, determining the effective value of the current of the switching module by using the effective value calculation formula;

[0024] The effective value calculation formula is:

[0025]

[0026]

[0027] Among them, I rms1 is the effective value of the current of the first switching module, I rmsn(α) is the effective value of the current of the nth switching module, α is the conduction angle of the thyristor of the nth switching module, I pkn is the peak current of the nth switching module, sin(ωt) is a sinusoidal waveform, ω represents the frequency of the module current change, t represents time, and T represents the period of the module current change.

[0028] Optionally, controlling the current flowing through the switching module according to the virtual impedance so that the effective values ​​of the currents of the switching modules are equal includes:

[0029] The nth switching module is controlled to delay triggering the conduction angle after the zero crossing point, so that the effective value of the current of the nth switching module is equal to the effective value of the current of the first switching module, wherein n is greater than or equal to 2.

[0030] The grid-connected and off-grid switching method of the present invention can disperse the current load by connecting multiple switching modules in parallel, and avoid the power-off problem caused by excessive current in a single thyristor. The virtual impedance corresponding to each switching module is determined according to the circuit equivalent impedance between the switching modules in parallel connection points, and the virtual impedance is greater than the circuit equivalent impedance; since each switching module is connected in parallel, the voltage is equal, and the current is adjusted by increasing the virtual impedance of each switching module. When the virtual impedance is much greater than the circuit equivalent impedance, the equivalent impedance can be ignored, that is, the influence of the circuit equivalent impedance can be ignored, and it can be considered that the current is mainly affected by the virtual impedance. By controlling the virtual impedance, the effective value of the current of each switching module is equal. Under the condition of equal current, even if there is an equivalent impedance, since the current of each module is equal, the voltage drop is also equal, so that the influence of the equivalent impedance can be ignored; when the effective value of the current of each switching module is equal, the grid-connected and off-grid switching is performed by controlling the switching switch. In addition, in the case of current balance, the influence of the equivalent impedance on the circuit can be ignored, and the switching control process is also simplified. Switching under the condition of current balance can minimize interference with the power grid and reduce the risk of power outages. Balanced current distribution can be achieved in high-power scenarios to avoid power outages caused by excessive current in a single thyristor. The present invention improves the stability and reliability of the system through multi-module parallel connection and current balance control, and is suitable for high-power application scenarios.

[0031] The present invention also provides an on-grid and off-grid switching system, comprising a computer-readable storage medium storing a computer program and a processor. When the computer program is read and executed by the processor, the on-grid and off-grid switching method described above is implemented.

[0032] Optionally, the on-grid and off-grid switching system further includes an on-grid and off-grid switching device, a photovoltaic / energy storage inverter and a power grid;

[0033] The on-grid and off-grid switching device includes at least two switching modules, one end of each switching module is connected to the grid, and the other end of each switching module is connected to the AC output side of the photovoltaic / energy storage inverter, so that each switching module is connected in parallel.

[0034] Optionally, each of the switching modules includes an input voltage detection circuit, an SCR drive circuit, a current detection circuit, an output voltage detection circuit, an SCR circuit and a controller;

[0035] One end of the input voltage detection circuit is connected to the power grid, the other end of the input voltage detection circuit is connected to one end of the current detection circuit and the first end of the SCR circuit in sequence, the second end of the SCR circuit is connected to one end of the output voltage detection circuit, and the other end of the output voltage detection circuit is connected to the photovoltaic / energy storage inverter; the other end of the input voltage detection circuit, the other end of the current detection circuit and the other end of the output voltage detection circuit are connected to the controller respectively, the controller is also connected to one end of the SCR drive circuit, and the other end of the SCR drive circuit is connected to the third end of the SCR circuit.

[0036] Optionally, the SCR circuit includes a forward SCR and a reverse SCR, the forward SCR and the reverse SCR are connected in parallel, wherein the anode of the forward SCR circuit and the cathode of the reverse SCR circuit are connected to form a first end of the SCR circuit, the cathode of the forward SCR circuit and the anode of the reverse SCR circuit are connected to form a second end of the SCR circuit, and the control electrode of the forward SCR circuit and the control electrode of the reverse SCR circuit are connected to form a third end of the SCR circuit.

[0037] The grid-connected and off-grid switching system of the present invention is achieved by connecting one end of each switching module to the grid and the other end to the AC output side of the photovoltaic / energy storage inverter, and each switching module is connected in parallel. The photovoltaic / energy storage system can be switched between grid power supply and grid-connected mode; when grid connection is required, the switching module can connect the output of the photovoltaic / energy storage system to the grid, thereby transmitting electric energy to the grid. When off-grid operation is required, the switching module can switch to off-grid mode, allowing the photovoltaic / energy storage system to operate independently and provide electric energy to users. This improves the flexibility and reliability of the photovoltaic / energy storage system, enabling it to better adapt to different power supply needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A flowchart of a method for switching between grid and off-grid according to an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of the structure of an on-grid and off-grid switching device according to an embodiment of the present invention;

[0040] Figure 3 This is one of the structural topology diagrams of the on-grid and off-grid switching device according to an embodiment of the present invention;

[0041] Figure 4 This is the second structural topology diagram of the on-grid and off-grid switching device according to an embodiment of the present invention;

[0042] Figure 5 A comparison diagram of total current waveforms of various switching modules in one embodiment of the present invention;

[0043] Figure 6 This is one of the structural schematic diagrams of the original on-grid and off-grid switching system of the present invention;

[0044] Figure 7 This is the second structural schematic diagram of the original on-grid and off-grid switching system of the present invention;

[0045] Figure 8 This is one of the structural schematic diagrams of the improved on-grid and off-grid switching system of the present invention;

[0046] Fig. 9 This is the second structural schematic diagram of the improved on-grid and off-grid switching system of the present invention. DETAILED DESCRIPTION

[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0048] It should be noted that, at present, there are two main ways to switch the photovoltaic energy storage system from grid-connected to off-grid and from off-grid to grid-connected: (1) conventionally using circuit breakers, manual switches, relays, etc. for switching, such as Figure 6 As shown, it is mainly the switching between contactors and relays. When the power grid is off, the key loads are powered by the inverter. When the AC power comes back, the inverter adjusts the control mode and connects to the grid, that is, it has two different scenarios: grid-connected and off-grid. The conventional practice is to use circuit breakers, relays, contactors, manual switches, etc. to switch between grid-connected and off-grid scenarios. However, it takes tens to hundreds of milliseconds to close the switch. Figure 6 As shown, during the relay / contactor switching process, it takes a certain amount of time for the relay / contactor contacts to open and close, and the grid-connected control method is current source control, while the off-grid control method is voltage source control. Therefore, when switching between grid-connected and off-grid, due to the different control methods of grid-connected and off-grid, a longer action time will cause the load output voltage to lose power for a short time, affecting the continuity of power supply to key loads.

[0049] In order to ensure power outage and shorten the action time, the prior art also uses a single thyristor for on-grid and off-grid switching. The reason is that the action time of the thyristor is only a few microseconds, which will not cause a significant impact on the load, will not cause power outage, and can achieve seamless switching. Figure 7 As shown, however, the current size of the SCR used in the circuit is limited by the heat dissipation of the copper substrate, the current cannot be increased indefinitely, the current range is subject to certain restrictions, and it is difficult to apply in high-power scenarios. The parallel SCR is further used to solve the current limitation problem. Since the impedance of each parallel branch is different, and the current flowing through the high-power scenario is large, even if there is a slight difference in the impedance of each parallel branch, the current difference will be large, affecting the voltage output, and when the module current is not balanced, the temperature rise of each module is inconsistent, reducing the robustness of the system. The existing SCR parallel connection adopts the method of increasing the current sharing inductance or reactance to achieve current sharing for the current sharing problem, but the inductance is large in size, it is difficult to improve the circuit power density, and limit the modular design and application. Based on this, the present invention provides a grid-connected and off-grid switching method.

[0050] Combination Figure 1 As shown, the present invention provides an on-grid and off-grid switching method, which is applied to an on-grid and off-grid switching device, wherein the on-grid and off-grid switching device includes a plurality of switching modules for being arranged between a photovoltaic / energy storage inverter and a power grid, and each of the switching modules is connected in parallel to form a parallel connection point.

[0051] Specifically, combined Figure 2 As shown, the on-grid and off-grid switching device includes multiple switching modules, which are connected in parallel. At the same time, the two ends of the switching module are respectively connected to the output side of the photovoltaic energy storage inverter and the input side of the power grid. There is a load between the photovoltaic energy storage inverter and the switching module. Figure 3 As shown, there are n switching modules, and the internal circuit structure of each switching module is the same; the switching module may include but is not limited to an output voltage detection circuit, an SCR drive circuit, a current detection circuit, an input voltage detection circuit and a controller, wherein the controller is communicatively connected to the SCR drive circuit, and the controller is used to control the on and off of the SCR, and the controllers between the switching modules are connected via communication.

[0052] Combination Figure 4 As shown, the switching module of the on-grid and off-grid switching device can be connected in parallel by one or more SCR switching circuits, wherein the SCR switching circuit of each parallel branch is connected to the current detection device CT.

[0053] The on-grid and off-grid switching method comprises:

[0054] The circuit equivalent impedance of the switching module between the parallel connection points is obtained.

[0055] Specifically, the equivalent impedance value is obtained by calculation according to the parameters of the components of the circuit.

[0056] A virtual impedance corresponding to the switching module is determined according to the circuit equivalent impedance, wherein the virtual impedance is greater than the circuit equivalent impedance.

[0057] Specifically, according to the parameters and connection mode of the circuit elements, the circuit equivalent impedance at the parallel connection point is calculated, and according to the calculation result of the circuit equivalent impedance, the virtual impedance range is determined. And the virtual impedance is greater than the circuit equivalent impedance, so as to provide sufficient adjustment space for current control; and then a suitable virtual impedance value is selected.

[0058] In a preferred embodiment of the present invention, when the virtual impedance is selected to be greater than the circuit equivalent impedance, Zvir>>rT1+requ1+Lequ1 is achieved, and the voltage drop of the virtual impedance accounts for the main component. At this time, the voltage equation of the first switching module is:

[0059] Irms1*Zvir=Vdrop;

[0060] Among them, Irms1 is the effective value current flowing through the first switching module, and Vdrop is the total voltage drop after adding the virtual impedance. It can be seen from the above voltage equation that when the modules are connected in parallel, the voltage drop Vdrop on the equivalent circuit of each module is equal. Since the virtual impedance added to each module is equal, the effective value Irms flowing through each module will be equal. When the effective values ​​of the modules are equal, the thermal characteristics of each module are consistent, which can improve the robustness of the system. In this embodiment, by introducing and optimizing the virtual resistance and virtual inductance parameters, the performance and stability of the switching module and related systems can be improved.

[0061] The current flowing through the switching modules is controlled according to the virtual impedance so that the effective values ​​of the currents of the switching modules are equal.

[0062] Specifically, according to the determined virtual impedance value, the virtual impedance of each switching module is set by the controller. The current flowing through each switching module is obtained, and the current value monitored in real time is compared with the current value in the ideal equilibrium state to determine the current deviation of each switching module. According to the current deviation, the virtual impedance of each switching module is adjusted. For example: if the current of a module is lower than the ideal value, the virtual impedance can be reduced; if the current is higher than the ideal value, the virtual impedance can be increased. The virtual impedance is continuously compared and adjusted until the effective value of the current of each switching module is close to equal. In some preferred embodiments, after the adjustment of the virtual impedance is completed, the effective value of the current of the switching module on each parallel branch can be measured again to verify whether the adjusted current is the same, thereby helping to confirm the stability and performance of the system.

[0063] When the effective current values ​​of each of the switching modules are equal, the switching between on-grid and off-grid is performed by controlling the switching switch.

[0064] Specifically, when the effective current values ​​of each switching module are equal, it means that the system has reached a current balance state, and the grid-connected and off-grid switching can be performed at this time. The grid-connected and off-grid switching is achieved by controlling the switching switch. The switching switch can be a thyristor, etc., which is used to connect or disconnect the circuit between the grid and the load.

[0065] The grid-connected and off-grid switching method of the present invention can disperse the current load by connecting multiple switching modules in parallel, and avoid the power-off problem caused by excessive current in a single thyristor. The virtual impedance corresponding to each switching module is determined according to the circuit equivalent impedance between the switching modules in parallel connection points, and the virtual impedance is greater than the circuit equivalent impedance; since each switching module is connected in parallel, the voltage is equal, and the current is adjusted by increasing the virtual impedance of each switching module. When the virtual impedance is much greater than the circuit equivalent impedance, the equivalent impedance can be ignored, that is, the influence of the circuit equivalent impedance can be ignored, and it can be considered that the current is mainly affected by the virtual impedance. By controlling the virtual impedance, the effective value of the current of each switching module is equal. Under the condition of equal current, even if there is an equivalent impedance, since the current of each module is equal, the voltage drop is also equal, so that the influence of the equivalent impedance can be ignored; when the effective value of the current of each switching module is equal, the grid-connected and off-grid switching is performed by controlling the switching switch. In addition, in the case of current balance, the influence of the equivalent impedance on the circuit can be ignored, and the switching control process is also simplified. Switching under the condition of current balance can minimize interference with the power grid and reduce the risk of power outages. Balanced current distribution can be achieved in high-power scenarios to avoid power outages caused by excessive current in a single thyristor. The present invention improves the stability and reliability of the system through multi-module parallel connection and current balance control, and is suitable for high-power application scenarios.

[0066] Optionally, the obtaining of the circuit equivalent impedance of the switching module between the parallel connection points includes:

[0067] According to the circuit structure of the switching module and the loop length of the switching module, the internal resistance of the switching module, the loop equivalent resistance and the loop equivalent inductance of the parallel branch where the switching module is located are measured, and the circuit equivalent impedance is determined according to the internal resistance, the loop equivalent resistance and the loop equivalent inductance.

[0068] Specifically, the internal resistance of the switching module can be measured by using a measuring device (such as an ohmmeter, a multimeter, etc.). To measure the loop equivalent resistance and loop equivalent inductance of the parallel branch where the switching module is located, an impedance analyzer, a network analyzer, and other equipment can be used. According to the measured internal resistance, loop equivalent resistance, and loop equivalent inductance, the circuit equivalent impedance is calculated using a circuit analysis method (such as a node voltage method, a loop current method, etc.). Among them, the loop length will also affect the impedance of the circuit. Therefore, the influence of the loop length on the circuit equivalent impedance also needs to be considered in the calculation.

[0069] In this embodiment, the circuit equivalent impedance can be determined based on the circuit structure, loop length, and internal resistance, loop equivalent resistance, and loop equivalent inductance of the switching module. The equivalent impedance is the basis for subsequent current control and switching; it is convenient to perform on-grid and off-grid switching based on this, and improve the reliability and stability of on-grid and off-grid switching.

[0070] Optionally, before controlling the current flowing through the switching module according to the virtual impedance so that the effective values ​​of the currents of the switching modules are equal, the method further includes:

[0071] Determining the peak current of the switching module by means of a current detection circuit of the switching module;

[0072] Determining the module current according to the peak current;

[0073] The effective value of the current of the switching module is obtained according to the module current.

[0074] Specifically, the virtual resistance and virtual inductance of the switching module are determined by the equivalent resistance and equivalent inductance. First, the equivalent impedance of the switching module is calculated. In a preferred embodiment of the present invention, this equivalent impedance includes the impedance contributed by physical components (such as resistors, inductors) and their layout. The values ​​of the virtual resistance and virtual inductance are determined based on the obtained equivalent impedance, because the setting of the virtual resistance and virtual inductance is intended to simulate the changes in circuit behavior during switching actions, so that it reflects a more accurate dynamic response in the circuit model. The virtual resistance and virtual inductance are set to be greater than the actual equivalent resistance and equivalent inductance, respectively, so that when the virtual impedance is selected to be greater than the circuit equivalent impedance, the voltage drop of the virtual impedance accounts for the main component.

[0075] In this embodiment, by calculating the effective value of the current, it is convenient to control the average power distribution of the system based on the effective value of the current of the parallel branch of the switching module, so that the on-grid and off-grid switching is more stable.

[0076] Optionally, determining the module current according to the peak current includes:

[0077] According to the peak current, determining the module current of each switching module by using a module current calculation formula;

[0078] The module current calculation formula is:

[0079] i n (t) = I pkn *sin(ωt);

[0080] Among them, I pkn is the peak current of the nth switching module, sin(ωt) is a sinusoidal waveform, i n (t) is the module current of the nth switching module, ω represents the frequency of the module current change, and t represents time.

[0081] Specifically, the module current in each switching module is calculated based on its peak current through the module current calculation formula, and the periodic change characteristics of the current are taken into account through the sine waveform. Since the current and voltage are often sinusoidal in many power systems, the current of each module is calculated using the relationship between this waveform and the peak current, which helps to accurately adjust and optimize the energy distribution and conversion in the system.

[0082] In this embodiment, by accurately calculating the module current of each switching module, the flow and distribution of electricity in the photovoltaic energy storage system can be better controlled, the overall efficiency of the system can be improved, overloads and electrical failures can be avoided, and the stability of the photovoltaic energy storage system in grid-connected and off-grid operations can be ensured.

[0083] Optionally, obtaining the effective value of the current of the switching module according to the module current includes:

[0084] According to the module current, determining the effective value of the current of the switching module by using the effective value calculation formula;

[0085] The effective value calculation formula is:

[0086]

[0087]

[0088] Among them, I rms1 is the effective value of the current of the first switching module, I rmsn (α) is the effective value of the current of the nth switching module, α is the conduction angle of the thyristor of the nth switching module, I pkn is the peak current of the nth switching module, sin(ωt) is a sinusoidal waveform, ω represents the frequency of the module current change, t represents time, and T represents the period of the module current change.

[0089] Specifically, according to the effective value calculation formula, the thyristor conduction angle of the nth module, that is, the delayed conduction angle of the nth module after crossing the zero point, can be known. According to this control, the effective value of the current between each module can be equal, thereby ensuring that each module evenly shares the system power, and the module characteristics and robustness are optimal.

[0090] In a preferred embodiment of the present invention, Figure 5 As shown in the comparison diagram of the total current waveforms of each switching module, it can be seen that the current waveforms of each module and the total current waveform obtained according to the above scheme are as follows: sys is the total current of the parallel circuits, i1 is the current of module 1, i n is the current of the nth module mentioned above. The total current still maintains a sine wave, and the currents i1 and i n The effective values ​​are equal. n The impedance of the module is small. Through the delayed trigger, we can see the current i of the yellow line module. n Although the instantaneous currents of the module and the current i1 are not equal, their effective current values ​​are equal within a cycle, which can ensure that the heat dissipation is equal.

[0091] In this embodiment, the effective value calculation formula is used to calculate the effective value of the current, ensuring that the heat of the two switching modules is equal, thereby achieving current equalization and heat equalization.

[0092] Optionally, controlling the current flowing through the switching module according to the virtual impedance so that the effective values ​​of the currents of the switching modules are equal includes:

[0093] The nth switching module is controlled to delay triggering the conduction angle after the zero crossing point, so that the effective value of the current of the nth switching module is equal to the effective value of the current of the first switching module, wherein n is greater than or equal to 2.

[0094] Specifically, by controlling the nth switching module to delay triggering the conduction angle after the zero point, so that the current effective value of the nth switching module is equal to the current effective value of the first switching module, where n is greater than or equal to 2; thereby ensuring that the current effective value of each switching module is equal, thereby achieving a balanced distribution of the current. In an AC circuit, the voltage or current will pass through the zero point in each half cycle, that is, the point where the voltage or current value is zero. Near the zero point, the rate of change of the current or voltage is small. Therefore, performing a control operation at this moment can reduce interference to the circuit. Delay triggering the conduction angle after the zero point, that is, after a certain time delay after the zero point, control the conduction of the switching module. By controlling the conduction angle of the nth switching module, for the nth switching module (n is greater than or equal to 2), the above control operation needs to be performed, so that the current effective value of the nth switching module is equal to the current effective value of the first switching module, thereby ensuring that the current effective values ​​of all switching modules are equal, and achieving a balanced distribution of the current.

[0095] By adjusting the virtual impedance, the effective value of the current of each switching module can be accurately controlled and adjusted, thereby ensuring the stability of the system and making the current of each switching module in the parallel branch evenly distributed. The present invention controls the current and heat load distributed among multiple switching modules so that each switching module can work within its heat dissipation capacity, thereby effectively improving the system's ability to handle high power.

[0096] According to the virtual resistance and virtual inductance, the virtual impedance of the switching module is determined, and the virtual impedance is multiplied by the effective value of the current to obtain the voltage drop of the switching module in the parallel branch. In a preferred embodiment of the present invention, for the first switching module 1:

[0097] Irms1*Zvir=Vdrop1;

[0098] For the nth switching module n:

[0099] Irmsn*Zvir=Vdropn;

[0100] Where: Irms1 is the effective value of the current of module 1, Vdrop1 is the voltage drop of the parallel branch of module 1, Irmsn is the effective value of the current of the nth module, and Vdropn is the voltage drop of the parallel branch of the nth module. And the voltages are the same when connected in parallel, so Vdrop1 = Vdropn.

[0101] In this embodiment, by calculating the voltage drop of the switching module on the parallel branch, it is convenient to control the effective value of the current to remain unchanged by adjusting the virtual impedance on the basis of ensuring that the voltage drop remains unchanged, so that each switching module can evenly share the system power to achieve application in high-power scenarios.

[0102] The present invention also provides an on-grid and off-grid switching system, comprising a computer-readable storage medium storing a computer program and a processor. When the computer program is read and executed by the processor, the on-grid and off-grid switching method described above is implemented.

[0103] The grid-connected and off-grid switching system of the present invention can disperse the current load by connecting multiple switching modules in parallel, and avoid the power-off problem caused by excessive current in a single thyristor. The virtual impedance corresponding to each switching module is determined according to the circuit equivalent impedance between the switching modules in parallel connection points, and the virtual impedance is greater than the circuit equivalent impedance; since each switching module is connected in parallel, the voltage is equal, and the current is adjusted by increasing the virtual impedance of each switching module. When the virtual impedance is much greater than the circuit equivalent impedance, the equivalent impedance can be ignored, that is, the influence of the circuit equivalent impedance can be ignored, and it can be considered that the current is mainly affected by the virtual impedance. By controlling the virtual impedance, the effective value of the current of each switching module is equal. Under the condition of equal current, even if there is an equivalent impedance, since the current of each module is equal, the voltage drop is also equal, so that the influence of the equivalent impedance can be ignored; when the effective value of the current of each switching module is equal, the grid-connected and off-grid switching is performed by controlling the switching switch. In addition, in the case of current balance, the influence of the equivalent impedance on the circuit can be ignored, and the switching control process is also simplified. Switching under the condition of current balance can minimize interference with the power grid and reduce the risk of power outages. Balanced current distribution can be achieved in high-power scenarios to avoid power outages caused by excessive current in a single thyristor. The present invention improves the stability and reliability of the system through multi-module parallel connection and current balance control, and is suitable for high-power application scenarios.

[0104] Optionally, the on-grid and off-grid switching system further includes an on-grid and off-grid switching device, a photovoltaic / energy storage inverter and a power grid;

[0105] The on-grid and off-grid switching device includes at least two switching modules, one end of each switching module is connected to the grid, and the other end of each switching module is connected to the AC output side of the photovoltaic / energy storage inverter, so that each switching module is connected in parallel.

[0106] Specifically, combined Figure 8As shown, the on-grid and off-grid switching system includes an on-grid and off-grid switching device, a photovoltaic / energy storage inverter and a power grid. The on-grid and off-grid switching device is composed of at least two switching modules, one end of each switching module is connected to the power grid, and the other end is connected to the AC output side of the photovoltaic / energy storage inverter, and each switching module is connected in parallel. The on-grid and off-grid switching system of the present invention realizes smooth switching between the photovoltaic / energy storage system and the power grid. For example: when it is necessary to supply power to the power grid, the switching module can connect the output of the photovoltaic / energy storage system to the power grid, thereby realizing the transmission of electric energy to the power grid. On the contrary, when it is necessary to disconnect from the power grid, the switching module can switch to the off-grid mode, so that the photovoltaic / energy storage system can operate independently and provide electric energy to the user. The on-grid and off-grid switching system of the present invention can improve the flexibility and robustness of the photovoltaic / energy storage system, so that it can better adapt to changing power requirements and power grid conditions. In addition, the switching modules connected in parallel can also provide redundancy to ensure that the system can still operate normally when one module fails.

[0107] The grid-connected and off-grid switching system of the present invention is achieved by connecting one end of each switching module to the grid and the other end to the AC output side of the photovoltaic / energy storage inverter, and each switching module is connected in parallel. The photovoltaic / energy storage system can be switched between grid power supply and grid-connected mode; when grid connection is required, the switching module can connect the output of the photovoltaic / energy storage system to the grid, thereby transmitting electric energy to the grid. When off-grid operation is required, the switching module can switch to off-grid mode, allowing the photovoltaic / energy storage system to operate independently and provide electric energy to users. This improves the flexibility and reliability of the photovoltaic / energy storage system, enabling it to better adapt to different power supply needs.

[0108] Optionally, each of the switching modules includes an input voltage detection circuit, an SCR drive circuit, a current detection circuit, an output voltage detection circuit, an SCR circuit and a controller;

[0109] One end of the input voltage detection circuit is connected to the power grid, the other end of the input voltage detection circuit is connected to one end of the current detection circuit and the first end of the SCR circuit in sequence, the second end of the SCR circuit is connected to one end of the output voltage detection circuit, and the other end of the output voltage detection circuit is connected to the photovoltaic / energy storage inverter; the other end of the input voltage detection circuit, the other end of the current detection circuit and the other end of the output voltage detection circuit are connected to the controller respectively, the controller is also connected to one end of the SCR drive circuit, and the other end of the SCR drive circuit is connected to the third end of the SCR circuit.

[0110] Specifically, combined Fig. 9As shown, one end of the input voltage detection circuit is connected to the power grid, and the other end is connected to one end of the current detection circuit and the first end of the SCR circuit in sequence. It is used to detect the input voltage of the power grid and provide a reference for subsequent current and voltage control. One end of the current detection circuit is connected to the other end of the input voltage detection circuit, and the other end is connected to the controller. It is used to detect the current flowing through the switching module and provide current data to the controller. One end of the output voltage detection circuit is connected to the second end of the SCR circuit, and the other end is connected to the photovoltaic / energy storage inverter. It is used to detect the output voltage and provide output voltage data to the controller. The first end of the SCR circuit is connected to the input voltage detection circuit, the second end is connected to the output voltage detection circuit, and the third end is connected to the SCR drive circuit. The SCR (silicon controlled rectifier) ​​circuit is a key part for realizing current control and switching. The controller is connected to the input voltage detection circuit, the current detection circuit and the output voltage detection circuit, and is connected to the SCR drive circuit. According to the detected input voltage, current and output voltage data, the SCR drive circuit is controlled, thereby controlling the working state of the SCR circuit. One end of the SCR drive circuit is connected to the controller, and the other end is connected to the third end of the SCR circuit. According to the instructions of the controller, the SCR circuit is driven to be turned on or off, thereby realizing the control and switching of the current.

[0111] In this embodiment, each switching module can realize accurate control and switching of current, ensure balanced distribution of current, and provide a stable current environment for switching between on-grid and off-grid.

[0112] Optionally, the SCR circuit includes a forward SCR and a reverse SCR, the forward SCR and the reverse SCR are connected in parallel, wherein the anode of the forward SCR circuit and the cathode of the reverse SCR circuit are connected to form a first end of the SCR circuit, the cathode of the forward SCR circuit and the anode of the reverse SCR circuit are connected to form a second end of the SCR circuit, and the control electrode of the forward SCR circuit and the control electrode of the reverse SCR circuit are connected to form a third end of the SCR circuit.

[0113] Specifically, combined Figure 3 and Fig. 9As shown, the forward SCR and the reverse SCR are connected in parallel. This connection method can enhance the current handling capacity of the circuit and improve the switching efficiency. The anode of the forward SCR and the cathode of the reverse SCR are connected to form the first end of the SCR circuit, and the cathode of the forward SCR and the anode of the reverse SCR are connected to form the second end of the SCR circuit. This connection method can realize the conduction and disconnection of the current. The control electrode of the forward SCR and the control electrode of the reverse SCR are connected to form the third end of the SCR circuit. By controlling this terminal (the third end), the conduction and disconnection of the forward SCR and the reverse SCR can be controlled, thereby realizing the control of the current. Through this connection method, the SCR circuit can realize accurate control and switching of the current, ensure the balanced distribution of the current, and provide a stable current environment for switching on and off the grid. At the same time, this connection method also helps to improve the reliability and efficiency of the circuit.

[0114] The switching module of the present invention is combined with Fig. 9 As shown, each switching module includes an input voltage detection circuit, an SCR drive circuit, a current detection circuit, an output voltage detection circuit, an SCR circuit and a controller. One end of the input voltage detection circuit is connected to the power grid, and the other end is connected to the current detection circuit, the SCR circuit and the output voltage detection circuit in sequence. The other end of the output voltage detection circuit is connected to the photovoltaic / energy storage inverter to monitor the voltage output from the inverter. The input voltage detection circuit, the current detection circuit, the SCR circuit and the output voltage detection circuit are respectively connected to the controller; these detection circuits are responsible for monitoring the voltage and current in the system and transmitting relevant information to the controller. The controller is connected to the SCR drive circuit to control the opening and closing of the SCR circuit. Among them, the SCR circuit includes a forward SCR circuit and a reverse SCR circuit, which are connected in parallel. SCR (silicon controlled rectifier) ​​is a semiconductor device that can realize the control of alternating current. In addition, each switching module is connected to the controller for communication to ensure the coordinated operation of each switching module in the system.

[0115] In this embodiment, through the synergistic effect of the above components, each switching module can effectively monitor the voltage and current conditions of the power grid and the inverter, and perform corresponding operations according to the instructions of the controller to ensure stable operation and smooth switching of the system.

[0116] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0117] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for switching between grid and off-grid, characterized in that: The method is applied to an on-grid and off-grid switching device, which includes a plurality of switching modules for being arranged between a photovoltaic / energy storage inverter and a power grid, each of the switching modules being connected in parallel to form a parallel connection point; The on-grid and off-grid switching method comprises: Obtaining a circuit equivalent impedance of the switching module between the parallel connection points; Determining a virtual impedance corresponding to the switching module according to the circuit equivalent impedance, wherein the virtual impedance is greater than the circuit equivalent impedance; Controlling the current flowing through the switching modules according to the virtual impedance so that the effective values ​​of the currents of the switching modules are equal; When the effective current values ​​of each switching module are equal, the switching between on-grid and off-grid is performed by controlling the switching switch.

2. The on-grid and off-grid switching method according to claim 1, characterized in that: The obtaining of the circuit equivalent impedance of the switching modules between the parallel connection points includes: According to the circuit structure of the switching module and the loop length of the switching module, the internal resistance of the switching module, the loop equivalent resistance and the loop equivalent inductance of the parallel branch where the switching module is located are measured, and the circuit equivalent impedance is determined according to the internal resistance, the loop equivalent resistance and the loop equivalent inductance.

3. The on-grid and off-grid switching method according to claim 1, characterized in that: Before controlling the current flowing through the switching modules according to the virtual impedance so that the effective values ​​of the currents of the switching modules are equal, the method further includes: Determining the peak current of the switching module by means of a current detection circuit of the switching module; Determining the module current according to the peak current; The effective value of the current of the switching module is obtained according to the module current.

4. The on-grid and off-grid switching method according to claim 3, characterized in that: The determining the module current according to the peak current includes: According to the peak current, determining the module current of each switching module by using a module current calculation formula; The module current calculation formula is: i n (t)=I pkn *sin(ωt); Among them, I pkn is the peak current of the nth switching module, sin(ωt) is a sinusoidal waveform, i n (t) is the module current of the nth switching module, ω represents the frequency of the module current change, and t represents time.

5. The on-grid and off-grid switching method according to claim 3, characterized in that: The step of obtaining the effective current value of the switching module according to the module current includes: According to the module current, determining the effective value of the current of the switching module by using the effective value calculation formula; The effective value calculation formula is: Among them, I rms1 is the effective value of the current of the first switching module, I rmsn (α) is the effective value of the current of the nth switching module, α is the conduction angle of the thyristor of the nth switching module, I pkn is the peak current of the nth switching module, sin(ωt) is a sinusoidal waveform, ω represents the frequency of the module current change, t represents time, and T represents the period of the module current change.

6. The on-grid and off-grid switching method according to claim 3, characterized in that: The controlling the current flowing through the switching modules according to the virtual impedance so that the effective values ​​of the currents of the switching modules are equal comprises: The nth switching module is controlled to delay triggering the conduction angle after the zero crossing point, so that the effective value of the current of the nth switching module is equal to the effective value of the current of the first switching module, wherein n is greater than or equal to 2.

7. A grid-connected and off-grid switching system, characterized in that: The invention comprises a computer-readable storage medium storing a computer program and a processor, and when the computer program is read and executed by the processor, the on-grid and off-grid switching method as claimed in any one of claims 1 to 6 is implemented.

8. The grid-connected and off-grid switching system according to claim 7, characterized in that: The on-grid and off-grid switching system also includes an on-grid and off-grid switching device, a photovoltaic / energy storage inverter and a power grid; The on-grid and off-grid switching device includes at least two switching modules, one end of each switching module is connected to the grid, and the other end of each switching module is connected to the AC output side of the photovoltaic / energy storage inverter, so that each switching module is connected in parallel.

9. The grid-connected and off-grid switching system according to claim 8, characterized in that: Each of the switching modules includes an input voltage detection circuit, an SCR drive circuit, a current detection circuit, an output voltage detection circuit, an SCR circuit and a controller; One end of the input voltage detection circuit is connected to the power grid, the other end of the input voltage detection circuit is connected to one end of the current detection circuit and the first end of the SCR circuit in sequence, the second end of the SCR circuit is connected to one end of the output voltage detection circuit, and the other end of the output voltage detection circuit is connected to the photovoltaic / energy storage inverter; the other end of the input voltage detection circuit, the other end of the current detection circuit and the other end of the output voltage detection circuit are connected to the controller respectively, the controller is also connected to one end of the SCR drive circuit, and the other end of the SCR drive circuit is connected to the third end of the SCR circuit.

10. The grid-connected and off-grid switching system according to claim 9, characterized in that: The SCR circuit includes a forward SCR and a reverse SCR, wherein the forward SCR and the reverse SCR are connected in parallel, wherein an anode of the forward SCR circuit and a cathode of the reverse SCR circuit are connected to form a first end of the SCR circuit, a cathode of the forward SCR circuit and an anode of the reverse SCR circuit are connected to form a second end of the SCR circuit, and a control electrode of the forward SCR circuit and a control electrode of the reverse SCR circuit are connected to form a third end of the SCR circuit.