Datasheet

ADE7854/ADE7858/ADE7868/ADE7878 Data Sheet
Rev. G | Page 54 of 100
Sign of Reactive Power Calculation
Note that the reactive power is a signed calculation. Table 18
summarizes the relationship between the phase difference between
the voltage and the current and the sign of the resulting reactive
power calculation.
The ADE7858/ADE7868/ADE7878 have sign detection circuitry
for reactive power calculations that can monitor the total reactive
powers or the fundamental reactive powers. As described in the
Reactive Energy Calculation section, the reactive energy accu-
mulation is executed in two stages. Every time a sign change is
detected in the energy accumulation at the end of the first stage,
that is, after the energy accumulated into the internal accumulator
reaches the VA RTH R register threshold, a dedicated interrupt is
triggered. The sign of each phase reactive power can be read in
the PHSIGN register. Bit 7 (REVRPSEL) in the ACCMODE
register sets the type of reactive power being monitored. When
REVRPSEL is 0, the default value, the total reactive power is
monitored. When REVRPSEL is 1, then the fundamental
reactive power is monitored.
Bits[12:10] (REVRPC, REVRPB, and REVRPA, respectively)
in the STATUS0 register are set when a sign change occurs in
the power selected by Bit 7 (REVRPSEL) in the ACCMODE
register.
Bits[6:4] (CVARSIGN, BVARSIGN, and AVARSIGN, respectively)
in the PHSIGN register are set simultaneously with the REVRPC,
REVRPB, and REVRPA bits. They indicate the sign of the reactive
power. When they are 0, the reactive power is positive. When
they are 1, the reactive power is negative.
Bit REVRPx of the STATUS0 register and Bit xVARSIGN in the
PHSIGN register refer to the reactive power of Phase x, the
power type being selected by Bit REVRPSEL in ACCMODE
register.
Setting Bits[12:10] in the MASK0 register enables the REVRPC,
REVRPB, and REVRPA interrupts, respectively. If enabled, the
IRQ0
pin is set low and the status bit is set to 1 whenever a change
of sign occurs. To f i nd the phase that triggered the interrupt,
the PHSIGN register is read immediately after reading the
STATUS0 register. Next, the status bit is cleared and the
IRQ0
pin is set to high by writing to the STATUS0 register with the
corresponding bit set to 1.
Table 18. Sign of Reactive Power Calculation
Φ
1
Integrator Sign of Reactive Power
Between 0 to +180 Off Positive
Between −180 to 0
Off
Negative
Between 0 to +180 On Positive
Between −180 to 0 On Negative
1
Φ is defined as the phase angle of the voltage signal minus the current
signal; that is, Φ is positive if the load is inductive and negative if the load is
capacitive.
Reactive Energy Calculation
Reactive energy is defined as the integral of reactive power.
Reactive Energy = ∫q(t)dt (36)
Both total and fundamental reactive energy accumulations are
always a signed operation. Negative energy is subtracted from
the reactive energy contents.
Similar to active power, the ADE7858/ADE7868/ADE7878
achieve the integration of the reactive power signal in two
stages (see Figure 71). The process is identical for both total and
fundamental reactive powers.
The first stage is conducted inside the DSP: every 125 µs
(8 kHz frequency), the instantaneous phase total reactive
or fundamental power is accumulated into an internal
register. When a threshold is reached, a pulse is generated
at the processor port and the threshold is subtracted from
the internal register. The sign of the energy in this moment
is considered the sign of the reactive power (see the Sign of
Reactive Power Calculation section for details).
The second stage is performed outside the DSP and consists
in accumulating the pulses generated by the processor into
internal 32-bit accumulation registers. The content of these
registers is transferred to the var-hour registers (xVARHR and
xFVARHR) when these registers are accessed. AVARHR,
BVARHR, CVA RHR , AFWATTHR, BFWATTHR, and
CFWATTHR represent phase fundamental reactive powers.
Figure 68 from the Active Energy Calculation section explains
this process. The VARTHR 48-bit signed register contains the
threshold and it is introduced by the user. It is common for both
total and fundamental phase reactive powers. Its value depends
on how much energy is assigned to one LSB of var-hour
registers. When a derivative of reactive energy (varh) of [10
n
varh], where n is an integer, is desired as one LSB of the
xVARHR register; then, the xVARTHR register can be computed
using the following equation:
FSFS
n
s
I
V
fPMAX
VARTHR
×
×××
=
103600
where:
PMAX = 33,516,139 = 0x1FF6A6B, the instantaneous power
computed when the ADC inputs are at full scale.
f
S
= 8 kHz, the frequency with which the DSP computes the
instantaneous power.
V
FS
, I
FS
are the rms values of phase voltages and currents when
the ADC inputs are at full scale.
The maximum value that may be written on the VARTH R
register is 2
47
1. The minimum value is 0x0, but it is
recommended to write a number equal to or greater than
PMAX. Never use negative numbers.
VARTHR is a 48-bit register. As previously stated in the Voltage
Waveform Gain Registers section, the serial ports of the ADE7858/
ADE7868/ADE7878 work on 32-, 16-, or 8-bit words. Similar to
the WTHR register shown in Figure 69, VARTHR is accessed as
two 32-bit registers (VARTHR1 and VARTHR0), each having eight
MSBs padded with 0s.