Table of Contents

Comparison with Hysteresis

Full Name

Lib.Mervis.v1_0.Hysteresis

Required Project References

Description

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

Usage in ST

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

    hyst(Input := ..., SetPoint := ..., Hysteresis := 5);
end_program

Inputs

Name Data TypeRetainMandatory ConnectionMeaning
Input real No Yes Input value
SetPoint real No Yes Desired value
Hysteresis real No No Hysteresis

Outputs

Name Data TypeMeaning
Output bool Output

Detailed Function Description

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