The present invention is generally directed to a device and method for measuring the active and reactive powers of an electrical power system. In particular, the present invention is directed to a device and method for measuring the active and reactive powers at a fundamental frequency or at harmonic frequencies using a digital phase-locked loop (DPLL).
Electricity is commonly delivered from electricity suppliers to consumers in the form of alternating current (AC) at a certain fundamental frequency, e.g., 60 Hz in the U.S. The consumption of electricity, e.g., three-phase AC, is commonly measured by power meters. It is known that when the load of an power supply system includes non-linear components, the electrical power supply may include harmonic frequencies other than the fundamental frequency. Additionally, when the load is not purely resistive, the waveform of voltage V may lead or lag the waveform of current I in time or have a phase offset in the frequency domain.
Electrical power may include three components: apparent power (Papp), active power (Pact), and reactive power (Preact). The apparent power Papp may be defined as the product of magnitudes of voltage V and current I, i.e., P=V×I. The active power Pact may be defined as the capacity of the load at a particular time or the energy that flows from power source to the load. The reactive power Preactive may be defined as the energy that is bounced back from the load to the source. If the phase offset between current and voltage in frequency is φ, then Pact=Papp*|Cos(φ)| and Preact=Papp*|Sin(φ)|.
When the number of non-linear loads, e.g., switching power supplies, increases, a larger amount of harmonic content may be present in the power system. These harmonics may limit the effectiveness of the power system to deliver electrical power from a source to a load. The combination of digital signal processing (DSP) and high performance analog to digital converters (ADCs) at low prices provides electrical power suppliers with new options for improving and optimizing electrical power meters. The owner suppliers may want to know how much electrical power is delivered not only at the fundamental frequency but also at harmonic frequencies.
Current techniques for computing Pact and Preact at a fundamental frequency are mostly based on Digital Fourier Transform (DFT) and band-pass filters. These methods and devices may suffer longer calculation time. A previous publication “A Simple Harmonic Meter Using Phase Locked Loop” by Matsui et al., Proceedings of the 24th Annual Conference of the IEEE (1998), shows a method of using PLL to detect power of various harmonics in a single voltage signal. The Matsui's method always locks to the carrier of fundament frequency and needs another feedback loop for adjusting the time delay circuit for phase shift. Most importantly, the Matsui's method does not show how to use PLL to compute active and reactive powers, which requires not only the voltage signal and current signal, but also the phase offset between these two signals.
In view of current techniques for measuring power consumptions, there is a need for computing the active and reactive powers simultaneously at the fundamental frequency or at a plurality of harmonic frequencies in near real time.
In one example embodiment of the present invention, a digital phase-locked loop (DPLL) may be used to lock in a fundamental frequency, e.g., 60 Hz. Two references signals that are orthogonal to each other, e.g., I-phase and Q-phase signals, at the fundamental frequency may be generated from the DPLL. The orthogonal reference signals may have unit amplitude. The amplitude of the input voltage Vin and input current Iin at the fundamental frequency as well as the phase shift between Vin and Iin may be calculated by correlating Vin and Iin with reference signals. Low pass filters may be used to reject components that do not contribute to the DC component. The Pact and Preact at the fundamental frequency may be calculated by multiplying the voltage amplitude at the fundamental frequency with a current Iin vector of orthogonal phase components.
In another example embodiment of the present invention, a DPLL may be used to lock in a particular harmonic frequency. Two orthogonal reference signals at the harmonic frequency may be generated from the DPLL. The orthogonal reference signals may have a unit amplitude. The amplitude of the input voltage Vin and input current Iin at the harmonic frequency as well as the phase shift between Vin and Iin at the harmonic frequency may be calculated by correlating Vin and Iin with reference signals. Low pass filters may be used to reject components that do not contribute to the DC component. The Pact and Preact at the harmonic frequency may be calculated by multiplying the voltage amplitude at the harmonic frequency with a current Iin vector of orthogonal phase components.
In one example embodiment of the present invention, a DPLL may include one multiplier, one loop filter, and one numerically-controlled oscillator (NCO) in a feedback loop. The NCO may further include one accumulator and a sinusoid look-up-table (LUT). An input frequency tuning word may be integrated with the accumulator whose output may be a phase word. The phase word may be used as an index to the LUT for searching amplitude values of sinusoid waves. The multiplier takes inputs from an input signal and a feedback signal from the NCO, and multiplies them for detecting the phase difference between the input signal and the feedback signal as conventionally known. The product of the input signal and the feedback signal is fed into the loop filter, which may be a low-pass filter with, e.g., a 3 db bandwidth much lower than the line frequency of an input voltage signal or an input current signal. The output of the loop filter may include the phase difference (or phase error) which may be integrated in the accumulator. The NCO may take the accumulator output as frequency tuning word to generate unit amplitude orthogonal cosine and sine signals based on a sine or cosine table. One of the orthogonal signals, e.g., the cosine signal, may be fed back into the multiplier for phase detection.
The input voltage signal and current signal to a measuring device or power meter may include components at different harmonic frequencies and may be formulated as:
Vin=V1 cos(tW1+θ1)+V2 cos(tW2+θ2)+ . . . +Vn cos(tWn+θn),
Iin=I1 cos(tW1+φ1)+I2 cos(tW2+φ2)+ . . . +In cos(tWn+φn),
where the Vin and Iin are the input voltage and current signals, Vi and Ii, i=1, 2, . . . , n are the amplitudes of the ith harmonic voltage and current, Wi, i=1, 2, . . . , n are the ith harmonic frequencies, W1 is also called the fundamental frequency, θi and φi, i=1, 2, . . . , n are the phases of ith harmonic voltage and current signals, and t represents the time. A DPLL may be used in the voltage channel to lock into the fundamental frequency W1. The NCO outputs of the DPLL may include unit amplitude cosine and sine signals in the forms of: cos(tW1+θ1+d(t)) and sin(tW1+θ1+d(t)), where d(t) is a small phase error caused by the DPLL. The cosine signal from the NCO outputs may have an approximate 90 degree phase difference from the input fundamental voltage signal (assuming that the input fundamental voltage signal has zero DC component). The input voltage signal Vin and the feedback cosine signal may be multiplied at the multiplier:
cos(tW1+θ1+d(t))*(V1 cos(tW1+θ1)+V2 cos(tW2+θ2)+ . . . +Vn cos(tWn+θn))=0.5*V1*cos(d(t))+0.5*V1*cos(2tW1+2θ1+d(t)+cos(tW1+θ1+d(t))*(V2 cos(tW2+θ2)+ . . . +Vn cos(tWn+θn))
Since the phase error d(t) of a DPLL is usually small, i.e., close to zero, after applying a low-pass filter to the output of the multiplier, the output of the low pass filter is Result_A=0.5*V1*cos(d(t))=0.5*V1.
Similarly, the multiplication of the cosine component of the NCO output and the current signal, and applying a low-pass filter may result: Result_B=cos(tW1+θ1+d(t))*(I1 cos(tW1+θ1)+I2 cos(tW2+θ2)+ . . . +In cos(tWn+))=0.5*I1*cos(θ1+d(1)−φ1)≈0.5*I1 cos(θ1−φ1). The multiplication of the sine component of the NCO output and the current signal, and applying a low-pass filter may result: Result_C=sin(tW1+θ1+d(t))*(I1 cos(tW1+θ1)+I2 cos(tW2+θ2)+ . . . +In cos(tWn+θn))=0.5*I1*sin(θ1+d(t)−φ1)≈0.5*I1 sin(θ1−φ1). The active fundamental power may be computed by multiplying the Result_A and Result_B: Pact=0.25*V1*I1*cos(θ1−φ1) with a gain adjustment of factor of 4, and the reactive fundamental power may be computed by multiplying the Result_A and Result_C: Preact=0.25*V1*I1*sin(θ1−φ1) after a gain adjustment of factor of 4.
Above method for computing fundamental active and reactive powers may similarly be applied to the computation of active and reactive powers at harmonic frequencies, e.g., Wi, i=2, . . . , n. A DPLL tuned to a particular harmonic frequency Wi may be used to lock in the harmonic Wi instead of the fundamental frequency. Using a similar computation process, the harmonic active and reactive powers are Pact(Wi)=0.25*Vi*Ii*cos(θi−φi) with a gain adjustment of factor of 4 and Preact(Wi)=0.25*Vi*Ii*sin(θi−φi) with a gain adjustment of factor of 4, respectively.
The accuracy of the active and reactive powers may depend on the phase error d(t). For an accurate measurement of the active and reactive powers, it is important to keep d(t) as low as possible. It is observed that variations in the amplitude of V1 may affect the phase error to an extent that the phase error may degrade the accuracy of active and reactive power computation. The reason for the correlation between phase errors and voltage amplitude variations may be that the phase detection is carried out by a multiplier and a low-pass filter so that the decrease in the input voltage signal amplitudes may cause the decrease in the gain of the loop filter. To minimize the effect of voltage amplitude variations, the voltage amplitude may be estimated and compensated automatically by variable gains for any changes before the multiplier for phase detection. In one example embodiment of the present invention, the RMS (root-mean-square) value of Vin (hereinafter referred to as Vinrms) may be estimated over a period of time. Based on Vinrms and a reference signal Vref, a gain correction factor of Vref/Vinrms may be applied to input signals to the DPLL. In one example embodiment of the present invention, the Vinrms is calculated with an additional multiplier for computing the square value of Vin, a low-pass IIR (infinite impulse response) filter for averaging, and a square root extractor.
When both switch 104 and switch 106 are at position A, the three-phase voltage input signals Vin (a, b, c), may be fed directly into the inputs of computational units for computing fundamental active power 110, fundamental reactive power 112, harmonic active power 114, and harmonic reactive power 116. The three-phase current input signals Iin (a, b, c) may pass through a high-pass filter 102 for removing any DC terms in the input current signals and a SCF filter for shifting the phase of the current input signals by approximately 90 degrees before being fed into computational units 110, 112, 114, and 116. An RMS estimator 118 may take inputs of input voltage signal and input current signal with a 90 degree phase shift. The RMS estimator may include a multiplier (not shown) for computing the square value of a digital signal impulse, a low-pass IIR (not shown) for computing the average of the square values of a sequence of digital signal impulses, and a square root extractor 120 for computing the square root of the average.
Computational units 110, 112 (details in the following
The ACG 204 may take input signals, e.g., input voltage signals Vin (a, b, c), and automatically adjust their amplitudes based on Vinrms and Vref as explained above. A voltage channel compensations for cases where voltage amplitudes are not at full-scale may be needed since the performance of the DPLL may depend on the amplitudes. As in a conventional DPLL, the multiplier 206 acts as a detector for phase errors. In one example embodiment as shown in
and the second IIR low-pass filter 210 may be characterized, e.g., by
The multiplier 206 in combination with the first IIR low-pass filter 208 and the second IIR low-pass filter 210 may detect the phase offset in the input signal. The error signals may be added together at the phase accumulator 212 which may be tuned by a user specified tuning word.
Referring to
The DDS may generate cosine and sine waveforms based on the cosine and sine indices. A sine table may be stored in a memory associated with a DSP chip. For an integer index value, the signal amplitude may be found by a direct table lookup. For a fractional index value, the signal amplitude may be calculated by an approximation approach, e.g., a linear interpolation, based on the amplitudes at the integer indices before and after the fractional index. The output signals of the DDS may include both a cosine waveform and a sine waveform with approximate 90 degree phase offset. The frequency of the output signals from the DDS may be determined as Fout=Fs*T/2N, where the Fs is the DDS clock frequency, 2N is the accumulator capacity with N being the word length of the accumulator, and T is the tuning word value. Therefore, the output signal frequency may be adjusted to match a fundamental frequency by changing the tuning word.
Referring back to
It is understood that for the arrangement of
In an alternative embodiment of the present invention, harmonic active and reactive powers may be calculated using similar steps. For computing harmonic powers, the DPLL may be tuned so that it locks the input signals to a harmonic frequency. Then harmonic active and reactive powers may be calculated in similar steps as those for fundamental active and reactive powers.
Those skilled in the art may appreciate from the foregoing description that the present invention may be implemented in a variety of forms, and that the various embodiments may be implemented alone or in combination. Therefore, while the embodiments of the present invention have been described in connection with particular examples thereof, the true scope of the embodiments and/or methods of the present invention should not be so limited since other modifications will become apparent to the skilled practitioner upon a study of the drawings, specification, and following claims.
This application claims priority to U.S. Provisional Patent Application No. 61/102,464, filed Oct. 3, 2008, entitled “Method to Measure Active and Reactive Fundamental Powers in Energy Metering Using Mixed Signal,” which is herein incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
3984771 | Nossen et al. | Oct 1976 | A |
4878185 | Brand et al. | Oct 1989 | A |
5483153 | Leeb et al. | Jan 1996 | A |
20050096879 | Waite et al. | May 2005 | A1 |
20050159929 | Overby et al. | Jul 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20100088049 A1 | Apr 2010 | US |
Number | Date | Country | |
---|---|---|---|
61102464 | Oct 2008 | US |