Step 2.4: TwinSAFE Group

The TwinSAFE Group is a group of TwinSAFE clamps (inputs and outputs) witch are logically linked via EL6900.

Appending 'TwinSAFE Group'

Appending function block 'Decoupler'

By means of the function block 'Decoupler', for example safe inputs can be linked to particular bits of the FSoE control word.

Configuration example

Used are two 'Decoupler' function blocks.

Decoupler (FB1)


 

 

Not applicable at TwinCAT PLC and TwinSAFE PLC combination.

 

Decoupler (FB2)
This example shows the preparation for a standard data exchange between TwinSAFE PLC and AMK PLC.

Therefore, the BYTE-type variable by_IN_Date_0 was defined inside the TwinCAT PLC project.

The TwinSAFE PLC will send the status of wState2_Bit12 (VALID Bit) with the variable by_IN_Date_0 to the AMK controller.

If you evaluate the VALID bit with the AMK controller, you can check the working state of the FSoE slave and FSoE master.

 

Enter a TwinSAFE status variable at the Decoupler input DecIn1.


 

Link TwinSAFE status variable with standard output (by_IN_Date_0).

 

Bit addressing

 

Symbolic name

 

You can find the used variables in the device tree. Below the clamp 'EL6900' – 'Module 2 (FSOE). TwinCAT use standard names like 'Standard Out Var 1', 'Standard Out Var 2' … . Rename the standard variable names to a clear name. This variable name will further be also used for the TwinCAT ‘configuration file’. This 'configuration file' will be read from AIPEX PRO to create the EtherCAT configuration file.