LimitAlarm_DINT (FB)ΒΆ
FUNCTION_BLOCK LimitAlarm_DINT
This function block checks whether an integral value \(x \in \mathbb{Z}\) lies between an integral lower bound
\(x_{u} \in \mathbb{Z}\) and an integral upper bound \(x_{o} \in \mathbb{Z}\).
The output value will be set according to the result.
- InOut:
Scope
Name
Type
Comment
Input
diValueDINTvalue \(x \in \mathbb{Z}\) to be tested
diLimitPosDINTupper bound \(x_{o} \in \mathbb{Z}\)
diLimitNegDINTlower bound \(x_{u} \in \mathbb{Z}\)
Output
xExceedsPosBOOLTRUE: If \(x > x_{o}\)FALSE: ElsexExceedsNegBOOLTRUE: If \(x < x_{u}\)FALSE: ElsexInLimitsBOOLTRUE: If \(x_{u} \leq x \leq x_{u}\)FALSE: Else, also in the atypical case \(x_{o} < x_{u}\)