FB_ENVELOPE
Description Function Block
The FB_ENVELOPE
is used to create an envelope curve from the value of InValue
plus uiOffset
and to check whether or not InValue
violates this envelope curve each time the function block is called. If InValue
reaches the range from - udiTargetValue
to + udiTargetValue
, then the time tTimeAfterInTarget
starts to run. If InValue
leaves this range and the time has not yet elapsed yet, then this time is reset. The time may start again when InValue
reaches the range again. If InValue
remains within the range, then the bSafeFunctionOut
output is set to FALSE
after the time tTimeAfterInTarget
has elapsed. The bSafeFunctionOut
output is set to FALSE
at the latest after tMaxTime
has expired.
This function block can normally be used, for example, for an SS1 or SS2 safety function.
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 |
---|---|---|---|
|
|
| For a falling edge, an envelope curve is created from the value of |
|
|
| Analog value which should be monitored when a delay or change occurs in the towards 0 within an envelope curve. Permitted data types: |
|
|
| Time frame of Only a constant value is permitted (no variable) |
|
|
| Value which is added to the value of Only a constant value is permitted (no variable) |
|
|
| Time after which the The time starts to run when Only a constant value is permitted (no variable) |
|
|
| Maximum time (in ms) after which the Only a constant value is permitted (no variable) |
Name | Data Type | Initial Value | Description, Parameter Values |
---|---|---|---|
|
|
| Output with the safety function (delayed by time and monitored by envelope curve) Set to |
|
|
|
|