Skip to main content

Configuring the F-Module

CODESYS Safety Extension provides the following variants for PROFINET Device:

sil3_img_fb_pnd__device_tree_master_ethernet.png

Your CODESYS standard controller and safety controller constitute a PROFIsafe F-Device which can exchange the safe signals of an F-Module of the safety controller with the superordinate safety controller via the PROFINET device connection of the standard controller. The following instructions explain how to add an F-Module to your safety controller and configure the PROFIsafe parameters and the I/O mapping.

  1. Select the standard controller in the device tree and click Add Device in the context menu.

  2. In the Add Device dialog, select the EtherNet Adapter from the category Fieldbuses → EtherNet/IP → Ethernet Adapter. Then click Add Device.

  3. Select the EtherNet Adapter in the device tree and click Add Device in the context menu.

  4. In the Add Device dialog, select the suitable PROFINET F-Device from the category Fieldbuses → Profinet IO → Profinet IO Device. Then click Add Device.

  5. Add the desired F-Module to the PROFINET F-Device. In the Add Device dialog, you will find the available F-Modules in Fieldbuses → Profinet IO → Profinet IO Modules.

    Table 125. Available F-Modules

    F-Module

    Function of the controller

    Data

    Host-FInput 1

    Digital F-Input for the F-Host

    8 bits to the host

    Host-FInput 12

    Large mixed F-Input for the F-Host

    4 bytes + 2 INT + 1 DINT safe signals to the F-Host

    Host-FInput 123

    Maximum F-Input for the F-Host

    27 bytes + 16 INT + 16 DINT safe signals to the F-Host (total 123 bytes)

    Host-FOutput 1

    Digital F-Output for the F-Host

    8 bits safe signals from the F-Host

    Host-FOutput 12

    Large mixed F-Output for the F-Host

    4 bytes + 2 INT + 1 DINT safe signals from the F-Host

    Host-FOutput 123

    Maximum F-Output for the F-Host

    27 bytes + 16 INT + 16 DINT safe signals from the F-Host

    Host-FInOut 8/1

    Mixed digital F-Input and F-Output for the F-Host

    2 x 32 bits safe signals to the F-Host + 8 bits safe signals from the F-Host

    Host-FInOut 2/2 PROFIdrive

    Implementation of a PROFIdrive for the F-Host

    16 bits PROFIdrive status signals to the F-Host + 16 bits PROFIdrive control signals from the F-Host



    When you add an F-Module to PROFINET F-Device, the corresponding logical I/Os are added automatically to the safety application of the safety controller.

  6. Double-click the logical I/O of the F-Module.

    On the Safe Configuration tab, enter the address as the Source Address parameter that the F-Host has to set as the F-Parameter F_Source_Add in order to be able to use the F-Module.

    Notice: Please refer to the instructions regarding the address F_Source_Add in the Safety User Manual.

  7. On the Safe Configuration tab, enter the address as the Destination Address parameter that the F-Host has to set as the F-Parameter F_Dest_Add in order to be able to use the F-Module.

    Notice: Please refer to the instructions regarding the address F_Dest_Add in the Safety User Manual.

  8. Configure the mapping on the I/O Mapping tab of the logical I/O of the F-Module.

  9. Insert the driver block PSDeviceModule into a POU of your application and implement the control of the status and control bits.

    Notice: Please refer to the instructions for the implementation of F-Modules in the CODESYS Safety User Manual.