EtherCAT Configurator

 

Note

Refer to the general description for information about the following tabs of the device editor.

Only in the case of special features is there an additional help page for the specific device editor.

If the "<device name> Parameters" tab is not shown, then enable the Show generic device configuration editors option in the CODESYS options (Device editor category).

The configuration of EtherCAT modules is based on the device descrip­tion files for the master and slave devices employed and can be adapted in the project in configuration dialogs. In order to ensure the simplest and most error-free use possible, we recommend for standard applications that you activate the option for the Automatic Configurationof the master, so that the majority of the configuration settings are performed automatically.

Requirements

 

The requirement for the combination of EtherCAT devices with a CODESYS Control Win V3 is the installation of the program library WinPCap (freely downloadable, e.g. from winpcap.org). Furthermore, add the following entries to the CODESYS configuration file (...\\Gate­wayPLC\\CODESYSControl.cfg):

EtherCAT device tree

 

_ecat_img_device_tree.png 

  1. Tab 'EtherCAT Master - General'

  2. Tab 'EtherCAT Slave - General'

  3. Tab 'EtherCAT Module - Startup Parameters'

EtherCAT topology

 

In addition to the line and tree topology, CODESYS also supports the EtherCAT star topology. Special EtherCAT branches ( '2 port EtherCAT junction' in the example) are required for the configuration of an EtherCAT star topology. A modular EtherCAT star can be realized by the use of several branches. Individual devices or complete EtherCAT lines can be connected with the branches. An EtherCAT branch is marked by the sign ethercat_junction.png.

_ecat_ethercat_topo.png

Note

The bus cycle task is set in the general PLC settings.

Access to the EtherCAT configuration by the application takes place via instances of the EtherCAT master and EtherCAT slave. If the EtherCAT master or EtherCAT slaves are inserted as objects into a project, instances are automatically created for master and slaves that can be addressed in the application program. For example a restart, a stop or a status check of the EtherCAT device can be performed from the applica­tion.

Furthermore, the EtherCAT library offers function blocks for the reading and writing of individual parameters, even during bus operation.

See also