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 - diValue- DINT- value \(x \in \mathbb{Z}\) to be tested - diLimitPos- DINT- upper bound \(x_{o} \in \mathbb{Z}\) - diLimitNeg- DINT- lower bound \(x_{u} \in \mathbb{Z}\) - Output - xExceedsPos- BOOL- TRUE: If \(x > x_{o}\)- FALSE: Else- xExceedsNeg- BOOL- TRUE: If \(x < x_{u}\)- FALSE: Else- xInLimits- BOOL- TRUE: If \(x_{u} \leq x \leq x_{u}\)- FALSE: Else, also in the atypical case \(x_{o} < x_{u}\)
