Skip to main content

Using the EtherCAT Safety FBD Editor

Programming

Drag graphical elements from the ToolBox view to the editor.

A changed implementation is tagged as In work at the top level.

Commands

For more information about the commands, see: Commands

Network title and network comment

A title and a comment can be added to each network if the corresponding FBD options are enabled.

Procedure. Enabling the EtherCAT Safety FBD options
  1. In the Tools menu, open the Options dialog.

  2. In the Options dialog, click the EtherCAT Safety FBD editor dialog.

  3. Select the Show network title and Show network comment options.

  4. Click the OK button.

Figure 14. Dialog: EtherCAT Safety FBD options
Dialog: EtherCAT Safety FBD options


A network title can be edited directly in the first line of the network; the network comment can be edited in the second line of the network. In both cases the respective line must be selected first.

Figure 15. Network with title and comment
Network with title and comment


Function Blocks

For programming the safety application in the FBD editor, the following function blocks are provided:

Displaying the Safe Data Flow

The safe data flow of FBD programming is highlighted in CODESYS Safety for EtherCAT Safety Module as follows:

  • Constants and variables declared as constants are highlighted in yellow.

  • SAFExxx variables are highlighted in yellow.

  • The data flow of SAFE values into SAFE variables and inputs is represented by thick yellow lines.

  • Function blocks are displayed in yellow when they have at least one SAFE output.

Example 6. Example

Safe data flow: FB_AND with SAFE variables: S1_1, S1_2 and O_K1_K2

EL6900_SafetyProgramm_DataflowAND.png


Monitoring

When the application (safety application) SafetyApp.png SafetyApp is executable and has been downloaded to the controller, the input and output parameters of the safety function blocks can be monitored when logged in with standard application.

. Question marks (?????) instead of the signal states indicates the following:
  • The version of the IODrvEL6900 library is not up-to-date. It must be V3.5.3.0 or higher.

  • The EtherCAT stack is not yet running on the standard controller after downloading or resetting the application.

  • The application for the EtherCAT Safety Module in CODESYS does not match the application on the module.

Figure 16. Monitoring of variables
Monitoring of variables


Tip

You cannot change signal states while monitoring.

Displaying Substitute Values after Deactivation

Tip

You can deactivate groups and define substitute values for the associated POUs (POUs EtherCAT Safety) only for the EtherCAT Safety Modules EL6910 or EK196.

After you deactivate a group, a POU which reads the outputs of the function block instances of the deactivated POU gets the substitute values. If no substitute values are defined, then the default values of the data types are used as substitute values: FALSE for Boolean outputs and 0 for integer outputs.

  • Substitute values are specified in curly brackets (_1_r.png).

  • For assignments to variables, the substitute values are specified before the variable (_2_r.png).

  • For connected outputs, the substitute values are specified in a multiple assignment. Only the first assignment branch should be used (_3_r.png).

Example 7. Example
Figure 17. Substitute values
Substitute values