AmountOfHeat
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 amount of heat per minute expressed in kWh, 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 to 0 each 1 minute cycle.
Output value is updated every minute. If the stop input is set to TRUE, the output value is kept the same for an undefined amount of time.
Only when the stop input is back to FALSE, the output will be updated on the next minute cycle.
Input:
pulse (boolean)
scaling (number)
scalingMultiplier (number)
stop (boolean)
Output:
result (number) [unit: kWh]