Skip to main content

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.

EL6900_CS.png

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.

Table 6. VAR_INPUT

Name

Data Type

Initial Value

Description, Parameter Values

bDeactivate1

SAFEBOOL

FALSE

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.

bDeactivate2

SAFEBOOL

FALSE

2nd input channel

Same behavior as Deactivate1. If the discrepancy time tDiscTime12 is not equal to 0, then the 1st and 2nd input channels are considered to be one input group and the discrepancy time between the two channels is monitored if either of the two input channels requests the safe state.

tDiscTime12

SAFETIME

TIME#0ms

Discrepancy time

byConnectionId

SAFEBYTE

0

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.



Table 7. VAR_OUTPUT

Name

Data Type

Initial Value

Description, Parameter Values

bDeactivated

SAFEBOOL

FALSE

Output channel

The safe state corresponds to logical 0. The output is set when the connection is terminated.

bError

SAFEBOOL

FALSE

TRUE: The discrepancy time monitoring of a 2-channel input group has detected an error. The error must be acknowledged via the ERR_ACK input of the associated POU (TwinSAFE group).

FALSE: No error was detected.