Two analogue input signals can be connected to the inputs AI1 and AI2 on the comparator block.

If the difference of the two inputs AI1 and AI2 is more than or equal to the value of the parameter Von then the output Q will be on and will stay on until the difference in the two input values is less than or equal to the value of the Voff parameter.

This block is very useful for temperature control in heating plants, level control with rainwater harvesting systems etc.