A SERVICE OF

logo

Rockwell Automation Publication 1412-UM001D-EN-P - September 2012 87
Mathematical Formulas For Various Parameters Appendix C
THD Calculation
i: phase (0, 1, 2)
n: range (2 to 50)
Calculation of Harmonic Bins
Harmonic bins are calculated by FFT with 16 bit resolution (1024 samples on 4
cycles) without windowing (IEC 1000-4-7). From real and imaginary
components, each bin ratio is calculated on each phase Vharm [3][51], Uharm
[3][51] and Aharm [3][51] in proportion to the fundamental value and the
phase angles Vph [3][51], Uph [3][51] and Aph [3][51] between each bin and
the fundamental.
This calculation is accomplished by using the following principle:
ck: amplitude of the component with a frequency of
Fs: sampled signal
co: DC component
k: ordinal number (spectral bin)
Vthd[i] =
[i][n]
Vharm
[i][1]
Vharm
n=2
50
2
Uthd[i] =,,
[i][n]
Uharm
[i][1]
Uharm
n=2
50
2
Athd[i] =
[i][n]
Aharm
[i][1]
Aharm
n=2
50
2
cos
sin
=
+×=
+×=
+=+=
=
=
=
1024
0
0
1024
0
1024
0
22
1024
1
512512
1
512512
1
s
s
s
ksk
s
ksk
kkkkk
Fc
s
k
Fa
s
k
Fb
bajabc
ϕ
π
ϕ
π
100mod
1
×=
c
c
k
k
=
k
k
k
b
a
arctanϕ
module in %:
with
angle in degree:
1
4
f
k
f
k
=