Function Block PWR2ENERGY

The Function Block PWR2ENERGY converts power [W] to energy [Wh]. The interval PT is synchronized with the real-time clock.

Note: If possible, always measure directly in Wh as calculating over time is inaccurate.

Input PWR

The measured power in W. An average value is generated from this at every change. The higher the interval specified, the more precise the calculation of the power.

Input PT

Sets the interval in format T# for calculating the outgoing energy and average power. The minimum time is one second. The specified interval is synchronized with the real-time clock.

Input DIS

Disables measuring of energy.

Input RESET

Resets all values and restarts the timer.

Output ENERGY

The output returns the calculated amount of energy in Wh after the interval PT has elapsed.

Output AVGPWR

Returns the calculated average power.