TIDUEM8B March   2019  – February 2021

 

  1.   1
  2.   2
  3.   3
  4.   4
  5.   5
  6.   6
    1.     7
      1.      8
      2.      9
    2.     10
  7.   11
    1.     12
    2.     13
      1.      14
      2.      15
      3.      16
      4.      17
      5.      18
      6.      19
      7.      20
      8.      21
      9.      22
      10.      23
    3.     24
      1.      25
        1.       26
        2.       27
        3.       28
        4.       29
          1.        30
          2.        31
      2.      32
        1.       33
          1.        34
          2.        35
          3.        36
          4.        37
          5.        38
          6.        39
          7.        40
        2.       41
          1.        42
        3.       43
          1.        44
            1.         45
            2.         46
          2.        47
          3.        48
  8.   49
    1.     50
      1.      51
      2.      52
        1.       53
          1.        54
          2.        55
        2.       56
      3.      57
    2.     58
      1.      59
        1.       60
        2.       61
        3.       62
          1.        63
          2.        64
            1.         65
            2.         66
              1.          67
                1.           68
                2.           69
              2.          70
              3.          71
      2.      72
        1.       73
        2.       74
  9.   75
    1.     76
    2.     77
    3.     78
      1.      79
    4.     80
    5.     81
    6.     82
  10.   83
    1.     84
  11.   85
  12.   86
Formulae

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 8000 Hz. All of the samples that are taken in approximately one second frames are kept and used to obtain the RMS values for voltage and current for each phase. The RMS values are obtained with the following formulas:

Equation 3. GUID-5E54D68C-B593-47BE-A8FC-6ADE1CC18DC4-low.gif
Equation 4. GUID-AA2207E2-C605-4419-956B-221D61B02E39-low.gif

where

  • ph = Phase parameters that are being calculated [that is, Phase A (= 1) or B (= 2)]
  • 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
  • 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
  • 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:

Equation 5. GUID-279EE93B-659F-4F14-99EA-C9A560063F76-low.gif
Equation 6. GUID-1D14DD64-AF0C-4666-A8D5-8A78C3B81FDE-low.gif
Equation 7. GUID-1B7E5DE0-A676-49C1-B8C0-069D306D88C8-low.gif

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 phases and the neutral
  • PREACT_offset,ph = Offset used to subtract effects of crosstalk on the reactive power measurements from other phases and the neutral

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 current sample and a voltage sample slightly less than 90 degrees before the current 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.

In addition to calculating the per-phase active and reactive powers, the cumulative sum of these parameters are also calculated using Equation 8, Equation 9, and Equation 10:

Equation 8. GUID-FAF983F1-5F27-489F-A23B-ED68D67AED30-low.gif
Equation 9. GUID-28F9A0BA-0C60-489E-A619-630AD6D39225-low.gif
Equation 10. GUID-E38F9DEB-66FD-4BE4-9669-6B3A954EA2C9-low.gif

Using the calculated powers, energies are calculated with the following formulas in Equation 11:

Equation 11. GUID-346FDAAC-5347-4FF2-BD84-4F8A14C361AA-low.gif

From there, the energies are also accumulated to calculate the cumulative energies, by the following Equation 12, Equation 13, and Equation 14:

Equation 12. GUID-88446A3D-00E3-4A13-88CF-014F0DA759E5-low.gif
Equation 13. GUID-91D8F31F-9C3B-4F69-91A7-BA6FF6DE67D4-low.gif
Equation 14. GUID-E43E362E-42E9-4A34-9670-98F526398C14-low.gif

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 four sets of buffers that are available: one for each phase and one for the cumulative of the phases. Within each set of buffers, the following energies are accumulated:

  1. Active import energy (active energy when active energy ≥ 0)
  2. Active export energy (active energy when active energy < 0)
  3. React. Quad I energy (reactive energy when reactive energy ≥ 0 and active power ≥ 0; inductive load)
  4. React. Quad II energy (reactive energy when reactive energy ≥ 0 and active power < 0; capacitive generator)
  5. React. Quad III energy (reactive energy when reactive energy < 0 and active power < 0; inductive generator)
  6. React. Quad IV energy (reactive energy when reactive energy < 0 and active power ≥ 0; capacitive load)
  7. App. import energy (apparent energy when active energy ≥ 0)
  8. App. export energy (apparent energy when active energy < 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 15:

Equation 15. GUID-D9BFA5A5-B3ED-4F44-82D7-27A1527C9CF3-low.gif

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 Equation 16:

Equation 16. GUID-E16F8A76-D896-4EC4-8144-1B2C13B5D1D9-low.gif