DeltaAmountOfHeat Block

DeltaAmountOfHeat

Starting from pulse input and defined both scaling and scalingMultiplier, the pulse input is used to define a pulsesPerMinute variable.

The pulsesPerMinute variable can be scaled in order to calculate the amount of heat per pulse by defining both scaling and scalingMultiplier.

This block works with 1 minute cycles, meaning the output is updated every minute. (feature not available with SLOW ROUTINE)

The output of this block is the delta amount of heat per minute expressed in kWh, each calculated by the following formula:

( ( scaling * 10^(scalingMultiplier) ) * pulsesPerMinute ) / 60

A pulse is valid when the pulse input goes from FALSE to TRUE (rising edge detection) and the pulse counter is reset every minute.

Output value is added to the previous value and it’s updated every minute.

If the reset input is set to TRUE, the output value is calculated starting from 0 and not from the previous value on the next cycle.

Input:

  • pulse (boolean)

  • scaling (number)

  • scalingMultiplier (number)

  • stop (boolean)

Output:

  • result (number) [unit: kWh]