Comparison with Hysteresis
Full Name
Lib.Mervis.v1_0.Hysteresis
Required Project References
- Lib.Mervis
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 Type | Retain | Mandatory Connection | Meaning |
Input | real | No | Yes | Input value |
SetPoint | real | No | Yes | Desired value |
Hysteresis | real | No | No | Hysteresis |
Outputs
Name | Data Type | Meaning |
Output | bool | Output |
Detailed Function Description
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