Step 2.5: TwinSafe PLC Start / Stop / ErrAck

The example shows how the TwinCAT variables are linked to an AMK controller. Thus the AMK controller can start the TwinSAFE PLC.

ERR Ack = low - high - low edge

RUN/STOP = low - high edge

 

Not applicable at TwinCAT PLC and TwinSAFE PLC combination.

 

The example shows the preparation for a standard data exchange between AMK controller and TwinSafe PLC. With the variables, the TwinSAFE PLC can be controlled with the AMK controller. The TwinCAT PLC (dummy) variables (by_IN_Data_0 and by_OUT_Data_0) will be linked with the TwinSAFE PLC control and status in- and outputs. The bit numbers will be entered with an offset value.

Example:

Signal / Status Variable
ERR Ack by_OUT_Data_0 Offset 0 (bit 0)
RUN / STOP by_OUT_Data_0 Offset 1 (bit 1)
FB ERR by_IN_Data_0 Offset 0 (bit 0)
COM ERR by_IN_Data_0 Offset 1 (bit 1)

 

 

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.