Skip to main content

FB_LOADSENSING

Description Function Block

The FB_LOADSENSING function block is used to check the AnalogInX and AnalogInY inputs to find out whether the AnalogInY values at the AnalogInX position are within a specific range. There is a (warning level) and a (switch-off level) for the AnalogInY values in the table.

If bInactive=FALSE, then the largest index is determined whose corresponding X value is still less than the AnalogInX input. Then a check is performed to find out whether the AnalogInY input is within the corresponding switch-off level (Y1, Y2) or within the warning level (WY1, WY2). If the value is within the switch-off level, then the bValid output is set. If the value is between the values Y1 and WY1 or Y2 and WY2, then the bWarning output is also set. There can be up to 25 indices.

The check can be reversed by means of the bOutsideY1Y2 input so that values outside of Y1 and Y2 are valid and the bValid output is set. In this case, the warning level has to be specified greater than the switch-off level.

ES6900

The FB_LOADSENSING function block is not supported by the EL6900.

Figure 23. Representation in the Library Manager
Representation in the Library Manager


Figure 24. Representation in the FBD Editor
Representation in the FBD Editor


EL6900_loadsensing_diagram.png
Table 46. VAR_INPUT

Name

Data Type

Initial Value

Description, Parameter Values

bInactive

BOOL

FALSE

Input for deactivating the FB

AnalogInX

LINT

0

Analog X value

Permitted data types: UINT, INT, UDINT, DINT

AnalogInY

LINT

0

Analog Y value

Permitted data types: UINT, INT, UDINT, DINT

bOutsideY1Y2

SAFEBOOL

FALSE

The data of the value table is checked according to the following formulas:

bOutsideY1Y2 = FALSE: Y1[index] <= WY1[index] < WY2[index] <= Y2[index]

bOutsideY1Y2 = TRUE: WY1[index] <= Y1[index] < Y2[index] <= WY2[index]

ValueSettings

Values for X, warning levels (WY1, WY2) and switch-off levels (Y1, Y2).

EL6900_Loadsensing_table_icon.png: Opens a table where the values are defined.

If values for Y1 and Y2 are specified in the table, then values for the warning level WY1 and WY2 must also be specified.



Table 47. VAR_OUTPUT

Name

Data Type

Initial Value

Description, Parameter Values

bValid

SAFEBOOL

FALSE

TRUE: AnalogInY is located within the switch-off level.

bWarning

SAFEBOOL

FALSE

TRUE: AnalogInY is located between the switch-off level and the warning level.