Professional Documents
Culture Documents
Abstrpd:: Removal of Dc-Offset in Current Waveforms Using Digital Mimic Filtering
Abstrpd:: Removal of Dc-Offset in Current Waveforms Using Digital Mimic Filtering
2, April 1995
62 1
Gabriel Benmouyal
Member
mQ
1800montke Ste-Julie,
Varennes, Quebec, Canada, J3X- 1S 1
Definitio
rf-
as f 0 k W S :
a) apply a sinewave step function xl(t) at the input of the
filter and record the magnitude of output waveform yl(t)
xl(t) = sin 2x 60 t
(1)
b) apply, at the input of the same filter, a worst-case waveform
of the form:
x2(t) = cos 2x 60 t - e;
and record the magnitude Y2(t) at the filter output.
(2)
PM r 1 =
I:'
[yl(t) - yz(01~dt
(3)
where
represents an arbitrary integral number of cycles. In
die case of the present study, this number has' been chosen
arbitrarily to be three. Obviously, if the defined PI0 is close or
equal to zero, it can be concluded that DC offset has no effect
on the filter output. The first performance index integrates
both the transient and the steady state responses of the filter,
which might be seen as a shortcoming because the response
during the transient state could be considered irrelevant. For
this reason, PI0 will not be used in the present study and a
second performance index PI1 will he defined.
It should be home in mind that before y2(t) settles to the
94
431-7 m D A
recommended and approved steady-state value of 1, it will normally oscillate around this
magnitude. The steady state will therefore be considered
by the IEEE Power System Relaying Committee of the
IEEE Power Engineering Society for presentation a t
attained as soon as y2(t) exceeds one at time TO, whereupon
t h e IEEE/PES 1994 Summer Meeting, San Francisco, CA, integration of the difference starts. PI1 is ConSXlUently defined
July 24 - 28, 1994. Manuscript submitted December
as:
15, 1993; made available for printing May 3, 1994.
NT
(4)
622
,..y
!.: .. -.'.,
.../
I{
.........
.......
..........
._..
-.__
.......c
:h
S
Both PI1 and PI2 can be computed for a particular value of the
DC offset time constant r. Since z depends on the power
system configuration at the moment of a fault and, also, on the
location of that fault on a line, this time constant should be
considered as variable. An important consideration to be
addressed, therefore, is the sensitivity of the filter as z varies.
As a figure of merit of this sensitivity, the average of the
performance indices, whether of type 1 or type 2, is computed
over a range of time constants from 0.5 to 5 cycles as in
PI, (0.5)
AV( PI, ) =
PI,( z
r=1
(i= 1 or 2)
(6)
6
ion to a full-cvcle DFT filter
Full-cycle DIT filters are among the most popular in relaying.
For a current waveform i(t) = A sin (cot+@),the fundamentalfrequencycomponents are provided by [ 1,2]
filter
Assuming that the current equation i(t) consists of an
exponentially decaying component, fundamental, and second to
fifth harmonics, as in
i(t) = A e-:
.x
n=S
Bn sin ( n u t + 8" )
(10)
then the equations for this LSF filter can be derived by
working out the least-squares solution of a set of equations
representing the value of i(t) at different samples of the chosen
data window.
For a data window equal to a full cycle, Fig. 2 [see Ref.1, Fig.
4.10 and Ref. 2, Fig. 3.171 represents the well known
frequency response of the LSF filter.
Figure 3 shows the time responses of the filter when the above
specified three test functions are applied at the input.
Analysis of Fig. 3 indicates that, contrary to common belief,
the DC removal capability of this type of filter is not very
g c d , less performing in fact than the full-cycle Fourier filter.
This could have been predicted by analyzing the filter's
frequency response, which shows non-zero attenuation at zero
frequency.
From a practical point of view, it turns out that this filter does
not remove the exponentially decaying component modeled in
the original curve equation.
n=l
623
1.4
1-
.'
-lBYCNJhmtMBmPFuNmoN
- .. ~EIPWSEm "ZSIZSFWXON.
QIOTLE WSET
p e v o N S E ~ c o m ( B S ~ F l u " O N + I C Y ~ O ~ E T
1O.bCYCLE OFRET
........
X Y ~ Enmm
I
0 -
SAMPLES
30
.........................
10
30
SAMPLES
1595 x 1W6
362 x
1.0032
..
60
2.80
1.81
0.74
115 x
0.39
46 x loe6
0.24
22 x 10-6
32.86
Table 3
2800 x
40
0.16
624
is not at the expense of the frequency response, as may be seen
also from the performance indices for this filter in Table 5 .
1.2
....
.......
" " k " ' ' b " " ~ " ' '
SAMPLES
. . . . . . . . . , . . . . , . . . . . . . . , . . . .I
0 ~ :
0
10
SO
40
SAMPLES
30
M)
'5 (in
cycles)
PI^
1
1
0.9824
3.3994
I
I
I
1
7.7096
14.3624
49.7
79.0
100.0
1
I
108.1
112.6
115.3
10.7462
12.8496
PI^ (%o)
I
1
1
1.2
..... P E S Y O N S E c
~ os1~~sm.mc1
+ ICYCZEOFR~
10~
0.866 -0.5 0
0.5 0.866 0
0
1 3
H = [ 1.0 0 1.01.
0.0001
Q=[
. . .
X$:']q
0.92
0
0.0001
0.0001
X3
%{i]
R=[0.0001]
,Pi{:
:]
0 0 1
(12)
(13)
(14)
. . . .Ib. . . . . . . . . . . . . . . . . . . .
-S
625
.. . .
DC
K (1 + ~ 1 1 )
(15)
then the exponentially decaying component at the output will
vanish, provided its time constant is equal to 11 (as proven in
Appendix 2). In this equation, 71 is expressed in number of
samples.
The sum of a gain and a differentiator circuit is represented by
Eq. 15. The differenriator circuit, represented in the Laplace
transform by s. can be emuhted digitally by the following FIR
filter:
(16)
1 2-1
Introducing Eq. 16 into Eq. 15, we eventually obtain
K [(l +TI) - 71 i' ]
(13
(18)
film
Prior to passing through the Fourier filter, the current signal is
processed by the mimic filter represented by Eq.17. The overall
frequency response of the filtering system is shown in Fig. 11.
It should be bome in mind that an anti-aliasing filter exists in
all digital relays. This filter is an ideal low-pass filter with cutoff frequency at half the sampling frequency. Therefore the
overall frequency response as shown in Fig. 11, should be
considered, for practical purposes, as not affected by the antialiasing filter
Analysis of Fig. 12 shows that the effect of the mimic filter is
to substantially reduce, if not entirely eliminate, the effect of
the decaying DC component over the entire range of time
constants tested. This is reflected in Table 7, where the
performance index figures indicate a substantial, if not
outstanding, improvement over the full range of time constants.
I
0.8
0.6
0.4
0.2
0
Fig. 11. Frequency response of a combined mimic and fullcycle DFF filter.
..I ,
I
.I
_ . . .i b . . .
.zb'
3b
'
SAMPLES
'
4b
*'.'.
626
1.2
.-
RUiPDNSE
To COElNE P r r P N N C C n O N
N m W
RESPONSE TO COSINE
Q.5CYCLE 0
"
ICICLE O F K C
-_
.......
DfTFlLIER
Ta
.... COSINEFILTER
10
SAMPLES
I5
tion
20
filter
The frequency response for the same mimic filter used in
combination with the half-cycle Fourier filter is shown in Fig.
14.
When subjected to test waveforms, the half-cycle+mimic filter
combination proves to be very effective in reducing the effects
of DC offset components. This may be seen in Fig. 15, which
shows that DC offset removal is complete when the time
constant is equal to that implemented in the mimic filter.
Table 8 gives the performance indices of the new combination,
from which the same conclusion can be drawn.
0.846 0
0
x3
x4
1
Fig. 14. Frequency response of a half-cycle D l T filter
combined with a mimic filter.
It should be borne in mind that further reduction of DC offset
effects could be achieved by cascading more than one mimic
circuit tuned to at least two time constrmts. However, this
would increase the high-pass filtering effect, which is not
desirable.
With further improvement of the performance indices of the
type I1 LSF and cosine filters, a mimic filter could equally be
applied to them but both are already performing their task of
removing the J
X offset quite adequately.
Improvement of Kalman filter response
After a few tests, application of a mimic circuit prior to
entering a Kalman filter did not improve the performance.
o
o
o
10.~
o
o
lo3
10.3
R=[0.0001]
(21)
0 0 1 0
627
Summarv of results
Table 10 summarizes the results presented above and gives the
average values of the two performance indices for the filters
studied in this paper.
Considering only the DC offset removal capability, the
mimic/full-cycle DFT filter combination offers the type 2
performance index closest to zero over the defined range of time
constants. The type I1 LSF and improved Kalman perform
almost as well.
It should be borne in mind that adding a mimic filter to the
half-cycle filter substantially improves the original.
- sin (e - ez)exp (-
X/R
)1
with
8, = atan ( X / R ) = atan ( a L / R )
Conclusion
This paper has presented an analysis of the performance of some
popular relaying digital filters with respect to their DC removal
capability. In light of this analysis, the following points can be
made:
a) The addition of a mimic digital filter when processing a
current waveform prior to entering a full-cycle D I T filter
completely suppresses the effect of an exponentially decaying
component at the output over a broad range of time constants
(0.5 to S cycles and more). The perform'ance of the DFT filter
will then surpass that of most known filters. The price to be
paid is reduced immunity to off-nominal frequencies or noise
because of the amplification of high-frequency components.
AS illustrated by the case of the half-cycle Fourier filter,
application of the same mimic filter turns out to be very
effective for filters displaying non-zero attenuation on their
zero-frequencyresponses .
b) In least-squares-fitting filters, where the DC offset was
modeled as a decreasing exponential, the performance is very
poor.
6 - e, = n
( n= 1, 3 ,S etc...)
2
with the current waveform equal to
)I
L/R
The test waveforms chosen for this paper were Eq. AS for
current corresponding to a null DC offset and Eq. A7
corresponding to a maximum DC offset.
Aupendix 2
PrinciDle of a mimic circuit
.
References
F l
vo
(t 1
Fig. A2. Principle of a mimic circuit.
Consider the circuit of Fig. A2 where a current source supplies
a resistance in series with an inductance. The voltage across the
combination is provided by
Vo (s) = ( s L + R) I (s)
If the current has a DC offset of the form
I(t) = e x p ( - L
(A8)
(A9)
(A11)
E-tg
T
m
.-alia.
. .
filter
The study conducted in this paper has neglected the effect of the
anti-aliasing filter. It could be shown both dieoretically and by
simulation that this effect is negligible with respect to the
results presented here. As an example, Fig. A3 shows the
response of a full-cycle DFT filter when suhjected to a test
waveform corresponding to Eq. 2 with a DC component
decaying rate of one cycle, with and without a simulated antialiasing filter. In this case, the anti-aliasing filter is a fourth
order Butterworth with a cut-off frequency of 360 Hz. It can be
seen that the effect of the anti-aliasing filter is to delay the
output magnitude by one sample without significantly
changing the output.
629
Discussion
David G. Hart and Damir Novosel, ABB-TTI,
Raleigh, NC: The author has presented an interesting
paper which attempts to define indices which can be used in
evaluating phasor estimation algorithm. The author explores
the complex topic and makes several conclusion. The
following remarks are made regarding the paper:
1. The author defines yl(t) and y2(t) as the output of the
filter. Since the filter is estimating the frequency components,
how does the author define the output as a function of time ?
How are frequency domain terms integrated in the time
domain in equations 3 and 4 ?
630
(AI)
af(
, , , , l , , , , l , , , . I , , . ,
rl
_....__LSF B
6 I
\
\
f
5
a
........ LSF B
100
200
300
400
FREQLENCY
500