A metrology error compensation method, apparatus, device, and storage medium
By acquiring and adjusting the power compensation coefficient, the problem that existing technologies can only perform metering error compensation under a specific power factor is solved, and accurate metering error compensation is achieved across the entire power factor range.
Patent Information
- Application Number
- CN202211445554.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-11-18
AI Technical Summary
Existing metering error compensation methods can only be performed at a specific power factor, and cannot be performed at other power factors.
By obtaining the error compensation coefficient of the first power, and determining the error compensation value of the first power based on the coefficient and the second power, the compensation of the first power is realized. This method is applicable to both active and reactive power, and the compensation coefficient is automatically adjusted according to the change in power factor.
It achieves metering error compensation for active and reactive power across the entire power factor range, ensuring accurate compensation of metering errors at any power factor.
Smart Images

Figure CN115758070B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of metrology technology, and in particular relates to a metrology error compensation method, device, equipment and storage medium. Background Technology
[0002] Nonlinear loads such as arc-type equipment, electronic switches, hair dryers, and induction cookers all generate DC even-order harmonics. Therefore, as the number of nonlinear loads on the power user side continues to increase, the DC even-order harmonic component in the load current waveform also increases. Furthermore, since current electricity meters generally use current transformers (CTs) to collect power data, and current transformers have the disadvantage of being prone to saturation under DC components, this results in a larger metering error under DC even-order harmonic conditions. Therefore, in order to achieve accurate metering, it is necessary to compensate for the metering error under DC even-order harmonic conditions.
[0003] The prior art provides a measurement error compensation method, which includes the following steps:
[0004] Several fitting formulas were obtained by fitting the DC even-order harmonic errors corresponding to different power factors and different current value ranges of the electricity meter.
[0005] The primary current waveform data of the electricity meter is collected, and a Fast Fourier Transform (FFT) is performed to determine whether even-order DC harmonics exist. When such harmonics are present, the error is calculated using the fitting formula corresponding to the current effective value and power factor to compensate for the meter reading.
[0006] However, since different power factors correspond to different fitting formulas, this measurement error compensation method can only compensate for measurement errors under specific power factors, and cannot compensate for measurement errors under other power factors. Summary of the Invention
[0007] This application provides a method, apparatus, device, and storage medium for metering error compensation, aiming to solve the technical problem that traditional metering error compensation methods can only perform metering error compensation under a specific power factor, but cannot perform metering error compensation under other power factors.
[0008] The first aspect of this application provides a measurement error compensation method, including:
[0009] Under the condition of DC even harmonic operation, the error compensation coefficient of the first power is obtained. The error compensation coefficient of the first power is obtained in the first DC even harmonic test.
[0010] Based on the error compensation coefficient of the first power and the second power, the error compensation value of the first power is determined. The first power is one of the active power and the reactive power, and the second power is the other.
[0011] The first power is compensated based on the error compensation value of the first power to obtain the compensated first power.
[0012] As an optional implementation of the first aspect, when the first power is active power, the error compensation coefficient of the first power is the active power compensation coefficient.
[0013] Based on the error compensation coefficient of the first power and the second power, the error compensation value of the first power is determined, including:
[0014] The error compensation value of active power is determined based on the product of the active power compensation coefficient and the reactive power.
[0015] As an optional implementation of the first aspect, when the first power is reactive power, the error compensation coefficient of the first power is the reactive power compensation coefficient.
[0016] Based on the error compensation coefficient of the first power and the second power, the error compensation value of the first power is determined, including:
[0017] The error compensation value of reactive power is determined based on the product of the reactive power compensation coefficient and the active power.
[0018] As an optional implementation of the first aspect, the method for obtaining the error compensation coefficient of the first power includes:
[0019] In the first DC even harmonic test, the measured value, actual value and test power factor angle of the first power are obtained. The test power factor angle is the angle between voltage and current in the first DC even harmonic test.
[0020] Based on the measured value, actual value, and measured power factor angle of the first power, the error compensation coefficient of the first power is determined.
[0021] As an optional implementation of the first aspect, the formula for calculating the error compensation coefficient of the first power is:
[0022] K=-err / [tan(θ)-err / tan(θ)];
[0023] err = (ft) / t;
[0024] K is the error compensation coefficient for the first power, f is the measured value of the first power, t is the actual value of the first power, and θ is the measured power factor angle.
[0025] As an optional implementation of the first aspect, before obtaining the error compensation coefficient for the first power when the load is under DC even-order harmonic operating conditions, the method further includes:
[0026] Obtain the first relative error between the full-wave current and the fundamental current of the load, and the second relative error between the full-wave active power and the fundamental active power of the load;
[0027] When the first relative error is within the first threshold range and the second relative error is within the second threshold range, the load is determined to be in DC even harmonic operation. The first and second threshold ranges are obtained in various types of harmonic tests.
[0028] As an optional implementation of the first aspect, the method for obtaining the first threshold range and the second threshold range includes:
[0029] The first relative error between the full-wave current and the fundamental current, and the second relative error between the full-wave active power and the fundamental active power are obtained in each of the different types of harmonic tests. The different types of harmonic tests include the second DC even harmonic test.
[0030] Based on the first test relative error and the second test relative error corresponding to each of the different types of harmonic tests, the first threshold range and the second threshold range for identifying the second DC even harmonic test are determined.
[0031] As an optional implementation of the first aspect, before obtaining the error compensation coefficient for the first power when the load is under DC even-order harmonic operating conditions, the method further includes:
[0032] Obtain the difference between the absolute values of the maximum and minimum values of the load current waveform;
[0033] If the first relative error is within the first threshold range, the second relative error is within the second threshold range, and the difference is greater than or equal to the third threshold, the load is determined to be in DC even harmonic operation.
[0034] A second aspect of this application provides a measurement error compensation device, comprising: a module for performing the measurement error compensation method provided in the first aspect.
[0035] A third aspect of this application provides a metering device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the metering error compensation method provided in the first aspect.
[0036] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the measurement error compensation method provided in the first aspect.
[0037] The beneficial effects of the embodiments of the present invention compared with the prior art are as follows:
[0038] When the load is operating under DC even-order harmonic conditions, the error compensation value of the first power can be determined based on the error compensation coefficient of the first power and the second power, and this value can be used to compensate for the first power to obtain the compensated first power. The metering error compensation method provided in this application's embodiments changes both active and reactive power when the power factor changes, thus causing the error compensation value of the first power to change as well. For example, when the power factor increases, the power factor angle decreases, resulting in a decrease in reactive power. Conversely, when the power factor decreases, the power factor angle increases, resulting in an increase in reactive power. Since the error compensation value of the first power determined based on the error compensation coefficient of the first power and the second power can change with the power factor, the error compensation value of the first power determined in this way can achieve metering error compensation for the first power across the entire power factor range, that is, metering error compensation can be performed at any power factor within the entire power factor range of the load. Attached Figure Description
[0039] Figure 1 A schematic flowchart of a measurement error compensation method provided in an embodiment of this application is shown;
[0040] Figure 2 A schematic flowchart of a measurement error compensation method provided in an embodiment of this application is shown;
[0041] Figure 3 A schematic flowchart of a measurement error compensation method provided in an embodiment of this application is shown;
[0042] Figure 4 A schematic flowchart of a measurement error compensation method provided in an embodiment of this application is shown;
[0043] Figure 5 A schematic diagram of the current waveform of a load under ideal conditions provided in an embodiment of this application is shown;
[0044] Figure 6 It shows Figure 5 The frequency distribution diagram of the current waveform of the load shown;
[0045] Figure 7 A schematic diagram of the current waveform of a load under DC even harmonic operating conditions provided in an embodiment of this application is shown.
[0046] Figure 8 It shows Figure 7 The frequency distribution diagram of the current waveform of the load shown;
[0047] Figure 9 A schematic flowchart of a measurement error compensation method provided in an embodiment of this application is shown;
[0048] Figure 10 A system diagram of phase-separated active power provided in an embodiment of this application is shown;
[0049] Figure 11 A schematic diagram of the structure of a measurement error compensation device provided in an embodiment of this application is shown;
[0050] Figure 12 A schematic diagram of the structure of a metering device provided in one embodiment of this application is shown. Detailed Implementation
[0051] To make the technical problems, technical solutions, and beneficial effects to be solved by this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this application.
[0052] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0053] Nonlinear loads such as arc-type equipment, electronic switches, hair dryers, and induction cookers all generate DC even-order harmonics. Therefore, as the number of nonlinear loads on the power user side continues to increase, the DC even-order harmonic component in the load current waveform also increases. Furthermore, since current electricity meters generally use current transformers to collect power data, and current transformers are prone to saturation under DC components, this results in significant metering errors under DC even-order harmonic conditions. Therefore, to ensure accurate metering, it is necessary to compensate for the metering errors under DC even-order harmonic conditions.
[0054] The prior art provides a measurement error compensation method, which includes the following steps:
[0055] Several fitting formulas were obtained by fitting the DC even-order harmonic errors corresponding to different power factors and different current value ranges of the electricity meter.
[0056] The primary current waveform data of the electricity meter is collected, and a fast Fourier transform is performed to determine whether even-order DC harmonics exist. When such harmonics are present, the error is calculated using the fitting formula corresponding to the current effective value and power factor to compensate for the meter reading.
[0057] However, since different power factors correspond to different fitting formulas, this measurement error compensation method can only compensate for measurement errors under specific power factors, and cannot compensate for measurement errors under other power factors.
[0058] In view of this, embodiments of this application provide a metering error compensation method, apparatus, device, and storage medium. When the load is under DC even-harmonic operating conditions, the error compensation value of the first power can be determined based on the error compensation coefficient of the first power and the second power, and this value can be used to compensate the first power to obtain the compensated first power. Here, the first power is one of active power and reactive power, and the second power is the other. The error compensation coefficient of the first power is obtained in the first DC even-harmonic test. The error compensation value of the first power determined in this way can achieve metering error compensation for the first power across the entire power factor range, that is, metering error compensation can be performed at any power factor within the entire power factor range of the load.
[0059] To illustrate the technical solution described in this application, specific embodiments are provided below.
[0060] Figure 1 A schematic flowchart of a metering error compensation method according to an embodiment of this application is shown. This metering error compensation method can be applied to metering devices such as electricity meters and smart meters, and is described in detail below:
[0061] S101. Obtain the error compensation coefficient for the first power when the load is under DC even harmonic operation.
[0062] The first power is either active power or reactive power, and the error compensation coefficient of the first power is obtained in the first DC even harmonic test.
[0063] This application does not specifically limit how to determine that the load is under DC even harmonic operating conditions, or how to obtain the error compensation coefficient of the first power.
[0064] As an example, it can be determined whether the load is under DC even harmonic conditions by performing fast Fourier transform analysis on the current waveform of the load.
[0065] As an example, the test value and actual value of the first power can be obtained in the first DC even harmonic test, and the error compensation coefficient of the first power can be obtained based on this.
[0066] S102. Based on the error compensation coefficient of the first power and the second power, determine the error compensation value of the first power.
[0067] The second power is the other of the active power and reactive power.
[0068] The formula for calculating active power is P = U × I × cosα, where P is active power, U is load voltage, I is load current, α is the angle (phase difference) between load voltage and load current, also known as the power factor angle, and cosα is the power factor.
[0069] The formula for calculating reactive power is Q=U×I×sinα, where Q is reactive power.
[0070] Therefore, when the power factor cosα changes, the value of sinα changes accordingly, causing the values of reactive power Q and active power P to change accordingly, ultimately causing the error compensation value of the first power determined based on the error compensation coefficient of the first power and the second power (active power or reactive power) to change accordingly.
[0071] This application does not specify how to determine the error compensation value of the first power; those skilled in the art can choose according to their needs.
[0072] S103. The first power is compensated according to the error compensation value of the first power to obtain the compensated first power.
[0073] This application does not specify how compensation should be performed; those skilled in the art can make the settings as needed.
[0074] Since the error compensation value of the first power determined based on the error compensation coefficient of the first power and the second power can change with the change of the power factor, the compensated first power obtained in S103 can also change with the change of the power factor, thereby realizing the metering error compensation of the first power within the entire power factor range, that is, the metering error compensation is performed at any power factor within the entire power factor range of the load.
[0075] As an optional implementation of this embodiment, when the first power is active power, the second power is reactive power, and the error compensation coefficient of the first power is the active power compensation coefficient.
[0076] S102 includes the following steps:
[0077] The error compensation value of active power is determined based on the product of the active power compensation coefficient and the reactive power.
[0078] As an example, the error compensation value for active power is equal to the product of the active power compensation coefficient and reactive power, or close to that product.
[0079] As an example, the compensated active power P2, the original active power P1, the reactive power Q, and the active power error compensation value Δp have the following relationship:
[0080] P2=P1+Δp=P1+Kp×Q=P1+Kp×U×I×sinα, where Kp is the active power compensation coefficient.
[0081] Optionally, Q in the formula represents the reactive power before compensation.
[0082] Optionally, Kp is a fixed value. When the power factor cosα increases, α decreases, sinα decreases, which makes Δp=Kp×U×I×sinα decrease, thus reducing the compensated active power P2.
[0083] Optionally, Kp is a fixed value. When the power factor cosα decreases, α increases, sinα increases, which increases Δp=Kp×U×I×sinα, thus increasing the compensated active power P2.
[0084] Similarly, as an optional implementation of this embodiment, when the first power is reactive power, the second power is active power, and the error compensation coefficient of the first power is the reactive power compensation coefficient.
[0085] S102 includes the following steps:
[0086] The error compensation value of reactive power is determined based on the negative of the product of the reactive power compensation coefficient and the active power.
[0087] As an example, the error compensation value for reactive power is equal to the negative of the product of the reactive power compensation coefficient and the active power, or a value close to that negative.
[0088] As an example, the reactive power Q2 after compensation, the reactive power Q1 before compensation, the active power value P, and the reactive power error compensation value Δq have the following relationship:
[0089] Q2=Q1+Δq=Q1-Kq×P=Q1-Kq×U×I×cosα, where Kq is the reactive power compensation coefficient.
[0090] Optionally, P in the formula represents the active power before compensation.
[0091] Optionally, Kq is a fixed value. When the power factor cosα increases, Δq=-Kq×U×I×cosα decreases, which reduces the reactive power Q2 after compensation.
[0092] Optionally, Kq is a fixed value. When the power factor cosα decreases, Δq=-Kq×U×I×cosα increases, which increases the reactive power Q2 after compensation.
[0093] In summary, the metering error compensation method provided in this application embodiment can perform metering error compensation at any power factor within the entire power factor range of the load.
[0094] Figure 2 A schematic flowchart of a metering error compensation method according to an embodiment of this application is shown. In this embodiment, the method for obtaining the error compensation coefficient of the first power includes:
[0095] S201. In the first DC even harmonic test, obtain the test value, actual value and test power factor angle of the first power.
[0096] The power factor angle is the angle between voltage and current during the first DC even harmonic test.
[0097] S202. Based on the measured value, actual value, and measured power factor angle of the first power, determine the error compensation coefficient of the first power.
[0098] This application does not specify how to calculate the error compensation coefficient of the first power, and those skilled in the art can set it as needed. As an example, the formula for calculating the error compensation coefficient of the first power is: K = -err / [tan(θ) -err / tan(θ)], err = (ft) / t.
[0099] K is the error compensation coefficient for the first power, f is the measured value of the first power, t is the actual value of the first power, and θ is the measured power factor angle.
[0100] It should be noted that the error compensation coefficient K of the first power calculated based on the above formula is relatively accurate in determining the error compensation value of the first power.
[0101] It should also be noted that, as can be seen from S201 and S202 above, the error compensation coefficient of the first power is obtained in the first DC even harmonic test, that is, obtained under the test environment. Optionally, after obtaining the error compensation coefficient of the first power, it can be stored in a corresponding location for S101 to retrieve. For example, it can be stored in the register of the metering device.
[0102] As an example, when the first power is active power, K is the aforementioned Kp. In the first DC even harmonic test, two types of metering equipment are used: a standard metering device and a metering device to be compensated. The active power measured by the metering device to be compensated is the active power test value Pf, and the active power measured by the standard metering device is the actual active power value Pt. The test power factor angle is the angle between the load voltage and the load current during the first DC even harmonic test, denoted as θ.
[0103] Therefore, Kp=-err1 / [tan(θ)-err1 / tan(θ)], err1=(Pf-Pt) / Pt 。
[0104] As an example, when the first power is reactive power, K is Kq as described above. In the first DC even-order harmonic test, two types of metering equipment are used: a standard metering device and a metering device to be compensated. The reactive power measured by the metering device to be compensated is the reactive power test value Qf, and the reactive power measured by the standard metering device is the actual reactive power value Qt. The test power factor angle is the angle between the load voltage and the load current during the first DC even-order harmonic test, denoted as θ.
[0105] Therefore, Kq = -err2 / [tan(θ) - err2 / tan(θ)], err2 = (Qf - Qt) / Qt 。
[0106] As an example, combined Figure 1 The illustrated embodiments and Figure 2 In the embodiment shown, the compensated active power P2 = P1 + {-err1 / [tan(θ)-err1 / tan(θ)]} × U × I × sinα.
[0107] As an example, combined Figure 1 The illustrated embodiments and Figure 2 In the embodiment shown, the compensated reactive power Q2 = Q1 + {err2 / [tan(θ) - err2 / tan(θ)]} × U × I × cosα.
[0108] It should be noted that in some embodiments, due to the different number of bits in the registers of the metering device, it is necessary to convert the above-mentioned Kp into the corresponding data PA_PHS and the above-mentioned Kq into the corresponding data QA_QHS in order to participate in the above calculations.
[0109] As an example, when the register of the metering device is 16 bits, PA_PHS = Kp × 2 when Kp is greater than or equal to zero. 15 .
[0110] As an example, if the register of the metering device is 16 bits, then when Kp is less than zero, PA_PHS = Kp × 2. 15 +2 16 .
[0111] In summary, the measurement error compensation method provided in this application embodiment can be regarded as using power gain (Δp) and power phase (Kp×sinα or Kq×cosα) compensation to compensate for measurement errors under DC even harmonic conditions, thereby achieving error compensation across the entire power factor range.
[0112] Figure 3 A schematic flowchart of a measurement error compensation method according to an embodiment of this application is shown. In this embodiment, before S101, the measurement error compensation method further includes the following steps:
[0113] S301. Obtain the first relative error between the full-wave current and the fundamental current of the load, and the second relative error between the full-wave active power and the fundamental active power of the load.
[0114] As an example, the first relative error is equal to the ratio of the difference between the full-wave current and the fundamental current to the fundamental current, that is, the first relative error = (full-wave current - fundamental current) / fundamental current.
[0115] As an example, the second relative error is equal to the ratio of the difference between the total active power and the fundamental active power to the fundamental active power, that is, the second relative error = (total active power - fundamental active power) / fundamental active power.
[0116] S302. When the first relative error is within the first threshold range and the second relative error is within the second threshold range, it is determined that the load is in DC even harmonic operation.
[0117] The first threshold range and the second threshold range were obtained in various harmonic tests of different types.
[0118] This application does not specifically limit how to obtain the first threshold range and the second threshold range.
[0119] The metering error compensation method provided in this application determines whether the load is under DC even harmonic operating conditions by judging whether the first relative error is within the first threshold range and whether the second relative error is within the second threshold range. The entire determination process requires less data and is simple and easy to implement.
[0120] As an example, the first threshold range and the second threshold range can be determined through harmonic testing.
[0121] For example, Figure 4A schematic flowchart of a measurement error compensation method according to an embodiment of this application is shown. In this embodiment, the method for obtaining the first threshold range and the second threshold range includes the following steps:
[0122] S401. Obtain the first relative error between the full-wave current and the fundamental current, and the second relative error between the full-wave active power and the fundamental active power in each type of harmonic test.
[0123] Among them, the various types of harmonic tests include the second DC even harmonic test.
[0124] S402. Based on the first test relative error and the second test relative error corresponding to each of the different types of harmonic tests, determine the first threshold range and the second threshold range for identifying the second DC even harmonic test.
[0125] It should be noted that, as shown in S401 and S402 above, the first threshold range and the second threshold range are obtained in various types of harmonic tests, i.e., obtained under test conditions. Optionally, after obtaining the first threshold range and the second threshold range, they can be stored in appropriate locations for comparison in S302. For example, they can be stored in the register of the metering device.
[0126] As shown in Table 1 below, as an example, the various types of harmonic tests for the load include the 5th harmonic, square-top wave, peaked wave, interharmonic, odd harmonic, DC even harmonic, first higher harmonic (voltage plus harmonic), and second higher harmonic (current plus harmonic). Among these, the DC even harmonic test is the second DC even harmonic test in S401 and S402. Optionally, the second DC even harmonic test and the first DC even harmonic test may be the same or different.
[0127] Table 1
[0128]
[0129] In some embodiments, the various types of harmonic tests of the load should meet the corresponding test requirements, that is, the various types of harmonic tests should be carried out under the corresponding test conditions.
[0130] As an example, the various types of harmonic tests of the load described in the embodiments of this application shall all meet the technical specifications for single-phase smart meters (standard number Q / GDW 10364-2020) issued by State Grid Corporation of China in 2021.
[0131] Analysis of the data in Table 1 reveals the following characteristics:
[0132] (1) In the 5th harmonic, square-top wave and peak-top wave tests, both the voltage and current channels have harmonics, which will generate harmonic power.
[0133] The full-wave current is larger than the fundamental current, typically exceeding it by 7%.
[0134] The total active power is greater than the fundamental active power, typically exceeding it by 1.9%.
[0135] (2) In the interharmonic test, theoretically, there are harmonics in the current path but not in the voltage path. However, it should be noted that since the main harmonic components are low-order harmonics, the measured values of the effective value of the full-wave current and the effective value of the fundamental current are close. Therefore, in reality, the full-wave current is slightly larger than the fundamental current, about 0.7% larger, not 41.4% as shown in Table 1, and the active power of the full-wave current is approximately equal to the active power of the fundamental current.
[0136] (3) In the odd harmonic test, there are harmonics in the current channel but no harmonics in the voltage channel.
[0137] The total current is 41% larger than the fundamental current.
[0138] The total active power is approximately equal to the fundamental active power.
[0139] (4) In the DC even harmonic test, there are harmonics in the current channel and no harmonics in the voltage channel.
[0140] The full-wave current is larger than the fundamental current, exceeding it by 9%.
[0141] The total active power is approximately equal to the fundamental active power.
[0142] (5) The harmonic characteristics are not obvious in the first and second higher harmonics.
[0143] As an example, based on the above analysis, the analysis results are shown in Table 2 below.
[0144] Table 2
[0145]
[0146] In this analysis, the first threshold range was set to 5%–15%, and the second threshold range was set to -1%–1%.
[0147] It should be noted that in some embodiments, since the active power may be negative, the second threshold range includes negative values.
[0148] As shown in Table 2, only the DC even harmonic test satisfies both conditions ① and ②.
[0149] It should be noted that the embodiments of this application do not specifically limit the values of the first threshold range and the second threshold range. The above 5% to 15% and -1% to 1% are only examples. Those skilled in the art can determine the corresponding values of the first threshold range and the second threshold range according to the actual different types of harmonic tests.
[0150] The measurement error compensation method provided in this application can compare the first relative error and the second relative error with a predetermined first threshold range and a second threshold range, respectively, to determine whether the load is under DC even harmonic operating conditions. The determination process is simple and easy to implement.
[0151] Figure 5 The waveform diagram shows the current waveform of the load under ideal conditions. Figure 6 It shows Figure 5 The frequency distribution diagram of the load current waveform is shown.
[0152] Figure 7 The waveform diagram shows the current waveform of the load under DC even harmonic conditions. Figure 8 It shows Figure 7 The frequency distribution diagram of the load current waveform is shown.
[0153] right Figure 5 and Figure 7 Analysis of the load current waveform shown indicates that:
[0154] (1) In Figure 5 In the current waveform of the load shown, the absolute value of its maximum value (i.e., the maximum amplitude of the positive half-cycle) and the absolute value of its minimum value (i.e., the maximum amplitude of the negative half-cycle) are close, that is, the difference between the absolute value of the maximum value and the absolute value of the minimum value is close to zero, or the difference is small.
[0155] (2) In Figure 7 In the current waveform of the load shown, the positive half-cycle has been distorted, and the difference between the absolute value of its maximum value (i.e. the maximum amplitude of the positive half-cycle) and the absolute value of its minimum value (i.e. the maximum amplitude of the negative half-cycle) is relatively large.
[0156] Therefore, by using the above analysis results, it is possible to determine whether the load is in DC even harmonic operation by judging whether the difference between the absolute value of the maximum value and the absolute value of the minimum value of the load current waveform is greater than or equal to a preset third threshold.
[0157] Figure 9 A schematic flowchart of a measurement error compensation method according to an embodiment of this application is shown. In this embodiment, before S101, the measurement error compensation method further includes:
[0158] S501. Obtain the difference between the absolute value of the maximum value and the absolute value of the minimum value of the load current waveform.
[0159] S502. If the first relative error is within the first threshold range, the second relative error is within the second threshold range, and the difference is greater than or equal to the third threshold range, the load is determined to be in DC even harmonic operation.
[0160] In the embodiments of this application, when the first relative error is within the first threshold range, the second relative error is within the second threshold range, and the difference is greater than or equal to the third threshold range, it is determined that the load is in the DC even harmonic operating condition, which can improve the accuracy of determining the DC even harmonic operating condition.
[0161] Figure 10 A system diagram of phase-separated active power provided in an embodiment of this application is shown.
[0162] In some embodiments, the AC power supply system may include multi-phase power supply lines, such as three-phase power supply lines.
[0163] from Figure 10 It can be seen that the compensated phase active power P2 = (U×I×cosα+Pos)×(1+GP)+Kp×Q.
[0164] As an example, the calculation formula shows that the compensated phase active power P2 has undergone three error compensations, including the first compensation value Pos, the second compensation value (1+GP), and the third compensation value Kp×Q.
[0165] The embodiments of this application do not limit the compensation method and specific values of the first compensation value Pos and the second compensation value (1+GP). Those skilled in the art can choose the corresponding existing technology to implement it as needed.
[0166] based on Figure 10 The measurement error compensation method provided in this embodiment can also be used in combination with other existing measurement error compensation methods, and it also has the advantage of performing error compensation across the entire power factor range.
[0167] In summary, the metering error compensation method provided in this application can not only conveniently and accurately identify whether the load is under DC even harmonic operating conditions, but also, when it is determined that the load is under DC even harmonic operating conditions, can perform metering error compensation for active and reactive power across the entire power factor range.
[0168] Corresponding to the measurement error compensation method in the above embodiments, Figure 11A schematic diagram of the metering error compensation device provided in the embodiments of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.
[0169] like Figure 11 As shown, the measurement error compensation device includes:
[0170] The first acquisition module 111 is used to acquire the error compensation coefficient of the first power when the load is under DC even harmonic operating conditions. The error compensation coefficient of the first power is obtained in the first DC even harmonic test.
[0171] The first determining module 112 is used to determine the error compensation value of the first power based on the error compensation coefficient of the first power and the second power.
[0172] The first power is one of the active power and the reactive power, and the second power is the other.
[0173] The compensation module 113 is used to compensate the first power according to the error compensation value of the first power to obtain the compensated first power.
[0174] When the first power is active power, the error compensation coefficient of the first power is the active power compensation coefficient.
[0175] The first determining module 112 includes:
[0176] The first determining unit is used to determine the error compensation value of active power based on the product of active power compensation coefficient and reactive power.
[0177] When the first power is reactive power, the error compensation coefficient for the first power is the reactive power compensation coefficient.
[0178] The first determining module 112 includes:
[0179] The second determining unit is used to determine the error compensation value of reactive power based on the product of reactive power compensation coefficient and active power.
[0180] In some embodiments, the measurement error compensation device further includes:
[0181] The second acquisition module is used to acquire the test value, actual value and test power factor angle of the first power in the first DC even harmonic test. The test power factor angle is the angle between voltage and current in the first DC even harmonic test.
[0182] The second determining module is used to determine the error compensation coefficient of the first power based on the test value, the actual value, and the test power factor angle of the first power.
[0183] In some embodiments, the measurement error compensation device further includes:
[0184] The third acquisition module is used to acquire the first relative error between the full-wave current and the fundamental current of the load, and the second relative error between the full-wave active power and the fundamental active power of the load.
[0185] The third determining module is used to determine that the load is in a DC even harmonic operating condition when the first relative error is within a first threshold range and the second relative error is within a second threshold range. The first threshold range and the second threshold range are obtained in various types of harmonic tests.
[0186] In some embodiments, the measurement error compensation device further includes:
[0187] The fourth acquisition module is used to acquire the first relative error between the full-wave current and the fundamental current, and the second relative error between the full-wave active power and the fundamental active power in various types of harmonic tests. The various types of harmonic tests include the second DC even-order harmonic test.
[0188] The fourth determining module is used to determine the first threshold range and the second threshold range for identifying the second DC even harmonic test based on the first test relative error and the second test relative error corresponding to each of the different types of harmonic tests.
[0189] In some embodiments, the measurement error compensation device further includes:
[0190] The fifth acquisition module is used to acquire the difference between the absolute value of the maximum value and the absolute value of the minimum value of the load current waveform.
[0191] The fifth determining module is used to determine that the load is in DC even harmonic operation when the first relative error is within the first threshold range, the second relative error is within the second threshold range, and the difference is greater than or equal to the third threshold.
[0192] The process by which each module in the metrological error compensation device provided in this application implements its respective function can be specifically referred to the foregoing. Figure 1 The descriptions of the embodiments shown and other related method embodiments are not repeated here.
[0193] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0194] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0195] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0196] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0197] Figure 12 This is a schematic diagram of the structure of a measuring device provided in an embodiment of this application. The measuring device 12 includes: at least one processor 120 ( Figure 12 Only one is shown in the diagram), memory 121, and a computer program 122 stored in said memory 121 and executable on said processor 120. When the processor 120 executes said computer program 122, it implements the steps of any of the above-described method embodiments, for example... Figure 1 Steps S101 to S103 are shown. Alternatively, when the processor 120 executes the computer program 122, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 11 The functions of the first acquisition module 111, the first determination module 112, and the compensation module 113 are shown.
[0198] The metering device 12 may include, but is not limited to, a processor 120 and a memory 121. Those skilled in the art will understand that... Figure 12This is merely an example of the metering device 12 and does not constitute a limitation on the metering device 12. It may include more or fewer components than shown, or combine certain components, or different components. For example, the metering device 12 may also include an input transmission module, a network access module, etc.
[0199] The processor 120 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0200] In some embodiments, the memory 121 may be an internal storage unit of the metering device 12, such as a hard disk or memory of the metering device 12. The memory 121 may also be an external storage device of the metering device 12, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the metering device 12. Furthermore, the memory 121 may include both internal and external storage units of the metering device 12. The memory 121 is used to store operating systems, applications, bootloaders, data, and other programs, such as the program code of computer programs. The memory 121 can also be used to temporarily store data that has been output or will be output.
[0201] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0202] This application also provides a measuring device, which includes at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor. When the processor executes the computer program, it causes the measuring device to perform the steps in any of the above-described method embodiments.
[0203] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0204] This application provides a computer program product that, when run on a metering device, enables the metering device to implement the steps described in the various method embodiments above.
[0205] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0206] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0207] Those skilled in the art will recognize that the units and method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0208] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0209] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for compensating for measurement errors, characterized in that, include: When the load is under DC even harmonic conditions, the error compensation coefficient of the first power is obtained, which is obtained in the first DC even harmonic test. Based on the error compensation coefficient of the first power and the second power, the error compensation value of the first power is determined, wherein the first power is one of active power and reactive power, and the second power is the other. The first power is compensated according to the error compensation value of the first power to obtain the compensated first power; The formula for calculating the error compensation coefficient of the first power is as follows: K=-err / [tan(θ)-err / tan(θ)]; err=(ft) / t; K is the error compensation coefficient of the first power, f is the measured value of the first power, t is the actual value of the first power, and θ is the measured power factor angle. The measured value, actual value, and measured power factor angle of the first power are obtained in the first DC even harmonic test. The measured power factor angle is the angle between voltage and current in the first DC even harmonic test.
2. The measurement error compensation method according to claim 1, characterized in that, When the first power is the active power, the error compensation coefficient of the first power is the active power compensation coefficient. Determining the error compensation value of the first power based on the error compensation coefficient of the first power and the second power includes: The error compensation value of the active power is determined based on the product of the active power compensation coefficient and the reactive power.
3. The measurement error compensation method according to claim 1, characterized in that, When the first power is the reactive power, the error compensation coefficient of the first power is the reactive power compensation coefficient. Determining the error compensation value of the first power based on the error compensation coefficient of the first power and the second power includes: The error compensation value of the reactive power is determined based on the product of the reactive power compensation coefficient and the active power.
4. The measurement error compensation method according to claim 1, characterized in that, Before obtaining the error compensation coefficient for the first power under the condition that the load is in DC even harmonic operation, the method further includes: Obtain the first relative error between the full-wave current and the fundamental current of the load, and the second relative error between the full-wave active power and the fundamental active power of the load; When the first relative error is within the first threshold range and the second relative error is within the second threshold range, the load is determined to be in a DC even harmonic operating condition. The first threshold range and the second threshold range are obtained in various types of harmonic tests.
5. The measurement error compensation method according to claim 4, characterized in that, The method for obtaining the first threshold range and the second threshold range includes: The first relative error between the full-wave current and the fundamental current, and the second relative error between the full-wave active power and the fundamental active power are obtained in each of the different types of harmonic tests. The different types of harmonic tests include the second DC even harmonic test. Based on the first test relative error and the second test relative error corresponding to each of the different types of harmonic tests, the first threshold range and the second threshold range for identifying the second DC even harmonic test are determined.
6. The measurement error compensation method according to claim 4, characterized in that, Before obtaining the error compensation coefficient for the first power under the condition that the load is in DC even harmonic operation, the method further includes: Obtain the difference between the absolute value of the maximum value and the absolute value of the minimum value of the current waveform of the load; If the first relative error is within the first threshold range, the second relative error is within the second threshold range, and the difference is greater than or equal to the third threshold, the load is determined to be in DC even harmonic operation.
7. A metering error compensation device, characterized in that, include: A module for performing the measurement error compensation method as described in any one of claims 1 to 6.
8. A measuring device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the measurement error compensation method as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the measurement error compensation method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
DC even harmonic error compensation method for electric energy meter
CN114442027A
