Hysteresis_DINT (FB)¶
FUNCTION_BLOCK Hysteresis_DINT
This function block will set the output variable to
TRUE
, if the integral value \(x \in \mathbb{Z}\)
is smaller than an integral lower bound \(x_{u} \in \mathbb{Z}\)It will set the Boolean output variable to
FALSE
, if the input value \(x\) exceeds the integral upper bound \(x_{o} \in \mathbb{Z}\).If \(x\) lies between the lower and upper bound, the value of the output will rest unchanged by the module.
- InOut:
Scope
Name
Type
Comment
Input
diValue
DINT
input value \(x \in \mathbb{Z}\)
diLimitPos
DINT
upper bound \(x_{o} \in \mathbb{Z}\)
diLimitNeg
DINT
lower bound \(x_{u} \in \mathbb{Z}\)
Output
xOut
BOOL
FALSE
: If \(x > x_{o} \land x_{u} < x_{o}\)TRUE
: If \(x < x_{u} \land x_{u} < x_{o}\)“xOut
” else