Comparison with Hysteresis

Lib.Mervis.v1_0.Hysteresis

  • Lib.Mervis

A helper block used for comparing two values with hysteresis between transitions.

program test
    var
        hyst: lib.mervis.v1_0.Hysteresis;
    end_var

    hyst(Input := ..., SetPoint := ..., Hysteresis := 5);
end_program
Name Data TypeRetainMandatory ConnectionMeaning
Input real No Yes Input value
SetPoint real No Yes Desired value
Hysteresis real No No Hysteresis
Name Data TypeMeaning
Output bool Output

The block compares two variables - Input and SetPoint. The output is set as follows:

  • True - if Input rises above SetPoint + Hysteresis
  • False - if Input falls below SetPoint
  • © Energocentrum Plus, s.r.o. 2017 - 2024