CU2508 en
CU2508 en
CU2508 en
CU2508
Real-time Ethernet port multiplier
Table of contents
1 Foreword .................................................................................................................................................... 5
1.1 Notes on the documentation.............................................................................................................. 5
1.2 Safety instructions ............................................................................................................................. 6
1.3 Documentation issue status .............................................................................................................. 7
1.4 Version identification of EtherCAT devices ....................................................................................... 8
1.4.1 General notes on marking ................................................................................................. 8
1.4.2 Version identification of CU Switches ................................................................................ 9
1.4.3 Beckhoff Identification Code (BIC)..................................................................................... 9
1.4.4 Electronic access to the BIC (eBIC) ................................................................................ 11
2 Product overview..................................................................................................................................... 13
2.1 Introduction ...................................................................................................................................... 13
2.2 Technical data ................................................................................................................................. 14
2.3 Technology ...................................................................................................................................... 14
2.4 Start ................................................................................................................................................. 21
4 Commissioning........................................................................................................................................ 31
4.1 Setting up under TwinCAT 2.11 ...................................................................................................... 31
4.2 Port definition TwinCAT 2.11 ........................................................................................................... 34
4.2.1 Setup: Device EtherCAT.................................................................................................. 34
4.2.2 Setting up: Device EtherCAT with cable redundancy ...................................................... 39
4.2.3 Setting up: Device Ethernet and TCP/IP notes................................................................ 42
4.2.4 Setting up: Real-time Ethernet (Publisher/Subscriber, EAP push) .................................. 45
4.2.5 Setting up: Real-time Ethernet (BK90xx, ADS/RAW, EAP polling) ................................. 46
4.2.6 Setting up: PROFINET Controller/Device........................................................................ 48
4.2.7 Configuration: Ethernet/IP ............................................................................................... 49
4.3 Beckhoff EAP network variables ..................................................................................................... 49
4.3.1 Introduction ...................................................................................................................... 49
4.3.2 Configuration of the Publisher ......................................................................................... 51
4.3.3 Configuration of the Subscriber ....................................................................................... 53
4.3.4 Beckhoff network variables - Settings.............................................................................. 58
5 Appendix .................................................................................................................................................. 66
5.1 ESL Protocol.................................................................................................................................... 66
5.2 Firmware Update ............................................................................................................................. 66
5.3 Firmware compatibility ..................................................................................................................... 75
5.4 Support and Service ........................................................................................................................ 76
1 Foreword
This description is only intended for the use of trained specialists in control and automation engineering who
are familiar with the applicable national standards.
It is essential that the documentation and the following notes and explanations are followed when installing
and commissioning these components.
It is the duty of the technical personnel to use the documentation published at the respective time of each
installation and commissioning.
The responsible staff must ensure that the application or use of the products described satisfy all the
requirements for safety, including all the relevant laws, regulations, guidelines and standards.
Disclaimer
The documentation has been prepared with care. The products described are, however, constantly under
development.
We reserve the right to revise and change the documentation at any time and without prior announcement.
No claims for the modification of products that have already been supplied may be made on the basis of the
data, diagrams and descriptions in this documentation.
Trademarks
Beckhoff®, TwinCAT®, TwinCAT/BSD®, TC/BSD®, EtherCAT®, EtherCAT G®, EtherCAT G10®, EtherCAT P®,
Safety over EtherCAT®, TwinSAFE®, XFC®, XTS® and XPlanar® are registered trademarks of and licensed by
Beckhoff Automation GmbH. Other designations used in this publication may be trademarks whose use by
third parties for their own purposes could violate the rights of the owners.
Patent Pending
The EtherCAT Technology is covered, including but not limited to the following patent applications and
patents: EP1590927, EP1789857, EP1456722, EP2137893, DE102015105702 with corresponding
applications or registrations in various other countries.
EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH,
Germany.
Copyright
Exclusion of liability
All the components are supplied in particular hardware and software configurations appropriate for the
application. Modifications to hardware or software configurations other than those described in the
documentation are not permitted, and nullify the liability of Beckhoff Automation GmbH & Co. KG.
Personnel qualification
This description is only intended for trained specialists in control, automation and drive engineering who are
familiar with the applicable national standards.
Description of instructions
DANGER
Serious risk of injury!
Failure to follow this safety instruction directly endangers the life and health of persons.
WARNING
Risk of injury!
Failure to follow this safety instruction endangers the life and health of persons.
CAUTION
Personal injuries!
Failure to follow this safety instruction can lead to injuries to persons.
NOTE
Damage to environment/equipment or data loss
Failure to follow this instruction can lead to environmental damage, equipment damage or data loss.
Tip or pointer
This symbol indicates information that contributes to better understanding.
Designation
Notes
• The elements mentioned above result in the technical designation. EL3314-0000-0016 is used in the
example below.
• EL3314-0000 is the order identifier, in the case of “-0000” usually abbreviated to EL3314. “-0016” is the
EtherCAT revision.
• The order identifier is made up of
- family key (EL, EP, CU, ES, KL, CX, etc.)
- type (3314)
- version (-0000)
• The revision -0016 shows the technical progress, such as the extension of features with regard to the
EtherCAT communication, and is managed by Beckhoff.
In principle, a device with a higher revision can replace a device with a lower revision, unless specified
otherwise, e.g. in the documentation.
Associated and synonymous with each revision there is usually a description (ESI, EtherCAT Slave
Information) in the form of an XML file, which is available for download from the Beckhoff web site.
From 2014/01 the revision is shown on the outside of the IP20 terminals, see Fig. “EL5021 EL terminal,
standard IP20 IO device with batch number and revision ID (since 2014/01)”.
• The type, version and revision are read as decimal numbers, even if they are technically saved in
hexadecimal.
Fig. 1: CU1521 switch with serial number 4820/ and the unique Beckhoff Traceability Number (BTN)
00007su0
The BIC will be introduced step by step across all product groups.
The BIC is machine-readable and contains information that can also be used by the customer for handling
and product management.
Each piece of information can be uniquely identified using the so-called data identifier
(ANSI MH10.8.2-2016). The data identifier is followed by a character string. Both together have a maximum
length according to the table below. If the information is shorter, spaces are added to it.
Following information is possible, positions 1 to 4 are always present, the other according to need of
production:
Posi- Type of Explanation Data Number of digits Example
tion information identifier incl. data identifier
1 Beckhoff order Beckhoff order number 1P 8 1P072222
number
2 Beckhoff Traceability Unique serial number, SBTN 12 SBTNk4p562d7
Number (BTN) see note below
3 Article description Beckhoff article 1K 32 1KEL1809
description, e.g.
EL1008
4 Quantity Quantity in packaging Q 6 Q1
unit, e.g. 1, 10, etc.
5 Batch number Optional: Year and week 2P 14 2P401503180016
of production
6 ID/serial number Optional: Present-day 51S 12 51S678294
serial number system,
e.g. with safety products
7 Variant number Optional: Product variant 30P 32 30PF971, 2*K183
number on the basis of
standard products
...
Further types of information and data identifiers are used by Beckhoff and serve internal processes.
Example of composite information from positions 1 to 4 and with the above given example value on position
6. The data identifiers are highlighted in bold font:
1P072222SBTNk4p562d71KEL1809 Q1 51S678294
Accordingly as DMC:
BTN
An important component of the BIC is the Beckhoff Traceability Number (BTN, position 2). The BTN is a
unique serial number consisting of eight characters that will replace all other serial number systems at
Beckhoff in the long term (e.g. batch designations on IO components, previous serial number range for
safety products, etc.). The BTN will also be introduced step by step, so it may happen that the BTN is not yet
coded in the BIC.
NOTE
This information has been carefully prepared. However, the procedure described is constantly being further
developed. We reserve the right to revise and change procedures and documentation at any time and with-
out prior notice. No claims for changes can be made from the information, illustrations and descriptions in
this information.
The Beckhoff Identification Code (BIC) is applied to the outside of Beckhoff products in a visible place. If
possible, it should also be electronically readable.
Decisive for the electronic readout is the interface via which the product can be electronically addressed.
All Beckhoff EtherCAT devices have a so-called ESI-EEPROM, which contains the EtherCAT identity with
the revision number. Stored in it is the EtherCAT slave information, also colloquially known as ESI/XML
configuration file for the EtherCAT master. See the corresponding chapter in the EtherCAT system manual
(Link) for the relationships.
The eBIC is also stored in the ESI‑EEPROM. The eBIC was introduced into the Beckhoff I/O production
(terminals, boxes) from 2020; widespread implementation is expected in 2021.
The user can electronically access the eBIC (if existent) as follows:
• With all EtherCAT devices, the EtherCAT master (TwinCAT) can read the eBIC from the ESI‑EEPROM
◦ From TwinCAT 3.1 build 4024.11, the eBIC can be displayed in the online view.
◦ To do this,
check the checkbox "Show Beckhoff Identification Code (BIC)" under
EtherCAT → Advanced Settings → Diagnostics:
◦ Note: as can be seen in the illustration, the production data HW version, FW version and
production date, which have been programmed since 2012, can also be displayed with "Show
Production Info".
◦ From TwinCAT 3.1. build 4024.24 the functions FB_EcReadBIC and FB_EcReadBTN for reading
into the PLC and further eBIC auxiliary functions are available in the Tc2_EtherCAT Library from
v3.3.19.0.
• In the case of EtherCAT devices with CoE directory, the object 0x10E2:01 can additionally by used to
display the device's own eBIC; the PLC can also simply access the information here:
◦ The device must be in SAFEOP/OP for access:
◦ the object 0x10E2 will be introduced into stock products in the course of a necessary firmware
revision.
◦ From TwinCAT 3.1. build 4024.24 the functions FB_EcCoEReadBIC and FB_EcCoEReadBTN for
reading into the PLC and further eBIC auxiliary functions are available in the Tc2_EtherCAT
Library from v3.3.19.0.
• Note: in the case of electronic further processing, the BTN is to be handled as a string(8); the identifier
"SBTN" is not part of the BTN.
• Technical background
The new BIC information is additionally written as a category in the ESI‑EEPROM during the device
production. The structure of the ESI content is largely dictated by the ETG specifications, therefore the
additional vendor-specific content is stored with the help of a category according to ETG.2010. ID 03
indicates to all EtherCAT masters that they must not overwrite these data in case of an update or
restore the data after an ESI update.
The structure follows the content of the BIC, see there. This results in a memory requirement of
approx. 50..200 bytes in the EEPROM.
• Special cases
◦ If multiple, hierarchically arranged ESCs are installed in a device, only the top-level ESC carries
the eBIC Information.
◦ If multiple, non-hierarchically arranged ESCs are installed in a device, all ESCs carry the eBIC
Information.
◦ If the device consists of several sub-devices with their own identity, but only the top-level device is
accessible via EtherCAT, the eBIC of the top-level device is located in the CoE object directory
0x10E2:01 and the eBICs of the sub-devices follow in 0x10E2:nn.
Profibus/Profinet/DeviceNet… Devices
2 Product overview
2.1 Introduction
Fig. 4: CU2508
The real-time Ethernet port multiplier allows the connection of eight independent FastEthernet networks
(100 Mbit/s). The CU2508 is connected to the PC via a gigabit uplink.
The PC offers high-performance data transfer to the multiplier, which allocates the data to the relevant
100BASE-TX port based on an analysis of a frame prefix and sends them time-controlled with µs precision.
Received frames are also allocated a prefix including a time stamp and sent to the PC.
With the aid of a driver, users have eight independent ports with full real-time characteristics available. The
CU2508 is used in applications in which several Ethernet ports are required that need to be realized
externally to the PC.
TwinCAT 2.11 supports the CU2508 and avoids the need for further network ports at the PC. For extremely
high demands, an EtherCAT installation can, for example, be distributed or expanded to up to eight strands
in order to multiply the performance. The distributed clocks of the EtherCAT strands are synchronized. An
EtherCAT cable redundancy in conjunction with distributed clocks can also be realized with two ports of the
CU2508.
Quick links
*) Real applicable approvals/markings see type plate on the side (product marking).
2.3 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.
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.
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".
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.
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.
The following aspects must be taken into account in order to be able to estimate temporal effects in
operation modes 1 and 3:
• Depending on the data content, Ethernet frames have a time length of
◦ X1..8 FastEthernet: 7..128 µs, InterFrameGap (IFG) 9.6 µs
◦ X9 Gbit: 0.7..12 µs, IFG 0.96 µs
• The CU2508 has an internal delaying data buffer for each port, due to the different transport speed.
• TwinCAT sends the Gbit frames for X9 serially (one after another) via the GBIT/ESL connection. The
GBit frame lengths can be of a magnitude that is significant in the context of short TwinCAT cycle
times!
• If several tasks are to be processed in TwinCAT, by default TwinCAT processes them serially (one
after the other). As a result, the ESL frames are sent with a corresponding delay.
The "isolated core" setting in the RealTime tasks provides a remedy so that the tasks can be
processed in parallel.
• The EtherCAT frame length must also be taken into account.
Example: An EtherCAT system is installed at ports X1 and X2, each with an EL2202 as output
terminal. The edges are to be measured with an oscilloscope for demonstration purposes. In system
X1 the bit of the respective output terminal used is in a short 7 µs frame, whereas in system X2 it is in a
long 128 µs frame. This alone causes the signal to be output 121 µs later in system X2.
A remedy is provided by DistributedClocks, see above.
(The position of the output data in the EtherCAT frame is usually irrelevant since output data is only
output after the checksum procedure, once the frame has fully passed the output device.)
• Typical delays caused by the management of the CU2508 are as follows
◦ In the downlink
Gbit X9 to FastEthernet X1..4: tFE = 1 µs
Gbit X9 to FastEthernet X5..8: tFE = 1.6 µs
◦ In the uplink
FastEthernet X1..X4 to Gbit X9: tGE = 0.7 µs
FastEthernet X5..X8 to Gbit X9: tGE = 1.1 µs
◦ These delays are therefore relatively insignificant compared to the other factors mentioned above.
What immediately catches the eye, however, is the importance of the frame length and the
required buffering in the uplink.
Each downlink port of the CU2508 can be configured as a separate "EtherCAT device", see chapter
EtherCAT device setup [} 34]. 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).
The frame forwarding in the CU2508 can be subjected to precise time control by the local clock:
• the driver or the user application specifies the downlink port via which the frame is to be sent by the
CU2508 and when.
These data are added by the driver to each frame as additional information.
• each frame received by the CU2508 at a Downlink port is supplemented by receipt information
(receiving port, time) and forwarded to the controller via the uplink.
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.
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".
Applications
The above-described functions permit the use of the CU2508 for the following applications, among others:
• Multi EtherCAT adapter [} 34]
Up to 8 independent EtherCAT systems can be created.
• Synchronized EtherCAT systems [} 34]
If the CU2508 is selected as the ReferenceClock, the EtherCAT systems connected to the CU2508 are
operated with the same synchronized time base.
• EtherCAT cable redundancy [} 39]
2 downlink ports of each CU2508 can be combined into a cable-redundant EtherCAT system. Hence,
fewer Ethernet ports are occupied on the controller; only one Gbit Ethernet port is required for the
uplink. Up to 4 cable-redundant EtherCAT systems are possible. The CU2508 is placed next to the
controller in the control cabinet; I/O cable connections that are in danger of being disconnected are
then fed redundantly out of the control cabinet in the ring closure.
Fig. 10: Use of the CU2508 as an EtherCAT cable redundancy star point
Fig. 11: Use of the CU2508 as an Ethernet multi-protocol handler with EtherCAT and TCP/IP
There are currently still restrictions (TwinCAT 2.11/3.1, FW10) with regard to
• external synchronization of the CU2508
The influence on the internal CU2508 clock is still in preparation.
• Profinet [} 48]
• BACNet
• time stamp-controlled sending/receiving of frames
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...":
2.4 Start
For commissioning
• install the CU2508 as described in the Mounting and wiring [} 22] chapter
• configure the CU2508 in TwinCAT as described in the Commissioning [} 31] chapter
Furthermore, the field devices typical for the application are required on the downlink ports.
3.1 Dimensions
Dimensions without plugs (W x H x D)
• CU2508: approx. 146.5 mm x 100 mm x 38 m
The optimum installation position requires the mounting rail to be installed horizontally and the connection
surfaces of the components to face forward (see Fig. Recommended distances for standard installation
position). “From below” is relative to the acceleration of gravity.
Compliance with the distances shown in Fig. Recommended distances for standard installation position is
recommended.
All other installation positions are characterized by different spatial arrangement of the mounting rail - see
Fig Other installation positions.
The minimum distances to ambient specified above also apply to these installation positions.
Mounting
• Fit the mounting rail to the planned assembly location.
• Suspend the switch on the mounting rail with the spring on the lower side of its latching flange.
• Press the switch upwards (1).
• Press the upper side of the switch (2) against the assembly surface until it latches in the mounting rail.
• Attach the cable.
Removal
• Remove all the cables.
• Press the switch upwards (3).
• Pull the other side of the switch (4) away from the assembly surface.
3.4 Cabling
Power supply
UL requirements
• from an isolated source protected by a fuse of max. 4A (according to UL248) or
• from a voltage supply complying with NEC class 2.
• An NEC class 2 voltage source must not be connected in series or parallel with another NEC
class 2 voltage source! These requirements apply to the supply of all Bus Couplers, power sup-
ply terminals, Bus Terminals and their power contacts.
UL requirements
In order to comply with UL requirements, the EtherCAT components must not be connected to un-
limited voltage sources!
Ethernet
LEDs
Pin assignment
Shielding concept
The PE/shield connection is connected to the metal housing. It should be used as functional earth to protect
from interference.
3.6 UL notice
CAUTION
Application
Beckhoff EtherCAT modules are intended for use with Beckhoff’s UL Listed EtherCAT Sys-
tem only.
CAUTION
Examination
For cULus examination, the Beckhoff I/O System has only been investigated for risk of fire
and electrical shock (in accordance with UL508 and CSA C22.2 No. 142).
CAUTION
For devices with Ethernet connectors
Not for connection to telecommunication circuits.
Basic principles
UL certification according to UL508. Devices with this kind of certification are marked by this sign:
3.7 Disposal
Products marked with a crossed-out wheeled bin shall not be discarded
with the normal waste stream. The device is considered as waste
electrical and electronic equipment. The national regulations for the
disposal of waste electrical and electronic equipment must be observed.
4 Commissioning
Online scanning of the CU2508 is for the time being only possible with EtherCAT systems connected to the
downlink ports. The notes in the EtherCAT port definition [} 34] regarding the ESI XML files must then be
observed.
Setting up
Append a new device in the TwinCAT System Manager with a right click.
Now select the Gbit uplink port used for the CU2508. You can only select ports on which the Beckhoff real-
time driver is installed/activated. <none> can also be selected if the port is to be selected later.
Fig. 25: Selection of the Gbit Ethernet port used on the controller
If the real-time driver is not yet installed, it has to be installed first, e.g. via the System Manager options.
Characteristics that are important for the further operation, e.g. the MAC and the IP addresses of the Gbit
network port are now listed in the adapter characteristics of the MultipleProtocolHandler.
Fig. 27: Adapter data for the Gbit Ethernet port used
Name Explanation
Description Name of the adapter in the operating system (the same on several identical PC systems)
Device Name Unique adapter name (different on several identical PC systems)
MAC Address MAC address of the hardware adapter; not changeable
IP Address IP address of the hardware adapter; changeable via the Windows operating system
"Network Connection" settings
Freerun Cycle The adapter is now operated in ConfigMode with this cycle time, i.e. usually 250 cycles/
sec.
Promiscuous If activated, the Ethernet Frames are copied from the real-time context into the Windows
Mode NDIS layer and can thus be read by Netmon/Wireshark
Virtual Device deactivated:
Names "Device Name" is used by TwinCAT for the identification of the network adapter. Thus a
TwinCAT configuration is not transferable to another PC system without being changed.
activated:
"Description" is used by TwinCAT for the identification of the network adapter. Thus a
TwinCAT configuration is transferable to another PC system without being changed if an
adapter with this name is present there.
The number of necessary ports must be set in the port mask (A). The TCP/IP mode of operation is also to be
set (B); "via EoE" must be set for pure EtherCAT operation. Refer here to the Notes on TCP/IP settings
[} 42]. In each case the ESL protocol must be activated for the CU2508 on this Gbit port (C).
The CU2508 has no separate diagnostic variables, since it is designed to be as transparent an infrastructure
device as possible.
In the following
• individual downlink ports can now be assigned to protocols
• the TCP/IP behavior of the CU2508 can be set
Diagnosis
The TwinCAT System Manager provide several information about the online operation.
Name Explanation
Send Utilization (%) Utilization of the Gbit ESL transmission in transmit direction
R: real-time data, N: non-real-time data
Recv Utilization (%) Utilization of the Gbit ESL transmission in receive direction
R: real-time data, N: non-real-time data
A downlink port of the CU2508 is set up as an EtherCAT device. The correct setup of the CU2508 [} 31]
device is assumed.
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\".
An EtherCAT device can be added by right-clicking on I/O Device - > Append Device.
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.
The CU2508 downlink port appears as an EtherCAT slave and can be scanned or created manually.
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.
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.
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.
The internal clock in the CU2508 works independently and is only managed by the CU2508 driver.
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
[} 42].
If several EtherCAT system EoE devices are used, this increases the settings of the CU2508 EoE switch.
The "TwinCAT cable redundancy" supplement serves to keep the EtherCAT system in operation in the case
of an unforeseen interruption in communication due to cable breakage. The system is single-error tolerant.
This achieved by the ring closure of the EtherCAT system to the controller. If more than 1 error occurs,
slaves drop out of the communication. They are only readmitted after all connections have been restored.
Regarding this, refer to the principle explanations in the EtherCAT system documentation.
The combination of the EtherCAT cable redundancy and Distributed Clocks technologies is possible using
the CU2508.
The EtherCAT configuration must be created on a CU2508 downlink port as described in the chapter "Setup:
Device EtherCAT [} 34]". The resulting topology can be displayed in the Device EtherCAT using the Topology
button; see fig. Display of a simple EtherCAT topology.
The EtherCAT redundancy port is specified in Device -> EtherCAT -> Advanced Settings.
Specification Meaning
Off no EtherCAT cable redundancy
Second Adapter physical adapter/Ethernet port of the controller
Adapter Reference logical adapter such as in the CU2508
Number of ports
A corresponding number of ports must be set to available in the settings for the CU2508 adapter.
After specifying the redundancy adapter, it must be checked whether the System Manager has selected the
correct EtherCAT slave port as the field-side connection point, see fig. Specification of the field-side
redundancy port.
Explanation TCP/IP v4
The Windows operating system manages TCP/IP communication with its Ethernet adapters in the so-called
NDIS network mediation layer. The adapter settings can be accessed via the Windows Control Panel-
>Network Settings or the Windows CE CXconfig tool from Beckhoff.
These circumstances make TCP/IP-supported communication unsuitable for an application with higher real-
time requirements, but very suitable for flexible (variable) connections via many hubs (intermediate stations)
with an arbitrarily high data traffic.
Application CU2508
Two methods are available if TCP/IP frames are to be transmitted via the CU2508 (with no real-time
requirement):
• one port of the CU2508 is defined as a dedicated TCP/IP port [} 43].
Hence, it works for the operating system as an "extension" of the port to which the CU2508 is
connected, with the MAC and IP data of the Gbit port used according to the operating system data.
Under TwinCAT with its integrated CU2508 driver, this port is then connected to the Windows NDIS
mediation layer in the Windows operating system. Real-time traffic is then no longer possible via this
port; the CU2508 works as a transparent frame transporter.
• the CU2508 is generally set to EoE operation [} 43] (Ethernet over EtherCAT), “via EoE”.
Then the integrated virtual EoE switch is activated in the CU2508 system and the connection is
established to the EtherCAT systems connected to the CU2508. In the case of EoE, Ethernet frames
are transported within acyclic EtherCAT telegrams by mailbox procedures, fragmented if necessary in
the case of overlength. The EL6601 or EL6614 can be used as an EtherCAT/Ethernet interface.
The MAC and IP data of the Gbit port used according to operating system data are used for
addressing.
This procedure is usable only for connected EtherCAT circuits.
The setting is made in the Ports tab for the CU2508 and does not change the mode of operation of the
CU2508, but only the handling of TCP/IP Frames in the CU2508 driver.
It is not possible to operate the CU2508 as an independent switch with forwarding rules according to MAC
rules (switch) or IP rules (router).
The specified CU2508 port (100Mbit/FastEthernet) is then connected directly to the Windows network
mediation layer; real-time operation of this port is no longer possible. Free TCP/IP network traffic is then no
longer possible on the other CU2508 ports.
Notes
• The IP and MAC address of the used Gbit port are used for TCP/IP communication. Address area/
subnet mask must therefore correspond to the addressed devices.
In the example in fig. Declaration of a CU2508 downlink port as a TCP/IP port, the address area is
under the IP mask 255.255.0.0; therefore, all devices must have an IP address from the area
192.168.x.x.
• These settings are changed via the Windows Control Panel -> Network Settings for the adapter. The
CXconfig tool must be used under Windows CE.
• The CU2508 works transparently; all procedures for the address assignment (DHCP, BootP,…) can be
used.
• The throughput depends on the extent of utilization of the downlink port and the Windows network
mediation layer.
EoE settings
The virtual EoE switch of the CU2508 driver is tied into the CU2508 Ethernet adapter and accessible in the
Switch tab of the RT Ethernet adapter. The VirtualEthernetSwitch is activated automatically if devices that
use Ethernet-over-EtherCAT are used in the lower-level EtherCAT systems - the numbers of max. frames
and ports are adapted accordingly.
Notes
• The IP address of the used Gbit adapter and the subnet mask is used for communication. The EoE
devices (printer, scanner, remote PC etc.) must therefore have their address within this area.
• The throughput depends among other things on the EtherCAT cycle time, the number EoE devices and
the extent of utilization of the individual connections. Attention must be paid to the notes regarding this
in the documentation for the EoE devices.
• The EoE system can be connected to the NDIS layer via the switch "Connect to TCP/IP Stack" (fig.
Flow of data when using the CU2508 as an EoE switch, A).
• IP routing is a function inherent to the operating system for the mediation of IP telegrams even
between networks that do not lie in the same subnet. Thus, for example, between the devices
192.168.1.1 and 172.168.1.1, which each lie in the mask 255.255.0.0.
This function is activated with "IP Enable Router" (fig. Flow of data when using the CU2508 as an EoE
switch, B). It is also available under Windows CE (CXconfig tools).
Fig. 48: Flow of data when using the CU2508 as an EoE switch
The switch settings for the EoE mediation are accessible in the System Manager, see fig. EoE switch
settings. The limit values are adapted automatically to the types and numbers of the devices during the
creation of the configuration.
Name Explanation
Max. Ports Number of ports of the virtual switch. Each EoE device (e.g. EL6601, AX5000) in the lower-level EtherCAT systems oc-
cupies one port.
Max Frames Max. number of temporarily stored Ethernet frames. Can be increased if there are noticeable throughput bottlenecks.
Max MAC Ids MAC addresses of the connected devices stored in the internal Switch-Look-Up table. Must be larger than the maximum
number of Ethernet devices ever connected to all systems.
Connect to Connects the EoE switch to the internal Windows NDIS network layer
TCP/IP Stack IP range must thereby correspond
IP Enable This function is provided by the Windows operating system and is accessible via the registry or, in the case of embed-
Router ded CX systems under Windows CE/WEC, via the CX-config tool.
If activated, the NDIS network layer also mediates IP packets whose IP addresses do not correspond to the subnet
mask .
If not all devices are offered, the target platform can be selected via TargetType.
Not an actual port of the PC, but rather a virtual adapter of the CU2508 is then merely selected as the
Ethernet adapter for the CU2508.
The number of available ports (in this case 4) depends on the settings of the CU2508 device (see there).
Subsequently the required Ethernet couplers/boxes/drives can be manually added or scanned. Before a
scan TwinCAT should be restarted once in the Config/FreeRun mode.
Not an actual port of the PC, but rather a virtual adapter of the CU2508 is then merely selected as the
Ethernet adapter for the CU2508.
The number of available ports (in this case 7) depends on the settings of the CU2508 device (see there).
Subsequently the required Ethernet couplers/boxes/drives can be manually added or scanned. Before a
scan TwinCAT should be restarted once in the Config/FreeRun mode.
Availability
This function can be used from TwinCAT 2.11R3 build 2234.
Enable the lower setting under the Ports tab (radio button "EtherCAT Switch Link Protocol"); all other settings
should be left at default.
Once the CU2508 has been activated as Multiple Protocol Handler in the system and the relevant ports have
been enabled, you can select an "Adapter Referent" under the "Adapter" tab for the Controller or the Device.
Enter the port through which you want to operate PROFINET.
No other special considerations are required for the CU2508; you can proceed as usual.
4.3.1 Introduction
Network variables are any variables that are cyclically exchanged between PC/CX1000 via TwinCAT.
Variables with any data types, including complex types, can be exchanged. The Publisher/Subscriber model
is used. For highly deterministic communication, the real-time Ethernet driver for TwinCAT must be installed.
Publisher/Subscriber model
In the Publisher/Subscriber model, the Publisher makes variables available. Subscribers can subscribe to a
variable. The Publisher can make the variable available to a Subscriber, several Subscribers or all
Subscribers. In Broadcast mode the variable is made available to all PCs, in Multicast mode to selected PCs
and in Unicast mode only to one selected PC. A Subscriber can also be Publisher at the same time. In this
way, a bidirectional data link can be provided.
Unicast
The Publisher makes the network variable available to a single selected PC.
Multicast
Broadcast
Network variables can then be added under the box. Enter a name (nCounterPub in the example) and a data
type (UINT32 in the example, corresponding to UDINT).
Fig. 63: Displaying the inputs and outputs of the added Publisher box
The FrameState input under the box indicates the current status of the sent Ethernet frames.
A Control Word can be written in the FrameCtrl output under the box.
The VarState input under the network variable indicates the current status of the network variable.
A Control Word can be written in the VarCtrl output under the network variable.
Mappings
The network variable of the Publisher can be mapped to any output variable with a suitable data type. In the
example, the network variable is linked to the output variable of a PLC.
Fig. 64: Mapping of the network variable with an output variable of the PLC
Fig. 66: "Insert Box" dialog - selecting and naming the Subscriber box (Box1)
Fig. 67: Creating the network variable under the Subscriber box
The link to a Publisher variable can be created automatically. First, you need to find the Publisher computer.
All variables of this Publisher are then shown in a list.
The FrameState input and the FrameCtrl output under the box indicate the current status (or control) of the
received Ethernet frames. FrameState and FrameCtrl are reserved and are currently not supported.
The VarState input and the VarCtrl output under the network variable indicate the current status (or control)
of the received network variable. VarState and VarCtrl are reserved and are currently not supported.
The quality of a network variable is assessed on the Subscriber side. Two input variables are available for
this purpose under the network variable. The Quality variable provides a counter with a resolution of 100 µs.
The counter value indicates the variable delay. The example below shows the online value of Quality when
the network connector is unplugged (counter increases) and reconnected (counter value 0).
Fig. 71: Online value of Quality after unplugging and reconnecting of the network connector.
In addition to the Quality variables, the CycleIndex variable is incremented in each Publisher cycle.
The telegram with the process data arrives at the recipient device (network port) via these addressing
modes. In the Ethernet device/TwinCAT several transported process data are allocated via a variable ID
All network variables must be declared in the System Manager before they can be used.
Diagnostic variables on the publisher and subscriber side provide information about the connection quality.
If network variables are used, the temporal boundary conditions for the network topology used must be taken
into account: In switched mode (MAC addressing) communication cycles of approx. 10 ms and below can be
achieved, in routed mode (IP addressing) a few 100 ms may be achievable in some cases.
Note:
The reason for determining the delay so precisely is that the NWVs are managed directly by the IO
driver, independent of the cycle. Nevertheless, the data of an NWV that is delayed by a few percent of
the cycle time will not be taken into account until the input process image is read during the next task
cycle.
• Variable ID
The variable ID (16 bit) is used for global identification of the individual process data. Therefore, an ID
in the Publisher or Subscriber group may only be used once within a TwinCAT device, see Fig.
Example for communication via network variables: Publishers 1 and 2 on PC1 must have different IDs
(10 and 8), although the same ID (8) may be used in Publisher 2 and Subscriber 1.
• Cycle Index
The 16-bit cycle index is a counter sent by the Publisher together with the data. It is generally
incremented with each transmission and can therefore be used as an indicator for flawless transfer. It
can be read on the subscriber side as CycleIndex. Its appearance depends on the Publisher platform:
◦ Publisher on a PC: The variable CycleIndex is not visible and is automatically and cyclically
incremented by the System Manager
◦ Publisher on an EL66xx: The variable CycleIndex is visible and must be incremented/served by
the user such that it is not equal 0 on the subscriber side.
The following settings options are available in the Beckhoff System Manager TwinCAT 2.10 build 1328:
Publisher, Box
RT Ethernet settings:
• MAC-Broadcast: Sent to all network devices, destination MAC FF:FF:FF:FF:FF:FF.
• Multicast: A destination MAC address becomes a multicast address if the first bit in the first byte of the
MAC (the so-called group bit) is set. With the Beckhoff ID "00 01 05" the default target address "01 01
05 04 00 00" is formed, as shown in Fig. Publisher RT Ethernet settings.
The MAC range 01:00:5E:00:00:00 to 01:00:5E:FF:FF:FF is intended for general multicast application,
with the first 3 bytes specified by the IEEE and the last 3 bytes derived from the lower part of the IP
address of the destination PC. The resulting destination MAC therefore never physically exists in the
network. Instead, the destination network card detects Ethernet frames formed in this way as multicast
frames sent to it, although the Ethernet port itself can have another, unique MAC address. Please refer
to the relevant literature for further rules relating to the formation of multicast MAC/IP addresses.
• Unicast: Either direct entry of the destination MAC or via the AMS Net ID of the destination device, e.g.
123.456.123.456.1.1, in which case this route must be entered in the local AMS router (right-click on
the TwinCAT icon in the taskbar --> Properties --> AMS router)
Advanced Settings:
• Data exchange: The task cycle time * divider is the rhythm at which this network variable is sent. (not
for EL66xx)
• VLAN support: In conjunction with manageable switches the Ethernet frame parameterized here can
be assigned a fixed route via VLAN tagging (Virtual Local Area Network).
UDP/IP settings - the addressing technique of the IP network layer with IP addresses is used. UDP is a
connection-less protocol without feedback.
• Broadcast: Sent to all device with destination IP (v4) 255.255.255.255
• Multicast: The destination IP must be specified, see notes on MAC multicast
• Unicast: Specify the target device (e.g.: 192.168.0.1), making sure that it can be reached through the
subnet mask
Advanced Settings:
• "ARP Retry Interval": In order to ascertain the presence of the recipient, the publisher sends an ARP
request to the target device at these intervals. If the network administration of the recipient is
operational, it sends an ARP reply. This is only meaningful with unicast.
In the event of an error bit 3 is set (0x0004) in the diagnostic FrameState variable.
Note: ARP handling (ARP = Address Resolution Protocol: allocation of hardware/MAC addresses to
network addresses [IP]) is managed by the operating system (Windows).
• "Disable Subscriber Monitoring": Deactivates the procedure described above
• "Target Address changeable": In this case the destination IP can be changed dynamically
Publisher, Variable
Settings:
• "Variable ID": Identification number with which the variable is sent. Can be changed online via PLC
where appropriate
• "Data exchange": see above (not for EL66xx)
• "On change only": NWV is only sent if the value changes (not for EL66xx)
Subscriber, Box
Settings:
• "Receiving Options": Only permits NWVs from a certain publisher for this subscriber
• "Multicast Configuration": ditto
Process data:
• "VarId": If activated, the variable ID can be modified online
Subscriber, variable
Settings:
• "Variable ID": Only permits NWVs with a certain ID for this subscriber. Can be changed dynamically via
PLC where appropriate
• "Ignore Data Type Hash": Hash calculation is currently not supported
Process data:
• "Quality": See explanatory notes above
• "CycleIndex": This index is incremented with each successful transfer, IF this is done by the opposite
side, i.e. the publisher. If the publisher is an EL66x, the user must increment CycleIdx there.
• "VarData": Transferred data
5 Appendix
The ESL data consist of 16 bytes of control data and information, which are added as a prefix (in front) or as
a postfix (to the end) of an existing Ethernet data frame. The check sum (CRC) is adapted accordingly.
The freely available network monitor Wireshark has contained an interpreter for the ESL protocol since the
version 1.4.2.
The CU2508 must be operated in a special configuration for the determination of the current firmware
version and for updating. It must therefore be removed from the application and is to be operated as an
individual EtherCAT device on a TwinCAT system.
1. TwinCAT
On the PC system used for programming, TwinCAT must have at least version 2.11R2 build 2021 or
TwinCAT 3.1.
2. ESI/XML description
The current CU2508 ESI/XML data must be present on the system; they can be downloaded from the
download area on the Beckhoff web page and are to be saved under …"\ TwinCAT\Io\EtherCAT\".
Connect the CU2508 with its uplink to an Ethernet port on the master PC and connect the power supply. The
port must be set up as a real-time port with the Beckhoff TwinCAT driver. The downports X1..8 must not be
connected.
The CU2508 must now be added manually as an EtherCAT device. To do this, set up an EtherCAT device
and specify the adapter to be used.
Instruction TwinCAT 2:
Open a new System Manager window. This causes the ESI data updated above to be read in again.
If the adapter you want is not visible, then the Beckhoff real-time driver is not yet installed on this adapter.
If the device name is entered in the search mask (A) the overview is reduced in size. Activate the check
boxes "ExtendedInformation" and "ShowHiddenDevices". As a result of this, a previously hidden element,
the CU2508 configuration port, becomes visible (in this case: CU2508-0000-0016).
Select this device. The configuration now consists of the “EtherCAT Device” and the single slave CU2508.
Now ensure that the function is correct by restarting TwinCAT (B) in ConfigMode and carrying out
ReloadIoDevices (press key F4). If the EtherCAT device is selected (A), the current State OP (D) and Traffic
utilization (E) are displayed in the Online tab (C). Approx. 250 CyclicFrames per second are usual in the
ConfigMode with a 4 ms cycle time; no lost frames or TXRXErrors may occur.
Instruction TwinCAT 3:
The procedure is the same as for TwinCAT 2: add the "CU2508 Configuration Port" to the selected
EtherCAT adapter.
On the basis of fig. Online configuration, EtherCAT ESI revision, controller and FPGA-FW can now be
checked.
ESI Revision
When the system is running in ConfigMode, the revision found can be displayed by scan:
Select device CU2508 (A); the online CoE directory of the device is displayed in the CoE-Online tab (B); the
firmware version (in this case 01) is displayed in the index 0x100A (D). Note that in (C) “OnlineData” (green)
is displayed.
Select device CU2508 (A); press Advanced Settings ... (C) in the EtherCAT tab (B). There, select Memory
(D) and read out the data starting from StartOffset 0E00 (E).
If the function is correct, the firmware version (here: 12) can be read at position x0E00 (F) and 2508dec at
position x0E06.
On the basis of fig. Online configuration, if communication is working perfectly, an update of ESI, controller
and FPGA firmware can be performed by right-clicking on the CU2508 device.
ESI/XML- update
The ESI *.xml can also be overwritten by "EEPROM Update". Then select and program the corresponding
XML revision of the "CU2508 Configuration Port".
FW Update
FPGA update
The FPGA firmware is loaded by right clicking, this can take a few seconds.
Note
• It is recommended to use the newest possible firmware for the respective hardware
• Beckhoff is not under any obligation to provide customers with free firmware updates for delivered
products.
NOTE
Risk of damage to the device!
Pay attention to the instructions for firmware updates on the separate page [} 66].
If a device is placed in BOOTSTRAP mode for a firmware update, it does not check when downloading
whether the new firmware is suitable.
This can result in damage to the device!
Therefore, always make sure that the firmware is suitable for the hardware version!
CU2508
Hardware (HW) Firmware (FW) Revision no. Date
00 - 09* 01 CU2508-0000-0016 2011/01
02 CU2508-0000-0017 2011/03
03 2012/05
04 2013/01
05 2013/01
06 2014/10
07 CU2508-0000-0018 2015/08
08 2016/02
09 2016/06
10 2017/05
11 2019/08
12 CU2508-0000-0019 2019/10
13* 2021/07
*) This is the current compatible hardware version at the time of the preparing this documentation. Check on
the Beckhoff web page whether more up-to-date documentation is available.
Please contact your Beckhoff branch office or representative for local support and service on Beckhoff
products!
The addresses of Beckhoff's branch offices and representatives round the world can be found on her internet
pages: https://www.beckhoff.com
You will also find further documentation for Beckhoff components there.
Beckhoff Support
Support offers you comprehensive technical assistance, helping you not only with the application of
individual Beckhoff products, but also with other, wide-ranging services:
• support
• design, programming and commissioning of complex automation systems
• and extensive training program for Beckhoff system components
Hotline: +49 5246 963 157
Fax: +49 5246 963 9157
e-mail: support@beckhoff.com
Beckhoff Service
The Beckhoff Service Center supports you in all matters of after-sales service:
• on-site service
• repair service
• spare parts service
• hotline service
Hotline: +49 5246 963 460
Fax: +49 5246 963 479
e-mail: service@beckhoff.com
Beckhoff Headquarters
Huelshorstweg 20
33415 Verl
Germany
Phone: +49 5246 963 0
Fax: +49 5246 963 198
e-mail: info@beckhoff.com
web: https://www.beckhoff.com