A harmonic current detection method, device and storage medium

Through the combination of closed-loop phase locker and parallel low-pass filter, combined with the second-order generalized integrator with feedback and the genetic algorithm to optimize the weight value, the existing technology problems of harmonic detection accuracy and response speed in the power grid environment are solved, and the problem of harmonic detection accuracy and response speed in the power grid environment is solved. Accurate harmonic detection in non-ideal grid environments.

CN118330316BActive Publication Date: 2024-09-24STATE GRID SHANDONG ELECTRIC POWER CO FEICHENG POWER SUPPLY CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410755996.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-24
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

The existing technology is difficult to accurately track the voltage synchronization signal in a non-ideal power grid environment, which affects the accuracy and dynamic response speed of harmonic detection, and the order setting and cutoff frequency of the filter are difficult to balance detection accuracy and response speed.

Method used

A closed-loop phase locker is used to obtain the reference voltage phase and frequency of the three-phase grid-side voltage, and the active and reactive DC components of the current are extracted through a combination of parallel low-pass filters, and a second-order generalized integrator with feedback is used to separate positive and negative sequences. , generate frequency correction signals, and optimize weight values ​​through genetic algorithms to improve filtering accuracy.

Benefits of technology

It achieves accurate tracking of voltage synchronization signals in non-ideal grid environments, improves the accuracy and dynamic response speed of harmonic detection, and ensures the accuracy of the three-phase fundamental frequency component.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118330316B
    Figure CN118330316B
Patent Text Reader

Abstract

The present invention relates to a harmonic current detection method, device and storage medium, and relates to the field of harmonic current detection. The present application obtains a three-phase grid voltage, extracts a grid reference voltage phase and frequency according to the three-phase grid side voltage through a closed-loop phase lock; obtains the three-phase grid current and converts it to the #imgabs0# phase stationary coordinate system to obtain the grid current #imgabs1# axis component #imgabs2# and #imgabs3# axis component #imgabs4#, calculates the current active component and the current reactive component according to the grid reference voltage frequency, the grid current #imgabs5# axis component #imgabs6# and #imgabs7# axis component #imgabs8#, filters the current active component and the current reactive component through N parallel low-pass filters, performs weighted summation of the filtering results to obtain the current active DC component and the current reactive DC component, obtains the three-phase fundamental frequency component through inverse transformation, and obtains the three-phase current harmonic by subtracting the three-phase fundamental frequency component from the three-phase grid current.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of harmonic current detection, and in particular to a harmonic current detection method, device and storage medium. Background Art

[0002] The physical meaning of the fundamental wave is a signal with the same period as the longest period in a group of signals. In the power grid, the ideal power generation signal frequency is 50Hz. The higher the purity of the power grid, the better, which can increase the efficiency of power use and extend the service life of power system components. Harmonics are a group of electrical signals with frequencies that are integer multiples of the fundamental frequency. With the development of microgrids and new electrical equipment, the actual operating conditions of power systems are becoming increasingly complex, and more and more nonlinear power system devices in power systems generate harmonics during operation. It is mainly reflected in endangering the safe operation of the power supply system and affecting the stable and normal use of various electrical equipment.

[0003] At present, active power filter as a dynamic compensation device has always been a research hotspot in the field of harmonic control. APF active filter needs harmonic detection to provide accurate harmonic signals as reference, and then control MMC to perform harmonic compensation according to the harmonic signals. Common harmonic detection methods of APF include ip-iq method, pq method, FFT method and some intelligent detection algorithms. The ip-iq harmonic detection is to transform the harmonic source current in the three-phase stationary coordinate system, and finally transform it into the synchronous rotating coordinate system. The rotating axis can be separated into the fundamental positive sequence component by low-pass filtering, and then the fundamental active current of the three-phase current is obtained by inverse transformation, and then the harmonic current of the three-phase current is obtained. In the process of low-pass filtering, the phase-locked loop needs to extract the real-time information of the grid-side reference voltage phase and frequency to provide a reference reference signal, which requires the phase-locked loop to accurately track the voltage synchronization signal in a non-ideal power grid environment. At the same time, the operation effect of the ip-iq method is also limited by the filter. Its order setting and cutoff frequency selection are difficult to take into account the ip-iq detection accuracy and dynamic response speed. Summary of the invention

[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present invention provides a harmonic current detection method, device and storage medium.

[0005] In a first aspect, the present invention provides a harmonic current detection method, comprising:

[0006] Get three-phase grid voltage , , , through the closed-loop phase-locked device according to the three-phase grid voltage , , Extract grid reference voltage phase and frequency ;

[0007] Get three-phase grid current , , Convert to The grid current is obtained in the phase stationary coordinate system Axis Component and Axis Component , according to the grid reference voltage frequency , Axis Component and Axis Component Calculate the active component of current and reactive current component , filtering the active current component through N low-pass filters in parallel and reactive current component The weighted sum of the filtered results is used to obtain the active DC component of the current and reactive DC component of current , the active DC component of current and reactive DC component of current After inverse transformation, the three-phase fundamental frequency components are obtained , , , the three-phase fundamental frequency component and the three-phase grid current , , The three-phase current harmonics are obtained by subtracting them.

[0008] Furthermore, the closed-loop phase-locked device converts the grid-side voltage , , Convert to The grid voltage is obtained in the phase stationary coordinate system Axis Component and Axis Component , expressed as:

[0009] ,

[0010] in, is the Clarke transformation matrix;

[0011] by Axis Component and Axis Component As a reference, they are generated by a second-order generalized integrator with feedback. Shaft voltage output and Shaft voltage output , the second-order generalized integrator with feedback can also be decomposed into Shaft voltage output mutually orthogonal Shaft voltage output , the second-order generalized integrator with feedback can also be decomposed into Shaft voltage output mutually orthogonal Shaft voltage output ;in, ;

[0012] based on Shaft voltage output and Shaft voltage output , Shaft voltage output and Shaft voltage output Separate the positive and negative sequences and obtain Shaft positive sequence voltage and Shaft positive sequence voltage :

[0013] ;

[0014] ;

[0015] Based on the grid reference voltage phase Will Shaft positive sequence voltage and Shaft positive sequence voltage Convert to Coordinate system obtained Axis DC error and Axis DC error , filter out Axis DC error The AC component in the DC component is converted into a frequency correction signal through linear proportional operation. , and then the frequency correction signal With grid angular frequency The grid reference voltage phase is obtained by integrating the sum and taking the remainder ,Depend on With grid angular frequency The sum of the grid reference voltage and frequency is obtained.

[0016] Furthermore, the feedback mode of the second-order generalized integrator with feedback is Axis Component minus Shaft voltage output get Axis error , Axis error Multiply the damping factor and remove Shaft voltage output The second-order generalized integrator with feedback after input, Axis Component minus Shaft voltage output get Axis error , Axis error Multiply the damping factor and remove Shaft voltage output Post-input second-order generalized integrator with feedback.

[0017] Furthermore, the transfer function of the second-order generalized integrator is: .

[0018] Furthermore, by using the Parker transformation Shaft positive sequence voltage and Shaft positive sequence voltage Convert to Coordinate system:

[0019] .

[0020] Furthermore, the grid reference voltage frequency , Axis Component and Axis Component Calculate the active component of current and reactive current component include:

[0021] Generate fundamental sine and cosine signals according to the grid reference voltage frequency through a signal generator and , ;

[0022] but .

[0023] Furthermore, the N low-pass filters include at least one The N low-pass filters include a number of , is the low-pass filter with low-pass limit, is a positive integer, is the frequency fluctuation step, , For The allowable fluctuation range centered on is, when configuring the weight, the weight is configured as positive; N low-pass filters include several including several with , It is a low-pass filter with a low-pass limit. When configuring the weight, the weight is configured to be negative; the positive weight and the negative weight are normalized to one.

[0024] Furthermore, the optimization of the weight value is achieved through a genetic algorithm, and the fitness adopts a method to output the inverse of the sum of the mean square error between the current harmonic and the actual current harmonic and a constant term, wherein the constant term avoids the denominator being zero.

[0025] In a second aspect, the present invention provides a device for implementing a harmonic current detection method, comprising: at least one processing unit, the processing unit is connected to a storage unit via a bus unit, the storage unit stores a computer program, and when the computer program is executed by the processing unit, the harmonic current detection method is implemented.

[0026] In a third aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the harmonic current detection method as described above is implemented.

[0027] The above technical solution provided by the embodiment of the present invention has the following advantages compared with the prior art:

[0028] The closed-loop phase-locked device of the present application obtains the grid reference voltage phase and frequency according to the three-phase grid-side voltage, and realizes accurate tracking of the voltage synchronization signal. Phase-stationary coordinates, In the phase-stationary coordinates, only the fundamental current component and the fundamental voltage synthesis vector rotate synchronously and are in a relatively static state, while all other current components are dynamic relative to the fundamental positive-sequence voltage synthesis vector. Therefore, only the projection of the fundamental positive-sequence current component on the fundamental positive-sequence voltage vector and its normal is a constant, and the projections of other components on the fundamental positive-sequence voltage and its normal are all alternating. The DC component can be more accurately extracted through the combination of low-pass filters, and the fundamental positive-sequence current component of the power grid can be obtained through inverse transformation.

[0029] The combination of low-pass filters in the present application is a parallel structure. By parallel filtering, there is no need to increase the filtering time. The N low-pass filters include at least one The N low-pass filters include a number of , is the low-pass filter with low-pass limit, is a positive integer, is the frequency fluctuation step, , For The allowable fluctuation range centered on is, when configuring the weight, the weight is configured as positive; N low-pass filters include several including several with , It is a low-pass filter with a low-pass limit. When configuring the weight, the weight is configured as negative; the positive weight and the negative weight are normalized to one. It can better filter out high-order and low-order harmonics and ensure the accuracy of the obtained three-phase fundamental frequency components. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0032] Figure 1 A flow chart of a harmonic current detection method provided by an embodiment of the present invention;

[0033] Figure 2 A calculation principle diagram of a harmonic current detection method provided by an embodiment of the present invention;

[0034] Figure 3 A calculation principle diagram of a closed-loop phase-locked device provided by an embodiment of the present invention;

[0035] Figure 4 A schematic diagram of a device for implementing a harmonic current detection method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0038] Example 1

[0039] like Figure 1 and Figure 2 As shown, the technology of the present invention implements a harmonic current detection method, including:

[0040] Get three-phase grid voltage , , , through the closed-loop phase-locked device according to the three-phase grid voltage , , Extract grid reference voltage phase and frequency .

[0041] In the specific implementation process, Figure 3 As shown, the closed-loop phase-locked device converts the grid-side voltage , , Convert to The grid voltage is obtained in the phase stationary coordinate system Axis Component and Axis Component , expressed as:

[0042] ,

[0043] in, is the Clarke transformation matrix, which is as follows;

[0044] .

[0045] by Axis Component and Axis Component As a reference, they are generated by a second-order generalized integrator with feedback. Shaft voltage output and Shaft voltage output , the second-order generalized integrator with feedback can also be decomposed into Shaft voltage output mutually orthogonal Shaft voltage output , the second-order generalized integrator with feedback can also be decomposed into Shaft voltage output mutually orthogonal Shaft voltage output ;in, .

[0046] Among them, the feedback mode of the second-order generalized integrator with feedback is Axis Component minus Shaft voltage output get Axis error , Axis error Multiply the damping coefficient And remove Shaft voltage output Then input the second-order generalized integrator, Axis Component minus Shaft voltage output get Axis error , Axis error Multiply the damping factor and remove Shaft voltage output Then input the second-order generalized integrator.

[0047] The transfer function of the second-order generalized integrator is: .

[0048] based on Shaft voltage output and Shaft voltage output , Shaft voltage output and Shaft voltage output Separate the positive and negative sequences and obtain Shaft positive sequence voltage and Shaft positive sequence voltage , the formula is:

[0049] ;

[0050] .

[0051] Based on the grid reference voltage phase Will Shaft positive sequence voltage and Shaft positive sequence voltage Convert to Coordinate system obtained Axis DC error and Axis DC error In the specific implementation process, the Parker transformation is used to convert Shaft positive sequence voltage and Shaft positive sequence voltage Convert to Coordinate system:

[0052] .

[0053] Filter out Axis DC error The AC component in the DC component is converted into a frequency correction signal through linear proportional operation. ,like Figure 2 As shown, the linear proportional operation is realized by the linear proportional controller PI, and then the frequency correction signal With grid angular frequency The grid reference voltage phase is obtained by integrating the sum and taking the remainder , the frequency-corrected signal With grid angular frequency The grid reference voltage frequency is obtained by summing =0, phase lock is completed.

[0054] Generate fundamental sine and cosine signals according to the grid reference voltage frequency through a signal generator and . Sin and cosine signals and Used to transform the coordinate system of current.

[0055] Get three-phase grid current , , Convert to The grid current is obtained in the phase stationary coordinate system Axis Component and Axis Component , expressed as:

[0056] ,

[0057] in, is the Clarke transformation matrix, which is as follows;

[0058] .

[0059] According to the grid reference voltage frequency , Axis Component and Axis Component Calculate the active component of current and reactive current component ,Right now:

[0060] The signal generator generates fundamental sine and cosine signals according to the grid reference voltage phase and frequency. and , .

[0061] but .

[0062] The active current component is filtered by N low-pass filters in parallel and reactive current component The weighted sum of the filtered results is used to obtain the active DC component of the current and reactive DC component of current .

[0063] In one implementation, the N low-pass filters include at least one The N low-pass filters include a number of , is the low-pass filter with low-pass limit, is a positive integer, is the frequency fluctuation step, , For The allowable fluctuation range centered on is, when configuring the weight, the weight is configured as positive; N low-pass filters include several including several with , is a low-pass filter with a low-pass limit, It is a positive integer. When configuring weights, the weights are configured as negative; positive weights and negative weights are normalized to one.

[0064] In the specific implementation process, the optimization of the weight value is achieved through a genetic algorithm, and the fitness adopts the inverse of the sum of the mean square error between the output current harmonic and the actual current harmonic and the constant term, and the constant term adopts a minimum value such as 10^-6 to avoid the denominator becoming zero. The optimization of each weight is achieved through a genetic algorithm so that the error between the actual harmonic current and the harmonic current output by this application is minimized.

[0065] Active DC component of current and reactive DC component of current After inverse transformation, the three-phase fundamental frequency components are obtained , , , the three-phase fundamental frequency component and the three-phase grid current , , The three-phase current harmonics are obtained by subtracting them.

[0066] In the specific implementation process, the active DC component of the current and reactive DC component of current First, inverse transform The form of the phase-stationary coordinate system is obtained and :

[0067]

[0068] Then and The fundamental frequency component is obtained by inverse transformation into the three-phase coordinate system , , :

[0069] ;

[0070] is the Clarke inverse transformation matrix, which is as follows;

[0071] .

[0072] exist In the phase-stationary coordinates, only the fundamental current component and the fundamental voltage synthesis vector rotate synchronously and are in a relatively static state, while all other current components are dynamic relative to the fundamental positive-sequence voltage synthesis vector. Therefore, only the projection of the fundamental positive-sequence current component on the fundamental positive-sequence voltage vector and its normal is a constant, and the projections of other components on the fundamental positive-sequence voltage and its normal are all alternating. The DC component can be more accurately extracted through the combination of low-pass filters, and the fundamental positive-sequence current component of the power grid can be obtained through inverse transformation.

[0073] Example 2

[0074] See also Figure 4 As shown, an embodiment of the present invention provides a device for implementing a harmonic current detection method, including: at least one processing unit, the processing unit is connected to a storage unit through a bus unit, the storage unit is a computer-readable storage medium, and can be used to store software programs, computer executable programs, and modules, such as the software programs, computer executable programs, and modules corresponding to a harmonic current detection method in an embodiment of the present invention. The processing unit implements the above-mentioned harmonic current detection method by running the software programs, computer executable programs, and modules stored in the storage unit, including:

[0075] Get three-phase grid voltage , , The closed-loop phase-locked device is based on the three-phase grid voltage , , Extract grid reference voltage phase and frequency ;

[0076] Get three-phase grid current , , and convert to The grid current is obtained in the phase stationary coordinate system Axis Component and Axis Component , according to the grid reference voltage frequency , Axis Component and Axis Component Calculate the active component of current and reactive current component , filtering the active current component through N low-pass filters in parallel and reactive current component The active DC component of the current is obtained by weighted summing of the filtering results and reactive DC component of current , the active DC component of current and reactive DC component of current After inverse transformation, the three-phase fundamental frequency components are obtained , , , the three-phase fundamental frequency component and the three-phase grid current , , The three-phase current harmonics are obtained by subtracting them.

[0077] Of course, the computer program stored in the storage unit of the device for implementing the harmonic current detection method provided by the embodiment of the present invention is not limited to the method operation described above, and can also execute related operations in the harmonic current detection method provided by any embodiment of the present invention.

[0078] Example 3

[0079] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed, the harmonic current detection method is implemented, including:

[0080] Get three-phase grid voltage , , , through the closed-loop phase-locked device according to the three-phase grid voltage , , Extract grid reference voltage phase and frequency ;

[0081] Get three-phase grid current , , Convert to The grid current is obtained in the phase stationary coordinate system Axis Component and Axis Component , according to the grid reference voltage frequency , Axis Component and Axis Component Calculate the active component of current and reactive current component , filtering the active current component through N low-pass filters in parallel and reactive current component The weighted sum of the filtered results is used to obtain the active DC component of the current and reactive DC component of current , the active DC component of current and reactive DC component of current After inverse transformation, the three-phase fundamental frequency components are obtained , , , the three-phase fundamental frequency component and the three-phase grid current , , The three-phase current harmonics are obtained by subtracting them.

[0082] A computer-readable storage medium provided by an embodiment of the present invention stores a computer program which is not limited to the method operations described above, but can also execute related operations in a harmonic current detection method provided by any embodiment of the present invention.

[0083] In the embodiments provided by the present invention, it should be understood that the disclosed structures and methods can be implemented in other ways. For example, the structural embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, structures or units, which can be electrical, mechanical or other forms.

[0084] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0085] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0086] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A harmonic current detection method, characterized in that: include: Get three-phase grid voltage , , The closed-loop phase-locked device is based on the three-phase grid voltage , , Extract grid reference voltage phase and frequency ; Get three-phase grid current , , and convert to The grid current is obtained in the phase stationary coordinate system Axis Component and Axis Component , according to the grid reference voltage frequency , Axis Component and Axis Component Calculate the active component of current and reactive current component , filtering the active current component through N low-pass filters in parallel and reactive current component The active DC component of the current is obtained by weighted summing of the filtering results and reactive DC component of current Among them, the N low-pass filters include at least one The N low-pass filters include a number of is a low-pass filter with a low-pass limit, is a positive integer, is the frequency fluctuation step, , For The allowable fluctuation range centered on is, when configuring the weight, the weight is configured as positive; N low-pass filters include several including several with , It is a low-pass filter with a low-pass limit. When configuring weights, the weights are configured to be negative; positive weights and negative weights are normalized to one; the optimization of the weight value is achieved through a genetic algorithm, and the fitness adopts the inverse of the sum of the mean square error between the output current harmonic and the actual current harmonic and the constant term, and the constant term avoids the denominator to be zero; Active DC component of current and reactive DC component of current After inverse transformation, the three-phase fundamental frequency components are obtained , , , the three-phase fundamental frequency component and the three-phase grid current , , The three-phase current harmonics are obtained by subtracting them.

2. The harmonic current detection method according to claim 1, characterized in that: The closed-loop phase-locked device converts the grid-side voltage , , Convert to The grid voltage is obtained in the phase stationary coordinate system Axis Component and Axis Component , expressed as: , in, is the Clarke transformation matrix; by Axis Component and Axis Component As a reference, they are generated by a second-order generalized integrator with feedback. Shaft voltage output and Shaft voltage output , the second-order generalized integrator with feedback can also be decomposed into Shaft voltage output mutually orthogonal Shaft voltage output , the second-order generalized integrator with feedback can also be decomposed into Shaft voltage output mutually orthogonal Shaft voltage output ;in, ; based on Shaft voltage output and Shaft voltage output , Shaft voltage output and Shaft voltage output Separate the positive and negative sequences and obtain Shaft positive sequence voltage and Shaft positive sequence voltage : ; ; Based on the grid reference voltage phase Will Shaft positive sequence voltage and Shaft positive sequence voltage Convert to Coordinate system obtained Axis DC error and Axis DC error , filter out Axis DC error The AC component in the DC component is converted into a frequency correction signal through linear proportional operation. , and then the frequency correction signal With grid angular frequency The grid reference voltage phase is obtained by integrating the sum and taking the remainder ,Depend on With grid angular frequency The sum of the grid reference voltage and frequency is obtained.

3. The harmonic current detection method according to claim 2, characterized in that: The feedback mode of the second-order generalized integrator with feedback is Axis Component minus Shaft voltage output get Axis error , Axis error Multiply the damping coefficient and remove Shaft voltage output Then input the second-order generalized integrator, Axis Component minus Shaft voltage output get Axis error , Axis error Multiply the damping coefficient and remove Shaft voltage output Then input the second-order generalized integrator.

4. The harmonic current detection method according to claim 3, characterized in that: The transfer function of the second-order generalized integrator is: .

5. The harmonic current detection method according to claim 2, characterized in that: By using the Parker transformation Shaft positive sequence voltage and Shaft positive sequence voltage Convert to Coordinate system: 。 6. The harmonic current detection method according to claim 1, characterized in that: According to the grid reference voltage frequency , Axis Component and Axis Component Calculate the active component of current and reactive current component include: Generate fundamental sine and cosine signals according to the grid reference voltage frequency through a signal generator and , ; but .

7. A device for implementing a harmonic current detection method, characterized in that: include: At least one processing unit, the processing unit is connected to a storage unit via a bus unit, the storage unit stores a computer program, and when the computer program is executed by the processing unit, the harmonic current detection method according to any one of claims 1-6 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the harmonic current detection method according to any one of claims 1 to 6 is implemented.