A digital adaptive phase-locking method
By using the PI adjustment after initial phase locking angle and mean filtering in the phase locking loop, combined with integral and remainder calculation, the precise phase locking problem of the phase locking loop under large frequency range and rapid changes and voltage imbalance is solved, and the phase locking loop is realized. Efficient phase locking performance.
Patent Information
- Application Number
- CN202011357158.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2040-11-27
AI Technical Summary
Existing phase-locked loops cannot achieve precise phase-locking under large frequency ranges and rapid changes, and are not adaptable under voltage imbalance and voltage distortion.
The three-phase AC voltage is transformed simultaneously with the initial phase lock angle, and the mean filtering is performed to adjust the PI with 0 as the reference. The angular frequency of the fundamental voltage is calculated, and the reference phase angle is obtained through integral and remainder calculation, combined with phase compensation. The angle obtains the phase locking angle and performs an external cycle to improve the phase locking accuracy.
Provide accurate phase locking results under large frequency range and rapid changes, with the advantages of fast dynamic response and easy to achieve, and maintain excellent phase locking performance under conditions such as voltage imbalance and voltage distortion.
Smart Images

Figure CN112491413B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of aircraft AC power supply system control, and in particular relates to a digital adaptive phase locking method. Background Art
[0002] Due to its advantages of high power quality and high power density, voltage source rectifiers have a good application prospect in aircraft power supply systems. The control of voltage source rectifiers is usually implemented in a two-phase synchronous coordinate system, and a phase-locked loop (PLL) is required to phase-lock the input AC voltage. The phase-locked loop can be implemented in hardware or in software using digital methods. In comparison, the latter does not require a dedicated hardware circuit and has the advantages of low cost and strong adaptability, and has been widely used in the control of voltage source rectifiers.
[0003] At present, the more popular digital phase-locked schemes include PLL based on zero-crossing detection, PLL based on multiplication phase detector, PLL based on discrete Fourier transform, PLL based on synchronous rotating coordinate transformation, etc. Among them, PLL based on synchronous rotating coordinate transformation has the characteristics of simple principle and fast dynamic response, and is one of the most popular phase-locked technologies at present. In order to adapt to different voltage conditions, PLL based on synchronous rotating coordinate transformation has derived PLLs of various structures, such as dual second-order generalized integral PLL, positive and negative dual-sequence synchronous rotating coordinate transformation PLL and PLL based on sliding mean filter. Variable frequency AC power supply system is an important trend in the development of aircraft, with the characteristics of wide frequency change range and fast change speed. However, the above-mentioned phase-locked loop is mainly aimed at the situation of small frequency range or slow change, and accurate phase locking cannot be achieved when the frequency changes rapidly in a large range. The patent technology name of the publication number CN106872808B is a phase-locked loop and phase-locked method, which requires the use of frequency measurement algorithm to calculate the reference angular frequency and the use of a six-fold proportional resonant controller for filtering. The principle is complicated and not easy to implement. The patent technology with publication number CN104410407B is called an adaptive digital phase-locked loop and phase-locked method. It has insufficient ability to cope with three-phase voltage imbalance and voltage distortion, and needs to dynamically correct the sampling frequency according to the measured frequency, and has poor adaptability. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a digital adaptive phase locking method for improving the phase locking accuracy under conditions of a large frequency range and rapid changes, while taking into account the phase locking performance under conditions such as voltage imbalance and voltage distortion.
[0005] The digital adaptive phase locking method of the present application mainly includes:
[0006] Step S1, using an initial phase-locking angle to perform two-phase synchronous transformation on a three-phase AC voltage to obtain a two-phase synchronous voltage;
[0007] Step S2, performing mean filtering on the two-phase synchronous voltage according to the frequency obtained by phase locking to obtain the average value of the two-phase synchronous voltage;
[0008] Step S3, taking 0 as a reference, performing PI adjustment on an average value of the two-phase synchronous voltage to obtain the angular frequency of the fundamental voltage, converting the angular frequency into a voltage frequency, replacing the frequency obtained by phase locking in step S2 with the voltage frequency, and performing an inner loop from step S2 to step S3;
[0009] Step S4, integrating the angular frequency obtained in step S3 and calculating the remainder with 2π as the divisor to obtain a reference phase angle;
[0010] Step S5, calculating the phase compensation angle according to the average value of the two-phase synchronous voltage in step S2;
[0011] Step S6, adding the reference phase angle to the phase compensation angle to obtain a phase locking angle, replacing the initial phase locking angle in step S1 with the phase locking angle, and performing an outer loop of steps S1 to S6.
[0012] Preferably, step S1 further comprises:
[0013] Step S11, obtaining the initial sampling value of the three-phase voltage at a certain time t;
[0014] Step S12, changing the initial sampling value from the three-phase stationary coordinate system to the two-phase stationary coordinate system;
[0015] Step S13, calculating the sine and cosine function values of the initial phase-locking angle at time t;
[0016] Step S14: transform the two-phase stationary coordinate system into the two-phase synchronous coordinate system using the sine and cosine function values.
[0017] Preferably, in step S1, the initial phase locking angle is π / 4.
[0018] Preferably, in step S2, the two-phase synchronous voltage is subjected to mean filtering to obtain an average value v of the synchronous voltage. d 、v q include:
[0019]
[0020]
[0021] Among them, v d1 (i) v q1 (i) are the two-phase synchronous voltage v d1 and v q1The i-th sampling value, f is the frequency, m and n are positive integers, m represents the number of the most recent sampling, n < m and satisfies:
[0022]
[0023] where ceil(x) represents the smallest integer not less than x, and T s represents the sampling step.
[0024] Preferably, in step S3, when performing PI regulation, an incremental digital PI algorithm is adopted, and in the incremental digital PI algorithm, the proportional and integral gains are respectively 300 and 12000.
[0025] Preferably, in step S5, according to the average value v d , v q of two identical synchronous voltages, calculating the phase compensation angle Δθ includes:.
[0026] Δθ = tan -1 (v q / v d );
[0027] where v d , v q are the average values of two identical synchronous voltages, and Δθ is the phase compensation angle
[0028] A digital adaptive phase-locked method proposed by the present invention can provide accurate phase-locked results under both the conditions of constant frequency and large-range and rapid frequency changes, and has the advantages of fast dynamic response and easy implementation. Even under the conditions of voltage imbalance, voltage distortion, etc., it also has excellent phase-locked performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a principle block diagram of the digital adaptive phase-locked method of the present invention.
[0030] Figure 2 is a schematic diagram of the three-phase stationary coordinate system, two-phase stationary coordinate system and two identical synchronous rotating coordinate systems applied in the present invention and the relative relationship among them.
[0031] Figure 3 is a schematic diagram of the comparison of the simulation waveforms between the present application and the prior art when the voltage frequency is 360 Hz.
[0032] Figures 4 to 8 is a schematic diagram of the comparison of each simulation waveform when changing at the set voltage frequency.
[0033] In order to better illustrate this embodiment, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product; in addition, the drawings are used for illustrative purposes, and the terms describing the positional relationship are limited to illustrative purposes and cannot be understood as limitations on this patent. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical scheme and advantages of the implementation of this application clearer, the technical scheme in the implementation of this application will be described in more detail below in conjunction with the drawings in the implementation of this application. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described implementation is a part of the implementation of this application, not all of the implementations. The implementations described below with reference to the drawings are exemplary and are intended to be used to explain this application, and should not be construed as limitations on this application.
[0035] In addition, it should be noted that, unless otherwise clearly specified and limited, the words "installed", "connected", "connected" and similar terms used in the description of this application should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, an indirect connection through an intermediate medium, or the internal connection of two components. Technical personnel in the field can understand their specific meanings in this application according to the specific circumstances.
[0036] like Figure 1 As shown, the present application provides a digital adaptive phase locking method, which mainly includes:
[0037] Step S1, using an initial phase-locking angle to perform two-phase synchronous transformation on a three-phase AC voltage to obtain a two-phase synchronous voltage;
[0038] Step S2, performing mean filtering on the two-phase synchronous voltage according to the frequency obtained by phase locking to obtain the average value of the two-phase synchronous voltage;
[0039] Step S3, taking 0 as a reference, performing PI adjustment on an average value of the two-phase synchronous voltage to obtain the angular frequency of the fundamental voltage, converting the angular frequency into a voltage frequency, replacing the frequency obtained by phase locking in step S2 with the voltage frequency, and performing an inner loop from step S2 to step S3;
[0040] Step S4, integrating the angular frequency obtained in step S3 and calculating the remainder with 2π as the divisor to obtain a reference phase angle;
[0041] Step S5, calculating the phase compensation angle according to the average value of the two-phase synchronous voltage in step S2;
[0042] Step S6, adding the reference phase angle to the phase compensation angle to obtain a phase locking angle, replacing the initial phase locking angle in step S1 with the phase locking angle, and performing an outer loop of steps S1 to S6.
[0043] Figure 1 In, v a 、v b 、v c Represent the three-phase AC voltage, v d1 、v q1 Respectively represent v a 、v b 、v c The d-axis and q-axis components after transformation from the three-phase stationary coordinate system to the two-phase synchronous coordinate system, v d 、v q Respectively represent v d1 、v q1 The average component of the voltage, ω represents the angular frequency of the voltage, f represents the frequency of the voltage, θ 1 represents the phase angle before compensation, Δθ represents the phase compensation angle, and θ represents the phase angle after compensation, i.e., the phase-locking angle.
[0044] The detailed description is given below.
[0045] First, in step S1, the three-phase voltage v a 、v b 、v c Sampling is performed and the three-phase voltage is rotated and transformed using the sine and cosine functions of the phase-locking angle θ to obtain the d and q axis voltage values v in the two-phase synchronous coordinate system. d1 、v q1 In this example, the sampling frequency is 100k. The three-phase stationary coordinate system, the two-phase stationary coordinate system and the two-phase synchronous rotating coordinate system used in the present invention and the relative relationship between the three are as follows: Figure 2 shown.
[0046] For convenience, let v a 、v b 、v c is the sampling value of the three-phase voltage at time t. The transformation from the three-phase stationary coordinate system to the two-phase synchronous coordinate system is carried out in two steps:
[0047] Step 1: Change from the three-phase stationary coordinate system to the two-phase stationary coordinate system:
[0048]
[0049] Among them, v α and v β They are the α-axis and β-axis voltage components in the two-phase stationary coordinate system.
[0050] Step 2: Transformation from two-phase stationary coordinate system to two-phase synchronous coordinate system:
[0051]
[0052] where sinθ and cosθ are the sine and cosine function values of the phase-locked angle θ at time t. The initial operation requires providing the initial value θ Ini , in this example, θ Ini is set to π / 4.
[0053] In step S2, according to the frequency f obtained by phase-locking, the voltages in the two-phase synchronous coordinate system are subjected to mean filtering to obtain the average values v d and v q of the voltage d-axis and q-axis components;
[0054]
[0055]
[0056] where v d1 (i), v q1 (i) are the i-th sampling values of the two-phase synchronous voltages v d1 and v q1 respectively, f is the frequency, m and n are positive integers, m represents the most recent sampling times, n < m and satisfies:
[0057]
[0058] where ceil(x) represents the smallest integer not less than x, T s represents the sampling step. In this example, the value of T s is 10 μs, the value range of f is [320 820], and its initial value is given by the frequency measurement circuit.
[0059] In step S3, taking 0 as the reference, the average voltage component v q of the q-axis is subjected to PI regulation to obtain the angular frequency ω of the fundamental voltage, and the angular frequency is transformed into the frequency f as the input of step S2;
[0060] Applying the incremental digital PI algorithm, the output ω(k) of the PI regulator at the current (k) moment is:
[0061] ω(k) = ω(k - 1) + Δω(k)
[0062] where ω(k - 1) represents the output of the PI regulator in the previous operation period (at time k - 1), and Δω(k) represents the increment of the output of the PI regulator at time k, and the calculation formula is:
[0063] Δω(k) = K P [vq (k)-v q (k-1)]+K I T s v q (k)
[0064] Among them, v q (k), v q (k-1) represents v q The sampling values of the current and previous moments; K P and K I They represent the proportional and integral gains of the PI regulator respectively, which are 300 and 12000 respectively in this example.
[0065] The frequency at the current moment is:
[0066] f(k)=ω(k) / 2π
[0067] Then, f(k) is used as the input of step 2 to calculate v d and v q .
[0068] In step S4, the obtained angular frequency ω is integrated and the remainder is calculated with 2π as the divisor to obtain the phase angle of the A phase voltage, i.e., the reference phase angle, which is recorded as the phase angle before compensation θ 1 ;
[0069] Using the incremental digital integration algorithm, the output u(k) of the integrator at the current time (k) is:
[0070] u(k)=u(k-1)+Δu(k)
[0071] Among them, u(k-1) represents the output of the integrator in the previous operation cycle (k-1 moment), Δu(k) represents the increment of the integrator output at moment k, and the calculation formula is:
[0072] Δu(k)=T s ω(k)
[0073] Phase angle θ before compensation 1 The calculation formula is:
[0074] θ 1 =mod(ω(k),2π)
[0075] Among them, mod(x,y) means to perform a remainder operation on x / y with y as the modulus.
[0076] In step S5, the average value v of the d-axis and q-axis voltage components is used. d 、v q Calculate the phase compensation angle Δθ for the input;
[0077] The corresponding calculation formula is:
[0078] Δθ=tan -1 (v q / v d )
[0079] Among them, tan -1 x represents the inverse tangent of x. In this example, the limit is v d ∈[0.5 1.5].
[0080] In step S6, the phase angle θ before compensation is 1 The phase angle after compensation is added to the phase compensation angle Δθ, which is the required phase-locking angle θ. The corresponding calculation formula is:
[0081] θ=θ 1 +Δθ
[0082] Then, the sine and cosine functions of the phase-locking angle θ are calculated as input to step S1 to start the phase-locking process of the next operation cycle.
[0083] Figure 3 The following are the simulation waveforms when the voltage frequency is 360Hz, respectively using the digital adaptive phase-locked loop (hereinafter referred to as the improved adaptive mean phase-locked loop) proposed in this paper and the PLL based on the sliding mean filter (hereinafter referred to as the traditional adaptive mean phase-locked loop), where the three-phase voltage is balanced and all are expressed in per-unit values. It can be seen from the figure that both phase-locked loops have excellent steady-state performance when the frequency is constant.
[0084] Figure 4 It is a simulated waveform when the voltage frequency changes from 380Hz to 384Hz at 400Hz / s, in which the three-phase voltages are balanced and all are expressed in per-unit values.
[0085] Figure 5 is the sinθ and v during the period when the voltage frequency changes from 380Hz to 382Hz at 400Hz / s q The simulation waveform, in which the three-phase voltage is balanced, v q_cvtnl 、v q_impvd They represent the v when using the traditional adaptive mean phase-locked loop and the improved adaptive mean phase-locked loop respectively. q Values are expressed in per-unit terms.
[0086] Figure 6 It is a simulated waveform when the voltage frequency changes from 780Hz to 778Hz at -400Hz / s, in which the three-phase voltages are balanced and all are expressed in per-unit values.
[0087] Figure 7 It is a simulated waveform when the voltage frequency changes from 380Hz to 384Hz at 400Hz / s, where the three-phase voltage is unbalanced and contains harmonics.
[0088] Figure 8 It is a simulation waveform when the voltage frequency changes from 780Hz to 778Hz at -400Hz / s, in which the three-phase voltage is balanced and the amplitude of the three-phase voltage drops from 1.0pu to 0.8pu at 0.001s.
[0089] from Figure 3-Figure 8 It can be seen that the digital adaptive phase-locked loop of the present application can provide accurate phase-locked results under conditions of constant frequency and large frequency range and rapid change, and has the advantages of fast dynamic response and easy implementation. It has excellent phase-locked performance even under conditions of voltage imbalance, voltage distortion, etc.
[0090] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. Those skilled in the art should understand that the scope of protection of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the scope of protection of the present application.
Claims
1. A digital adaptive phase locking method, It is characterized in that include: Step S1, using an initial phase-locking angle to perform two-phase synchronous transformation on a three-phase AC voltage to obtain a two-phase synchronous voltage; Step S2, performing mean filtering on the two-phase synchronous voltage according to the frequency obtained by phase locking to obtain the average value of the two-phase synchronous voltage; Step S3, taking 0 as a reference, performing PI adjustment on an average value of the two-phase synchronous voltage to obtain the angular frequency of the fundamental voltage, converting the angular frequency into a voltage frequency, replacing the frequency obtained by phase locking in step S2 with the voltage frequency, and performing an inner loop from step S2 to step S3; Step S4, integrating the angular frequency obtained in step S3 and calculating the remainder with 2π as the divisor to obtain a reference phase angle; Step S5, calculating the phase compensation angle according to the average value of the two-phase synchronous voltage in step S2; Step S6, adding the reference phase angle to the phase compensation angle to obtain a phase lock angle, replacing the initial phase lock angle in step S1 with the phase lock angle, and performing an outer loop from step S1 to step S6; In step S2, the two-phase synchronous voltage is filtered to obtain the average value v of the synchronous voltage. d 、v q include: where, v d1 (i), v q1 (i) are respectively the i-th sampled values of two identical synchronous voltages v d1 and v q1 , f is the frequency, m and n are positive integers, m represents the most recent sampling times, n < m and satisfy: Where ceil(x) represents the smallest integer not less than x, T s represents the sampling step length; Step S3 further comprises: Using the incremental digital PI algorithm, the output ω(k) of the PI regulator at the current time k is: ω(k)=ω(k-1)+Δω(k); Among them, ω(k-1) represents the output of the PI regulator at the k-1 moment of the previous operation cycle, and Δω(k) represents the increment of the PI regulator output at the k moment. The calculation formula is: Δω(k)=K P [v q (k)-v q (k-1)]+K I T s v q (k); Among them, v q (k), v q (k-1) represents v q The sampling values of the current and previous moments; K P and K I Respectively represent the proportional and integral gains of the PI regulator; Afterwards, the angular frequency is converted into a voltage frequency. The voltage frequency at the current moment is: f(k)=ω(k) / 2π; The voltage frequency f(k) is then used to replace the frequency obtained by phase locking in step S2.
2. The digital adaptive phase locking method according to claim 1, Features: Step S1 further comprises: Step S11, obtaining the initial sampling value of the three-phase voltage at a certain time t; Step S12, changing the initial sampling value from the three-phase stationary coordinate system to the two-phase stationary coordinate system; Step S13, calculating the sine and cosine function values of the initial phase-locking angle at time t; Step S14: transform the two-phase stationary coordinate system into the two-phase synchronous coordinate system using the sine and cosine function values.
3. The digital adaptive phase locking method according to claim 1, Features: In step S1, the initial phase-locking angle is π / 4.
4. The digital adaptive phase locking method according to claim 1, Features: In step S3, when performing PI adjustment, an incremental digital PI algorithm is used, and in the incremental digital PI algorithm, the proportional and integral gains are 300 and 12000 respectively.
5. The digital adaptive phase locking method according to claim 1, Features: In step S5, according to the average value v of the two-phase synchronous voltage d 、v q Calculating the phase compensation angle Δθ includes: Δθ=tan -1 (v q / v d ); Among them, v d 、v q is the average value of the two-phase synchronous voltage, and Δθ is the phase compensation angle.
