FUNCTION_BLOCK LimitAlarm_LREAL
This function block checks whether the value
lies between an lower bound
and an upper bound
.
The output value will be set according to the result.
InOut:
|
Scope
|
Name
|
Type
|
Comment
|
Input
|
lrValue
|
LREAL
|
value to be tested
|
lrLimitPos
|
LREAL
|
upper bound
|
lrLimitNeg
|
LREAL
|
lower bound
|
Output
|
xExceedsPos
|
BOOL
|
TRUE: If
FALSE: Else
|
xExceedsNeg
|
BOOL
|
TRUE: If
FALSE: Else
|
xInLimits
|
BOOL
|
TRUE: If
FALSE: Else, also in the atypical case
|
|