Beckhoff EL6601, EL6614 Documentation

Documentation
EL6601, EL6614
Switch Terminals for Ethernet
Version: Date:
4.2 2019-05-03

Table of contents

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
2 Product overview.....................................................................................................................................12
2.1 Introduction......................................................................................................................................12
2.2 Technical data .................................................................................................................................14
2.3 Basic function principles ..................................................................................................................14
2.4 EL66xx - Non Realtime....................................................................................................................17
2.5 EL66xx and Beckhoff network variables..........................................................................................22
2.5.1 Explanation network variables ......................................................................................... 22
2.5.2 Settings in the System Manager...................................................................................... 24
2.5.3 Notes ............................................................................................................................... 25
2.5.4 Suppress publisher .......................................................................................................... 25
2.5.5 Filter subscribers ............................................................................................................. 26
2.5.6 Setting up TwinCAT 2.10................................................................................................. 26
2.5.7 Setting up TwinCAT 2.11................................................................................................. 29
2.6 Configuration in the CX20x0 & CX50x0 system ..............................................................................30
3 Basics communication ...........................................................................................................................33
3.1 EtherCAT basics..............................................................................................................................33
3.2 EtherCAT cabling – wire-bound.......................................................................................................33
3.3 General notes for setting the watchdog...........................................................................................34
3.4 EtherCAT State Machine.................................................................................................................36
3.5 CoE Interface...................................................................................................................................38
3.6 Distributed Clock .............................................................................................................................43
4 Mounting and wiring................................................................................................................................44
4.1 Recommended mounting rails.........................................................................................................44
4.2 Mounting and demounting - terminals with front unlocking .............................................................44
4.3 Positioning of passive Terminals .....................................................................................................45
4.4 Installation positions ........................................................................................................................46
4.5 ATEX - Special conditions (extended temperature range) ..............................................................48
4.6 ATEX Documentation ......................................................................................................................49
5 Commissioning........................................................................................................................................50
5.1 TwinCAT Development Environment ..............................................................................................50
5.1.1 Installation of the TwinCAT real-time driver..................................................................... 50
5.1.2 Notes regarding ESI device description........................................................................... 56
5.1.3 OFFLINE configuration creation ...................................................................................... 60
5.1.4 ONLINE configuration creation ........................................................................................ 65
5.1.5 EtherCAT subscriber configuration.................................................................................. 73
5.2 General Notes - EtherCAT Slave Application..................................................................................82
5.3 Object description and parameterization .........................................................................................90
5.3.1 Objects for commissioning............................................................................................... 90
Table of contents
5.3.2 Objects for regular operation ........................................................................................... 91
5.3.3 Standard objects (0x1000-0x1FFF) ................................................................................. 91
5.3.4 Profile-specific objects (0x6000-0xFFFF) ........................................................................ 94
5.4 Beckhoff network variables..............................................................................................................97
5.4.1 Introduction ...................................................................................................................... 97
5.4.2 Configuration of the Publisher ......................................................................................... 98
5.4.3 Configuration of the Subscriber ..................................................................................... 101
5.4.4 Beckhoff network variables - Settings............................................................................ 105
6 Application samples..............................................................................................................................113
6.1 Sample programs ..........................................................................................................................113
6.2 Application sample - network printer .............................................................................................114
6.3 Application sample - Service interface with remote desktop .........................................................119
6.4 Application sample - Lower-level control system...........................................................................129
6.5 Application sample – setting up an EtherCAT Master PC as a network bridge.............................134
6.6 Application sample - Flexible Ethernet Port...................................................................................139
7 Appendix ................................................................................................................................................144
7.1 UL notice .......................................................................................................................................144
7.2 Firmware compatibility...................................................................................................................145
7.3 Firmware Update EL/ES/EM/ELM/EPxxxx ....................................................................................146
7.3.1 Device description ESI file/XML..................................................................................... 147
7.3.2 Firmware explanation .................................................................................................... 150
7.3.3 Updating controller firmware *.efw................................................................................. 151
7.3.4 FPGA firmware *.rbf....................................................................................................... 152
7.3.5 Simultaneous updating of several EtherCAT devices.................................................... 156
7.4 Restoring the delivery state ...........................................................................................................157
7.5 Support and Service ......................................................................................................................158
EL6601, EL66144 Version: 4.2
Foreword

1 Foreword

1.1 Notes on the documentation

Intended audience
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®, EtherCAT®, EtherCATP®, SafetyoverEtherCAT®, TwinSAFE®, XFC® and XTS® 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, DE102004044764, DE102007017835 with corresponding applications or registrations in various other countries.
The TwinCAT Technology is covered, including but not limited to the following patent applications and patents: EP0851348, US6167425 with corresponding applications or registrations in various other countries.
EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany.
Copyright
© Beckhoff Automation GmbH & Co. KG, Germany. The reproduction, distribution and utilization of this document as well as the communication of its contents to others without express authorization are prohibited. Offenders will be held liable for the payment of damages. All rights reserved in the event of the grant of a patent, utility model or design.
Foreword

1.2 Safety instructions

Safety regulations
Please note the following safety instructions and explanations! Product-specific safety instructions can be found on following pages or in the areas mounting, wiring, commissioning etc.
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
In this documentation the following instructions are used. These instructions must be read carefully and followed without fail!
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.
EL6601, EL66146 Version: 4.2
Foreword

1.3 Documentation issue status

Version Comment
4.2 - Update chapter “Object description”
- Update structure
- Revision status updated
4.1 - Note in chapter “address assignment” added
- Update structure
- Revision status updated
4.0 - Migration
- Update structure
- Revision status updated
3.4 - Update structure
- “Technical data” section updated
- Revision status updated
3.3 - Update structure
- “Technical data” section updated
- Chapter “Introduction” updated
- Chapter "Configuration on the CX20x0 & CX50x0 System" inserted
- Revision status updated
3.2 - Update structure
- “Technical data” section updated
- Chapter "EtherCAT-PC as Network Bridge" updated
- Revision status updated
3.1 - Update structure
- “Technical data” section updated
- Update chapter "Mounting and wiring"
3.0 - Notes on cable redundancy added
2.9 - Notes Subscriber filter, diagnostic data added
2.8 - Technical notes added
2.7 - Technical notes added
2.6 - Technical notes added
2.5 - Chapter Firmware updated
2.4 - Technical notes network variables added
2.3 - Application sample added
2.2 - Technical notes added
2.1 - Technical notes (Subscriber, Publisher) added
2.0 - Technical notes and CoE objects added
1.9 - Note on installation position added
1.8 - Technical notes added
1.7 - Technical notes network variables added
1.6 - LED and port description added
1.5 - EL6614 added
1.4 - Application sample added
1.3 - Technical data added (object description)
1.2 - Technical data completed, explanations on mailbox communication and network variables added
1.1 - Technical data added, UL labelling added
1.0 - Technical data added, first public issue
0.1 - Preliminary documentation for EL6601
Foreword

1.4 Version identification of EtherCAT devices

Designation
A Beckhoff EtherCAT device has a 14-digit designation, made up of
• family key
• type
• version
• revision
Example Family Type Version Revision
EL3314-0000-0016 EL terminal
(12 mm, non­pluggable connection level)
ES3602-0010-0017 ES terminal
(12 mm, pluggable connection level)
CU2008-0000-0000 CU device 2008 (8-port fast ethernet switch) 0000 (basic type) 0000
3314 (4-channel thermocouple terminal)
3602 (2-channel voltage measurement)
0000 (basic type) 0016
0010 (high­precision version)
0017
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.
Identification number
Beckhoff EtherCAT devices from the different lines have different kinds of identification numbers:
Production lot/batch number/serial number/date code/D number
The serial number for Beckhoff IO devices is usually the 8-digit number printed on the device or on a sticker. The serial number indicates the configuration in delivery state and therefore refers to a whole production batch, without distinguishing the individual modules of a batch.
Structure of the serial number: KKYYFFHH
KK - week of production (CW, calendar week) YY - year of production FF - firmware version HH - hardware version
EL6601, EL66148 Version: 4.2
Foreword
Example with Ser. no.: 12063A02: 12 - production week 12 06 - production year 2006 3A - firmware version 3A 02 ­hardware version 02
Exceptions can occur in the IP67 area, where the following syntax can be used (see respective device documentation):
Syntax: D ww yy x y z u
D - prefix designation ww - calendar week yy - year x - firmware version of the bus PCB y - hardware version of the bus PCB z - firmware version of the I/O PCB u - hardware version of the I/O PCB
Example: D.22081501 calendar week 22 of the year 2008 firmware version of bus PCB: 1 hardware version of bus PCB: 5 firmware version of I/O PCB: 0 (no firmware necessary for this PCB) hardware version of I/O PCB: 1
Unique serial number/ID, ID number
In addition, in some series each individual module has its own unique serial number.
See also the further documentation in the area
• IP67: EtherCAT Box
• Safety: TwinSafe
• Terminals with factory calibration certificate and other measuring terminals
Examples of markings
Fig.1: EL5021 EL terminal, standard IP20 IO device with serial/ batch number and revision ID (since 2014/01)
Foreword
Fig.2: EK1100 EtherCAT coupler, standard IP20 IO device with serial/ batch number
Fig.3: CU2016 switch with serial/ batch number
Fig.4: EL3202-0020 with serial/ batch number 26131006 and unique ID-number 204418
EL6601, EL661410 Version: 4.2
Foreword
Fig.5: EP1258-00001 IP67 EtherCAT Box with batch number/ date code 22090101 and unique serial number 158102
Fig.6: EP1908-0002 IP67 EtherCAT Safety Box with batch number/ date code 071201FF and unique serial number 00346070
Fig.7: EL2904 IP20 safety terminal with batch number/ date code 50110302 and unique serial number 00331701
Fig.8: ELM3604-0002 terminal with unique ID number (QR code) 100001051 and serial/ batch number 44160201
Product overview

2 Product overview

2.1 Introduction

Fig.9: EL6601, EL6614
Switch terminals for Ethernet
The switch terminals for Ethernet are used for decentralized connection of random Ethernet devices to the EtherCAT terminal network. The EtherCAT system relays the Ethernet communication of the connected devices fully transparent and collision-free.
The 4 port Ethernet switch terminal EL6614 purposefully forwards the incoming frames from the ports to the destination ports. In full duplex mode, it thus enables collision-free communication of the connected devices with each other.
Any number of EL6601/EL6614 can be used simultaneously and at any position in the EtherCAT terminal network. No configuration is required. In conjunction with the network port at the EtherCAT master the EL6601/EL6614 devices operate like a virtual switch whose ports are distributed in the field. The EtherCAT fieldbus is the backbone of this switch.
EL6601, EL661412 Version: 4.2
Product overview
Fig.10: EL6601 as a virtual, field-distributed switch
Further benefits underline the particular suitability for the application in industrial environments:
• Compact design in EtherCAT terminal housing
• 10/100 MBaud, half or full duplex, with automatic baud rate detection
• Autocrossing (automatic detection of crossed lines)
LEDs
LED Color Meaning
RUN green These LEDs indicate the terminal's operating state:
off
flashing State of the EtherCAT State Machine: PREOP = function for mailbox
single flash State of the EtherCAT State Machine: SAFEOP = verification of the
on State of the EtherCAT State Machine: OP = normal operating state;
Link/Act green Connection / data exchange field bus
*Link/Act X1 -X4green Connection / data exchange Ethernet port X1- X4
State of the EtherCAT State Machine [}73]: INIT = initialization of the terminal or BOOTSTRAP = function for firmware updates [}146]
of the terminal
communication and different standard-settings set
Sync Manager [}74] channels and the distributed clocks. Outputs remain in safe state
mailbox and process data communication is possible
Eth Err red
* only EL6614
Connections
1 x RJ45 with 10BASE-T/100BASE-TX Ethernet (EL6601) 4 x RJ45 with 10BASE-T/100BASE-TX Ethernet (EL6614)
Error message EtherCAT (see Diagnostics [}16])
Product overview

2.2 Technical data

Technical data EL6601 EL6614
Bus system all Ethernet (IEEE 802.3) based protocols
Number of Ethernet ports 1 4
Ethernet interface 10BASE-T/100BASE-TX
Ethernet with 1 x RJ45
Cable length up to 100 m twisted pair
Data transfer rate 10/100 Mbit/s, IEEE 802.3u Auto negotiation, half or full duplex at 10
and 100 Mbit/s possible, automatic settings
Network variables EL6601 as of Firmware 07, EL6614 as of Firmware 03:
max 32 Publishers with total of max. 1024 bytes total data [}22] max 32 Subscriber with total of max. 1024 bytes total data [}22]
Distributed Clocks no
Diagnostics Status-LEDs, CoE data about ADS
Power supply via the E-bus
Current consumption via E-bus typ. 310 mA typ. 450 mA
Electrical isolation 500 V (E-Bus/Ethernet)
Bit width in process image -
Configuration TwinCAT System Manager/EtherCAT Master
Weight approx. 75 g approx. 85 g
Permissible ambient temperature range during operation
-25°C ... +60°C (extended temperature range)
10BASE-T/100BASE-TX Ethernet with 4 x RJ45
Horizontal installation position:
-25°C ... +60°C (extended temperature range)
all other installation positions:
-25°C ... + 45°C, see note [}46]
Permissible ambient temperature range during storage
Permissible relative humidity 95%, no condensation
Dimensions (W x H x D) approx. 26 mm x 100 mm x 52 mm (width aligned: 23 mm)
Mounting on 35 mm mounting rail conforms to EN 60715
Vibration/shock resistance conforms to EN 60068-2-6 / EN 60068-2-27
EMC immunity/emission conforms to EN 61000-6-2 / EN 61000-6-4
Protection class IP20
Installation position variable
Approval CE
-40°C ... +85°C -40°C ... +85°C
see note [}46]
cULus [}144] ATEX [}48]

2.3 Basic function principles

The EL66xx Ethernet Switchport terminals have 2 different operating modes, ideal for the tasks required for Ethernet connectivity. The two operating modes, which can be active simultaneously, provide both the real­time-critical transmission and reception of configured network variables as well as the transport of standard Ethernet traffic, which, while it is not real-time-critical, does involve large data flows using, for instance, the IP protocol:
EL6601, EL661414 Version: 4.2
Product overview
Real-time data exchange: Publisher/subscriber, Beckhoff network variables, EtherCAT Automation Protocol The TwinCAT configuration file *.tsm configures an EL66xx when EtherCAT starts up with CoE parameters in such a way that it
◦ transmits, as the publisher, data delivered through the cyclical data transfer in the real-time cycle.
◦ transmits subscribers received in the same way to the EtherCAT Master over the cyclical
EtherCAT data exchange. Cyclical data exchange with the EL66xx is configured in the PDO settings of the EL66xx when EtherCAT starts up, and cannot be changed online.
Non-real-time data exchange In parallel with this, the EL66xx can transfer Ethernet frames through the acyclic mailbox exchange (EoE = Ethernet over EtherCAT) between the terminal and the EtherCAT Master/TwinCAT. This data exchange is optimized for throughput, and may involve automatic fragmentation - by default, all telegrams that are not transferred in the PDO context are transported through the acyclic channel by means of EoE.
The flow of data in the EL66xx can be represented schematically as follows:
Fig.11: EL66xx data diagram
The EL6601/EL6614 cannot transport an EtherNet Industrial Protocol (EtherNet/IP).
Product overview
Diagnostics
Online diagnostics
The following objects are available for initial diagnostic in the CoE directory:
• 0xFA01, subindex 01: Frame Counter Rx (incoming to RJ45 socket).
• 0xFA01, subindex 02: Frame Counter Tx (outgoing from RJ45 socket).
The values can be read from the controller using PLC function blocks (FB_EcCoeSdoRead in TcEtherCAT.lib).
This and further diagnostic information from the CoE of the EL66xx are accessible via https://
infosys.beckhoff.com/content/1033/el6601_el6614/Resources/zip/2349552907.zip .
Error LED
The red Error LED lights up 250 ms in the event of
• Ethernet Receive Overrun --> in general, more Ethernet frames are received at the RJ45 connection than can be transported away via EtherCAT (PDO or mailbox). The telegrams are discarded.
• Ethernet EoE Overrun --> more non-real-time frames are being received at the RJ45 connector than can be transported away by EtherCAT/EoE The data are discarded.
• Ethernet Frame Error
If the occurrence of an overrun causes data to be lost, higher protocol layers in an Ethernet network are responsible for repeating the transmission.
Overruns
The following measures can be used to counter overruns:
• activating the Subscriber Filter [}22] in the EL66xx concerned
• Increasing/decelerating the cycle time of the publisher
• Suppressing temporarily publisher transmission or modulo in the System Manager
• Reducing/accelerating the EtherCAT cycle time of the subscriber, so that more data are fetched by the EL66xx
Cable redundancy
If the EL66xx is operated in a system with cable redundancy, please keep the following in mind:
• real-time operation with network variables is possible
• in the event of non-real-time operation with IP transfer the IP traffic is routed via the primary EtherCAT port. Therefore the Windows IP settings of this port are also used.
Fig.12: IP settings EtherCAT port
If there is no longer a link to this port, from Windows under TwinCAT 2 or 3 there is also no IP communication to this port currently. For this reason, do not let the Ethernet connection between the primary EtherCAT port and the first EtherCAT slave fail, since otherwise IP communication is no longer possible via the EL66xx.
EL6601, EL661416 Version: 4.2
Product overview
Fig.13: Connection failure between primary EtherCAT port and 1st slave (X)

2.4 EL66xx - Non Realtime

EL66xx and Ethernet transport via mailbox communication
In addition to regular cyclical process data exchange an EtherCAT master offers a further mechanism for transporting data to an EtherCAT slave or reading data from it. This mechanism is used for one-time or dynamically alternating Data Exchange, such as e.g. the parameterization of an EtherCAT slave. Mailbox communication can also be used for transporting large data blocks acyclically on request from master or slave. This additional communication takes place between the cyclical process data frames (the conventional EtherCAT frames) on the EtherCAT bus.
Data throughput in mailbox communication
Since mailbox communication can only take place between the regular process data frames, data throughput with this communication method depends on the load of the EtherCAT bus. This means that the Ethernet throughput of the EL6601 also depends on the load of the underlying EtherCAT fieldbus.
The EoE method (Ethernet over EtherCAT) is used for the EL66xx. Dedicated settings are available for this in the System Manager.
Data throughput
The data throughput of the EL66xx in Ethernet frames or bytes/second depends on
• The EtherCAT cycle time on the fieldbus: The shorter the EtherCAT cycle used for the process data, the more acyclical mailbox queries can be completed. If several different EtherCAT cycle times are used in an EtherCAT strand the fastest cycle time is the relevant time
• The time between the process data frames that is available for mailbox communication: The longer the Ethernet line is free for acyclical mailbox communication, the higher the Ethernet data throughput of the EL6601.
• The mailbox size [}19] in bytes: The larger the mailbox, the more Ethernet frames the EL6601 can send to the EtherCAT master or received from it simultaneously.
• The number of terminals in the EtherCAT system that use mailbox communication at the same time.
• The EoE settings [}21] in the TwinCAT System Manager, see the EoE section.
The following values were determined as samples (TwinCAT 2.10, 2.11)
• > 5 Mbit/s from the EL6601 to the Ethernet device
• > 2 Mbit/s from the Ethernet device to the EL6601
with an EtherCAT cycle time of 100 µs and a mailbox size of 1024 bytes.
Product overview
Tips for shortening the response times
We recommend the following procedure to shorten the response times in your application (e.g. to ping requests): Significantly lower the EtherCAT cycle time currently being used or insert a new task with a lower cycle time, e.g.: 500µs if up to this point you have been using 2.5ms EtherCAT cycle. Important: This task must access genuine IO process data from the EtherCAT slaves and be recog­nizable under Device EtherCAT -> Tab EtherCAT, see Fig. Real frame structure from the TwinCAT
System Manager
Fig.14: Real frame structure from the TwinCAT System Manager
Note regarding the specified values
These values are typical values without warranty. Throughput rates may differ in different applica­tions depending on boundary conditions.
Address assignment
From FW03 onwards, the EL6601/6614 can also assign IP addresses to connected devices and works as a DHCP or BOOTP server for one device. The following settings are required in the System Manager (EL66xx
--> Advanced Settings --> Mailbox --> EoE):
• Setting "Switch Port", Fig. Default setting of the EL66xx as switch port without IP address assignment. The EL66xx works like a normal switch and passes Ethernet frames transparently through to TwinCAT/ Windows
• Setting for “IP Port”, Fig. From FW03: Settings for dynamically assigned IP address The EL66xx works with address assignment to one connected Ethernet device. A DHCP or a BootP Client must be activated in the device (refer to the network adaptor settings in the operating system). The EL66xx responds to the device’s corresponding DHCP/BootP query by assigning the specified IP address/subnet mask to the device. In the DHCP method this address is regularly queried by the client and assigned to the server/EL66xx.
EL6601, EL661418 Version: 4.2
Fig.15: Default setting of the EL66xx as switch port without IP address assignment
Product overview
Fig.16: From FW03: Settings for dynamically assigned IP address
Please note:
• The “DHCP” checkbox must not be used - the “IP address” checkbox activates the DHCP/BootP function in the EL66xx.
• The Gateway, Mask and Server settings are likewise communicated to the client/the device
• Only one address can be assigned, i.e. no switch with connected subscribers may follow.
• the address range must be identical to that of the EtherCAT adapter.
• DHCP Server Identifier: several DHCP Servers need a ServerID in the response telegram. Solution for the EL6601 from firmware 15: the value 0x1000 has to be entered in the object 0xF800:01. If a Default Gateway is registered in the EL6601, it is used as a DHCP Server Identifier.
Mailbox settings
The mailbox size can be modified in the Beckhoff TwinCAT System Manager:
Product overview
Fig.17: Default mailbox settings
By default the mailbox is set to 522Byte Input and 522Byte Output (20A
), see Fig. Default Settings of the
hex
Mailbox, Entries for SyncManager 0 and 1. To increase the data throughput the size of the mailbox can be increased to 1024Byte, see Fig. Increasing the Size of the Mailbox.
Default mailbox size
As of Revision EL66xx-0000-0018 the mailbox is already set to 1024 Byte by default in both direc­tions, therefore it cannot be further enlarged. The previous statements apply for terminals with Revision -0000, -0016 or -0017.
EL6601, EL661420 Version: 4.2
Product overview
Fig.18: Increasing the mailbox
Under EL6601 -> EtherCAT tab -> "Advanced Settings…" -> "Mailbox" the "Out Size" can be set to hexadecimal values between 42
dec
/2A
and 1024
hex
dec
/400
bytes. Ethernet frames that are larger than the
hex
EL6601 mailbox are fragmented by the EL6601 or the EtherCAT master and reassembled after passing through the EtherCAT system.
Virtual switch setting
The EL66xx devices in the TwinCAT system generally appear as virtual switches, with the EtherCAT system as the "backbone".
Fig.19: TwinCAT 2.11, virtual TwinCAT switch
The required settings will be found under TwinCAT | EtherCAT device | Advanced settings
Product overview
Fig.20: TwinCAT 2.11, virtual TwinCAT switch
Notes
• If a large number of EL66xx devices are used along the EtherCAT strand it may be helpful to increase the value of MaxFrames
• If the EL66xx is used exclusively to transfer network variables, ConnectToTcpStack should be deactivated
• IP-routing is active by default. This can also be checked by entering "ipconfig /all" on the command line (Windows)

2.5 EL66xx and Beckhoff network variables

2.5.1 Explanation network variables

Network variables
The EL66xx support sending/receiving network variables. This applies for the EL6601 as of Firmware 07, for the EL6614 as of Firmware 03.
A maximum of 32 for each, publishers and subscriber, are permitted per EL66xx.
Hardware replacement
If the system was designed with a previous EL6601 version (EL6601-0000-0000), this can be re­placed with versions from EL6601-0000-0017 without problem. If the system was designed for ver­sion EL6601-0000-0017 or higher, replacement with a previous version is not possible due to un­supported network variables.
Network variables are specially configured Ethernet frames that enable Beckhoff devices to communicate with each other in real-time via Ethernet. Such device can send (publisher) or receive (subscriber) messages. An Ethernet frame is sent for each publisher (Ethernet-based). A maximum of 1500 bytes of data can thus be sent per publisher. Within a publisher/subscriber several variables (publisher and subscriber variables) can be created. Generally, several publishers/subscribers can be configured for each sending/receiving device (e.g. IPC or EL6601).
Based on the sample of a data sender the hierarchy therefore consists of
• the sending device with a minimum of one Ethernet interface: IPC, CX, FC9011, EL6601, ...
EL6601, EL661422 Version: 4.2
Product overview
◦ FastEthernet/100MBit and 1GBit are supported
◦ This Ethernet interface is configured in the local TwinCAT System Manager as a real-time
Ethernet device
• 1..n configured publishers - each publisher is sent as an independent Ethernet frame and can therefore contain a maximum of 1500 bytes
• 1..n publisher variables contained therein for linking with the task/PLC
◦ For each publisher variable the user data and diagnostic data [}22] are transferred
On the receiver side the configuration is mirrored.
The EL66xx can also process publishers and subscribers which are frame data
• Max. 32 publishers and/or subscribers
• For each transmit direction (publisher or subscriber) the following maxima apply:
◦ all publishers: 1024 bytes total data [}22]
◦ all subscribers: 1024 bytes total data [}22]
Update of the terminal
The values above apply for a EL6601/6614-0000-0018. Version -0017 only supports a maximum of 300 bytes per publisher/subscriber. If a -0017 terminal is used, the values specified above can be achieved by an update to revision -0018. Please contact our technical support.
With appropriate EtherCAT cycle time and depending on the scale and number of the publishers/subscribers configured in the EL66xx, real-time cycle times down to 500 µs or below are possible.
Typical throughput values for EL6601, FW08, Rev. EL6601-0000-0018 are
• 1 publisher with 1000 bytes, 1 subscriber with 1000 bytes, simultaneous bidirectional operation: 2ms
• 1 publisher with 100 bytes, 1 subscriber with 100 bytes, simultaneous bidirectional operation: 300µs
Both characteristic values were determined with this https://infosys.beckhoff.com/content/1033/
el6601_el6614/Resources/zip/2349555083.zip . TwinCAT from version 2.11 is required for the *.tsm System Manager file.
The EL6601 is used as a sample to explain configuration as publisher or subscriber for network variables. The dialogs under TwinCAT 2.10 and TwinCAT 2.11 here are slightly different.
The following descriptions of the dialogs of the EL6601 in the TwinCAT System Manager can be applied equally to the EL6614.
Note regarding the term total data
For each data direction the EL6601/EL6614 from Rev. -0018 can transfer a maximum of 1024 byte total data. The total data consist of the user data (e.g. a UDINT) and the diagnostic data for the EL66xx.
Formula for number of diagnostic data bytes
• Publisher direction: 2 + ((number of publishers) * 2)
• Subscriber direction: 2 + ((number of subscriber variables) * 4)
If the configured data quantity exceeds 1024 bytes, a corresponding message window appears when activation is attempted:
Product overview
Fig.21: Notice on exceeding configured data volume
Note regarding the data quantity
The EL66xx (EL6601 from FW07, EL6614 from FW03) has an 8 kbyte data memory with the following default allocation
Type Usable extent Operation mode Allocated memory
Mailbox Out 1024 bytes 1024 bytes (fixed)
Mailbox in 1024 bytes 1024 bytes (fixed)
Publisher 1024 bytes 3-buffer mode 3072 bytes
Subscriber 1024 bytes 3-buffer mode 3072 bytes
If more publisher or subscriber data are required for an application, the SyncManagers can be modified accordingly. The mailbox cannot be modified.

2.5.2 Settings in the System Manager

Appearance of the variables
Depending on the platform used (PC or EL66xx), the publisher/subscriber will appear differently. A publisher/subscriber can be created:
• on a PC network interface, see Beckhoff network variables - Settings [}105]
• on an EL66xx
The following sample illustrates the setup for a publisher and a subscriber variable (each with a size of a 16­bit word) on an EL6601 under TwinCAT 2.10.
Fig.22: Network variable sample configuration on an EL6601
EL6601, EL661424 Version: 4.2
Product overview
Process data:
• "CycleIdx": must be served by the application in order to be evaluated on the subscriber side
• "CycleIndex": CycleIdx counterpart on the subscriber side.
• "VarData": the data to be sent.

2.5.3 Notes

• The RT statistics displays are not supported under TwinCAT for an EL66xx-RT device. Solution: As an alternative, corresponding CoE parameters can be read for diagnostic purposes.
• The publisher features of "OnChangeOnly" and "DataExchange (divider/modulo)" are not supported together with the EL66xx. Solution: [from FW08] Transmitting the configured publisher variables can be cyclically suppressed by DevCtrl.
• If a publisher is set up on an EL66xx, the publisher's CycleIndex [}106] must be taken care of by the user. On a PC, on the other hand, they are incremented by TwinCAT.
• The following is recommended for diagnosis of a network variable connection:
1. Monitor the link status in the "DevState" of the RT device (Device --> Inputs --> DevState). The expected state is DevState = 0.
2. Monitor the Quality and CycleIndex in the subscriber.
• The link LED in the EL66xx only indicates the status of the cable connection, not that of any network variable connection that may exist.
• If the EL66xx is used exclusively to transfer network variables, ConnectToTcpStack [}22] should be deactivated.
• A maximum of 32 for each, publishers and subscriber, are permitted per EL66xx.

2.5.4 Suppress publisher

Applicable: TwinCAT from version 2.11, EL6601 from FW08, EL6614 from FW04
If the EL66xx is operated with a short cycle time and with publishers configured, this can place a high loading on the connected network. For this reason, the EL66xx can be configured in such a way that the transmission of individual publishers can be blocked through the DevCtrl variable. The object 0xF800:02 must be occupied in the CoE (CanOpenOverEtherCAT) for this purpose.
Groups of publisher boxes can be blocked by setting appropriate bits (publisher frames). The topmost 4 bits (the high nibble of high byte) from 0xF800:02 specify the granularity of the groups 1..15, i.e. how many publisher frames are handled together as one group:
The upper 8 bits of DevCtrl (format: 16 bits) then block the transmission of the publisher frames located in the corresponding group in the current cycle.
High byte of DevCtrl :
• 0 = no blocking
• n = each bit in DevCtrl corresponds to a group of n publishers, where n has a value in the range [1..31]
It follows that a maximum of 8 groups of publishers can be blocked.
Sample:
DevCtrl.10 = true and 0xF800:02 = 0x2000 signifies that the third group will be blocked in this PLC cycle. One group consists of 2 publisher frames, which means that in this case all the publisher variables that are located in publisher frames 5 and 6 will not be transmitted.
Product overview
NOTE
Suppressing individual publishers
The structure of a "publisher" as a publisher box in the System Manager is
- an Ethernet frame containing
- n publishers The individual bits in DevCtrl each block a group of publisher frames.
The success achieved in this way can be observed using, for instance, a network monitor such as Wireshark.
Changes in the CoE
The CoE contents can, if writable, be changed online using the TwinCAT System Manager. How­ever, after the terminal or the EtherCAT system is restarted, this change will no longer be present; default values will apply. As a result, any permanent change must be stored in the terminal's CoE startup list.
Note: In this documentation, bit counting starts from 0: value.0, value.1, ...

2.5.5 Filter subscribers

Applicable: TwinCAT from version 2.11, EL6601 from FW08, EL6614 from FW06
Depending on how the Ethernet network is configured, large or small numbers of the publisher telegrams being used there arrive at the EL66xx devices included in the network. At the start, the EL 66xx is configured by the EtherCAT Master to the subscriber variables that it is to receive: source AMS Net ID and ID of the variables are loaded into the CoE for each subscriber. The CoE objects 0x60n0:01 and 0x60n0:02 then respectively contain the AmsNetId and Variables ID to be checked. The EL66xx devices can therefore filter according to the incoming publisher IDs, and compare them with their own subscriber IDs. For this purpose the publisher variables contained in the Ethernet frames received are disassembled and checked individually.
If an incoming subscriber
• corresponds to a configured AMS Net ID and Variables ID, then the contents are transferred to EtherCAT via PDO.
• does NOT correspond to the above, then the contents are transferred as standard to the acyclic mailbox interface for transmission to the Master.
This is the standard setting of the EL66xx.
The second way generates a high acyclic EtherCAT transport load, because subscribers received by the EL66xx are transported that should not be transported by this EL66xx at all. For this reason the subscriber filter can be activated by the CoE entry 0xF800:02 = 0x0100 (bit 8 = TRUE). The subscriber data that do not correspond to the AmsNetID/Variables ID filter are then discarded in the terminal and are not transferred to the mailbox.
Filter subscribers
Activation of the subscriber filter is recommended. Since the EL66xx needs to be re-initialized with each INIT-OP transition, it is essential to set the named CoE entry in the startup list.
Note: In this documentation, bit counting starts from 0: value.0, value.1, ...

2.5.6 Setting up TwinCAT 2.10

Once the EtherCAT bus and its devices have been configured, the EL6601 is appended as a separate device in the configuration tree.
EL6601, EL661426 Version: 4.2
Product overview
Fig.23: Append device
In the selection dialog an EL6601 is offered as a real-time Ethernet device. The EL6601 must also be selected here when an EL6614 is being used.
Fig.24: Select EL6601
An imaginary box is now appended to the EL6601 as publisher or subscriber.
Product overview
Fig.25: Append box
Fig.26: Append network variable
The "EL6601 device" is now linked to the actual EL6601 or EL6614 in the selection dialog ("Adapter" tab -> "Search...").
Fig.27: Link device with EL6601
All further steps are done as described in the preceding sections.
EL6601, EL661428 Version: 4.2
Product overview

2.5.7 Setting up TwinCAT 2.11

If the EtherCAT configuration has been created manually or scanned from the field itself you can now configure an EL66xx as a transmitter/receiver of network variables.
Fig.28: Append new device
Select the EtherCAT Automation Protocol in the device dialog:
Fig.29: Select EtherCAT Automation Protocol
The new device is automatically assigned to an available EL66xx, or this can also be done manually:
Fig.30: Device assignment to the EL66xx
Transmitter/receiver variables must now be created:
Product overview
Fig.31: Append box
Multiple publishers and subscribers can be created for each EtherCAT Automation Protocol device.
Fig.32: Publisher/Subscriber
An EtherCAT Automation Protocol device appears as follows in the topology view:
Fig.33: Topology view
All further steps are done as described in the preceding sections.

2.6 Configuration in the CX20x0 & CX50x0 system

The embedded PCs of CX20x0 and CX50x0 series feature a special integrated I/O interface for E-bus and K-bus with automatic switching. The EL66xx devices in the TwinCAT system generally appear as virtual switch, with the EtherCAT system as the "backbone". In the CX20x0 and CX50x0 system, the internal interface connection is not implemented through a network interface, but through an FPGA.
EL6601, EL661430 Version: 4.2
Loading...
+ 133 hidden pages