Power dispatching accuracy compensation method, device and medium
By establishing sampling and control error compensation equations in the inverter, the angular deviation problem of the inverter when incorporated into the power grid is solved, and high-precision power control is realized, which is suitable for distributed power generation systems.
Patent Information
- Application Number
- CN202311759668.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2043-12-20
AI Technical Summary
When the new energy inverter is incorporated into the power grid, due to the sampling delay of the grid voltage and inverter current and the delay of software control, there is an angle deviation between the actual output and the theoretical output, resulting in large errors in active and reactive control, which cannot be achieved. High-precision power control.
By establishing a compensation equation based on the sampling error and control delay based on the grid voltage and inverter current, compensation of angular errors is performed in the sampling and control process of voltage and current, high-precision control of power is achieved. Specifically, it includes steps such as grid voltage sampling error compensation, phase-locked loop control delay compensation, current sampling delay compensation, and current control delay compensation, and these compensation methods are performed using processors and memory.
Effectively compensates for the angle error of the inverter in sampling and control, improves the control accuracy of active and reactive power, avoids the delay problem caused by sampling error of conventional methods, and is suitable for photovoltaic grid-connected sites in distributed power generation systems. .
Smart Images

Figure CN117728519B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a power dispatching accuracy compensation method, device and medium, and belongs to the technical field of power electronics such as photovoltaic grid-connected inverters and energy storage inverters. Background Art
[0002] When the new energy inverter is connected to the power grid, the grid voltage and inverter current are sampled by hardware and then filtered by a low-pass filter. There is an angle delay after sampling, and there is a control delay in the software digital control, which causes an angle deviation between the actual inverter current output and the theoretical one, resulting in large errors in active control and reactive control, and the accuracy does not meet the requirements.
[0003] The conventional compensation method is to fit the grid voltage, inverter current sampling delay, phase-locked loop, and inverter current control delay through experiments. However, this type of method has large errors and cannot achieve high-precision power control. Summary of the invention
[0004] The purpose of the present invention is to compensate for sampling errors and control delay errors in both current and voltage by effective means, thereby achieving high-precision control of power.
[0005] In order to achieve the above object, the technical solution of the present invention is to provide a power scheduling accuracy compensation method, characterized in that the angle error existing in the sampling and control of the voltage and / or current is compensated, wherein:
[0006] The angle error compensation of the voltage in the sampling is realized based on the grid voltage sampling error angle compensation equation, where the grid voltage sampling error angle compensation equation is: based on the voltage sampling compensation angle △θ1, the phase-locked angle θ after the phase-locked loop is successfully locked PLL , establish the relationship between the phase-locked loop output voltage under the influence of sampling error and the actual output voltage after phase-locked loop control compensation on the d and q axis components;
[0007] The angle error of the voltage in the phase-locked loop control is compensated based on the phase-locked loop control delay compensation equation, where the phase-locked loop control delay compensation equation is: based on the phase-locked loop control compensation angle △θ2, the phase-locked angle θ after the phase-locked loop is successfully locked PLL , establish the relationship between the phase-locked loop output voltage under the influence of control error and the actual output voltage after phase-locked loop control compensation on the d and q axis components;
[0008] The angle error in current sampling is compensated based on the current sampling delay compensation equation, wherein the current sampling delay compensation equation is: based on the current sampling compensation angle △θ3, a relationship between the inverter current under the influence of the sampling error and the inverter current after sampling compensation on the d and q axis components is established;
[0009] The compensation of the angle error in current control is realized based on the current control delay compensation equation, wherein the current control delay compensation equation is: based on the current control delay angle △θ4, a relationship between the inverter current under the influence of the control error and the inverter current after control compensation on the d and q axis components is established.
[0010] Preferably, the grid voltage sampling error angle compensation equation is expressed as: The grid voltage sampling error angle compensation equation is expressed as:
[0011]
[0012] Where U d_Real , U q_Real is the component of the actual output voltage on the d and q axes after phase-locked loop control compensation; U d_AD , U q_ AD are the components of the phase-locked loop output on the d and q axes under the influence of sampling error.
[0013] Preferably, when compensating for the angle error of the voltage in the phase-locked loop control based on the phase-locked loop control delay compensation equation, the phase-locked loop control adopts digital control, and only the digital control zero-order hold delay is considered, and the control response delay is not considered.
[0014] Preferably, the phase-locked loop control delay compensation equation is expressed as:
[0015]
[0016] Where U d_Real , U q_Real is the component of the actual output voltage on the d and q axes after phase-locked loop control compensation; U d_PLL , U q_PLL are the components of the phase-locked loop output on the d and q axes under the influence of control error.
[0017] Preferably, the current sampling delay compensation equation is expressed as:
[0018]
[0019] In the formula, I d_ Real ,I q_Real is the component of the inverter current on the d and q axes after sampling compensation; I d_AD ,I q_ AD are the components of the inverter current in the d and q axes under the influence of sampling error.
[0020] Preferably, when compensating for the angle error in current sampling based on the current sampling delay compensation equation, the current control delay is not considered, the inverter sampled current amplitude is the same as the inverter actual current amplitude, but lags behind the inverter actual current by a fixed angle, and the phase-locked loop angle is assumed to be the actual grid angle.
[0021] Preferably, the current control delay compensation equation is expressed as:
[0022]
[0023] Among them, I d_ Real ,I q_Real To control the inverter current components on the d and q axes after compensation; I d_Ctrl ,I q_Ctrl are the components of the inverter current in the d and q axes under the influence of control error.
[0024] Preferably, when compensating for the angle error in current control based on the current control delay compensation equation, current sampling is performed in this cycle, current closed-loop control is performed, and the switch tube is actuated in the next cycle without considering the response delay. The control current output lags behind the current value of the reference current by half a cycle without considering the current sampling delay.
[0025] Another technical solution of the present invention is to provide a power scheduling accuracy compensation device, which is characterized in that it includes a processor and a memory, the memory is used to store instructions, the processor is used to execute the instructions, and after the processor executes the instructions, the control device executes the above-mentioned power scheduling accuracy compensation method.
[0026] Another technical solution of the present invention is to provide a computer-readable storage medium, characterized in that the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned power scheduling accuracy compensation method.
[0027] The present invention can compensate for the control accuracy of active power and reactive power by compensating for the grid voltage sampling delay and the phase-locked loop control delay or by compensating for the angle error caused by the inverter current sampling delay and the inverter current control delay. In the technical solution disclosed by the present invention, all angles are compensated according to the actual hardware and control time, avoiding the delay problem caused by the sampling error of the power analyzer in the conventional experimental fitting method. The present invention can be applied to photovoltaic grid-connected occasions in distributed power generation systems and is suitable for a variety of inverter structure design solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A schematic diagram of dq axis coordinates of the grid voltage sampling delay of the present invention is shown;
[0029] Figure 2 A schematic diagram of the dq axis components of the phase-locked loop control delay of the present invention is shown;
[0030] Figure 3 The waveform diagram of the uncompensated voltage sampling delay of the present invention is shown;
[0031] Figure 4 This is a voltage sampling waveform diagram after compensation of the present invention;
[0032] Figure 5 The waveform diagram of the uncompensated phase-locked loop control delay of the present invention is illustrated;
[0033] Figure 6 This is a phase-locked loop control waveform diagram after compensation of the present invention;
[0034] Figure 7 A schematic diagram of the dq axis components of the current sampling filter delay of the present invention is shown;
[0035] Figure 8 A schematic diagram of the dq axis components of the current control delay of the present invention is shown;
[0036] Fig. 9 The reactive error waveform diagram of the present invention when current sampling compensation is not performed is shown;
[0037] Fig.10 This is a reactive power waveform diagram after current sampling compensation of the present invention;
[0038] Fig.11 The reactive error waveform diagram of the present invention without current control delay compensation is shown;
[0039] Fig.12 This is a reactive power waveform diagram after current control delay compensation of the present invention. DETAILED DESCRIPTION
[0040] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.
[0041] Example 1
[0042] A power dispatch accuracy compensation method disclosed in this embodiment specifically relates to compensating for power errors caused by grid voltage sampling and control delays to achieve higher accuracy control, and includes the following steps:
[0043] 1) Voltage sampling delay compensation
[0044] like Figure 1 As shown in the figure, due to sampling delay, there will be a phase difference between the sampled grid voltage and the actual grid voltage. Then the target of the phase-locked loop in phase-locked control is the sampled grid voltage phase, not the actual grid voltage phase. The two differ by a fixed angle △θ1, that is, the actual grid voltage phase angle θ vReal =θ vAD +△θ1.
[0045] Before voltage sampling compensation is performed, that is, under the influence of sampling error, the components of the phase-locked loop output voltage on the d and q axes are:
[0046] (1)
[0047] Among them: U m is the peak value of the grid voltage, θ vAD is the sampling grid voltage angle, θ PLL is the phase lock angle.
[0048] θ vReal =θ vAD Substituting +△θ1 into formula (1) yields:
[0049] (2)
[0050] Where: △θ1 is the voltage sampling compensation angle, (△θ1 can be calculated by establishing the grid voltage filter transfer function and drawing the Bode diagram) After the phase-locked loop is successfully locked, it ensures that θ PLL =θ vReal .
[0051] Further simplifying formula (1) yields the grid voltage sampling error angle compensation equation in the control program:
[0052] (3)
[0053] Among them: U d_Real , U q_Real is the component of the actual output voltage on the d and q axes after the phase-locked loop control compensation; Formula (3) represents the relationship between the phase-locked loop output voltage under the influence of sampling error and the actual output voltage on the d and q axes after the phase-locked loop control compensation.
[0054] 2) Phase-locked loop control delay compensation
[0055] The phase-locked loop control adopts digital control, and only considers the digital control zero-order holding delay, and does not consider the control response delay, such as Figure 2 As shown, according to the control principle of the control chip, the phase-locked loop control program calculates the angle θ PLL Lagging actual grid phase angle θ' PLL Half a cycle, i.e. θ'PLL =θ PLL +△θ2, △θ2 is the compensation angle controlled by the phase-locked loop.
[0056] Substituting △θ2 into formula (1) yields:
[0057] (4)
[0058] At this time, the voltage sampling error has been compensated, so θ vAD =θ vReal .
[0059] Analyzing formula (1) and formula (4), it can be seen that the phase-locked loop controls the output voltage to be ahead of the actual grid voltage.
[0060] Further simplifying formula (4) to obtain the phase-locked loop control delay compensation equation:
[0061] (5)
[0062] Equation (5) represents the relationship between the PLL output voltage under the influence of control error and the actual output voltage after PLL control compensation on the d and q axis components.
[0063] Another aspect of this embodiment is to provide a power scheduling accuracy compensation device, including a processor and a memory, the memory is used to store instructions, the processor is used to execute the instructions, and after the processor executes the instructions, the power scheduling accuracy compensation device performs the above-mentioned power scheduling accuracy compensation method.
[0064] Another aspect of the present embodiment is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned power scheduling accuracy compensation method.
[0065] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is described in detail below in conjunction with specific simulations.
[0066] The simulation was conducted in a three-phase grid-connected inverter. In order to see the effect of the control strategy more clearly, the sampling voltage was delayed by 2 cycles (the control delay was not considered at this time). The error between the sampling voltage and the actual grid voltage is as follows: Figure 3 , it can be seen that the sampled voltage lags significantly behind the actual grid voltage.
[0067] Converted to the rated grid frequency of 50Hz, the voltage sampling compensation angle △θ1 is obtained:
[0068] (6)
[0069] Substitute △θ1 into formula (3) and compensate it to the sampled voltage to make it consistent with the grid voltage.
[0070] Figure 4 The waveform diagram of the sampled voltage after compensation and the actual grid voltage shows that the sampled voltage has been synchronized with the grid voltage, verifying the effectiveness of the sampling angle compensation strategy for the sampled grid voltage.
[0071] Figure 5 This is the waveform of the phase-locked loop control error. At this time, the sampling voltage is equal to the grid voltage, and the phase-locked loop control output voltage is ahead of the grid voltage. The phase-locked loop control calculation angle lags the sampling voltage by half a beat of 40.98μs (the sampling frequency is 12KHz). Converted to the rated grid frequency of 50Hz, the phase-locked loop control compensation angle △θ2 is obtained:
[0072] (7)
[0073] Substituting △θ2 into formula (5), we can get the phase-locked loop control voltage synchronized with the sampling voltage, Figure 6 The phase-locked loop control voltage waveform and sampling waveform after compensation control show that the control signal and sampling signal are synchronized, which verifies the effectiveness of the phase-locked loop control delay compensation strategy.
[0074] Example 2
[0075] A power scheduling accuracy compensation method disclosed in this embodiment specifically relates to compensating for power errors caused by current sampling and control delays to achieve higher-precision control, and includes the following steps:
[0076] 1) Current sampling delay compensation
[0077] like Figure 7 As shown in the figure, without considering the control delay of the current, the inverter sampling current amplitude is the same as the actual inverter current amplitude, but lags behind the actual inverter current by a fixed angle. Assuming that the phase-locked loop angle is the actual grid angle, the controlled current output lags behind the grid voltage at this time, and there is an error △θ3 with the theoretical value. △θ3 is recorded as the current sampling compensation angle.
[0078] The inverter current components in the d and q axes are:
[0079] (8)
[0080] Where: I m is the inverter current peak value, θ iReal is the actual current phase angle of the inverter.
[0081] Since the inverter sampling current phase angle θ iAD Lagging behind the actual inverter current phase angle θ iReal, that is, θ iReal =θ iAD +△θ3, substituting it into formula (8) we get:
[0082] (9)
[0083] Further simplifying formula (9) yields the current sampling delay compensation equation in the control program:
[0084] (10)
[0085] Where: I d_ Real ,I q_Real is the component of the inverter current on the d and q axes after sampling compensation; I d_AD ,I q_ AD are the components of the inverter current on the d and q axes under the influence of sampling error; formula (10) represents the relationship between the inverter current under the influence of sampling error and the inverter current on the d and q axes after sampling compensation.
[0086] According to formula (10), the current sampling value is phase-shifted by an angle of △θ3. The current control loop can control the rotation angles of the current loop d and q to be the same as the grid voltage d and q, thereby eliminating the current sampling delay angle and ensuring that the actual output current value is the same as the theoretical calculated value in phase amplitude.
[0087] 2) Current control delay compensation
[0088] like Figure 8 As shown, in this cycle of the program, current sampling and current closed-loop control are performed. In the next cycle, the switch tube is actuated without considering the response delay. The current controller controls the current to lag behind the current value of the reference current by half a cycle. The current control delay angle is △θ4, and the output current is controlled to lag behind the reference current output (without considering the current sampling delay).
[0089] Since the current controls the phase angle θ Ctrl Lagging behind the actual phase angle θ iReal , that is, θ iReal =θ Ctrl +△θ4, substituting it into formula (8) we get:
[0090] (11)
[0091] Further simplifying formula (11) to obtain the current control delay compensation equation:
[0092] (12)
[0093] Among them, I d_Ctrl ,I q_Ctrlis the component of the inverter current on the d and q axes under the influence of the control error; formula (12) represents the relationship between the inverter current under the influence of the control error and the inverter current on the d and q axes after control compensation.
[0094] In order to facilitate control in the application, the current sampling value is phase-shifted by an angle of △θ4 according to formula (12). The current control loop controls the current after rotating by an angle of △θ4 to be the same as the reference current, ensuring that the amplitude and direction of the output current are the same as the reference current.
[0095] Another aspect of this embodiment is to provide a power scheduling accuracy compensation device, including a processor and a memory, the memory is used to store instructions, the processor is used to execute the instructions, and after the processor executes the instructions, the power scheduling accuracy compensation device performs the above-mentioned power scheduling accuracy compensation method.
[0096] Another aspect of the present embodiment is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned power scheduling accuracy compensation method.
[0097] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is described in detail below in conjunction with specific simulations.
[0098] Verify in the three-phase grid-connected inverter simulation. Set the current loop I d_Real =700,I q_Real =0, at this time, the voltage sampling error and the phase-locked loop control error have been compensated according to the method described in Example 1, and the theoretical value of the inverter output reactive power calculated based on the actual grid voltage and the actual grid current is 0, and the error of the current sampling delay directly affects the reactive power. In order to illustrate the difference before and after compensation, 81.92μs * 4 (4 sampling cycle delay) is added to the current sampling here, and the reactive power is observed and analyzed. Fig. 9 This is the reactive power error waveform without current sampling compensation. It can be seen that there is an obvious error in the reactive power (i.e. Fig. 9 The curve in the figure is obviously lower than 0), and the delay error angle is converted to 50Hz grid frequency to obtain the delay angle △θ3:
[0099] (13)
[0100] Substitute △θ3 into formula (10) to perform current sampling delay compensation. Fig.10 This is the reactive power waveform after current sampling compensation. It can be seen that the reactive power is equal to zero, which verifies the effectiveness of the current sampling delay compensation strategy.
[0101] In order to analyze the error of current control delay, the control time is delayed by four cycles of sampling time. Fig.11 Reactive error waveform without current control delay compensation. At this time, the current sampling delay has been compensated. The current control delay error angle is converted to the 50Hz grid frequency to obtain the delay angle △θ4:
[0102]
[0103] Substitute △θ4 into formula (12) for compensation: Fig.12 This is the current control waveform after compensation. It can be seen that the reactive power is equal to zero, which verifies the effectiveness of the current control delay compensation strategy.
[0104] The present invention compensates for the control accuracy of active power and reactive power by compensating for the delay errors in the sampling and control of voltage and current. The delay angles are all compensated according to the actual hardware and control time, thus avoiding the delay problem caused by the sampling error of the power analyzer in the conventional experimental fitting method.
[0105] In the above examples, independent compensation is performed to illustrate the effectiveness of voltage and current sampling and control compensation. In practical applications, the sum of the voltage sampling angle error value and the voltage control angle error value or the sum of the current sampling angle error value and the circuit control angle error value can be calculated, and then compensation can be performed once based on the calculated sum. The voltage and current corresponding compensation strategies of the present invention have been verified by experiments.
Claims
1. A power scheduling accuracy compensation method, characterized in that: Compensate for the angle errors in voltage and current sampling and control, where: The angle error compensation of the voltage in the sampling is realized based on the grid voltage sampling error angle compensation equation, where the grid voltage sampling error angle compensation equation is: based on the voltage sampling compensation angle △θ1, the phase-locked angle θ after the phase-locked loop is successfully locked PLL , establish the relationship between the phase-locked loop output voltage under the influence of sampling error and the actual output voltage after phase-locked loop control compensation on the d and q axis components; The grid voltage sampling error angle compensation equation is expressed as: Where U d_Real , U q_Real is the component of the actual output voltage on the d and q axes after phase-locked loop control compensation; U d_AD , U q_ AD are the components of the phase-locked loop output on the d and q axes under the influence of sampling error; The angle error of the voltage in the phase-locked loop control is compensated based on the phase-locked loop control delay compensation equation, where the phase-locked loop control delay compensation equation is: based on the phase-locked loop control compensation angle △θ2, the phase-locked angle θ after the phase-locked loop is successfully locked PLL , establish the relationship between the phase-locked loop output voltage under the influence of control error and the actual output voltage after phase-locked loop control compensation on the d and q axis components; When the angle error of the voltage in the phase-locked loop control is compensated based on the phase-locked loop control delay compensation equation, the phase-locked loop control adopts digital control, and only the digital control zero-order holding delay is considered, and the control response delay is not considered; The phase-locked loop control delay compensation equation is expressed as: Where U d_Real , U q_Real is the component of the actual output voltage on the d and q axes after phase-locked loop control compensation; U d_PLL , U q_PLL are the components of the phase-locked loop output on the d and q axes under the influence of control error; The angle error in current sampling is compensated based on the current sampling delay compensation equation, wherein the current sampling delay compensation equation is: based on the current sampling compensation angle △θ3, a relationship between the inverter current under the influence of the sampling error and the inverter current after sampling compensation on the d and q axis components is established; The current sampling delay compensation equation is expressed as: In the formula, I d_ Real ,I q_Real I is the component of the inverter current on the d and q axes after sampling compensation; d_AD ,I q_ AD are the components of the inverter current in the d and q axes under the influence of sampling error; Based on the current control delay compensation equation, the compensation of the angle error in the current control is realized, wherein the current control delay compensation equation is: based on the current control delay angle △θ4, a relationship between the inverter current under the influence of the control error and the inverter current after control compensation on the d and q axis components is established; The current control delay compensation equation is expressed as: Among them, I d_ Real ,I q_Real To control the inverter current components on the d and q axes after compensation; I d_Ctrl ,I q_Ctrl are the components of the inverter current in the d and q axes under the influence of control error.
2. A power scheduling accuracy compensation method as claimed in claim 1, characterized in that: When compensating for the angle error in current sampling based on the current sampling delay compensation equation, the current control delay is not considered, the inverter sampled current amplitude is the same as the inverter actual current amplitude, but lags behind the inverter actual current by a fixed angle, and it is assumed that the phase-locked loop angle is the actual grid angle.
3. A power scheduling accuracy compensation method as claimed in claim 1, characterized in that: When compensating for the angle error in current control based on the current control delay compensation equation, current sampling and current closed-loop control are performed in this cycle, and the switch tube is actuated in the next cycle without considering the response delay. The control current output lags the current value of the reference current by half a cycle without considering the current sampling delay.
4. A power dispatching accuracy compensation device, characterized in that: It includes a processor and a memory, the memory is used to store instructions, the processor is used to execute the instructions, and after the processor executes the instructions, the compensation device executes the power scheduling accuracy compensation method as described in any one of claims 1-3.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the power scheduling accuracy compensation method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Active damping resonance control method for energy storage converter
CN110380416A
Motor controller-based bus current estimation optimization method and system, storage medium and computer
CN114244228A
Phase locked loop with offset cancellation
US20030076175A1
