Skip to main content

FB_LIMIT

Description Function Block

The FB_LIMIT function block is used to check whether the value at the AnalogIn input is within the predefined limits. If the value at AnalogIn is within the limits of MinValue and MaxValue, then the bInLimit output is set. If the value is greater than MaxValue, then the bAboveMax output is set. If the value is less than MinValue, then the bBelowMin output is set.

EL6900

The FB_LIMIT function block is not supported by the EL6900.

EL6900_LIMIT.png
Table 44. VAR_INPUT

Name

Data Type

Initial Value

Description, Parameter Values

AnalogIn

LINT

0

Analog input value for the check

Permitted data types: UINT, INT, UDINT, DINT

MinValue

LINT

0

Minimum value

Permitted data types: UINT, INT, UDINT, DINT

Constant value or variable permitted

MaxValue

LINT

0

Maximum value

Permitted data types: UINT, INT, UDINT, DINT

Constant value or variable permitted



Table 45. VAR_OUTPUT

Name

Data Type

Initial Value

Description, Parameter Values

bInLimit

SAFEBOOL

FALSE

TRUE: The AnalogIn value is within the minimum and maximum limit values.

bBelowMin

SAFEBOOL

FALSE

TRUE: The AnalogIn value is less than the minimum limit value.

bAboveMax

SAFEBOOL

FALSE

TRUE: The AnalogIn value is greater than the maximum limit value

bError

SAFEBOOL

FALSE

TRUE: MinValue is greater than MaxValue.

FALSE: No error has occurred.