SBOA444 November 2020 TMCS1100
This section briefly describes the formulas used for the voltage, current, power, and energy calculations. As previously described, voltage and current samples are obtained at a sampling rate of 7812.5 Hz. All of the samples that are taken in approximately 10 or 12 cycle frames are kept and used to obtain the RMS values for voltage and current for each phase.
The RMS, voltage overdeviation, and voltage underdeviation values are obtained with the following formulas:
where,
ph = V-I mapping being calculated [that is, V-IA (= 1) V-IB (= 2) and V-IC (= 3)]
Vph(n) = Voltage sample at a sample instant n
Voffset,ph = Offset used to subtract effects of the additive white Gaussian noise from the voltage converter. This is in units of mV.
VNom= Defined nominal voltage of design
Iph(n) = Each current sample at a sample instant n
Ioffset,ph = Offset used to subtract effects of the additive white Gaussian noise from the current converter. This is in units of µA.
Sample count = Number of samples within the present frame
Kv,ph = Scaling factor for voltage
Ki,ph = Scaling factor for current
Power and energy are calculated for active and reactive energy samples of one frame. These samples are phase-corrected and passed on to the foreground process, which uses the number of samples (sample count) to calculate phase active and reactive powers through the following formulas:
Where,
V90(n) = Voltage sample at a sample instant ‘n’ shifted by 90°
KACT,ph = Scaling factor for active power
KREACT,ph = Scaling factor for reactive power
PACT_offset,ph = Offset used to subtract effects of crosstalk on the active power measurements from other currents
PREACT_offset,ph = Offset used to subtract effects of crosstalk on the reactive power measurements from other currents
Note that for reactive energy, the 90° phase shift approach is used for two reasons:
1. This approach allows accurate measurement of the reactive power for very small currents
2. This approach conforms to the measurement method specified by IEC and ANSI standards
The calculated mains frequency is used to calculate the 90 degrees-shifted voltage sample. Because the frequency of the mains varies, the mains frequency is first measured accurately to phase shift the voltage samples accordingly.
To get an exact 90° phase shift, interpolation is used between two samples. For these two samples, a voltage sample slightly more than 90 degrees before the most recent voltage sample and a voltage sample slightly less than 90 degrees before the most recent voltage sample are used. The phase shift implementation of the application consists of an integer part and a fractional part. The integer part is realized by providing an N samples delay. The fractional part is realized by a one-tap FIR filter. In the test software, a lookup table provides the filter coefficients that are used to create the fractional delays.
Using the calculated powers, energies are calculated with the following formulas :
The calculated energies are then accumulated into buffers that store the total amount of energy consumed since system reset. Note that these energies are different from the working variables used to accumulate energy for outputting energy pulses. There are three sets of buffers that are available: one for each V-I mapping. Within each set of buffers, the following energies are accumulated:
Active import energy (active energy when active power ≥ 0)
Active export energy (active energy when active power < 0)
Fundamental active import energy (fundamental active energy when fundamental active power ≥ 0)
Fundamental active export energy (fundamental active energy when fundamental active power < 0)
React. Quad I energy (reactive energy when reactive power ≥ 0 and active power ≥ 0; inductive load)
React. Quad II energy (reactive energy when reactive power ≥ 0 and active power < 0; capacitive generator)
React. Quad III energy (reactive energy when reactive power < 0 and active power < 0; inductive generator)
React. Quad IV energy (reactive energy when reactive power < 0 and active power ≥ 0; capacitive load)
App. import energy (apparent energy when active power ≥ 0)
App. export energy (apparent energy when active power < 0)
The background process also calculates the frequency in terms of samples-per-mains cycle. The foreground process then converts this samples-per-mains cycle to Hertz with Equation 17:
After the active power and apparent power have been calculated, the absolute value of the power factor is calculated. In the internal representation of power factor of the system, a positive power factor corresponds to a capacitive load; a negative power factor corresponds to an inductive load. The sign of the internal representation of power factor is determined by whether the current leads or lags voltage, which is determined in the background process. Therefore, the internal representation of power factor is calculated with the following equation: