FB_CS
Description Function Block
The FB_CONNECTION SHUTDOWN
function block can be used to deactivate a TwinSAFE connection. When the input of the function block becomes active, the connection is terminated, a shutdown command is sent to the FSoE partner, and a feedback signal is sent to the output. Furthermore, the connection is terminated and the output is set if a shutdown command is received from the communication partner.
The output is not reset until the connection to the FSoE partner is in the DATA
state again.
The FSoE Master tries to re-establish the connection or the FSoE Slave replies to the connection again as soon as the input of the function block is no longer active.
This function block is required for modular safety concepts in which machine parts are sometimes installed or not. This functionality is also required for machines in which tool changes are performed.

On the opposite side, the function block is called without connected inputs. The bDeactivated
output is set as soon as the connection is terminated due to a shutdown command from the communication partner.
If bDeactivate2
and tDiscTime12
are deleted, then bDeactivate1
is used as a 1-channel input.
Name | Data Type | Initial Value | Description, Parameter Values |
---|---|---|---|
|
|
| 1st input channel The Negation command can be used to specify whether a normally closed contact (safe state is requested for logic 0) or a normally open contact (safe state is requested for logic 1) is linked to this input. |
|
|
| 2nd input channel Same behavior as |
|
|
| Discrepancy time |
|
|
| ID of the connection (=logical I/O) which should be deactivated. In CODESYS, the connections are numbered in ascending order (starting with the first physical module). This parameter can be set in the Safe configuration dialog of the fieldbus device. |
Name | Data Type | Initial Value | Description, Parameter Values |
---|---|---|---|
|
|
| Output channel The safe state corresponds to logical 0. The output is set when the connection is terminated. |
|
|
|
|