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 description 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.
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 (...\\GatewayPLC\\CODESYSControl.cfg):
component.<subsequent number>=CmpEt100Drv
Required only with the RTE. The RTE requires special network drivers. Available for Realtek RTL81x9/RTL8169, Intel Pro 100 / 1000
component.<subsequent number>=CmpRTL81x9Mpd
Required only with the RTE. Available for RTL8139.
component.<subsequent number>=8169Mpd
Required only with the RTE. Available for Realtek RTL8169 or RTL8168 (PCIe version))
|
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 .
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 application.
Furthermore, the EtherCAT library offers function blocks for the reading and writing of individual parameters, even during bus operation.
See also