MinMax Duration

Find the largest and smallest value over a time period.

Loxone Musterkoffer

Information

The input over which the minimum and maximum value is to be recorded is connected to the AI input. 

The lowest value since the last reset is output at AQmin and the highest value since the last reset is output at AQmax.

If the input R is activated then a new calculation period starts, AQmin and AQmax will be set to the current value of AI.

Example

In this example the highest and lowest value over the day is recorded.

The outdoors temperature sensor is connected to AI input and the 'Pulse for day' time input is connected to the R input. This resets the block at midnight every day and starts a new calculation period.

At the AQmin output and AQmax output are memory flags to use the highest and lowest temperature elsewhere in the program.

Overview

Inputs

   
AI Analogue input Connect the analogue signal here to calculate the minimum and maximum.
R Reset A pulse on R will start a new calculation period, AQmin and AQmax are set to the value of AI.

Outputs

   
AQmin Minimum value The lowest value since the last reset is output here.
AQmax Maximum value The highest value since the last reset is output here.