Reactive power control method and device, controller and storage medium of photovoltaic inverter

By using the transformer and H-bridge circuit in the micro photovoltaic inverter, and using the phase-locked loop to lock the phase difference between the output current and the output voltage, the control of reactive power is realized, solving the problem of reactive power control in the existing technology, and promoting The equipment is miniaturized and lightweight.

CN118367629BActive Publication Date: 2024-09-06GONEO GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410798206.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-06
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

It is difficult for existing micro photovoltaic inverters to achieve output control of reactive power, and due to excessive hardware burden, their development in miniaturization and lightweight is limited.

Method used

The transformer, the first switching element and the H-bridge circuit are used to lock the phase of the output current to a specific angle with the output voltage through a phase-locked loop to achieve control of the reactive power and avoid the need for the output current sensor. dependence.

Benefits of technology

It realizes the output control of the reactive power of the photovoltaic inverter, improves the control performance, and promotes the miniaturization and lightweight of the micro photovoltaic grid-connected inverter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118367629B
    Figure CN118367629B
Patent Text Reader

Abstract

The present application relates to a reactive power control method and device, controller, and storage medium for a photovoltaic inverter, and belongs to the field of photovoltaic technology. The photovoltaic inverter includes a first switching element connected in series with the primary coil of the transformer, and the method includes: obtaining the active power value and the target reactive power value of the photovoltaic inverter; controlling the time period when the first switching element conducts the first end and the second end in a manner that the phase of the output current of the photovoltaic inverter is locked to a first angle with the phase difference between the output voltage of the photovoltaic inverter by using a phase-locked loop; wherein the first angle is proportional to the arc tangent value of the first ratio, and the first ratio is equal to the target reactive power value divided by the active power value. The present application can realize the output control of the reactive power of the photovoltaic inverter without the aid of an output current sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of photovoltaic technology, and in particular to a reactive power control method and device, a controller, and a storage medium for a photovoltaic inverter. Background Art

[0002] Microinverter (full name: "micro photovoltaic grid-connected inverter") generally refers to an inverter with a power of less than or equal to 1 kilowatt in a photovoltaic power generation system and a component-level MPPT (Maximum Power Point Tracking) controller. The traditional photovoltaic inversion method is to connect all the DC power generated by all photovoltaic cells under sunlight in series and parallel, and then use an inverter to invert the DC power into AC power and connect it to the grid, while the microinverter inverts each component. Its advantage is that each component can be independently MPPT controlled, which can greatly improve the overall efficiency, and at the same time, it can also improve the defects of centralized inverters such as DC high voltage, poor weak light effect, and barrel effect.

[0003] However, current micro-inverters generally use a unidirectional front-stage flyback circuit, so the corresponding control method can only achieve active power output control, but it is difficult to control reactive power output. In this regard, although the output current sensor can be added to achieve closed-loop control of output current and reactive power, the output current sensor is too heavy a hardware burden for a huge number of micro-inverters, which is not conducive to the miniaturization and lightweighting of micro-inverters. Summary of the invention

[0004] The present application provides a reactive power control method and device, a controller, and a storage medium for a photovoltaic inverter, which can realize output control of reactive power of a photovoltaic inverter without the aid of an output current sensor.

[0005] The present application provides a reactive power control method for a photovoltaic inverter, wherein the photovoltaic inverter comprises a transformer, a first switching element and an H-bridge circuit, wherein the transformer has a primary coil and a secondary coil, wherein the positive input terminal of the photovoltaic inverter is connected to the first end of the first switching element through the two ends of the primary coil, and the second end of the first switching element is connected to the negative input terminal of the photovoltaic inverter, wherein the two input terminals of the H-bridge circuit are respectively connected to the two ends of the secondary coil, and the two output terminals of the H-bridge circuit are respectively connected to the positive output terminal and the negative output terminal of the photovoltaic inverter, wherein the method comprises:

[0006] Obtaining an active power value and a target reactive power value of the photovoltaic inverter;

[0007] The phase of the output current of the photovoltaic inverter is locked to a first angle with the output voltage of the photovoltaic inverter by using a phase-locked loop, and the time period during which the first switching element is turned on at the first end and the second end is controlled; wherein the first angle is proportional to the arc tangent value of a first ratio, and the first ratio is equal to the target reactive power value divided by the active power value.

[0008] In some possible implementations, the method further includes: controlling the H-bridge circuit to switch to a fully off state within each target time period, each target time period being a time period in which the phase of the output voltage of the photovoltaic inverter changes from a first phase to a second phase, the first phase and the second phase being a phase that is ahead of a zero phase by an absolute value of the first angle and a phase that is behind the zero phase by an absolute value of the first angle, respectively.

[0009] In some possible implementations, the active power value is an expected value of the active power of the photovoltaic inverter.

[0010] In some possible implementations, the acquiring the active power value and the target reactive power value of the photovoltaic inverter includes: when it is determined that the reactive power control mode is enabled, acquiring the active power value and the target reactive power value of the photovoltaic inverter.

[0011] In some possible implementations, the step of controlling the time period during which the first switching element conducts between the first end and the second end by locking the phase of the output current of the photovoltaic inverter to a first angle with the output voltage of the photovoltaic inverter by using a phase-locked loop includes:

[0012] Obtaining measured values ​​of input voltage, primary current and output voltage of the photovoltaic inverter;

[0013] Calculating a reference value of the input voltage based on the measured value of the input voltage and the measured value of the primary current using a maximum power point tracking algorithm;

[0014] Calculating a reference value of the peak current value of the primary current based on a reference value of the input voltage using a proportional-integral control algorithm;

[0015] Calculating a reference angle value of the phase of the primary current based on the measured value of the output voltage and the first angle using a phase-locked loop algorithm;

[0016] Based on the reference value of the primary current and the measured value of the primary current, the time period during which the first switching element is turned on between the first end and the second end is controlled, and the reference value of the primary current is equal to the reference value of the peak current value of the primary current multiplied by the sine value of the reference angle value of the phase of the primary current.

[0017] In some possible implementations, the first angle is equal to 0.7 to 1.0 times the arc tangent value of the first ratio.

[0018] In some possible implementations, the first angle is equal to an arc tangent of the first ratio.

[0019] The present application also provides a reactive power control device for a photovoltaic inverter, the photovoltaic inverter comprising a transformer, a first switch element and an H-bridge circuit, the transformer having a primary coil and a secondary coil, the positive input end of the photovoltaic inverter being connected to the first end of the first switch element through the two ends of the primary coil, the second end of the first switch element being connected to the negative input end of the photovoltaic inverter, the two input ends of the H-bridge circuit being respectively connected to the two ends of the secondary coil, the two output ends of the H-bridge circuit being respectively connected to the positive output end and the negative output end of the photovoltaic inverter, the device comprising:

[0020] An acquisition module, used to acquire an active power value and a target reactive power value of the photovoltaic inverter;

[0021] A control module is used to control the time period during which the first switch element conducts the first end and the second end in a manner that the phase of the output current of the photovoltaic inverter is locked to a first angle with the phase difference between the output voltage of the photovoltaic inverter by using a phase-locked loop; wherein the first angle is proportional to the arc tangent value of a first ratio, and the first ratio is equal to the target reactive power value divided by the active power value.

[0022] The present application also provides a controller for a photovoltaic inverter, the controller comprising a processor and a memory, the memory storing at least one executable instruction, and the processor being used to execute the executable instruction to implement any one of the above-mentioned reactive power control methods.

[0023] A computer-readable storage medium stores executable instructions of a processor, wherein the executable instructions are configured to enable the processor to implement any one of the above-mentioned reactive power control methods when executed by the processor.

[0024] In the embodiment of the present application, for a photovoltaic inverter in which the primary side of the transformer is a flyback circuit and the secondary side of the transformer is an H-bridge, the above method adopts a method of using a phase-locked loop to lock the phase difference between the output voltage and the output current, and calculates the angle value of the phase difference based on the active power value and the target reactive power value, thereby realizing open-loop control of the reactive power of the photovoltaic inverter; since the control process does not depend on the measured value of the secondary side output current, there is no need to set an output current sensor in the photovoltaic inverter, and the output control of the reactive power of the photovoltaic inverter can be realized without the aid of the output current sensor, helping to realize a micro photovoltaic grid-connected inverter with better control performance and smaller size.

[0025] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0027] Figure 1 is a partial circuit structure diagram of a photovoltaic inverter provided in an embodiment of the present application;

[0028] Figure 2 It is a schematic diagram of the steps of a reactive power control method provided in an embodiment of the present application;

[0029] Figure 3 is a control process schematic diagram of a reactive power control method provided in an embodiment of the present application;

[0030] Figure 4 It is a signal simulation schematic diagram of a control process of a reactive power control method provided in an embodiment of the present application;

[0031] Figure 5 It is a signal simulation schematic diagram of a control process of another reactive power control method provided in an embodiment of the present application;

[0032] Figure 6 It is a structural block diagram of a reactive power control device for a photovoltaic inverter provided in an embodiment of the present application;

[0033] Figure 7 It is a structural block diagram of a controller of a photovoltaic inverter provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0035] The terms used in the embodiments of the present disclosure are only used to explain the embodiments of the present disclosure, and are not intended to limit the present disclosure. Unless otherwise defined, the technical terms or scientific terms used herein should be the common meanings understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second", "third" and similar words used in the patent application specification and claims of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one" or "one" do not indicate a quantitative limit, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing in front of "include" or "comprise" include the elements or objects listed after "include" or "comprise" and their equivalents, and do not exclude other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.

[0036] Figure 1 is a partial circuit structure diagram of a photovoltaic inverter provided in an embodiment of the present application. Figure 1 The photovoltaic inverter has a positive input terminal M1, a negative input terminal M0, a positive output terminal N1 and a negative output terminal N0, and includes a transformer T0, an H-bridge circuit 10, a first switch element Sw (for example, a transistor of the type of MOSFET), a first capacitor C1, a first diode D1, a second capacitor C2, a third capacitor C3 and a first inductor Lg. The transformer T0 has a primary coil ( Figure 1 The left coil in the middle) and the secondary coil ( Figure 1 The two ends of the first capacitor C1 are connected to the positive input terminal M1 and the negative input terminal M0 respectively. The positive input terminal M1 is also connected to the negative input terminal M0 through the two ends of the primary coil and the first and second poles of the first switch element Sw in sequence. The first switch element Sw is connected to a switch control signal (such as a pulse width modulation signal), so that a flyback circuit is implemented on the primary side (front stage) of the transformer. One end of the secondary coil is respectively connected to the positive electrode of the first diode D1, one end of the second capacitor C2, and the positive input end of the H-bridge circuit 10, the other end of the secondary coil is respectively connected to the other end of the second capacitor C2 and the negative input end of the H-bridge circuit 10, the positive output end of the H-bridge circuit 10 is respectively connected to one end of the first inductor Lg and one end of the third capacitor C3, the other end of the first inductor Lg is connected to the positive output end N1 of the photovoltaic inverter, and the negative output end of the H-bridge circuit 10 is respectively connected to the other end of the third capacitor C3 and the negative output end N0 of the photovoltaic inverter; the H-bridge circuit 10 includes a first thyristor S1, a second thyristor S3, a first transistor S2, and a second transistor S4. In this way, an H-bridge commutation circuit is realized on the secondary side (latter stage) of the transformer.

[0037] Figure 2 is a schematic diagram of the steps of a reactive power control method provided by an embodiment of the present application. Figure 2 , this method is applied to photovoltaic inverters ( Figure 1 The circuit structure is taken as an example of a photovoltaic inverter), and includes the following steps.

[0038] In step 201, an active power value and a target reactive power value of a photovoltaic inverter are obtained.

[0039] In step 202, the phase of the output current of the photovoltaic inverter is locked to a first angle with the output voltage of the photovoltaic inverter by using a phase-locked loop, and the time period during which the first end and the second end of the first switching element are turned on is controlled; wherein the first angle is proportional to the arc tangent value of the first ratio, and the first ratio is equal to the target reactive power value divided by the active power value.

[0040] It should be noted that the target reactive power value refers to the reactive power value expected to be output by the photovoltaic inverter when the reactive power is controlled, which can be positive (indicating that the reactive power expected to be output is capacitive) or negative (indicating that the reactive power expected to be output is inductive), and can be input by the user, received from the host computer, read from the memory, or calculated through other relevant input parameters in different implementation examples. The active power value can be the active power value expected to be output by the photovoltaic inverter in power control, or it can be the active power value calculated by combining the actual measured parameters and the expected parameters.

[0041] It should be understood that a phase-locked loop is commonly used for phase and frequency control and can be implemented based on hardware circuits and / or software programs; specifically in the embodiment of the present application, the phase-locked control of the phase-locked loop is used to lock the phase of the output current of the photovoltaic inverter to a phase difference of the output voltage of the photovoltaic inverter to the first angle mentioned above. Figure 1 In one example, the control method includes the steps of collecting measured values ​​of input voltage Vpv, primary current ipv and output voltage Vg, and performing switch control on the first switching element Sw and the H-bridge circuit based on these measured values ​​and expected values ​​(reference values) of each parameter; utilizing the phase-locked loop control principle, the phase-locked loop can output the measured value of the voltage Vg and the phase angle of the input voltage Vpv to lock the phase of the output current and the primary current ipv; different from the related art in which the phase difference is generally set to 0, in the embodiment of the present application, based on the control demand of reactive power, the phase of the output current is locked to a first angle by controlling the phase of the primary current ipv to have a phase difference with the output voltage Vg of the photovoltaic inverter, wherein the first angle is proportional to arctan(Qn / Pn), wherein Qn is the above-mentioned target reactive power value, and Pn is the above-mentioned active power value.

[0042] For example, when Pn=1pu and Qn=0.33pu, the first angle is 1.0 times arctan(0.33), which is equal to 0.32rad, so that the phase-locked loop locks the phase of the output current to a phase difference of 0.32rad (current leading voltage) with the output voltage Vg of the photovoltaic inverter by controlling the phase of the primary current ipv, thereby realizing the output of capacitive reactive power; and when Pn=1pu and Qn=-0.33pu, the first angle is equal to -0.32rad, so that the phase-locked loop locks the phase of the output current to a phase difference of -0.32rad (current lagging voltage) with the output voltage Vg of the photovoltaic inverter by controlling the phase of the primary current ipv, thereby realizing the output of inductive reactive power. In other examples, the ratio between the first angle and arctan(Qn / Pn) may be selected within the range of 0.7 to 1.0, and may be set to values ​​such as 0.70, 0.75, 0.80, 0.85, 0.90, 0.95, 1.00, etc.

[0043] It can be seen that in the embodiment of the present application, for the photovoltaic inverter in which the primary side of the transformer is a flyback circuit and the secondary side of the transformer is an H-bridge, the above method adopts a method of using a phase-locked loop to lock the phase difference between the output voltage and the output current, and calculates the angle value of the phase difference based on the active power value and the target reactive power value, thereby realizing open-loop control of the reactive power of the photovoltaic inverter; since the control process does not depend on the measured value of the secondary side output current, there is no need to set an output current sensor in the photovoltaic inverter, and the output control of the reactive power of the photovoltaic inverter can be realized without the aid of the output current sensor, helping to realize a micro photovoltaic grid-connected inverter with better control performance and smaller size.

[0044] Figure 3 Schematic diagram of the control process of a reactive power control method provided by an embodiment of the present application. Figure 3 In one example, step 202 in the above reactive power control method specifically includes the following control process.

[0045] First, the control algorithm needs to obtain the measured value Vpv_0 of the input voltage of the photovoltaic inverter, the measured value ipv_0 of the primary current, and the measured value Vg_0 of the output voltage as the input of the algorithm, which can be obtained by the controller (not shown in the figure) through the signal input terminal of the photovoltaic inverter controller (not shown in the figure) connected to the circuit components such as the current detection element, the current detection circuit, the voltage detection element, and the voltage detection circuit, etc. Correspondingly, the multiple signal output terminals of the control algorithm of the controller are respectively connected to the first switching element Sw and each element in the H-bridge circuit, so as to control the switching signal such as the PWM signal. Figure 1 The inverter circuit structure shown is controlled.

[0046] See also Figure 3 , the maximum power point tracking algorithm MPPT can be used to calculate the reference value Vpv_1 of the input voltage based on the measured value Vpv_0 of the input voltage and the measured value ipv_0 of the primary current; then, the proportional-integral (PI) control algorithm is used to calculate the reference value Ip_1 of the peak current value of the primary current based on the reference value Vpv_1 of the input voltage; in addition, the phase-locked loop algorithm is used to calculate the reference angle value |sin(θ+Δθ)| of the phase of the primary current based on the measured value Vg_0 of the output voltage and the above-mentioned first angle; then, the reference value ipv_0 of the primary current (i.e., Ip_1*|sin(θ+Δθ)|) is calculated by a multiplier, and the time period during which the first switching element Sw is turned on between the first end and the second end is controlled based on the reference value ipv_0 of the primary current and the measured value ipv_1 of the primary current. For example, when the measured value ipv_1 is less than the reference value ipv_0, the output switch control signal Sw1 is at a high level, thereby controlling the first switch element Sw to turn on the first end and the second end; when the measured value ipv_1 is greater than or equal to the reference value ipv_0, the output switch control signal Sw1 is at a low level, thereby controlling the first switch element Sw to disconnect the first end and the second end.

[0047] See also Figure 3 In the above control algorithm, the measured value Vg_0 of the output voltage and the zero voltage are also input into the comparator to generate the control signals S11 and S41 of the first thyristor S1 and the second transistor S4, as well as the control signals S21 and S31 of the second thyristor S3 and the first transistor S2 which are inversely phase with each other, thereby realizing the function of the H-bridge commutation circuit.

[0048] Figure 4 Schematic diagram of signal simulation of a control process of a reactive power control method provided in an embodiment of the present application. Taking the case where the target reactive power value is negative as an example, through circuit and signal simulation, the control process implemented on the controller of the photovoltaic inverter is as follows: Figure 3 The waveforms of the output current Ig, output voltage Vg and primary current igv of the control process shown are as follows Figure 4 It can be seen that under the action of the phase-locked loop control algorithm, the envelope signal of the waveform of the primary current igv lags behind the waveform of the output voltage Vg as a whole (the lag angle is the first angle mentioned above), which shows that the above control process has exerted the expected control effect.

[0049] However, from Figure 4 It can be seen from the waveform of the output current Ig that near the zero-phase moment of the output voltage Vg waveform, the waveform of the output current Ig has a large peak, which is obviously not conducive to the stable operation of the photovoltaic inverter and is also easy to trigger restrictive measures such as overcurrent protection.

[0050] To address this issue, the above-mentioned control method may also include: controlling the H-bridge circuit to switch to a fully off state (corresponding dead time setting) within each target time period, and each target time period is a time period in which the phase of the output voltage of the photovoltaic inverter changes from a first phase to a second phase, and the first phase and the second phase are respectively a phase that is ahead of a zero phase by an absolute value of a first angle and a phase that lags behind the zero phase by an absolute value of a first angle.

[0051] That is, independent of the above control process, the above method also sets the dead time of the H-bridge circuit. For example, when the above first angle is 0.32 rad, the photovoltaic inverter forces the first thyristor S1, the second thyristor S3, the first transistor S2 and the second transistor S4 in the H-bridge circuit 10 to be turned off (regardless of the output result of the above control algorithm), during which the output voltage should be kept at zero voltage, and the output current should be kept at the same level for a short time through the electric energy stored by the inductor.

[0052] Figure 5 1 is a signal simulation diagram of a control process of another reactive power control method provided in an embodiment of the present application. By taking the case where the target reactive power value is negative as an example, through circuit and signal simulation, the waveforms of the output current Ig, output voltage Vg and primary current igv of the control process combined with the dead time setting implemented on the controller of the photovoltaic inverter are as follows: Figure 5 As shown. It can be seen that through the above setting of dead time, Figure 5 The output voltage Vg is maintained at 0V in each target period. Figure 4 and Figure 5 It can be seen that the peak signal on the output current Ig is significantly improved near this period.

[0053] In addition, in some examples, the above step 201 may specifically include: when it is determined that the reactive power control mode is enabled, obtaining the active power value and the target reactive power value of the photovoltaic inverter. For example, the controller of the photovoltaic inverter may determine an identifier that identifies whether the reactive power control mode is enabled by receiving user input, receiving from a host computer, or reading from a memory, and only execute the above reactive power control-related steps when the identifier represents that the reactive power control mode is enabled. In some examples, when the identifier represents that the reactive power control mode is not enabled, the output of the photovoltaic inverter is controlled only by the active power control process (compared to Figure 3 The only difference from the control process shown is that the phase-locked loop locks the primary current igv to have no phase difference compared to the output voltage Vg).

[0054] Correspondingly, Figure 6 This is a structural block diagram of a reactive power control device for a photovoltaic inverter provided in an embodiment of the present application. The photovoltaic inverter includes a transformer, a first switching element and an H-bridge circuit, the transformer has a primary coil and a secondary coil, the positive input end of the photovoltaic inverter is connected to the first end of the first switching element through the two ends of the primary coil, the second end of the first switching element is connected to the negative input end of the photovoltaic inverter, the two input ends of the H-bridge circuit are respectively connected to the two ends of the secondary coil, and the two output ends of the H-bridge circuit are respectively connected to the positive output end and the negative output end of the photovoltaic inverter; see Figure 6 , the device comprises:

[0055] An acquisition module 61 is used to acquire an active power value and a target reactive power value of the photovoltaic inverter;

[0056] The control module 62 is used to control the time period during which the first switching element is turned on at the first end and the second end in a manner that the phase of the output current of the photovoltaic inverter is locked to a first angle with the phase difference between the output voltage of the photovoltaic inverter by using a phase-locked loop; wherein the first angle is proportional to the arc tangent value of a first ratio, and the first ratio is equal to the target reactive power value divided by the active power value.

[0057] The optional implementation methods of the reactive power control device can refer to the above description of the reactive power control method, which will not be described in detail here.

[0058] Figure 7 is a structural block diagram of a controller of a photovoltaic inverter provided in an embodiment of the present application. Figure 7 The controller of the photovoltaic inverter includes a processor 21 and a memory 22 for storing executable instructions of the processor 21; wherein the processor 21 is used to execute the executable instructions to implement any of the above-mentioned reactive power control methods. As an example, the processor 21 can be, for example, one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0059] The embodiment of the present application also provides a computer-readable storage medium, which is a non-volatile storage medium, and the storage medium stores executable instructions of a processor, and the executable instructions are configured to enable the processor to implement any of the above-mentioned reactive power control methods when executed by the processor. Taking the above-mentioned memory 22 as an example, the computer-readable storage medium of the embodiment of the present application can be used to realize the output control of reactive power of a photovoltaic inverter without the aid of an output current sensor.

[0060] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A reactive power control method for a photovoltaic inverter, It is characterized in that The photovoltaic inverter comprises a transformer, a first switch element and an H-bridge circuit, the transformer has a primary coil and a secondary coil, the positive input terminal of the photovoltaic inverter is connected to the first end of the first switch element through the two ends of the primary coil, the second end of the first switch element is connected to the negative input terminal of the photovoltaic inverter, the two input terminals of the H-bridge circuit are respectively connected to the two ends of the secondary coil, and the two output terminals of the H-bridge circuit are respectively connected to the positive output terminal and the negative output terminal of the photovoltaic inverter, and the method comprises: Obtaining an active power value and a target reactive power value of the photovoltaic inverter; The phase of the output current of the photovoltaic inverter is locked to a first angle with the output voltage of the photovoltaic inverter by using a phase-locked loop, and the time period during which the first end and the second end of the first switching element are turned on is controlled; wherein the first angle is proportional to the arc tangent value of a first ratio, and the first ratio is equal to the target reactive power value divided by the active power value; The method of controlling the time period during which the first switching element conducts the first end and the second end by locking the phase of the output current of the photovoltaic inverter to a first angle with the output voltage of the photovoltaic inverter by using a phase-locked loop comprises: Obtaining measured values ​​of input voltage, primary current and output voltage of the photovoltaic inverter; Calculating a reference value of the input voltage based on the measured value of the input voltage and the measured value of the primary current using a maximum power point tracking algorithm; Calculating a reference value of a peak current value of the primary current based on a reference value of the input voltage; Calculating a reference angle value of the phase of the primary current based on the measured value of the output voltage and the first angle; Based on the reference value of the primary current and the measured value of the primary current, the time period during which the first switching element is turned on between the first end and the second end is controlled, and the reference value of the primary current is equal to the reference value of the peak current value of the primary current multiplied by the sine value of the reference angle value of the phase of the primary current.

2. The method according to claim 1, It is characterized in that The method further comprises: The H-bridge circuit is controlled to switch to a fully off state within each target time period, and each target time period is a time period in which the phase of the output voltage of the photovoltaic inverter changes from a first phase to a second phase, and the first phase and the second phase are respectively a phase that leads a zero phase by an absolute value of the first angle and a phase that lags behind the zero phase by an absolute value of the first angle.

3. The method according to claim 1, It is characterized in that The active power value is an expected value of the active power of the photovoltaic inverter.

4. The method according to claim 1, It is characterized in that The obtaining of the active power value and the target reactive power value of the photovoltaic inverter includes: When it is determined that the reactive power control mode is enabled, an active power value and a target reactive power value of the photovoltaic inverter are obtained.

5. The method according to claim 1, It is characterized in that The calculating the reference value of the peak current value of the primary current based on the reference value of the input voltage comprises: using a proportional-integral control algorithm to calculate the reference value of the peak current value of the primary current based on the reference value of the input voltage; Calculating the reference angle value of the phase of the primary current based on the measured value of the output voltage and the first angle includes: using a phase-locked loop algorithm to calculate the reference angle value of the phase of the primary current based on the measured value of the output voltage and the first angle.

6. The method according to any one of claims 1 to 5, It is characterized in that The first angle is equal to 0.7 to 1.0 times the arc tangent value of the first ratio.

7. The method according to any one of claims 1 to 5, It is characterized in that The first angle is equal to the arc tangent of the first ratio.

8. A reactive power control device for a photovoltaic inverter, It is characterized in that The photovoltaic inverter comprises a transformer, a first switch element and an H-bridge circuit, wherein the transformer has a primary coil and a secondary coil, the positive input terminal of the photovoltaic inverter is connected to the first end of the first switch element through the two ends of the primary coil, the second end of the first switch element is connected to the negative input terminal of the photovoltaic inverter, the two input terminals of the H-bridge circuit are respectively connected to the two ends of the secondary coil, and the two output terminals of the H-bridge circuit are respectively connected to the positive output terminal and the negative output terminal of the photovoltaic inverter, and the device comprises: An acquisition module, used to acquire an active power value and a target reactive power value of the photovoltaic inverter; A control module, configured to control a period during which the first switch element conducts the first end and the second end in a manner that the phase of the output current of the photovoltaic inverter is locked to a first angle with respect to the output voltage of the photovoltaic inverter by using a phase-locked loop; wherein the first angle is proportional to an inverse tangent value of a first ratio, and the first ratio is equal to the target reactive power value divided by the active power value; The method of controlling the time period during which the first switching element conducts the first end and the second end by locking the phase of the output current of the photovoltaic inverter to a first angle with the output voltage of the photovoltaic inverter by using a phase-locked loop comprises: Obtaining measured values ​​of input voltage, primary current and output voltage of the photovoltaic inverter; Calculating a reference value of the input voltage based on the measured value of the input voltage and the measured value of the primary current using a maximum power point tracking algorithm; Calculating a reference value of a peak current value of the primary current based on a reference value of the input voltage; Calculating a reference angle value of the phase of the primary current based on the measured value of the output voltage and the first angle; Based on the reference value of the primary current and the measured value of the primary current, the time period during which the first switching element is turned on between the first end and the second end is controlled, and the reference value of the primary current is equal to the reference value of the peak current value of the primary current multiplied by the sine value of the reference angle value of the phase of the primary current.

9. A photovoltaic inverter controller, It is characterized in that The controller includes a processor and a memory, wherein the memory stores at least one executable instruction, and the processor is configured to execute the executable instruction to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores executable instructions of a processor, and the executable instructions are configured to cause the processor to implement the method according to any one of claims 1 to 7 when executed by the processor.