Technology

Introduction

As a port multiplier that is as transparent as possible, the CU2508 extends one Gbit Ethernet port on the controller to 8 FastEthernet ports in the field. It transports IEEE802.3 conformant Ethernet frames with arbitrary contents.

Each port of the CU2508 sends and receives FastEthernet frames (100 Mbit, 100BASE-TX) over up to 100 m of copper cable/RJ45. The CU2508 does not generate or process the contents of any frames itself; instead, it exclusively forwards frames sent to it by a special software driver to the field selectively via its 8 ports 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.

To this end, the CU2508 has at its disposal

A CU2508 system thus consists of the CU2508 device and the CU2508 driver, e.g. integrated in TwinCAT 2.11R2 or TwinCAT 3.

The CU2508 system does not replace master implementations of Ethernet based field buses; instead, it tunnels specified data telegrams via the Gbit connection and then sends the frames at the specified time. It behaves transparently for the protocols fed across it, with exception of the EtherCAT protocol – in this case a CU2508 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 CU2508s can be used in each TwinCAT system.

Technology 1:
Principle CU2508 topology

Downlink Port characteristics

The default setting of the CU2508 is optimized for use with EtherCAT downlinks, especially for EtherCAT IO redundancy operation. Therefore the 8 downlinks up to and including FW11 in the factory setting had the function to mirror incoming 100 Mbit frames back to the transmitter if the 1 GBit uplink is missing, called "Auto Link Close".

Technology 2:
Display "Auto Link Close"

In non-EtherCAT operation this feature can be a problem and might disrupt the underlying network. Therefore it is deactivated globally for all downlink ports starting from FW12, so that in case of an uplink loss no return of incoming 100 Mbit frames takes place but the frames in the CU2508 "percolate". The electrical link is not changed.

ESL protocol

The software driver in the controller/control device/IPC forms the counterpart to the CU2508. It works on a Gbit port in the controller and "packs" the user data into the EtherCAT Switch Link Protocol (ESL) or unpacks the ESL protocol from the CU2508 and forwards the user data to the application. Therefore, no extra telegram containing control data is sent to/from the CU2508 for the handling of the user data; instead, the user data generated by user programs are supplemented by several bytes of control and information data for the connection between controller and CU2508.

The CU2508 driver is integrated in TwinCAT from version 2.11R2 onwards; pay attention to the specifications in the Technical data. The ESL protocol is disclosed, see the Description page. In addition, it has been included in the Wireshark-Installation since version 1.4.2.

EtherCAT systems and CU2508

The CU2508 can be used to operate several FastEthernet EtherCAT systems on one port of the IPC, i.e. quasi as port-multiplier. Hence the term "port multiplier”.

When operating several EtherCAT systems on the ports of a CU2508, temporal effects may occur that may be relevant for the application. Some explanations are provided below.

The CU2508 essentially supports the following three operation modes. To understand this, basic knowledge of the EtherCAT operation modes and synchronization methods is helpful.

  1. Standard mode: no frame influence, no DistributedClocks
    • The CU2508 forwards incoming frames via Gbit-ESL to the desired FastEthernet port, also in the opposite direction. There is no time control for the Ethernet frames.
    • The EtherCAT slaves of the lower-level systems therefore operate on a frame-triggered basis (also referred to as FreeRun mode), and the output times are essentially dependent on frame delays/jitter, for example.
  2. Time-controlled sending/time-stamped receiving: with frame influence, no DistributedClocks
    • The CU2508 forwards incoming frames via Gbit-ESL to the desired FastEthernet port at the requested time. Time stamping takes place in the opposite direction. In other words, the Ethernet frames are time-controlled.
    • Frame-triggered EtherCAT slaves thus operate with "low jitter", and "synchronized" between the EtherCAT systems.
    • In order for the frames to be forwarded on a time-controlled basis, buffering in the CU2508 is required, which may cause considerable delays. For short cycle times the feasibility should be verified!
    • This operation mode is not yet supported (as of 2019).
  3. DistributedClocks mode, no frame influence
    • The forwarded EtherCAT frames are subject to temporal influence by the transmitting IPC, the CU2508 and the EtherCAT slaves.
    • The ports X1..8 are parameterized as DistributedClocks - ReferenceClocks
    • Thus, the EtherCAT slaves of the lower-level systems that support DistributedClocks also operate DC-synchronously. This means that the input/output operations in these slaves can be synchronized, even at the "same" time between the EtherCAT systems on ports X1..8.
      In this case the overall system is essentially independent of frame delays/jitter, as long as these are not significant enough to impair the DistributedClocks control.
    • With regard to EtherCAT operation, this method is essentially the most sensible, because
      • it offers the best temporal definition for the input/output operations of the EtherCAT devices
      • no time buffers are necessary in the CU2508

The following aspects must be taken into account in order to be able to estimate temporal effects in operation modes 1 and 3:

CU2508 as EtherCAT slave

Each downlink port of the CU2508 can be configured as a separate "EtherCAT device", see chapter EtherCAT device setup. In this case the CU2508 port represents the first EtherCAT device in the system. It is capable of Distributed Clocks and can therefore operate as a reference clock in the strand.

The combination of EtherCAT cable redundancy and Distributed Clock function is possible by combining two such EtherCAT ports using the "TwinCAT cable redundancy" supplement (subject to charge).

Time-controlled send/receive (in preparation)

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

The local hardware-based clock in the CU2508 then controls the sending of the frames with a high temporal quality. In this way, the CU2508 permits the construction of a real-time Ethernet network (TwinCAT Publisher/Subscriber, Profinet etc.), even if the control device cannot guarantee hard real-time when sending the protocol data. However, the control device must be able to deliver or accept the data with sufficient speed.

The time controller uses the 64-bit time format familiar from the EtherCAT Distributed Clocks system: resolution 1 ns, starting from 1.1.2000 00:00 and thus adequate for ~584 years

The time stamp information (sending and receiving) is for the time being only evaluated by the CU2508 driver and is not available to the user application.

As the start of an Ethernet frame, the SFD (Start of Frame Delimiter) is evaluated according to the IEEE802.3 standard.

EoE and TCP/IP

The CU2508 is connected to the IPC via the Gbit interface. This Ethernet interface appears in the operating system/Windows of the IPC with its properties (IP address, IP mask etc.). From the point of view of the operating system, therefore, there is “only” this network connection via which telegrams can be sent or received. The CU2508 driver can now either convey data traffic from the operating system level to a dedicated CU2508 port or feed it into the virtual EtherCAT EoE “switch”. Also compare the documentation for the EL6601/EL6614 here. The selection is made in the settings in the System Manager. Either the specific CU2508 port or generally EoE can be selected via "TCP/IP Port".

Refer in particular to the TCP/IP notes here.

Technology 5:
Different IP data traffic depending on the setting

Applications

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

Technology 8:
Use of the CU2508 as an EtherCAT real-time environment

There are currently still restrictions (TwinCAT 2.11/3.1, FW10) with regard to

The implementation of these and further protocols is in preparation.

Data traffic in the lower-level EtherCAT segments

From FW07 and ESI revision -0018, Ports 1 and 5 have a larger data buffer of 16 kbyte (instead of 8 kbyte) for EtherCAT segments with particularly high data transfer rates.

"High data traffic" is generated by IO systems with many cyclical data, e.g. when many subscribers (over 100) and/or subscribers with large data requirements (e.g. analog oversampling terminals) are used.

If a "large" IO system is operated in EtherCAT redundancy mode, it is advisable to use ports 1 and 5.

The memory situation found is occasionally reported by TwinCAT with "Cu2508 fifo sizes...":

Technology 9:
Message relating to CU2508 fifo sizes