FB_SLI
Description Function Block
The FB_SLI
function block is used to save the Position
input with a rising edge at the bSLI
input (latch position). As long as bSLI
is set to TRUE
, a check is performed to make sure that the position is located within the limits of latch position - udiLimitNeg
and latch position + udiLimitPos
. If this is the case, then the bSLIActive
output is set to TRUE
. If the position leaves the defined range, then bSLIActive
is set to FALSE
. The PositionDiff
output gives the current difference between the position and the latch position. With the falling edge at bSLIActive
, the PositionDiff
output is also set to 0.
The udiLimitNeg
and udiLimitPos
inputs are UDINT
values and are therefore always positive.
Tip
The availability of this function block depends on the FBSupportFlags
of the ESI description file. These FBSupportFlags
are evaluated as of CODESYS Safety for EtherCAT Safety Module 4.3.0.0. The usage of this function block is prevented if the device in question does not explicitly support this function block.

Name | Data Type | Initial Value | Description, Parameter Values |
---|---|---|---|
|
|
| On a rising edge, the current value of the |
|
|
| Current position value Saved with the rising edge at Permitted data types: |
|
|
| Permitted deviation of the saved position (latch position) in the positive direction The Only a constant value is permitted (no variable) |
|
|
| Permitted deviation of the saved position (latch position) in the negative direction Must be 0 if the data type of Only a constant value is permitted (no variable) |
Name | Data Type | Initial Value | Description, Parameter Values |
---|---|---|---|
|
|
| Is |
|
|
| Difference position between the saved position (latch position) and the current position. If Permitted data types: |
|
|
|
|