Setup: Device EtherCAT

Table of contents

Notes on the EtherCAT device
Setting up an EtherCAT device
• Configuration settings under TwinCAT 2.11R2
• Distributed Clocks behavior
• EoE settings

A downlink port of the CU2508 is set up as an EtherCAT device. The correct setup of the CU2508 device is assumed.

Notes on the EtherCAT device

Setting up an EtherCAT device

In EtherCAT operation the CU2508 downlink port used is not transparent, but appears as a Distributed Clocks-capable EtherCAT slave in the configuration. As a result it can appear as a reference clock. However, the EtherCAT slave is otherwise not parameterizable or addressable.

As applies to every EtherCAT device, the current ESI xml files should be present in the TwinCAT system for the CU2508 also. This applies both to the offline creation of the configuration and to scanning in online operation. The files (in particular “Beckhoff CUxxxx.xml”) can be procured from the download area on the Beckhoff web page. They are to be saved under "… \ TwinCAT\Io\EtherCAT\".

Setup: Device EtherCAT 1:

Updating the ESI XML files

If the following information window should appear in online mode when scanning the devices on the CU2508: (see Fig. Information window "Online description") then an update for above mentioned file is necessary:
Click on "No", close the System Manager window, install the current ESI xml files and create the configuration in a newly opened System Manager window.

Setup: Device EtherCAT 2:
Information window "Online description"
Setup: Device EtherCAT 3:

Creation of the configuration

The simple option to create the configuration by scanning the real hardware is only possible if an EtherCAT device is manually connected to a CU2508 port in the configuration.

Configuration settings under TwinCAT 2.11R2

Creating an EtherCAT device

An EtherCAT device can be added by right-clicking on I/O Device - > Append Device.

Setup: Device EtherCAT 4:
Creating an EtherCAT device
Setup: Device EtherCAT 5:
Selection of the "EtherCAT" device

The desired downlink port of the CU2508 can now be selected.

Setup: Device EtherCAT 6:
Selection of the CU2508 port

The device "Device 2 (EtherCAT)" is now connected, according to the adapter reference, not to a physical Ethernet port of the controller, but to a logical adapter reference of the CU2508. This assignment can also be changed later. The freerun cycle time in the TwinCAT ConfigMode is shown here for the adapter.

Setup: Device EtherCAT 7:
Adapter setting for the EtherCAT device
Setup: Device EtherCAT 8:

Creation of the configuration

Scanning of the EtherCAT configuration is also possible from this state onwards.

Creating a CU2508 box

The CU2508 downlink port appears as an EtherCAT slave and can be scanned or created manually.

Setup: Device EtherCAT 9:
Appending a CU2508 EtherCAT slave

If creating manually, the “CU2508 Ethernet port” CU2508-0000 must be selected. The check box "ExtendedInformation" displays the revision numbers, in this case -0000 (fig. Selection of “CU2508 Ethernet Port”).

If "CU2508" is entered in the Search mask, the overview is reduces to the sought device.

Setup: Device EtherCAT 10:

Fig. 7: Selection of “CU2508 Ethernet Port”

Further EtherCAT slaves can now be appended to the CU2508 Box.

Setup: Device EtherCAT 11:
Appending further EtherCAT slaves

Distributed Clocks settings

All CU2508 downlink ports are synchronized with each other and can appear as ReferenceClock in the respective EtherCAT strand. In the default setting, however, the CU2508 port is not marked as Distributed-Clocks-capable, hence under TwinCAT the next subsequent Distributed-Clocks-capable slave is selected as the ReferenceClock. In each case the CU2508 port is the 1st slave in the respective strand.

Setup: Device EtherCAT 12:
EtherCAT Distributed Clocks reference

If the CU2508 port is to be used as the ReferenceClock in a system, the setting "Use as potential ReferenceClock" must be changed; see fig. CU2508 slave - Distributed Clocks setting.

Setup: Device EtherCAT 13:
CU2508 slave - Distributed Clocks setting
Setup: Device EtherCAT 14:

Synchronized EtherCAT systems

If several EtherCAT systems are to be operated on CU2508 ports synchronized with the same time base, the flag "Use as potential Reference Clock" must be set in the appropriate "CU2508 box".

External synchronization to another time base is then not possible.

The internal clock in the CU2508 works independently and is only managed by the CU2508 driver.

EoE settings (Ethernet over EtherCAT)

If devices with EoE support are used in a lower-level EtherCAT system, this affects the settings of the EoE switch in the CU2508 if this is configured for EoE transport. Refer to the Notes pages on TCP/IP traffic.

If such devices are present in the EtherCAT system,

Setup: Device EtherCAT 15:
EtherCat device EoE settings

If several EtherCAT system EoE devices are used, this increases the settings of the CU2508 EoE switch.

Setup: Device EtherCAT 16:
CU2508 EoE settings