<< Click to Display Table of Contents >> Navigation: »No topics above this level« Description |
mapp Services V5.16
The same MpLink used by MpEnergyCore is used for this function block.
This function block registers the power data from a module. Any module that supplies energy data can be used. An energy metering module can be used, for example (explained here). The name of the module is specified on input "ModuleName". This consists of the module position on the target system.
Example:
If energy data from X20AP module X20AP3121 should be collected, "IF6.ST1" is used as the module name.
How to collect the energy data of an X20AP module is explained in use case "Collecting energy data from an energy metering module". |
The data is collected and evaluated by MpEnergyCore. Input "Unit" defines the unit specified for the module's power data. The power data itself is specified on inputs "ActivePower" and "ReactivePower". The function block takes this power data and calculates the energy consumption, which is output via the info structure. This shows both the consumed energy and well as regenerated energy. The active power factor of the module is also calculated.
The "Mode" defines whether the energy data from this module should be included in the calculation by MpEnergyCore or only recorded to be analyzed in detail later. When using mpENERGY_REG_MODE_COLLECT mode, the data from this module is immediately included in the calculation of the energy data.
The second mode mpENERGY_REG_MODE_MONITOR_ONLY makes it possible to record the energy data from a module but not included it in the calculation of energy consumption. This mode is useful in situations where the registered energy data from this module is already being recorded "somewhere else" and therefore no longer needs to be included in the calculation. It should still be possible to precisely analyze the energy consumed by this component, however.
The following example contains three modules whose energy data should be recorded.
Two module are included in the calculation using a shared function block that measures energy. Nevertheless, the data is recorded individually so that a precise analysis of each individual module is possible. The third module that measures power is included directly in the calculations of the energy consumption. Various energy sources are registered in the example above (3x energy, 1x power); 3x MpEnergyRegEnergy and 1x MpEnergyRegPower are used for this.