LimitAlarm_LREAL (FB)ΒΆ

FUNCTION_BLOCK LimitAlarm_LREAL

This function block checks whether the value \(x \in \mathbb{R}\) lies between an lower bound \(x_{u} \in \mathbb{R}\) and an upper bound \(x_{o} \in \mathbb{R}\).
The output value will be set according to the result.
InOut:

Scope

Name

Type

Comment

Input

lrValue

LREAL

value \(x \in \mathbb{R}\) to be tested

lrLimitPos

LREAL

upper bound \(x_{o} \in \mathbb{R}\)

lrLimitNeg

LREAL

lower bound \(x_{u} \in \mathbb{R}\)

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}\)