Three-phase power supply voltage phase sequence and frequency detection method based on numerical calculation

Through a method based on numerical calculation, using voltage instantaneous value and hysteresis counting, the phase sequence and frequency detection of three-phase power supply is realized, which solves the problem of high hardware circuit cost and lag in the traditional method, improves the detection efficiency and accuracy, and can Effectively resist voltage fluctuations and harmonic interference.

CN114910713BActive Publication Date: 2024-08-30SOUTH CHINA UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210402890.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-18
Publication Date
2024-08-30
Estimated Expiration
2042-04-18

AI Technical Summary

Technical Problem

In the traditional three-phase power grid-connected inverter process, phase sequence detection and frequency control have problems such as high hardware circuit cost, difficulty in maintenance, large amount of calculation, lag, and sensitivity to non-sinusoidal interference, and cannot effectively resist voltage fluctuations and harmonic interference. .

Method used

A three-phase power supply voltage phase sequence and frequency detection method based on numerical calculation is adopted. By detecting the instantaneous value of the voltage, numerical calculation and hysteresis counting are used to realize phase sequence and frequency judgment, avoiding hardware circuit design and filtering processing, and reducing costs and delays.

Benefits of technology

It achieves efficient and accurate phase sequence and frequency detection without additional hardware circuits, reduces costs, improves detection efficiency and accuracy, and can resist voltage fluctuations and harmonic interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114910713B
    Figure CN114910713B
Patent Text Reader

Abstract

The invention discloses a three-phase power supply voltage phase sequence and frequency detection method based on numerical calculation. The method adds a frequency detection part on the basis of the traditional phase sequence detection method, and simultaneously obtains the phase sequence and frequency of the three-phase power supply voltage by numerical calculation. The method does not need to perform logical judgment of the hardware circuit, avoiding the subsequent maintenance and repair of the hardware circuit; there is no need to consider the phase factor, only the instantaneous value of the voltage of the three-phase power supply needs to be detected, and the instantaneous value of the voltage and the built-in reference quantity are numerically calculated, and the phase sequence judgment of the power supply voltage can be realized by counting the number of numerical hysteresis loops within a fixed counting cycle, and at the same time, it is judged whether the actual frequency of the power supply meets the preset standard; the method can resist the voltage fluctuation and harmonic interference of the power supply, and does not need to perform filtering processing after the instantaneous voltage detection, avoiding the phase delay of sampling, improving efficiency and accuracy, and reducing hardware costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of three-phase power grid-connected inversion, and in particular to a three-phase power voltage phase sequence and frequency detection method based on numerical calculation. Background Art

[0002] With the vigorous development of the new energy industry and the widespread application of power electronic devices, the penetration rate of renewable energy in the power grid is gradually increasing. Compared with single-phase power supply, three-phase power supply has the advantages of large capacity, high efficiency, good stability, and material saving. In the process of three-phase power grid connection and inversion, phase sequence detection and frequency control are crucial technologies. If the phase sequence of the renewable power supply does not match the phase sequence of the grid voltage during grid connection and inversion, or the power generation frequency of the renewable power supply does not meet the frequency margin allowed by the grid, it will cause serious damage to the system and even cause major accidents.

[0003] The traditional phase sequence detection scheme is implemented through hardware circuits, which detect the zero-crossing point of the grid voltage to trigger the level flip of the hardware circuit, thereby identifying the phase sequence; however, this scheme requires additional hardware circuit costs, and when the hardware circuit fails, additional detection and repair are required, which will cause a waste of manpower and material resources. In terms of frequency detection, after the traditional scheme collects the voltage waveform on the grid side, it needs to smooth the voltage curve through the filtering link before the next frequency calculation can be performed; this scheme not only has a large amount of calculation, but also causes sampling signal delays, resulting in delayed detection results, and this scheme has high requirements for the parameter setting of the filter. In addition, since the power supply voltage is not a standard sine function in actual situations, the traditional scheme cannot solve the three-phase asymmetry and harmonic interference problems in the power supply voltage, as well as the deviation caused by the accuracy of the voltage sampling circuit. Summary of the invention

[0004] The purpose of the present invention is to optimize the existing three-phase power supply voltage phase sequence and frequency detection technology, and provide a three-phase power supply voltage phase sequence and frequency detection method based on numerical calculation. This method does not require logical judgment of the hardware circuit, saves additional hardware circuit design, reduces costs, and does not require subsequent circuit maintenance and overhaul; there is no need to consider the phase factor, only the instantaneous value of the three-phase power supply voltage needs to be detected to achieve the purpose of phase sequence and frequency detection, and determine whether the actual frequency of the power supply meets the preset standard. In addition, this method can resist voltage fluctuations and harmonic interference of the power supply, and does not require filtering processing after instantaneous voltage detection, which avoids phase delay of sampling and improves efficiency and accuracy.

[0005] To achieve the above-mentioned purpose, the technical solution provided by the present invention is: a three-phase power supply voltage phase sequence and frequency detection method based on numerical calculation. The method is used in a three-phase power supply grid-connected system. There is no need to design peripheral hardware circuits or consider phase factors. It only needs to detect the instantaneous value of the three-phase power supply voltage, and perform numerical calculation on the sampled instantaneous voltage value and the built-in reference value. By counting the number of numerical hysteresis loops within a fixed counting period, the phase sequence judgment of the power supply voltage can be realized, and at the same time, it can be judged whether the actual frequency of the power supply meets the preset standard.

[0006] Furthermore, the three-phase power supply voltage phase sequence and frequency detection method based on numerical calculation includes the following three stages:

[0007] Phase 1: Initialization

[0008] Set the rated voltage RMS value U0 and rated frequency f0 of the three-phase power supply voltage, as well as the allowable voltage and frequency error range;

[0009] Set reference voltages a, b, c, and specify the positive phase sequence of the three-phase power supply voltage;

[0010] Set a sampling period T, which is the same as the sampling period of the three-phase voltage detection link of the three-phase power grid-connected system;

[0011] Phase 2: Circular Sampling and Calculation

[0012] The frequency of the absolute value Y of the result expression y is calculated by hysteresis counting. The specific sampling and calculation process is as follows:

[0013] 1) After the initialization phase is completed, enter the cyclic sampling and calculation phase, set the timing time t0, set the global variable n = 0, set the flag i = 0, j = 0, and start timing;

[0014] 2) Determine whether the timing time reaches t0. If the timing time reaches t0, the phase sequence x is a positive phase sequence, the loop ends, the loop sampling and calculation are completed, and the second stage process is jumped out; if the timing time does not reach t0, the instantaneous voltage values ​​Ua, Ub, and Uc of the three-phase power supply are collected, and the function values ​​of the instantaneous reference voltage values ​​a, b, and c at this moment are calculated, and y=U a ×a+U b ×b+U c ×c, set the absolute value of the result expression y to Y;

[0015] 3) Determine whether n>f0 is true; if true, the phase sequence x is a negative phase sequence, the loop ends, and the loop sampling and calculation process is completed; if not true, go to step 4);

[0016] 4) Determine whether i=0 is true; if i=0 is not true, go to step 5); if i=0 is true, determine whether Y>0.3U0 is true, if Y>0.3U0 is not true, jump to step 6); if Y>0.3U0 is true, set i=1 and jump to step 6);

[0017] 5) Determine whether Y>0.7U0 is true; if Y>0.7U0 is not true, go to step 6); if Y>0.7U0 is true, set i=0, set n=n+1, and go to step 6);

[0018] 6) Determine whether j=0 is true; if j=0 is not true, go to step 7); if j=0 is true, determine whether Y<0.7U0 is true, if Y<0.7U0 is not true, jump to step 2); if Y<0.7U0 is true, set j=1 and jump to step 2);

[0019] 7) Determine whether Y<0.3U0 is true; if Y<0.3U0 is not true, jump to step 2); if Y<0.3U0 is true, set j=0, set n=n+1, and jump to step 2);

[0020] When the timing time reaches the set timing time t0 or satisfies the condition n>f0, the second stage of the cyclic sampling and calculation process ends;

[0021] Phase 3: Phase Sequence and Frequency Results

[0022] After the cyclic sampling and calculation steps, the phase sequence x of the actual power supply and the hysteresis counting result n of the absolute value Y of the result expression are obtained;

[0023] 1) Determine whether the phase sequence x is a positive sequence. If not, perform phase sequence adjustment, and then perform cyclic sampling and calculation after adjustment; if yes, calculate Δf is the frequency deviation, and the actual voltage frequency of the power supply is f=f0±Δf;

[0024] 2) Use the frequency deviation Δf to perform frequency detection, and determine whether the value range of Δf meets the specified voltage frequency error range. If the error requirement is met, proceed to step 3); if not, proceed to step 4);

[0025] 3) Set the detection flag F to 1 and enter the subsequent grid-connected operation;

[0026] 4) Set the detection flag F to 0, indicating that the power supply voltage frequency deviation does not meet the requirements;

[0027] At this point, the phase sequence and frequency detection are completed, and the three-phase power grid-connected system performs subsequent operations based on the frequency detection results.

[0028] Further, with respect to the setting of the reference voltage and the calculation of the result expression y, the reference voltages a, b, and c are set as shown in the following formula, and the order of the three-phase power supply a, b, and c is specified to be a positive phase sequence;

[0029]

[0030] The instantaneous value of the voltage of the three-phase power supply is expressed by the following formula:

[0031] The U in the formula a , U b , U c is the detected instantaneous value of voltage, U is the effective value of voltage, f is the actual voltage frequency, φ is the actual voltage phase, and the value can be any real number; if the actual phase sequence is positive phase sequence, the actual instantaneous value of the three-phase power supply voltage is expressed as follows:

[0032]

[0033] If the actual phase sequence is a negative phase sequence, the actual three-phase power supply voltage U a '、U b '、U c The instantaneous value of ' is expressed as:

[0034]

[0035] In each calculation cycle, the calculated instantaneous values ​​of the reference voltages a, b, and c are compared with the instantaneous value of the sampled voltage U a , U b , U c or U a '、U b '、U c 'Multiply them, and then add the multiplied results to obtain the result expression y, as shown in the following formula, where the formula includes two states, namely, the power phase sequence is a positive phase sequence or the power phase sequence is a negative phase sequence;

[0036] y=U a ×a+U b ×b+U c ×c

[0037] In the case of positive phase sequence, the resulting expression of y is simplified by trigonometric function through the sum-difference-product formula to obtain the following formula:

[0038]

[0039] If the actual voltage frequency f is equal to the set reference frequency f0, the value of the result expression y is a constant that is independent of time. The value of the constant is related to the actual voltage phase φ, and the graph of y is a straight line; if the actual voltage frequency f is not equal to the set reference frequency f0, that is, the actual voltage frequency deviates from the set reference frequency, the result expression contains the term 2π(f0-f)t, which is related to the time t. Therefore, the result expression y is related to the time t and the actual voltage phase φ, and its graph is a cosine curve, and the frequency of the curve is |f0-f|. The frequency is specified as the frequency deviation Δf. By calculating the frequency of the curve, the value of |f0-f| can be inferred. From the above formula, it can be seen that the frequency value of the curve is the difference between the actual voltage frequency f of the power supply and the reference frequency value f0. Since the frequency values ​​are all positive numbers, their absolute values ​​must be less than any frequency value. Therefore, by judging whether Δf is less than the set reference frequency, it can be judged whether it is a positive phase sequence in this sampling case.

[0040] The frequency of the curve of the result expression y can not only be used as a basis for judging whether the phase sequence is positive, but also represents the deviation between the actual voltage frequency f of the power supply and the reference frequency f0. If the value of Δf meets the voltage-frequency error range required by the three-phase power grid-connected system, it means that the actual voltage frequency f of the power supply meets the frequency requirements of the three-phase power grid-connected system; if the value of Δf does not meet the voltage-frequency error range required by the three-phase power grid-connected system, it means that the actual voltage frequency f of the power supply does not meet the frequency requirements of the three-phase power grid-connected system;

[0041] In the case of negative phase sequence, the resulting expression y' is simplified by trigonometric function through the sum-difference-product formula to obtain the following formula:

[0042]

[0043] It can be seen from the formula that the result expression contains the term 2π(f0+f)t, which is related to the time t. Therefore, the result of the result expression y' is related to the time t and the actual voltage phase φ, and its graph is a cosine curve. The frequency of the curve is f0+f, and the frequency is specified as the frequency deviation Δf'; by calculating the frequency of the curve, the value of f0+f can be inferred; from the above formula, the frequency value of the curve is the sum of the actual voltage frequency f of the power supply and the reference frequency f0, and its value must be greater than any frequency value; therefore, by judging whether the frequency Δf' of the result expression y' curve is greater than the set reference frequency, it can be judged whether the situation is a negative phase sequence.

[0044] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0045] 1. There is no need to design additional peripheral hardware circuits and logic judgment circuits. It is only necessary to use the voltage sensor on the grid-connected side to detect the instantaneous value of the voltage of the three-phase power supply, which reduces costs and avoids subsequent hardware circuit maintenance and overhaul.

[0046] 2. There is no need to consider the phase factor. After obtaining the numerical calculation results, the phase sequence judgment and frequency calculation of the power supply voltage can be realized by counting the number of numerical hysteresis loops within a fixed counting period, and whether the actual frequency of the power supply meets the preset standard can be detected. The process is simple and highly operable.

[0047] 3. There is no need to filter the instantaneous voltage value after voltage detection, which avoids the phase delay of sampling, improves efficiency, and can resist voltage fluctuations and harmonic interference. In addition, when the three-phase power supply voltage is asymmetric, this method can still make accurate judgments, thereby improving detection accuracy.

[0048] 4. Since the three-phase voltage in actual conditions is not a standard sinusoidal function, there are deviations in the voltage sampling circuit, and there are delays in the numerical calculation process, the y value of the calculated result expression is not a standard cosine graph. The cyclic sampling and counting method using a hysteresis loop provided by the present invention can avoid the above problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 This is a flow chart of the overall implementation of phase sequence judgment and frequency detection of the present invention.

[0050] Figure 2 This is a specific implementation flow chart of the cyclic sampling and calculation link of the present invention.

[0051] Figure 3 The waveform diagram is a three-phase power supply voltage containing multiple harmonics and voltage disturbances for testing the effect of the present invention.

[0052] Figure 4 This is a graph showing the output result of the absolute value Y of the result expression when the phase sequence is detected to be positive.

[0053] Figure 5 This is a graph showing the output result of the absolute value Y of the result expression when the phase sequence is detected to be negative. DETAILED DESCRIPTION

[0054] The implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and the formula calculation process. However, the implementation of the present invention is not limited thereto.

[0055] like Figure 1As shown, this embodiment provides a three-phase power supply voltage phase sequence and frequency detection method based on numerical calculation. This method is used in a three-phase power supply grid-connected system. It only needs to detect the instantaneous value of the voltage of the three-phase power supply, and obtain the calculated value after numerically calculating the instantaneous value of the voltage and the built-in reference value. By counting the number of hysteresis loops of the calculated value within a fixed counting period, the phase sequence and frequency of the three-phase power supply are detected to determine whether the actual frequency of the power supply meets the preset standard. This method does not require additional design of peripheral hardware circuits, reduces costs, and avoids subsequent hardware circuit maintenance and repair. There is no need to detect the phase of the three-phase power supply and the phase-locked loop, and there is no need to filter the instantaneous value of the voltage after voltage detection, which avoids the phase delay of sampling, and can resist voltage fluctuations and harmonic interference. In addition, the judgment is still accurate when the three-phase power supply voltage is asymmetric. The implementation of this method includes the following three stages:

[0056] Phase 1: Initialization

[0057] The rated voltage effective value U0 and the rated frequency f0 of the three-phase power supply voltage are set. According to the provisions of China's national standard GB / T15945-2008, the frequency deviation limit under normal operating conditions of the power system with a nominal frequency of 50Hz is ±0.2Hz. When the system capacity is small, it can be relaxed to ±0.5Hz.

[0058] Set reference voltages a, b, c, and specify the positive phase sequence of the three-phase power supply voltage.

[0059] Set the sampling period T. The sampling period can be set to be the same as the sampling period of the input voltage detection link of the three-phase power grid-connected system. Here it is set to 0.1ms;

[0060] Phase 2: Circular Sampling and Calculation

[0061] After initialization is completed, this stage begins. The flowchart of this stage is as follows: Figure 2 In actual situations, due to the fact that the power supply voltage is not a standard sine function, there are deviations in the voltage sampling circuit, and there are delays in the numerical calculation process, the calculated result expression y value is not a standard cosine graph; therefore, this method improves the calculation method of the curve frequency and uses the hysteresis loop counting method to calculate the curve frequency of the result expression y. The specific sampling and calculation implementation process is as follows:

[0062] 1) Enter the cyclic sampling and calculation of phase sequence and frequency detection, set the timing time t0, which is set to 1s here, set the global variable n=0, set the flag i=0, j=0, and start timing.

[0063] 2) Determine whether the timing time reaches 1s. If the timing time reaches 1s, the phase sequence x is a positive phase sequence, the loop ends, the loop sampling and calculation are completed, and the second stage process is jumped out; if the timing time does not reach 1s, the instantaneous voltage values ​​Ua, Ub, and Uc of the three-phase power supply are collected, and the function values ​​of the instantaneous reference voltage values ​​a, b, and c at this moment are calculated, and y=U a ×a+U b ×b+U c ×c, set the absolute value of the resulting expression y to Y.

[0064] 3) Determine whether n>f0 is true. If true, the phase sequence x is a negative phase sequence, the loop ends, and the loop sampling and calculation process is completed; if not true, go to step 4).

[0065] 4) Determine whether i=0 is true. If i=0 is not true, go to step 5); if i=0 is true, determine whether Y>0.3U0 is true. If Y>0.3U0 is not true, jump to step 6); if Y>0.3U0 is true, set i=1 and jump to step 6).

[0066] 5) Determine whether Y>0.7U0 is true. If Y>0.7U0 is not true, go to step 6); if Y>0.7U0 is true, set i=0, set n=n+1, and go to step 6).

[0067] 6) Determine whether j = 0. If j = 0 is not true, go to step 7); if j = 0 is true, determine whether Y < 0.7U0 is true. If Y < 0.7U0 is not true, jump to step 2). If Y < 0.7U0 is true, set j = 1 and jump to step 2).

[0068] 7) Determine whether Y<0.3U0 holds. If Y<0.3U0 does not hold, jump to step 2); if Y<0.3U0 holds, set j=0, set n=n+1, and jump to step 2).

[0069] When the timing time reaches the set timing time or satisfies the condition n>f0, the second stage of the cyclic sampling and calculation process ends.

[0070] Phase 3: Phase sequence and frequency result output

[0071] After the cyclic sampling and calculation steps, the phase sequence x of the actual power supply and the hysteresis counting result n of the absolute value Y of the result expression can be obtained.

[0072] 1) Determine whether the phase sequence x is a positive sequence. If not, perform the phase sequence adjustment step, and then perform cyclic sampling and calculation; if yes, calculate The frequency deviation can be obtained.

[0073] 2) Use the frequency deviation Δf to perform frequency detection and determine whether the numerical range of Δf meets the specified frequency error allowable range. If the error requirement is met, proceed to step 3); if not, proceed to step 4).

[0074] 3) Set the detection flag F to 1 and enter the subsequent grid-connected operation.

[0075] 4) Set the detection flag F to 0, indicating that the power supply voltage frequency deviation does not meet the requirements.

[0076] At this point, the phase sequence and frequency detection are completed, and the three-phase power grid-connected system performs subsequent operations based on the frequency detection results.

[0077] Further, with respect to the setting of the reference voltage and the calculation of the result expression y, the reference voltages a, b, and c are set as shown in the following formula, and the order of the three-phase power supply a, b, and c is specified to be a positive phase sequence;

[0078]

[0079] The instantaneous value of the voltage of the three-phase power supply is expressed by the following formula:

[0080] The U in the formula a , U b , U c is the detected instantaneous value of the voltage. In this specific implementation, the three-phase power supply voltage waveform containing multiple harmonics and voltage disturbances is as follows: Figure 3 As shown, U is the effective value of voltage, f is the actual voltage frequency, and φ is the actual voltage phase, which can be any real number. If the actual phase sequence is a positive phase sequence, the actual instantaneous value of the three-phase power supply voltage can be expressed as follows:

[0081]

[0082] If the actual phase sequence is a negative phase sequence, the actual three-phase power supply voltage U a '、U b '、U c The instantaneous value of ' can be expressed as:

[0083]

[0084] In each calculation cycle, the calculated instantaneous values ​​of the reference voltages a, b, and c are compared with the instantaneous value of the sampled voltage U a , U b , U c or U a '、U b '、U c'Multiply them, and then add the multiplied results to obtain the result expression y, as shown in the following formula, where the formula includes two states, namely, the power phase sequence is a positive phase sequence or the power phase sequence is a negative phase sequence;

[0085] y=U a ×a+U b ×b+U c ×c

[0086] In the case of positive phase sequence, the resulting expression of y is simplified by trigonometric function through the sum-difference-product formula to obtain the following formula:

[0087]

[0088] If the actual voltage frequency f is equal to the set reference frequency f0, the value of the result expression y is a constant that is independent of time. The value of the constant is related to the actual voltage phase φ, and the graph of y is a straight line; if the actual voltage frequency f is not equal to the set reference frequency f0, that is, the actual voltage frequency deviates from the set reference frequency, the result expression contains the term 2π(f0-f)t, which is related to the time t. Therefore, the result expression y is related to the time t and the actual voltage phase φ, and its graph is a cosine curve, and the frequency of the curve is |f0-f|. The frequency is specified as the frequency deviation Δf. By calculating the frequency of the curve, the value of |f0-f| can be inferred. From the above formula, it can be seen that the frequency value of the curve is the difference between the actual voltage frequency f of the power supply and the reference frequency value f0. Since the frequency values ​​are all positive numbers, their absolute values ​​must be less than any frequency value. Therefore, by judging whether Δf is less than the set reference frequency, it can be judged whether it is a positive phase sequence in this sampling case.

[0089] If the actual three-phase power supply is not a standard sine wave with a frequency of 50Hz, the graph of the result expression y is not a straight line or a cosine function; if the phase sequence of the actual three-phase power supply is consistent with the set phase sequence, the output result of the absolute value of the result expression y is as follows: Figure 4 As shown, if the phase sequence of the actual three-phase power supply is inconsistent with the set phase sequence, the output result of the absolute value of the result expression y is as follows Figure 5 shown.

[0090] The frequency of the curve of the result expression y can be used as a basis for judging whether the phase sequence is positive, and also represents the deviation between the actual voltage frequency f of the power supply and the reference frequency f0. If the value of Δf meets the voltage-frequency error range required by the three-phase power grid-connected system, it means that the actual voltage frequency f of the power supply meets the frequency requirement; if the value of Δf does not meet the voltage-frequency error range required by the three-phase power grid-connected system, it means that the actual voltage frequency f of the power supply does not meet the frequency requirement;

[0091] In the case of negative phase sequence, the resulting expression y' is simplified by trigonometric function through the sum-difference-product formula to obtain the following formula:

[0092]

[0093] It can be seen from the formula that the result expression contains the term 2π(f0+f)t, which is related to time t. Therefore, the result of the result expression y' is related to time t and the actual voltage phase φ. Its graph is a cosine curve, and the frequency of the curve is f0+f. The frequency is defined as the frequency deviation Δf'. By calculating the frequency of the curve, the value of f0+f can be inferred. It can be seen from the above formula that the frequency value of the curve is the sum of the actual voltage frequency f of the power supply and the reference frequency f0, and its value must be greater than any frequency value. Therefore, by judging whether the frequency Δf' of the result expression y' curve is greater than the set reference frequency, it can be judged whether the situation is a negative phase sequence.

[0094] Those skilled in the art may make various modifications or additions to this specific embodiment or replace it in a similar manner without violating the principle and essence of the present invention, but these changes all fall within the protection scope of the present invention. Therefore, the technical scope of the present invention is not limited to the above embodiments.

Claims

1. Three-phase power supply voltage phase sequence and frequency detection method based on numerical calculation, Features: This method is used for three-phase power grid-connected systems. It only needs to detect the instantaneous value of the voltage of the three-phase power supply, and perform numerical calculations on the sampled instantaneous value of the voltage and the built-in reference value. By counting the number of numerical hysteresis loops within a fixed counting cycle, the phase sequence of the power supply voltage can be judged, and at the same time, it can be judged whether the actual frequency of the power supply meets the preset standard. It includes the following three stages: Phase 1: Initialization Set the rated voltage RMS value U of the three-phase power supply voltage 0 With reference frequency f 0 , and the allowable voltage and frequency error range; Set reference voltages a, b, c, and specify the positive phase sequence of the three-phase power supply voltage; Set a sampling period T, which is the same as the sampling period of the three-phase voltage detection link of the three-phase power grid-connected system; Phase 2: Circular Sampling and Calculation The frequency of the absolute value Y of the result expression y is calculated by hysteresis counting. The specific sampling and calculation process is as follows: 1) After the initialization phase is completed, enter the cyclic sampling and calculation phase and set the timing time t 0 , set the global variable n = 0, set the flag bits i = 0, j = 0, and start timing; 2) Determine whether the timing time reaches t 0 , if the timing time reaches t 0 , then the phase sequence x is a positive phase sequence, the cycle ends, the cycle sampling and calculation are completed, and the second stage process is jumped out; if the timing time does not reach t 0 , then collect the instantaneous value U of the three-phase power supply voltage with positive phase sequence a , U b , U c Or the instantaneous value U' of the three-phase power supply voltage with negative phase sequence a , U' b , U' c , calculate the function value of the instantaneous value of the reference voltage a, b, c at the current moment of the timing time, and calculate y = U a ×a+U b ×b+U c ×c or y′=U′ a ×a+U′ b ×b+U′ c ×c, set the absolute value of the result expression y or y' to Y; 3) Determine if n>f 0 Is it true? If it is true, the phase sequence x is a negative phase sequence, the loop ends, and the process of cyclic sampling and calculation is completed; If not, go to step 4); 4) Determine whether i=0 is true; if i=0 is not true, go to step 5); if i=0 is true, determine whether Y>0.3U 0 Is it true if Y>0.3U 0 Not true, jump to step 6), if Y>0.3U 0 If established, set i=1 and jump to step 6); 5) Determine if Y>0.7U 0 Is it true? If Y>0.7U 0 Not true, go to step 6); if Y>0.7U 0 If established, set i=0, set n=n+1, and go to step 6); 6) Determine whether j=0 is true; if j=0 is not true, go to step 7); if j=0 is true, determine Y<0.7U 0 Is it true if Y<0.7U 0 Not true, jump to step 2), if Y<0.7U 0 If established, set j=1 and jump to step 2); 7) Determine if Y < 0.3U 0 Is it true? If Y<0.3U 0 Not true, jump to step 2); if Y<0.3U 0 If established, set j=0, set n=n+1, and jump to step 2); When the timing time reaches the set timing time t 0 Or if n>f is satisfied 0 When , the second stage of the cyclic sampling and calculation process ends; Phase 3: Phase Sequence and Frequency Results After the cyclic sampling and calculation steps, the phase sequence x of the actual power supply and the hysteresis counting result n of the absolute value Y of the result expression are obtained; 1) Determine whether the phase sequence x is a positive sequence. If not, perform phase sequence adjustment, and then perform cyclic sampling and calculation after adjustment; if yes, calculate Δf is the frequency deviation, the actual voltage frequency of the power supply is f=f 0 ±Δf; 2) Use the frequency deviation Δf to perform frequency detection, and determine whether the value range of Δf meets the specified voltage frequency error range. If the error requirement is met, proceed to step 3); if not, proceed to step 4); 3) Set the detection flag F to 1 and enter the subsequent grid-connected operation; 4) Set the detection flag F to 0, indicating that the power supply voltage frequency deviation does not meet the requirements; At this point, the phase sequence and frequency detection are completed, and the three-phase power grid-connected system performs subsequent operations based on the frequency detection results.

2. The three-phase power supply voltage phase sequence and frequency detection method based on numerical calculation as claimed in claim 1, It is characterized in that The reference voltages a, b, and c are set as shown in the following formula, and the order of the three-phase power supply of the reference voltages a, b, and c is specified to be a positive phase sequence; The instantaneous value of the voltage of the three-phase power supply is expressed by the following formula: The U in the formula a , U b , U c is the detected instantaneous value of voltage, U is the effective value of voltage, f is the actual voltage frequency, is the actual voltage phase, which can be any real number. If the actual phase sequence is positive, the instantaneous value of the actual three-phase power supply voltage can be expressed as follows: If the actual phase sequence is a negative phase sequence, the actual instantaneous value of the three-phase power supply voltage with a negative phase sequence is U' a , U' b , U' c It is expressed as: In each calculation cycle, the calculated reference voltages a, b, c are compared with the instantaneous value U of the actual positive phase sequence three-phase power supply voltage. a , U b , U c Or the actual instantaneous value of the three-phase power supply voltage with negative phase sequence U' a , U' b , U' c Multiply them, and then add the multiplied results to obtain the result expression y or y', as shown in the following formula (4), where the formula includes two states, namely, the power phase sequence is a positive phase sequence or the power phase sequence is a negative phase sequence; In the case of positive phase sequence, the resulting expression of y is simplified by trigonometric function through the sum-difference-product formula to obtain the following equation (5): If the actual voltage frequency f is equal to the set reference frequency f 0 When the result expression y is a constant that has nothing to do with time, the value of this constant is consistent with the actual voltage phase If the actual voltage frequency f is not equal to the set reference frequency f 0 When the actual voltage frequency deviates from the set reference frequency, the resulting expression y contains 2π(f 0 -f)t term, the result expression y is related to time t, so the result expression y is related to time t and the actual voltage phase The graph is a cosine curve, and the frequency of the curve is |f 0 -f|, the frequency is defined as the frequency deviation Δf, and by calculating the frequency of the curve, |f can be inferred 0 -f| value; From the above formula (5), it can be seen that the frequency value of the curve is the actual voltage frequency f of the power supply and the reference frequency value f 0 Since the frequency values ​​are all positive numbers, their absolute values ​​must be smaller than any frequency value. Therefore, by judging whether Δf is smaller than the set reference frequency, it can be judged whether it is a positive phase sequence under the cyclic sampling. The frequency of the curve of the result expression y can not only be used as a basis for judging whether the phase sequence is positive, but also represents the actual voltage frequency f of the power supply and the reference frequency f 0 If the value of Δf meets the voltage-frequency error range required by the three-phase power grid-connected system, it means that the actual voltage-frequency f of the power supply meets the frequency requirements of the three-phase power grid-connected system; if the value of Δf does not meet the voltage-frequency error range required by the three-phase power grid-connected system, it means that the actual voltage-frequency f of the power supply does not meet the frequency requirements of the three-phase power grid-connected system; In the case of negative phase sequence, the result expression y' is simplified by trigonometric function through the sum-difference-product formula to obtain the following equation (6): It can be seen from the formula that the resulting expression y' contains 2π(f 0 +f)t term, the result expression y' is related to time t, so the result of the result expression y' is related to time t and the actual voltage phase The graph is a cosine curve, and the frequency of the curve is f. 0 +f, the frequency is defined as the frequency deviation Δf'; by calculating the frequency of the curve, f can be inferred 0 +f value; From the above formula (6), it can be seen that the frequency value of this curve is the actual voltage frequency f of the power supply and the reference frequency f 0 The added value must be greater than any frequency value; therefore, by judging whether the frequency Δf' of the result expression y' curve is greater than the set reference frequency, it can be judged whether the cyclic sampling is a negative phase sequence.

Citation Information

Patent Citations

  • Method for measuring power grid frequency by resisting harmonic interference and automatically changing phase based on software

    CN102253281A

  • Three-phase power phase sequence detection method for invertion device

    CN103197144A