Fieldbus & Industrial Networking


Diagnostics and error localisation with EtherCAT

September 2016 Fieldbus & Industrial Networking

Diagnostic characteristics play a major role in determining a machine’s availability and commissioning time. In addition to error detection, exact error localisation is important. EtherCAT has various different diagnostic features inherent to its system.

In EtherCAT networks the slave devices process the Ethernet frames according to the topology determined by the hardware using a dedicated real-time component, the so called ESC (EtherCAT Slave Controller). The slave devices come with diagnostic mechanisms on all layers of the ISO/OSI stack specified in the fieldbus standards. The progression of the status information from the individual slaves is carried out by the master, respectively the configuration tool, which reports directly to the application software, respectively the user.

Diagnostics on the physical layer level

The physical layer includes cables and connectors for building the infrastructure of the network. Each ESC port monitors the communication on the hardware level by processing relevant information to the user. In addition to the different errors, ESC ports detect Link Lost occurrences and increment accordingly a Link Lost Counter. Such errors can be caused by loose contacts, insufficient connections or broken cables. By reading out the appropriate registers, the disturbance of the physical medium can be localised precisely.

Another diagnostic feature is the CRC check (check sum) of the incoming frames: In case of failure the corrupted frame is marked as damaged, the data contained therein is ignored and the CRC Error Counter is incremented. Following devices ignore the data of this frame, too, and increment a Forwarded CRC Error Counter instead. CRC errors are typically caused by EMC disturbances as they occur in energised cables, which run near to the communication cable. By reading out the register of both error counters the user can detect the location where possible EMC disturbances have interrupted the communication.

Diagnostics on data link layer level

The data link layer guarantees the data exchange between the EtherCAT frame and the EtherCAT participants in the network. This exchange can be both acyclic and cyclic. The latter can also be controlled cycle synchronously between several distributed participants. In the slave devices, interrupts or watchdogs monitor the data exchange and synchronisation.

A very powerful diagnostic mechanism on the data link layer level is the Working Counter, which is transferred with each read and write command. This counter increments after successful data exchange in each passed slave. By comparing the actual with the expected figures the master checks within the same cycle if all slaves work with consistent data or if individual datagrams have not been transmitted. The Working Counter informs about different possible errors, e.g. if a slave cannot exchange data due to missing connectivity or internal hardware interrupts. In addition, problems with parameterisation, which include the configur-ation of process data or the communication timing, are detected that way.

Working counter errors are processed to an overlaid application, e.g. a PLC program, so the applicator can code a suitable response in the software.

In applications that require a high grade of synchronicity of their components, the mechanism of distributed clocks is used within the EtherCAT network. For this data link layer functionality, there are different diagnostic mechanisms, too. Each slave includes a system time difference register, which contains the difference between the local clock in the slave and the global network time. By reading out this register value from all slaves which use distributed clocks, the master can monitor how precisely the network is synchronised and inform the user in case of irregularities.

Since EtherCAT uses standard Ethernet frames, the network status can be monitored via free-of-charge software tools, e.g. Wireshark. That way, whole EtherCAT frame as well as all datagrams within them can be analysed and displayed.

Diagnostics on application layer level

The application layer applies to the individual functionality of each slave: for example, reading a temperature signal, controlling pneumatic servo valves or driving a motor. Here, one source of significant diagnostic information is based on the EtherCAT State Machine, which organises the interaction between master and slaves. Each status corresponds with a number of available communication functionalities. Status changes are required by the master and confirmed or denied by the particular slaves. In case of configuration errors during start-up or internal runtime errors, the slave denies the status change or changes to a lower status internally, sets an error bit and provides an error code. An example for this diagnostic function is given when the process data configuration between master and slave differs: the slave will deny a status change to SafeOperational with the error code ‘Invalid Input Con-figuration’. Another example is given when the slave does not receive valid process data for a special amount of time: it then changes its status to SafeOperational and reports the error ‘Process Data Watchdog’. The application layer status registers can be read by the master with a single broadcast command, which monitors the complete network status.

Besides the central diagnostic ability via the EtherCAT State Machine, EtherCAT devices can report specific internal application errors. Those are dependent on the individual function of the slave: This can be an overvoltage for an analog input terminal, which exceeds the maximum torque limit for a drive, or an internal overheating alarm. CAN application protocol over EtherCAT (CoE), the standard EtherCAT protocol for the acyclic parameter access, defines the Diagnosis History Object, which works like an error register. Within this object, devices can record and save up to 250 application specific diagnostic messages, which can be read by the master and reported to the user.

Conclusion

Distinctive diagnostic functionality exists on all levels of EtherCAT communication and thus provides a full and detailed overview about the network status. This functionality inherent in the EtherCAT protocol can be centralised by the master, using a few additional commands. These diagnostic mechanisms are implemented in hardware as defined in the basic specification of EtherCAT: therefore, the support of all related functions is guaranteed for all EtherCAT devices similarly.

For more information contact EtherCAT Technology Group, +49 911 540 56 226, [email protected], www.ethercat.org





Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Ethernet connectivity for embedded systems
Fieldbus & Industrial Networking
Delivering Ethernet connectivity for embedded systems, XPort ETH Click is a compact add-on board from MIKROE, the embedded solutions company that dramatically cuts development time by providing innovative hardware and software products based on proven standards.

Read more...
Compact mini PC
Vepac Electronics Fieldbus & Industrial Networking
AS AAEON’s first Intel Core-powered PICO-SEMI system capable of fanless operation, the PICO-MTU4-SEMI from Vepac Electronics is easily deployed as part of larger equipment setups or integrated as the central unit of smart robotics solutions such as AGVs, AMRs and drones requiring minimal maintenance.

Read more...
Future-ready I/O to redefine connectivity
Schneider Electric South Africa Fieldbus & Industrial Networking
Schneider Electric South Africa has launched its state-of-the-art Modicon Edge I/O NTS. This future-ready I/O redefines connectivity, data aggregation and operational efficiency for industrial applications.

Read more...
Referro Systems delivers industrial connectivity
Fieldbus & Industrial Networking
To meet the growing demand for secure, flexible and reliable remote access for industrial network connectivity for its clients, Referro Systems has added Rockwell Automation’s Stratix 4300 to its inventory of products.

Read more...
Case History 199: Another example of the effectiveness of cascade control
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
In my last article I wrote about how cascade control systems can effectively overcome valve problems. This article gives another example of how a temperature control was able to perform well, in spite of really severe valve problems.

Read more...
Upgrading legacy automation
Omron Electronics Editor's Choice Fieldbus & Industrial Networking
Legacy automation is characterised by technology in the later stages of its useful life. As new automation technologies continue to emerge and interconnect at an exponential rate, failing to integrate these technologies can widen the gap between the competitive and the obsolete.

Read more...
A one-stop-shop for industrial
Fieldbus & Industrial Networking
HMS Networks has announced that Red Lion and N-Tron are officially product brands. For thousands of automation engineers and system integrators worldwide, this means that scalable industrial solutions for cloud connectivity, edge intelligence, asset management, industrial Ethernet switches, panel meters and operator panels are now available from one trusted source.

Read more...
Power over Ethernet (PoE) injector for seamless deployment
Vepac Electronics Fieldbus & Industrial Networking
The Edimax GP-203IT from Vepac Electronics is a Power over Ethernet injector that not only delivers a cost-effective solution for power distribution, but also enables seamless deployment on the existing LAN infrastructure.

Read more...
A one-stop-shop for industrial communication
Fieldbus & Industrial Networking
HMS Networks has announced that Red Lion and N-Tron are officially product brands. For thousands of automation engineers and system integrators worldwide, this means that scalable industrial solutions for cloud connectivity, edge intelligence, asset management, industrial Ethernet switches, panel meters and operator panels are now available from one trusted source.

Read more...
Cost-effective industrial PoE injector
Vepac Electronics Fieldbus & Industrial Networking
The Edimax IGP-203IT from Vepac Electronics is an industrial PoE injector that not only delivers a cost-effective solution for power distribution, but also allows seamless deployment on an existing LAN infrastructure.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved