Configuring MpEnergyRegEnergy

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Configuring MpEnergyRegEnergy

mapp Services V5.16

Connecting MpLink

Using input "MpLink", we establish a connection to the configuration we created earlier named "gEnergyCore".

 

energyregenergy_mplink

 

Enabling the function block

The function block is enabled using input "Enable".

 

energyregenergy_enable

 

Defining the module

The name of the module that provides the energy data is defined using input "ModuleName". "MyModule" is specified.

 

energyregenergy_module

 

Defining the mode and unit

"Mode" defines how the registered data is to be used. Mode mpENERGY_REG_MODE_COLLECT is used. For more information about modes, see here. "Units" determines the unit used to specify the energy data. Unit mpENERGY_ENERGY_UNIT_KWH is used. This means that the energy data is specified in kWh.

 

energyregenergy_mode_unit

 

Defining variables for absorbed and emitted active energy

Finally, variables "ForwardActiveEnergy" and "ReverseActiveEnergy" are created, via which the absorbed and emitted active energy is specified to MpEnergyRegEnergy.

 

energyregenergy_para

 

 

 

 

This means that the energy data coming from the specified module are specified to MpEnergyRegEnergy.

 

collect_energy

 

MpEnergyCore collects the provided data of all registered modules and calculates the energy consumption.

 

send_energy_core