The Hysteresis component sets on/off trip points to an input variable.

There are two internal floats called Rising Edge and Falling Edge, which are configurable:

  • If the Rising Edge > Falling Edge, the Out behaves normally, i.e.

Out = true if the In rises above the Rising Edge value,

Out = false if the In falls below the Falling Edge value.

  • If the Rising Edge < Falling Edge, the Out behaves inverted, i.e.

Out = false if the In rises above the Falling Edge value,

Out = true if the In falls below the Rising Edge value,

  • If the Rising Edge = Falling Edge, the object behaves as a simple comparator,

Out = true if the In is greater than the Rising Edge.

Hysteresis component

Slots

The Hysteresis component has the following slots:

  • Status: shows the component's status;
  • Out: the true or false value changing depending on the In slot value in relation to the Rising/Falling Edge slots;
  • In: the input value;
  • Rising Edge: a trip point for the Out value if the In slot value is rising;
  • Falling Edge: a trip point for the Out value if the In slot value is falling.