Phase locking method for single-phase energy storage converter
Through the second-order generalized integral quadrature signal generator and sliding average filter, combined with Park transformation and PI control, the problem of low accuracy of single-phase energy storage converter under frequency changes and harmonic interference is solved, and high Accurate phase lock operation.
Patent Information
- Application Number
- CN202310601656.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-25
- Publication Date
- 2024-11-26
AI Technical Summary
The existing single-phase energy storage converter phase locking method faces frequency changes and harmonic interference, and the phase locking accuracy is low, so it cannot adapt to these changes, resulting in inaccurate phase locking.
The second-order generalized integral quadrature signal generator is used to construct the quadrature signal of a single-phase AC voltage, and the harmonics are filtered out through a sliding average filter. Combined with Park transformation and PI control, the phase-locked loop operation is realized to obtain the single-phase AC voltage. Phase and frequency.
Improves phase locking accuracy, avoids the problem of excessive memory space consumption, and can adapt to frequency changes and harmonic interference, ensuring the accuracy of phase locking.
Smart Images

Figure CN119029947A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of microgrid systems, and in particular to a phase locking method for a single-phase energy storage converter. Background Art
[0002] The microgrid is composed of many micro power sources, loads, energy storage devices, etc., which are connected to the AC power grid through power electronic converters to form an autonomous system. The energy storage converter is a key device in the microgrid system. It is a device that realizes bidirectional energy conversion between the battery and the AC power grid. Its core part is composed of AC / DC conversion devices composed of power electronic devices and control software. In order to achieve the requirements of high-reliability power supply, multiple energy storage converters need to be paralleled, so as to achieve flexible "plug and play" and uninterrupted power supply to the system when a single machine fails. The droop control strategy is adopted to realize the parallel function of multiple energy storage converters. Each energy storage converter operates independently, analyzes its own voltage and frequency signals, and comprehensively calculates its own frequency and voltage compensation signals according to the given droop characteristic curve. This paralleling method can truly realize master-slave and communication-free paralleling. When a module exits the system due to a fault, it does not affect the parallel operation of other modules. The paralleling method based on the droop control strategy needs to phase-lock the single-phase AC bus voltage to obtain its phase, frequency and other information for parallel synchronization and droop control.
[0003] There are currently two commonly used and easy-to-implement methods for the phase-locking function of single-phase AC power. The first method is to detect the time between adjacent zero-crossing points of the AC voltage to obtain the frequency and phase of the AC voltage. The method is simple and easy to implement; but the anti-interference ability is poor. When the AC voltage fluctuates or is severely distorted, multiple zero-crossing points will appear, resulting in phase detection failure. The second method is to use the AC voltage as the α-axis voltage, delay the AC voltage by 90° to construct the β-axis voltage, and then use a digital phase-locked loop for phase locking. However, it is necessary to open an array in the program, which occupies a large memory space. If the AC voltage frequency changes, there will be inaccurate phase locking problems, and when there is harmonic interference in the AC voltage, there will be phase locking errors.
[0004] Therefore, there is an urgent need for a phase-locking method that can adapt to frequency changes and harmonic interference to improve the phase-locking accuracy. Summary of the invention
[0005] In view of the above analysis, an embodiment of the present invention aims to provide a single-phase energy storage converter phase locking method to solve the problem that the existing phase locking cannot adapt to frequency changes and harmonic interference and has low phase locking accuracy.
[0006] An embodiment of the present invention provides a single-phase energy storage converter phase locking method, comprising:
[0007] The voltage output by the single-phase energy storage converter is sampled and a single-phase AC voltage is obtained through AD conversion;
[0008] Constructing the orthogonal signal of the single-phase AC voltage by a second-order generalized integral orthogonal signal generator;
[0009] After discretizing the orthogonal signal of the single-phase AC voltage, the first d-axis and q-axis components of the single-phase AC voltage are obtained by Park's first transformation;
[0010] A phase-locked loop operation is performed based on the first d-axis and q-axis components of the single-phase AC voltage to achieve phase locking of the voltage output by the single-phase energy storage converter.
[0011] Furthermore, the transfer function H of the second-order generalized integral orthogonal signal generator is α (s), H β (s) are respectively expressed as:
[0012]
[0013] In the formula, u represents the single-phase AC voltage, u α 、u β They represent the in-phase component and quadrature component of the single-phase AC voltage quadrature signal, ω represents the center frequency, k α , k β They respectively represent the in-phase parameter to be adjusted and the orthogonal parameter to be adjusted of the single-phase AC voltage orthogonal signal; s represents the Laplace operator.
[0014] Furthermore, the second-order generalized integral orthogonal signal generator obtains the angular frequency of the single-phase AC voltage output by the phase-locked loop at every set refresh time as the center frequency ω.
[0015] Furthermore, the orthogonal signal of the single-phase AC voltage is discretized in the following manner:
[0016]
[0017] Where u(z) represents the single-phase AC voltage after z transformation, u α (z),u β (z) respectively represent the in-phase component and quadrature component of the single-phase AC voltage orthogonal signal after z transformation; T represents the sampling period.
[0018] Further, the Park first transformation is expressed as:
[0019]
[0020] In the formula, u dM 、u qM Respectively represent the first d-axis and q-axis components of the single-phase AC voltage; uαf 、u βf They respectively represent the in-phase component and the orthogonal component of the discretized single-phase AC voltage orthogonal signal; θ represents the phase of the single-phase AC voltage output by the phase-locked loop.
[0021] Furthermore, after discretizing the orthogonal signal of the single-phase AC voltage and before performing the first Park transformation, the following steps are also included:
[0022] Performing a second Park transformation on the orthogonal signal of the single-phase AC voltage to obtain second d-axis and q-axis components of the single-phase AC voltage;
[0023] Perform sliding average filtering on the second d-axis and q-axis components of the single-phase AC voltage to obtain the second d-axis and q-axis components of the filtered single-phase AC voltage;
[0024] The second d-axis and q-axis components of the filtered single-phase AC voltage are subjected to inverse Park transformation to obtain an orthogonal signal of the filtered single-phase AC voltage, and the orthogonal signal is used as a discretized single-phase AC voltage orthogonal signal.
[0025] Furthermore, the second d-axis and q-axis components of the single-phase AC voltage are respectively subjected to sliding average filtering by the following formula:
[0026]
[0027] In the formula, x(τ) represents the signal for sliding average filtering, represents the signal after sliding average filtering, T ω Indicates the sliding window length.
[0028] Furthermore, the sliding window length T ω The value is Among them, ω f Indicates the angular frequency of the power frequency.
[0029] Further, the Park second transform is expressed as:
[0030]
[0031] In the formula, u d 、u q Respectively represent the second d-axis and q-axis components of the single-phase AC voltage; u α 、u β Respectively represent the in-phase component and quadrature component of the single-phase AC voltage quadrature signal; θ f Indicates the phase of the angular frequency of the power frequency;
[0032] The inverse Park transform is expressed as:
[0033]
[0034] In the formula, u αf 、u βf They represent the in-phase component and quadrature component of the discretized single-phase AC voltage quadrature signal respectively; u αf 、u βf They respectively represent the in-phase component and quadrature component of the discretized single-phase AC voltage orthogonal signal.
[0035] Further, a phase-locked loop operation is performed based on the first d-axis and q-axis components of the single-phase AC voltage through the following steps:
[0036] Performing PI control on a first q-axis component of the single-phase AC voltage;
[0037] Adding a feedforward amount to the PI control; wherein the feedforward amount is the angular frequency of the power frequency;
[0038] The PI controller outputs the angular frequency of the single-phase AC voltage after superimposing the feedforward amount, and integrates the angular frequency of the phase AC voltage to obtain the phase of the single-phase AC voltage.
[0039] Compared with the prior art, the present invention can at least achieve the following beneficial effects:
[0040] The present invention provides a single-phase energy storage converter phase-locking method, which phase-locks the single-phase AC voltage obtained by the energy storage converter inversion, adopts a second-order generalized integral with a variable center frequency to construct an orthogonal signal, and then adopts a sliding average filter to filter out harmonics. Finally, a phase-locked loop obtains the phase and frequency of the single-phase AC voltage, thereby avoiding the need to obtain the orthogonal signal of the single-phase AC voltage by constructing an array, greatly saving memory space. In addition, the use of a second-order generalized integral algorithm with a variable center frequency and a sliding average filter can adapt to the phase locking of a single-phase AC voltage with a changing frequency and to the situation where the single-phase AC voltage has harmonic interference, thereby improving the phase-locking accuracy.
[0041] In the present invention, the above-mentioned technical solutions can also be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present invention will be described in the subsequent description, and some advantages can become obvious from the description, or can be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like components throughout the drawings.
[0043] Figure 1 It is a schematic diagram of the principle of a traditional phase-locked loop based on a 90° delay;
[0044] Figure 2 A schematic diagram of the principle of a phase-locking method for a single-phase energy storage converter provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0046] The principle diagram of the digital phase-locked loop currently used for phase locking is as follows Figure 1 As shown, the phase-locking process is as follows: the single-phase AC voltage is directly used as the α-axis voltage (the in-phase component of the orthogonal signal), an array is opened to store the single-phase AC voltage after a 90° delay, and the delayed voltage is used as the β-axis voltage (the orthogonal component of the orthogonal signal), wherein the number of arrays is the control frequency*0.25 / AC voltage frequency; the α-axis voltage and the β-axis voltage are transformed into the d-axis voltage and the q-axis voltage through Park transformation; then the q-axis voltage is PI controlled, and the PI control adds feedforward control, and finally the frequency of the AC voltage is obtained, and the frequency of the AC voltage is obtained by integration to obtain the phase. This method requires the opening of an array in the program, which occupies a large memory space, and if the AC voltage frequency changes, the problem of inaccurate phase locking will occur. In addition, when there is harmonic interference in the AC voltage, there is a phase-locking error. Therefore, the present invention provides a phase-locking method for a single-phase energy storage converter, which uses a second-order generalized integral orthogonal signal generator to construct an orthogonal signal, and uses a sliding average filter to filter out harmonics, thereby solving the problem that the phase-locking cannot adapt to frequency changes, harmonic interference, and low phase-locking accuracy.
[0047] A specific embodiment of the present invention discloses a phase locking method for a single-phase energy storage converter, such as Figure 2 As shown, including:
[0048] S1. Sample the voltage output by the single-phase energy storage converter and obtain the single-phase AC voltage through AD conversion.
[0049] Specifically, the voltage obtained by inversion of the energy storage converter is sampled by a sampling circuit.
[0050] S2. Constructing the orthogonal signal of the single-phase AC voltage through a second-order generalized integral orthogonal signal generator.
[0051] When implemented, the transfer function H of the second-order generalized integral quadrature signal generator is α (s), H β (s) are respectively expressed as:
[0052]
[0053] In the formula, u represents the single-phase AC voltage, uα 、u β They represent the in-phase component and quadrature component of the single-phase AC voltage quadrature signal, ω represents the center frequency, k α , k β They respectively represent the in-phase parameter to be adjusted and the orthogonal parameter to be adjusted of the single-phase AC voltage orthogonal signal; s represents the Laplace operator.
[0054] Specifically, the parameter k to be adjusted α and k β Directly affects the dynamic response performance of the system; k α and k β The larger the k, the larger the bandwidth and the faster the system response speed, but the gating performance of the baseband is reduced and the filtering performance is reduced; therefore, if the system response speed is required to be fast, k α and k β If the base frequency is required to be selected well, then k α and k β It can be adjusted according to the actual needs of phase locking.
[0055] In a specific implementation, the second-order generalized integral orthogonal signal generator obtains the angular frequency of the single-phase AC voltage output by the phase-locked loop at each set refresh time interval as the center frequency ω.
[0056] Specifically, the center frequency ω is set to 314 rad / s during initialization, that is, the center frequency is 50 Hz; the refresh time of the center frequency ω is set to 0.05 s.
[0057] It can be understood that in this embodiment, the frequency obtained by phase locking is assigned in real time to the center frequency of the second-order generalized integral orthogonal signal generator and refreshed in real time, so that the second-order generalized integral orthogonal signal generator can adapt to single-phase AC voltages of different frequencies and obtain accurate phase-locked information, thereby avoiding the problem that when the center frequency is fixed and the frequency of the single-phase AC voltage changes, the phase, frequency and other information obtained by phase locking will have deviations, thereby affecting the parallel function of the energy storage inverter.
[0058] S3. After discretizing the orthogonal signal of the single-phase AC voltage, obtain the first d-axis and q-axis components of the single-phase AC voltage through the first Park transformation.
[0059] During implementation, the orthogonal signal of the single-phase AC voltage is discretized in the following manner:
[0060]
[0061] Where u(z) represents the single-phase AC voltage after z transformation, u α (z),u β(z) respectively represent the in-phase component and quadrature component of the single-phase AC voltage orthogonal signal after z transformation; T represents the sampling period.
[0062] It should be noted that the discretization of the orthogonal signal of the single-phase AC voltage adopts the bilinear difference method, that is,
[0063] When implemented, the Park's first transform is expressed as:
[0064]
[0065] In the formula, u dM 、u qM Respectively represent the first d-axis and q-axis components of the single-phase AC voltage; u αf 、u βf They respectively represent the in-phase component and the orthogonal component of the discretized single-phase AC voltage orthogonal signal; θ represents the phase of the single-phase AC voltage output by the phase-locked loop.
[0066] S4. Perform a phase-locked loop operation based on the first d-axis and q-axis components of the single-phase AC voltage to achieve phase locking of the voltage output by the single-phase energy storage converter.
[0067] During implementation, a phase-locked loop operation is performed based on the first d-axis and q-axis components of the single-phase AC voltage through the following steps:
[0068] Performing PI control on a first q-axis component of the single-phase AC voltage;
[0069] Adding a feedforward amount to the PI control; wherein the feedforward amount is the angular frequency of the power frequency;
[0070] The PI controller outputs the angular frequency of the single-phase AC voltage after superimposing the feedforward amount, and integrates the angular frequency of the phase AC voltage to obtain the phase of the single-phase AC voltage.
[0071] Specifically, the power angular frequency is 314 rad / s.
[0072] It should be noted that the phase-locked loop operation utilizes the characteristic that the first q-axis component of the single-phase AC voltage is zero to achieve phase discrimination.
[0073] It can be understood that by performing the phase locking of the single-phase AC voltage through the above steps, accurate phase locking of the single-phase AC voltage with variable frequency can be achieved without constructing an array.
[0074] Preferably, in step S3, after discretizing the orthogonal signal of the single-phase AC voltage and before performing the first Park transformation, the following steps are further included:
[0075] S31. Perform a second Park transformation on the orthogonal signal of the single-phase AC voltage to obtain second d-axis and q-axis components of the single-phase AC voltage.
[0076] When implemented, the Park's second transform is expressed as:
[0077]
[0078] In the formula, u d 、u q Respectively represent the second d-axis and q-axis components of the single-phase AC voltage; u α 、u β Respectively represent the in-phase component and quadrature component of the single-phase AC voltage quadrature signal; θ f Indicates the phase of the power frequency angular frequency.
[0079] S32, performing sliding average filtering on the second d-axis and q-axis components of the single-phase AC voltage to obtain the second d-axis and q-axis components of the filtered single-phase AC voltage.
[0080] During implementation, the second d-axis and q-axis components of the single-phase AC voltage are respectively subjected to sliding average filtering by the following formula:
[0081]
[0082] In the formula, x(τ) represents the signal subjected to sliding average filtering, x(t) represents the signal after sliding average filtering, and T ω Indicates the sliding window length.
[0083] In specific implementation, the sliding window length T ω The value is Among them, ω f Indicates the angular frequency of the power frequency.
[0084] It should be noted that for digital sliding average filtering, a sliding window length includes n sampling points, and n is
[0085] It is understandable that the larger the sliding window length, the more harmonics are filtered out, but it will lead to slower dynamic response and more processor resources occupied, so the sliding window length should be reasonably selected according to the harmonics to be filtered out. ω The value is The sliding average filter can filter out ω f Integer multiples of harmonic interference signals.
[0086] S33, performing inverse Park transformation on the second d-axis and q-axis components of the filtered single-phase AC voltage to obtain an orthogonal signal of the filtered single-phase AC voltage, and using the orthogonal signal as the discretized single-phase AC voltage.
[0087] When implemented, the inverse Park transform is expressed as:
[0088]
[0089] In the formula, u αf 、u βf They represent the in-phase component and quadrature component of the discretized single-phase AC voltage quadrature signal respectively; u αf 、u βf They respectively represent the in-phase component and quadrature component of the discretized single-phase AC voltage orthogonal signal.
[0090] It can be understood that the use of sliding average filtering can filter out harmonic interference signals that are integer multiples of the fundamental wave, eliminate the oscillation phase-locked error existing in the traditional phase-locked loop, and greatly improve the anti-interference performance of the phase-locked loop.
[0091] Compared with the prior art, this embodiment provides a single-phase energy storage converter phase-locking method, which performs phase-locking on the single-phase AC voltage obtained by inverting the energy storage converter, and constructs an orthogonal signal using a second-order generalized integral with a variable center frequency. Then, a sliding average filter is used to filter out harmonics. Finally, a phase-locked loop obtains the phase and frequency of the single-phase AC voltage, thereby avoiding the need to obtain an orthogonal signal of the single-phase AC voltage by constructing an array, greatly saving memory space. In addition, the use of a second-order generalized integral algorithm with a variable center frequency and a sliding average filter can adapt to the phase locking of a single-phase AC voltage with a changing frequency and to the presence of harmonic interference in the single-phase AC voltage, thereby improving the phase-locking accuracy.
[0092] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0093] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A phase-locking method for a single-phase energy storage converter, It is characterized in that include: The voltage output by the single-phase energy storage converter is sampled and a single-phase AC voltage is obtained through AD conversion; Constructing the orthogonal signal of the single-phase AC voltage by a second-order generalized integral orthogonal signal generator; After discretizing the orthogonal signal of the single-phase AC voltage, the first d-axis and q-axis components of the single-phase AC voltage are obtained by Park's first transformation; A phase-locked loop operation is performed based on the first d-axis and q-axis components of the single-phase AC voltage to achieve phase locking of the voltage output by the single-phase energy storage converter.
2. The single-phase energy storage converter phase locking method according to claim 1, It is characterized in that The transfer function H of the second-order generalized integral quadrature signal generator α (s), H β (s) are respectively expressed as: In the formula, u represents the single-phase AC voltage, u α 、u β They represent the in-phase component and quadrature component of the single-phase AC voltage quadrature signal, ω represents the center frequency, k α , k β They respectively represent the in-phase parameter to be adjusted and the orthogonal parameter to be adjusted of the single-phase AC voltage orthogonal signal; s represents the Laplace operator.
3. The single-phase energy storage converter phase locking method according to claim 2, It is characterized in that The second-order generalized integral orthogonal signal generator obtains the angular frequency of the single-phase AC voltage output by the phase-locked loop at each set refresh time as the center frequency ω.
4. The single-phase energy storage converter phase locking method according to claim 3, It is characterized in that The orthogonal signal of the single-phase AC voltage is discretized in the following manner: Where u(z) represents the single-phase AC voltage after z transformation, u α (z),u β (z) respectively represent the in-phase component and quadrature component of the single-phase AC voltage orthogonal signal after z-transformation; T represents the sampling period.
5. The single-phase energy storage converter phase locking method according to claim 1, It is characterized in that The Park's first transform is expressed as: In the formula, u dM 、u qM Respectively represent the first d-axis and q-axis components of the single-phase AC voltage; u αf 、u βf They respectively represent the in-phase component and the orthogonal component of the discretized single-phase AC voltage orthogonal signal; θ represents the phase of the single-phase AC voltage output by the phase-locked loop.
6. The single-phase energy storage converter phase locking method according to claim 1, It is characterized in that After discretizing the orthogonal signal of the single-phase AC voltage and before performing the first Park transformation, the following steps are also included: Performing a second Park transformation on the orthogonal signal of the single-phase AC voltage to obtain second d-axis and q-axis components of the single-phase AC voltage; Perform sliding average filtering on the second d-axis and q-axis components of the single-phase AC voltage to obtain the second d-axis and q-axis components of the filtered single-phase AC voltage; The second d-axis and q-axis components of the filtered single-phase AC voltage are subjected to inverse Park transformation to obtain an orthogonal signal of the filtered single-phase AC voltage, and the orthogonal signal is used as a discretized single-phase AC voltage orthogonal signal.
7. The single-phase energy storage converter phase locking method according to claim 6, It is characterized in that The second d-axis and q-axis components of the single-phase AC voltage are respectively subjected to sliding average filtering by the following formula: In the formula, x(τ) represents the signal subjected to sliding average filtering, x(t) represents the signal after sliding average filtering, and T ω Indicates the sliding window length.
8. The single-phase energy storage converter phase locking method according to claim 7, It is characterized in that The sliding window length T ω The value is Among them, ω f Indicates the angular frequency of the power frequency.
9. The single-phase energy storage converter phase locking method according to claim 6, It is characterized in that The Park's second transform is expressed as: In the formula, u d 、u q Respectively represent the second d-axis and q-axis components of the single-phase AC voltage; u α 、u β Respectively represent the in-phase component and quadrature component of the single-phase AC voltage quadrature signal; θ f Indicates the phase of the angular frequency of the power frequency; The inverse Park transform is expressed as: In the formula, u αf 、u βf They represent the in-phase component and quadrature component of the discretized single-phase AC voltage quadrature signal respectively; u αf 、u βf They respectively represent the in-phase component and quadrature component of the discretized single-phase AC voltage orthogonal signal.
10. The single-phase energy storage converter phase locking method according to claim 1, It is characterized in that The phase-locked loop operation is performed based on the first d-axis and q-axis components of the single-phase AC voltage by the following steps: Performing PI control on a first q-axis component of the single-phase AC voltage; Adding a feedforward amount to the PI control; wherein the feedforward amount is the angular frequency of the power frequency; The PI controller outputs the angular frequency of the single-phase AC voltage after superimposing the feedforward amount, and integrates the angular frequency of the phase AC voltage to obtain the phase of the single-phase AC voltage.
