Reactive power error correction method, controller and photovoltaic energy storage system

By constructing three-dimensional correction data and calculating reactive power error compensation using ramp functions, the accuracy and adaptability issues of reactive power correction methods under dynamic changes in grid voltage and device aging were resolved, achieving high-precision reactive power control.

CN123163101APending Publication Date: 2026-11-24FOSHAN SHUNDE MIDEA ELECTRONICS TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510677852.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing reactive power correction methods suffer from problems such as dynamic response lag, low compensation accuracy, resource waste, and inability to adapt to dynamic changes in grid voltage and device aging. In particular, the power factor fails to meet the standard when the grid voltage drops in photovoltaic grid-connected scenarios.

Method used

The system obtains the actual reactive power measurement value by acquiring the power meter on the grid side, constructs three-dimensional correction data of reactive power setpoint, grid voltage value and reactive power measurement value, uses the ramp function to calculate the reactive power error compensation amount, corrects the reactive power setpoint, improves its accuracy, and adopts an automatic correction mechanism to adapt to grid voltage fluctuations.

Benefits of technology

It improves the accuracy of reactive power setting values, can adapt to complex operating conditions such as grid voltage fluctuations, ensures grid stability and power quality, and reduces control errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123163101A_ABST
    Figure CN123163101A_ABST
Patent Text Reader

Abstract

This application discloses a method, controller, and photovoltaic energy storage system for correcting reactive power error. The method obtains the actual reactive power measurement value from the grid-side meter, then determines the reactive power error between the reactive power setpoint and the measured value, and constructs three-dimensional correction data of the reactive power setpoint, grid voltage value, and reactive power measurement value. In actual operation, based on the currently acquired real-time grid voltage value, a ramp function is used to smoothly switch the three-dimensional correction data to obtain the reactive power error compensation amount. This compensation amount is used to correct the reactive power setpoint, improving its accuracy. Because this process considers the reactive power measurement value from the grid-side meter and is based on the three-dimensional correction data, it can adapt to complex operating conditions such as grid voltage fluctuations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of photovoltaic application technology, and in particular to a method for correcting reactive power error, a controller, and a photovoltaic energy storage system. Background Technology

[0002] As the core equipment of new energy power generation systems, the accuracy of the reactive power output of grid-connected inverters directly affects the stability of the power grid and the power quality.

[0003] In related technologies, reactive power correction methods based on fixed thresholds / static compensation employ static capacitor banks or fixed compensation devices, triggering compensation through preset voltage / current thresholds and relying on traditional proportional-integral control algorithms to regulate reactive power. This method suffers from problems such as dynamic response lag, inability to adapt to rapidly changing operating conditions, low compensation accuracy, and resource waste. Traditional piecewise interpolation methods, when reactive power fluctuates, process grid data in segments, using fixed interpolation nodes (such as equidistant interpolation) to approximate the actual curve. Relying on offline calibration data under fixed operating conditions, they cannot adapt to dynamic changes in grid voltage and parameter drift caused by device aging. Summary of the Invention

[0004] This application provides a method, controller, and photovoltaic energy storage system for correcting reactive power errors, which can reduce reactive power errors and adapt to complex operating conditions such as grid voltage fluctuations.

[0005] In a first aspect, embodiments of this application provide a method for correcting reactive power errors, comprising: The reactive power error is determined based on the reactive power setpoint of the grid-connected inverter and the reactive power measurement value measured by the grid-side meter, and three-dimensional correction data is generated based on the correspondence between the reactive power setpoint, the reactive power error and the grid voltage value. Obtain the real-time value of the power grid voltage, and calculate the reactive power error compensation amount according to the slope function based on the real-time value of the power grid voltage and the three-dimensional correction data. The reactive power setpoint is corrected based on the reactive power error compensation amount, and the grid-connected inverter is controlled based on the corrected reactive power setpoint.

[0006] In some embodiments, generating three-dimensional correction data based on the correspondence between the reactive power setpoint, the reactive power error, and the grid voltage value includes: Determine the reactive power error corresponding to different reactive power setpoints and different grid voltage values; A first three-dimensional array is determined based on the correspondence between the reactive power setpoint, the square of the grid voltage value, and the reactive power error, and three-dimensional correction data is constructed based on multiple first three-dimensional arrays.

[0007] In some embodiments, constructing three-dimensional correction data based on a plurality of the first three-dimensional arrays includes: A second three-dimensional array is generated by interpolation according to a preset step size based on the distance between at least two of the first three-dimensional arrays; Three-dimensional correction data is constructed based on the first three-dimensional array and the second three-dimensional array.

[0008] In some embodiments, the step of calculating and determining the reactive power error compensation amount according to the real-time grid voltage value and the three-dimensional correction data using a ramp function includes: The current set value of reactive power of the grid-connected inverter is determined based on the real-time value of the grid voltage. The three-dimensional correction data is searched according to the real-time value of the grid voltage and / or the current set value of the reactive power to determine the corresponding current error of reactive power. The reactive power error compensation amount is obtained by substituting the real-time grid voltage value, the current set reactive power value, and the current reactive power error into the ramp function for linear interpolation calculation.

[0009] In some embodiments, correcting the reactive power setpoint based on the reactive power error compensation amount includes: The reactive power error compensation is added to the current reactive power setting value to obtain the corrected reactive power setting value.

[0010] In some embodiments, controlling the grid-connected inverter according to the modified reactive power setpoint includes: The corrected reactive power setpoint and q-axis current value are input into the control loop corresponding to the grid-connected inverter to obtain the q-axis voltage value. The power value and d-axis current value of the grid-connected inverter are input into the control loop corresponding to the grid-connected inverter to obtain the d-axis voltage value. The PWM signal of the grid-connected inverter is obtained by performing coordinate transformation based on the d-axis voltage value and the q-axis voltage value.

[0011] In some embodiments, the method further includes: After the reactive power setting value is corrected, it is corrected again after a preset number of days. And / or, if the reactive power error exceeds the preset threshold for more than a preset number of consecutive times during operation, the reactive power setting value is corrected.

[0012] In some embodiments, the step of revising the reactive power setpoint again after a preset number of days includes: The three-dimensional correction data is regenerated based on the correspondence between the reactive power setpoint, the reactive power error, and the grid voltage value, to replace the old three-dimensional correction data.

[0013] In a second aspect, embodiments of this application provide a controller including at least one processor and a memory for communicatively connecting to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the correction method as described in the first aspect.

[0014] Thirdly, embodiments of this application provide a photovoltaic energy storage system, including the controller described in the second aspect.

[0015] The reactive power error correction method, controller, and photovoltaic energy storage system of this application embodiment have at least the following beneficial effects: The actual reactive power measurement value is obtained through the grid-side meter, and then the reactive power error between the reactive power setpoint and the reactive power measurement value is determined. This leads to the construction of three-dimensional correction data of the reactive power setpoint, grid voltage value, and reactive power measurement value. In actual operation, based on the currently acquired real-time grid voltage value, a ramp function is used to smoothly switch the three-dimensional correction data, thereby obtaining the reactive power error compensation amount. This reactive power error compensation amount is used to correct the reactive power setpoint, improving its accuracy. Because the above processing takes into account the reactive power measurement value of the grid-side meter and is based on the three-dimensional correction data, it can adapt to complex operating conditions such as grid voltage fluctuations.

[0016] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the description and the accompanying drawings. Attached Figure Description

[0017] Figure 1 A flowchart illustrating the overall process of a reactive power error correction method provided in one embodiment of this application; Figure 2 A flowchart illustrating the construction of three-dimensional correction data based on a first three-dimensional array, as provided in one embodiment of this application; Figure 3 A flowchart illustrating the construction of three-dimensional correction data based on a first three-dimensional array and a second three-dimensional array, provided as an embodiment of this application; Figure 4 A flowchart for calculating reactive power error compensation amount provided in one embodiment of this application; Figure 5 A flowchart illustrating the correction of reactive power setpoints provided in one embodiment of this application; Figure 6 A flowchart of control loop data processing provided in one embodiment of this application; Figure 7 This is a schematic diagram of the system connection of a grid-connected inverter provided in one embodiment of this application; Figure 8 A system block diagram of a control loop provided in one embodiment of this application; Figure 9 A flowchart for triggering automatic correction is provided as an embodiment of this application; Figure 10 This is a schematic diagram of the connection structure of a controller provided in one embodiment of this application. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various implementations. Simultaneously, the steps or actions described in the method description can be rearranged or adjusted in a manner readily apparent to those skilled in the art. Therefore, the various orders in the specification and drawings are merely for the clear description of a particular embodiment and do not imply a mandatory order, unless otherwise stated that a particular order must be followed.

[0019] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0020] The serial numbers assigned to components in this document, such as "first" and "second," are used only to distinguish the described objects and have no sequential or technical meaning. The terms "connection" and "linkage" used in this application, unless otherwise specified, include both direct and indirect connections (linkages).

[0021] As a core component of new energy power generation systems, the accuracy of reactive power output from grid-connected inverters directly affects the stability of the power grid and power quality. Currently, reactive power is typically set manually, with a fixed reactive power value determined based on different power states of the grid-connected inverter. This value is then incorporated into loop control to adjust and optimize the inverter's operation.

[0022] The main causes of reactive power control errors are: sampling errors, such as the nonlinear characteristics of current sensors and analog-to-digital sampling delays, leading to deviations between sampled data and actual values; additionally, the current in the filter capacitors of the LC filters on the grid side also contributes to reactive power errors. Traditional correction methods do not consider dynamic conditions such as grid voltage fluctuations and active power changes, resulting in poor adaptability of static correction parameters. In photovoltaic grid-connected scenarios, when grid voltage drops, existing technologies may fail to meet power factor standards due to insufficient robustness of reactive power compensation algorithms.

[0023] For example, reactive power correction methods based on fixed thresholds / static compensation employ static capacitor banks or fixed compensation devices, triggering compensation through preset voltage / current thresholds and relying on traditional PI control algorithms to adjust reactive power. This method suffers from problems such as dynamic response lag, inability to adapt to rapidly changing operating conditions, low compensation accuracy, and resource waste.

[0024] Traditional piecewise interpolation is an open-loop control method. When reactive power fluctuates, it processes grid data in segments and approximates the actual curve using fixed interpolation nodes (such as equidistant interpolation), relying on manual experience to set interpolation parameters. This method depends on offline calibration data under fixed operating conditions and cannot adapt to dynamic changes in grid voltage or parameter drift caused by device aging.

[0025] Based on this, this application provides a method, controller, and photovoltaic energy storage system for correcting reactive power error. The method obtains the actual reactive power measurement value from the grid-side meter, then determines the reactive power error between the reactive power setpoint and the measured reactive power value, and subsequently constructs three-dimensional correction data of the reactive power setpoint, grid voltage value, and reactive power measurement value. In actual operation, based on the currently acquired real-time grid voltage value, a ramp function is used to smoothly switch the three-dimensional correction data to obtain the reactive power error compensation amount. This reactive power error compensation amount is used to correct the reactive power setpoint, improving its accuracy. Because the above processing considers the reactive power measurement value from the grid-side meter and is based on the three-dimensional correction data, it can adapt to complex operating conditions such as grid voltage fluctuations.

[0026] The following description, in conjunction with the accompanying drawings, explains the reactive power error correction method, controller, and photovoltaic energy storage system.

[0027] Reference Figure 1 As shown, Figure 1 This is an overall flowchart of the reactive power error correction method provided in the embodiments of this application. The reactive power error correction method includes, but is not limited to, the following steps: Step S110: Determine the reactive power error based on the reactive power setting value of the grid-connected inverter and the reactive power measurement value measured by the grid-side meter, and generate three-dimensional correction data based on the correspondence between the reactive power setting value, the reactive power error and the grid voltage value. Step S120: Obtain the real-time value of the grid voltage, and calculate the reactive power error compensation amount according to the slope function based on the real-time value of the grid voltage and the three-dimensional correction data. Step S130: Correct the reactive power setpoint according to the reactive power error compensation amount, and control the grid-connected inverter according to the corrected reactive power setpoint.

[0028] This application embodiment incorporates reactive power measurements from grid-side meters, using actual measurements to adjust reactive power errors and enhance data accuracy. The main method involves calculating the difference between the reactive power setpoint and the measured reactive power value to determine the reactive power error. Then, three-dimensional correction data is constructed, comprising the reactive power setpoint, reactive power error, and grid voltage value. Each array in the three-dimensional correction data includes the reactive power setpoint, reactive power error, and grid voltage value. This three-dimensional correction data is stored in the grid-connected inverter.

[0029] In actual operation, the grid-connected inverter determines the real-time value of the current grid voltage and then calculates the reactive power error compensation based on the numerical relationship between the real-time grid voltage and the three-dimensional correction data. This reactive power error compensation is calculated based on a slope function. The calculation principle involves determining the slope of the straight line corresponding to the three-dimensional correction data in three-dimensional numerical space, and then compensating for the reactive power error based on the error between the real-time data (related to the real-time grid voltage or the reactive power setpoint corresponding to the real-time grid voltage) and the slope corresponding to the three-dimensional correction data. This yields the reactive power error compensation. Finally, the reactive power error compensation is used to correct the reactive power setpoint, and the grid-connected inverter adjusts its operating state according to the corrected reactive power setpoint (for example, by inputting the corrected reactive power setpoint into the closed-loop feedback control module to adjust the operating state of the grid-connected inverter). Because this reactive power error compensation reflects the real-time grid voltage value, it can effectively provide a corrected reactive power setpoint for operating conditions such as grid voltage fluctuations, guiding the grid-connected inverter to adjust its operating state to meet these conditions.

[0030] Reference Figure 2 As shown, in some embodiments, the generation of three-dimensional correction data in step S110 above, based on the correspondence between the reactive power setpoint, reactive power error, and grid voltage value, includes: Step S210: Determine the reactive power error corresponding to different reactive power setpoints and different grid voltage values; Step S220: Determine the first three-dimensional array based on the correspondence between the reactive power setpoint, the square of the grid voltage value, and the reactive power error, and construct three-dimensional correction data based on multiple first three-dimensional arrays.

[0031] The data in the three-dimensional correction data directly originates from the data collected during the actual operation of the grid-connected inverter. Under different grid voltages, the reactive power setpoint corresponding to the grid voltage is determined, and the reactive power measurement value measured by the grid-side meter at that time is obtained. That is, the grid voltage, reactive power setpoint, and reactive power measurement value form a correspondence. Then, the difference between the reactive power setpoint and the reactive power measurement value is calculated to obtain the reactive power error. At this point, the grid voltage, reactive power setpoint, and reactive power error form a correspondence. These three elements constitute the first three-dimensional array according to their correspondence. Multiple first three-dimensional arrays constitute the aforementioned three-dimensional correction data. The grid voltage, reactive power setpoint, and reactive power error constituting the three-dimensional array can undergo a certain degree of data processing. For example, the square of the grid voltage can be used as data in the three-dimensional array, and the reactive power error can be varied according to a preset proportional coefficient before being used as data in the three-dimensional array, and so on. Understandably, after obtaining the data collected during actual operation, data filtering can be performed to remove data with obvious deviations or data exceeding the set value range. For example, the set range for reactive power is ±60% of the rated power of the grid-connected inverter, corresponding to a typical operating condition with a power factor of 0.8, to avoid control instability caused by exceeding limits. The set range for grid voltage is ±20% of the rated grid voltage to cover extreme grid voltage fluctuation scenarios (such as rural weak grids or fault recovery phases). Data collected outside the above ranges will be removed, which can effectively eliminate abnormal data such as grid voltage mutations and power command jumps, ensuring the controllability and reliability of the data.

[0032] Reference Figure 3 As shown, in some embodiments, the step S220 above, which involves constructing three-dimensional correction data based on multiple first three-dimensional arrays, includes: Step S310: Generate a second three-dimensional array by interpolating the distance between at least two first three-dimensional arrays according to a preset step size; Step S320: Construct three-dimensional correction data based on the first three-dimensional array and the second three-dimensional array.

[0033] Since the data in the first three-dimensional array originates from data collected during the actual operation of the grid-connected inverter, the data may not accurately match the points on the slope of the straight line corresponding to the three-dimensional correction data in three-dimensional space. That is, the points in the first three-dimensional array may differ significantly from the straight line obtained by fitting the first three-dimensional array, or the points in the first three-dimensional array may be concentrated near the area of ​​normal operating conditions. In this case, a second three-dimensional array can be generated by interpolation. For example, interpolation can be performed on the straight line according to a preset step size and the slope of the straight line to obtain multiple second three-dimensional arrays. The first and second three-dimensional arrays are then combined to construct three-dimensional correction data that best matches the slope of the straight line. Then, the three-dimensional correction data containing the first and second three-dimensional arrays can be refitted. The preset step size can be 5%, 10%, etc., and this embodiment does not limit it. A smaller preset step size results in higher fitting accuracy, but correspondingly, a larger amount of three-dimensional correction data is generated, occupying a considerable portion of the memory space.

[0034] Reference Figure 4 As shown, in some embodiments, step S120 above, which calculates the reactive power error compensation amount based on the real-time grid voltage value and three-dimensional correction data according to the ramp function, includes: Step S410: Determine the current set value of reactive power of the grid-connected inverter based on the real-time value of the grid voltage; Step S420: Search for three-dimensional correction data according to the real-time value of the grid voltage and / or the current set value of reactive power, and determine the corresponding current reactive power error; Step S430: Substitute the real-time grid voltage value, the current set value of reactive power, and the current error of reactive power into the ramp function for linear interpolation calculation to obtain the reactive power error compensation amount.

[0035] After obtaining the three-dimensional correction data, the grid-connected inverter can calculate the reactive power error compensation based on the three-dimensional correction data and the real-time grid voltage value. Specifically, the grid-connected inverter determines the reactive power setpoint under normal circumstances, i.e., the current reactive power error setpoint, based on the collected real-time grid voltage value. Then, it searches for three-dimensional correction data according to the real-time grid voltage value and / or the current reactive power setpoint. If an array of three-dimensional correction data corresponding to the real-time grid voltage value exists, linear interpolation is performed according to the real-time grid voltage value to obtain the reactive power error compensation. If an array of three-dimensional correction data corresponding to the current reactive power setpoint exists, linear interpolation is performed according to the current reactive power setpoint. If no three-dimensional correction data corresponds to either the real-time grid voltage value or the current reactive power setpoint, linear interpolation is performed based on both the real-time grid voltage value and the current reactive power setpoint. The specific interpolation calculation method is mainly based on the ramp function in three-dimensional space. When the data in one dimension (real-time value of grid voltage or current set value of reactive power) is fixed, the reactive power error compensation amount is calculated by slope projection on the remaining two-dimensional plane. If the data in two dimensions (real-time value of grid voltage and current set value of reactive power) are not fixed, the reactive power error compensation amount is calculated by slope projection on the two two-dimensional planes respectively.

[0036] Reference Figure 5 As shown, in some embodiments, the step S430 above, which corrects the reactive power setpoint based on the reactive power error compensation amount, includes: Step S510: Add reactive power error compensation to the current reactive power setting value to obtain the corrected reactive power setting value.

[0037] The reactive power error compensation values ​​can be added directly, or adjusted according to a certain ratio and then added to the current reactive power setpoint. The resulting superposition yields a corrected reactive power setpoint, which can then be input into the control loop of the grid-connected inverter to form a quasi-closed-loop control structure.

[0038] Reference Figure 6 As shown, in some embodiments, step S130 above, which controls the grid-connected inverter according to the corrected reactive power setpoint, includes: Step S610: Input the corrected reactive power setting value and q-axis current value into the control loop corresponding to the grid-connected inverter to obtain the q-axis voltage value; input the power value and d-axis current value of the grid-connected inverter into the control loop corresponding to the grid-connected inverter to obtain the d-axis voltage value. Step S620: Perform coordinate transformation based on the d-axis voltage value and the q-axis voltage value to obtain the PWM signal of the grid-connected inverter.

[0039] The system structure and corresponding control loop of the grid-connected inverter are referenced. Figure 7 and Figure 8 As shown. The grid-connected inverter receives a PWM (Pulse Width Modulation) signal to control the operation of its internal switching transistors. The PWM signal is generated by the SVPWM (Space Vector Pulse Width Modulation) module based on... The voltage value is output in the coordinate system. The control loop acquires the grid-side current and converts it into d-axis current value id and q-axis current value iq as input parameters, as well as the d-axis error signal ed and q-axis error signal eq output by the PLL (Phase-Locked Loop) module as input parameters. The control loop also inputs the set power Pset, power measurement value Pmeasured, reactive power set value Qset, reactive power measurement value Qmeasured, and reactive power error compensation amount. The control loop outputs voltage values ​​in the coordinate system as follows: Figure 8 The control loop block diagram shown performs signal processing. The upper part corresponds to d-axis signal processing, and the lower part corresponds to q-axis signal processing. After obtaining the d-axis and q-axis voltage values, coordinate transformation is performed, and the final output is obtained. The voltage value in the coordinate system is transmitted to the SVPWM module, which in turn causes the grid-connected inverter to adjust its operating state.

[0040] Reference Figure 9 As shown, in some embodiments, the reactive power error correction method further includes: Step S710: After correcting the reactive power setting value, the reactive power setting value is corrected again after a preset number of days. And / or, in step S720, if the number of times the reactive power error is continuously greater than the preset threshold during operation is greater than the preset number, the reactive power setting value is corrected.

[0041] This application embodiment also provides a mechanism for triggering automatic correction. During the operation of the grid-connected inverter, the mechanism for triggering automatic correction can operate in two modes: periodic triggering and event triggering, ensuring dynamic adaptation to grid conditions and device aging. Periodic triggering can automatically update the data every preset number of days as described in step S710. The update method can be to regenerate all three-dimensional arrays in the three-dimensional correction data, thereby correcting all reactive power setpoints and covering control accuracy issues caused by slowly changing factors such as LC filter capacitive reactance drift and sensor attenuation during long-term operation. Event triggering can, as described in step S720, immediately activate the correction mechanism if reactive power errors are detected to be greater than a preset threshold multiple times consecutively. This regenerates the three-dimensional correction data (one or more three-dimensional arrays) where the reactive power error exceeds the preset threshold, avoiding false triggering due to short-term grid disturbances. The preset number of days and preset threshold can be set according to actual needs, such as setting an automatic correction mechanism to a 30-day cycle, or setting the preset threshold to ±2%, etc. Examples are not provided here.

[0042] The process of re-correcting the reactive power setpoint after a preset number of days and regenerating all three-dimensional arrays in the three-dimensional correction data can be done by regenerating the three-dimensional correction data based on the correspondence between the reactive power setpoint, reactive power error, and grid voltage value, in order to replace the old three-dimensional correction data.

[0043] In summary, by obtaining the actual reactive power measurement value from the grid-side meters, determining the reactive power error between the reactive power setpoint and the measured value, and then constructing three-dimensional correction data of the reactive power setpoint, grid voltage value, and reactive power measurement value, the reactive power error compensation can be obtained by using a ramp function to smoothly switch the three-dimensional correction data based on the currently collected real-time grid voltage value during actual operation. The reactive power error compensation is then used to correct the reactive power setpoint, improving its accuracy. This process, considering the reactive power measurement value from the grid-side meters and correcting based on the three-dimensional correction data, can adapt to complex operating conditions such as grid voltage fluctuations.

[0044] The following example illustrates in detail the reactive power error correction method of this application.

[0045] In the control chip MCU, the reactive power error Qerror is constructed with respect to the square of the grid voltage. A three-dimensional interpolation mapping table for reactive power setpoint Qset is used; a ramp function is used to smoothly switch correction parameters to improve compensation accuracy; and the three-dimensional interpolation mapping table is dynamically corrected by combining error threshold judgment and periodic updates.

[0046] ① Data acquisition and construction of 3D interpolation mapping table A three-dimensional interpolation mapping table is established by collecting reactive power measurements (Qmeasured) in real time from grid-side meters. Throughout the inverter's full operating range, the following parameters are simultaneously acquired: reactive power setpoint Qset, actual reactive power measurement value Qmeasured from the grid-side meter, and current grid voltage value Ugrid. Furthermore, abnormal data due to grid voltage fluctuations and power command jumps are eliminated according to the following full operating range criteria to ensure data reliability.

[0047] Full scope of work: Reactive power setpoint Qset range: ±60% of rated power Prate, corresponding to a typical operating condition with a power factor of 0.8, to avoid control instability caused by exceeding limits; The grid voltage value Ugrid range is ±20% of the rated grid voltage Urate, covering extreme grid voltage fluctuation scenarios (such as rural weak grids or fault recovery phases).

[0048] Then calculate the reactive power error: Qerror = Qset - Qmeasured, and record the different Qset values. The Qerror value under the combination.

[0049] Considering the balance between MCU storage space and compensation accuracy, this example generates a 3D interpolation mapping table with a 10% step size calibration, represented as (Qset, , Qerror).

[0050] ② Collect the current grid voltage value Ugrid in real time and calculate... The reactive power error compensation is calculated based on the ramp function:

[0051] in, , and These represent the three-dimensional interpolation mapping table. Qset and Qerror, Qcomp represent the reactive power error compensation amount.

[0052] ③ Closed-loop feedback control Calculate the corrected reactive power setpoint Qset_comp, i.e. Qset_comp = Qset + Qcomp The reactive power setpoint Qset_comp is input into the control loop corresponding to the grid-connected inverter to form a quasi-closed-loop control structure.

[0053] ④ Automatic correction mechanism Automatic correction is triggered in two modes: periodic triggering and event triggering, to ensure dynamic adaptation to power grid conditions and device aging.

[0054] Periodic triggering: A full parameter update is performed every 30 days to cover slow-changing factors such as LC filter capacitive reactance drift and sensor attenuation during long-term operation.

[0055] Event Trigger: When the absolute value of reactive power error |Qerror| > 2% is detected three consecutive times, the correction procedure is immediately initiated. This threshold is set based on grid connection standards to avoid false triggering due to short-term grid disturbances.

[0056] By correcting the reactive power setpoint using the above method, the following can be achieved: High-precision dynamic correction: The actual reactive power measurement value is obtained directly from the grid-side meter, and the correction is performed based on the three-dimensional interpolation mapping table to adapt to complex operating conditions such as grid voltage fluctuations.

[0057] Full lifecycle coverage: The automatic correction mechanism has two modes, periodic triggering and event triggering, covering factors such as device aging during long-term operation.

[0058] Low computational overhead: The local update strategy reduces computation, thereby reducing the resource consumption of the controller while ensuring accuracy.

[0059] like Figure 10 As shown, Figure 10 This is a schematic diagram of a controller 1000 provided in one embodiment of this application.

[0060] The controller 1000 in this embodiment includes one or more processors 1001 and a memory 1002. Figure 10 The example uses a processor 1001 and a memory 1002.

[0061] Processor 1001 and memory 1002 can be connected via a bus or other means. Figure 10 Taking the example of a connection between China and Israel via a bus.

[0062] Memory 1002, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 1002 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 1002 may optionally include memory 1002 remotely located relative to processor 1001, and these remote memories can be connected to controller 1000 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0063] Those skilled in the art will understand that Figure 10The device structure shown does not constitute a limitation on the controller 1000 and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0064] This application also provides a photovoltaic energy storage system, including the aforementioned controller 1000.

[0065] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network nodes. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0066] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0067] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0068] In the several embodiments provided in this application, it should be understood that the disclosed systems, instruments, and methods can be implemented in other ways. For example, the instrument embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between instruments or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0069] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.

[0070] The above is a detailed description of the preferred embodiments of this application. However, this application is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.

Claims

1. A method for correcting reactive power error, characterized in that, include: The reactive power error is determined based on the reactive power setpoint of the grid-connected inverter and the reactive power measurement value measured by the grid-side meter, and three-dimensional correction data is generated based on the correspondence between the reactive power setpoint, the reactive power error and the grid voltage value. Obtain the real-time value of the power grid voltage, and calculate the reactive power error compensation amount according to the slope function based on the real-time value of the power grid voltage and the three-dimensional correction data. The reactive power setpoint is corrected based on the reactive power error compensation amount, and the grid-connected inverter is controlled based on the corrected reactive power setpoint.

2. The method according to claim 1, characterized in that, The process of generating three-dimensional correction data based on the correspondence between the reactive power setpoint, the reactive power error, and the grid voltage value includes: Determine the reactive power error corresponding to different reactive power setpoints and different grid voltage values; A first three-dimensional array is determined based on the correspondence between the reactive power setpoint, the square of the grid voltage value, and the reactive power error, and three-dimensional correction data is constructed based on multiple first three-dimensional arrays.

3. The method according to claim 2, characterized in that, The step of constructing three-dimensional correction data based on a plurality of the first three-dimensional arrays includes: A second three-dimensional array is generated by interpolation according to a preset step size based on the distance between at least two of the first three-dimensional arrays; Three-dimensional correction data is constructed based on the first three-dimensional array and the second three-dimensional array.

4. The method according to claim 1, characterized in that, The step of determining the reactive power error compensation amount based on the real-time grid voltage value and the three-dimensional correction data using a ramp function includes: The current set value of reactive power of the grid-connected inverter is determined based on the real-time value of the grid voltage. The three-dimensional correction data is searched according to the real-time value of the grid voltage and / or the current set value of the reactive power to determine the corresponding current error of reactive power. The reactive power error compensation amount is obtained by substituting the real-time grid voltage value, the current set reactive power value, and the current reactive power error into the ramp function for linear interpolation calculation.

5. The method according to claim 4, characterized in that, The step of correcting the reactive power setpoint based on the reactive power error compensation amount includes: The reactive power error compensation is added to the current reactive power setting value to obtain the corrected reactive power setting value.

6. The method according to claim 1, characterized in that, The control of the grid-connected inverter based on the corrected reactive power setpoint includes: The corrected reactive power setpoint and q-axis current value are input into the control loop corresponding to the grid-connected inverter to obtain the q-axis voltage value. The power value and d-axis current value of the grid-connected inverter are input into the control loop corresponding to the grid-connected inverter to obtain the d-axis voltage value. The PWM signal of the grid-connected inverter is obtained by performing coordinate transformation based on the d-axis voltage value and the q-axis voltage value.

7. The method according to claim 1, characterized in that, The method further includes: After the reactive power setting value is corrected, it is corrected again after a preset number of days. And / or, if the reactive power error exceeds the preset threshold for more than a preset number of consecutive times during operation, the reactive power setting value is corrected.

8. The method according to claim 7, characterized in that, The step of revising the reactive power setting value again after a preset number of days includes: The three-dimensional correction data is regenerated based on the correspondence between the reactive power setpoint, the reactive power error, and the grid voltage value, to replace the old three-dimensional correction data.

9. A controller, characterized in that, It includes at least one processor and a memory for communicatively connecting with said at least one processor; The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the correction method as described in any one of claims 1 to 8.

10. A photovoltaic energy storage system, comprising the controller as described in claim 9.