Technology

As the most transparent port multiplier possible, the CU2508-0022 expands a Gigabit Ethernet port on the controller to eight Fast Ethernet ports in the field. It transports IEEE802.3 compliant Ethernet frames with arbitrary contents.

Application example

Technology 1:

Each port of the CU2508-0022 sends and receives Fast Ethernet frames (100 Mbit, 100BASE-TX) via up to 100 m of copper cable. The CU2508-0022 does not generate any frames itself or process their content, but only forwards frames sent to it by a software driver via its 8 ports to the field or forwards frames received from the field to the driver. The highly precise time information regarding when the frames are sent or received is thereby optional.

The CU2508-0022 has the following ports for this purpose:

A CU2508-0022 system therefore consists of the CU2508-0022 and the CU2508-0022 driver, integrated in TwinCAT.

The CU2508 system does not replace master implementations of Ethernet-based fieldbuses, but instead tunnels specified data telegrams via the gigabit connection and then sends the frames at the specified time. It behaves transparently for the protocols routed via it, with exception of the EtherCAT protocol – in this case a CU2508-0022 device is visible as the first slave in the configuration. Each materially existent I/O system on the field side must therefore match a logical master component in the controller.

Several CU2508-0022s can be used in each TwinCAT system.

Some sub-functions of the CU2508-0022 and operation modes are described below.

Properties of the downlink ports

The basic setting of the CU2508-0022 is optimized for use with EtherCAT downlinks, in particular for operation with EtherCAT cable redundancy.

In the event of a link loss on the uplink port, the link is retained on the downlink ports, but incoming frames are discarded.

ESL protocol

The software driver in the controller is the counterpart to the CU2508-0022. It works on a Gigabit Ethernet port in the controller and “packs” the user data into the EtherCAT Switch Link Protocol (ESL) or unpacks the ESL protocol from the CU2508-0022 and forwards the user data to the application. This means that no separate telegram with control data for handling the user data is sent, but the user data generated by the user program is supplemented by a few bytes of control data and information data.

The CU2508-0022 driver is integrated in TwinCAT 3 and TwinCAT 2 from version 2.11R2, please refer to the information in the technical data. The ESL protocol is disclosed, see chapter ESL Protocol. In addition, it has been included in the Wireshark®-Installation since version 1.4.2.

EtherCAT time behavior

One possible use of the CU2508-0022 is the operation of several EtherCAT segments on a single port of the IPC, i.e. as a port multiplier.

When operating several EtherCAT segments on the ports of a CU2508-0022, temporal effects can be observed that may be relevant for the application. Some explanations are provided below.

The CU2508-0022 basically supports the following two operation modes:

Consider the following aspects to estimate time effects in these operation modes:

The CU2508-0022 as an EtherCAT slave

Each downlink port of the CU2508-0022 can be configured as a separate EtherCAT device, see chapter Configuration of a port as an EtherCAT port. In this case, the downlink port represents the first EtherCAT device in the system. It is Distributed Clocks-capable and can therefore serve as a reference clock in the segment.

By combining two such EtherCAT ports, the combination of EtherCAT cable redundancy and distributed clocks function is possible.

Time-controlled sending/receiving (in preparation)

The frame forwarding in the CU2508-0022 can be subjected to precise time control by the local clock:

The local hardware-based clock in the CU2508-0022 then controls the sending of the frames with a high temporal quality. This allows the CU2508-0022 to set up a real-time Ethernet network (network variables, Profinet, ...) even if the control device cannot guarantee hard real-time in the transmission of protocol data. However, the control device must be able to deliver or accept the data with sufficient speed.

The time control uses the 64-bit time format known from the EtherCAT distributed clocks system: resolution 1 ns and thus sufficient for approx. 584 years, starting from 01/01/2000 at 00:00.

The timestamp information (sending and receiving) is currently only evaluated by the CU2508 driver and is not available to the user application.

The SFD (Start of Frame Delimiter) is interpreted as the start of an Ethernet frame according to the IEEE802.3 standard.

EoE and TCP/IP

The CU2508-0022 is connected to the IPC via the Gigabit Ethernet interface. This interface appears in the operating system of the IPC with its properties (IP address, subnet mask, etc.). From the point of view of the operating system, there is therefore only this one network connection to which telegrams can be sent or from which telegrams can be received. The CU2508-0022 driver can now either forward data traffic at operating system level to a dedicated downlink port of the CU2508-0022 or feed it into the virtual switch (EoE). See also, for example, the documentation for EP6601-0002 or EL6601/EL6614. The selection is made via the setting in TwinCAT. Either the specific downlink port or EoE in general can be selected via “TCP/IP Port”.

See chapter Configuration of TCP/IP communication.

Applications

The above-described functions permit the use of the CU2508-0022 for the following applications, among others:

Data traffic in the lower-level EtherCAT segments

Ports X01 and X05 have a larger data buffer of 16 kB instead of the usual 8 kB for EtherCAT segments with particularly high data traffic.
“High data traffic” is generated by I/O systems with a lot of cyclic data, e.g. if many devices (over 100) and/or devices with large data requirements (e.g. analog oversampling terminals) are used.

If a “large” I/O system is operated in EtherCAT redundancy mode, it is advisable to use ports X01 and X05.

The memory situation found is reported by TwinCAT with “Cu2508 fifo sizes...”:

Technology 7:
Message relating to CU2508 fifo sizes