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:

Integrating fire alarm systems into building management systems
Beckhoff Automation Fieldbus & Industrial Networking
Fire alarm systems work independently of the building automation system. Schrack Seconet has developed a flexible gateway using ultra-compact industrial PCs and TwinCAT from Beckhoff, which can be used to flexibly convert a customer-specific communication protocol to a wide range of transmission standards.

Read more...
Premium unmanaged industrial switch
Vepac Electronics Fieldbus & Industrial Networking
Premium unmanaged industrial switch for long-distance, noise-free fibre connectivity

Read more...
Fire and gas suppression solutions for mission-critical industries
Fieldbus & Industrial Networking
By representing world-leading brands and focusing on fully integrated, certified systems, HMA South Africa is positioning itself as a trusted partner in fire detection, suppression and explosion-proof safety solutions across the continent.

Read more...
The future of manufacturing
Fieldbus & Industrial Networking
Industrial automation is evolving at an unprecedented pace. At the forefront of this transformation is the Siemens SIMATIC ET 200SP HA Distributed I/O system. This is a flexible and scalable distributed I/O system for modern signal transfer from the field to the control level.

Read more...
Time-sensitive networking
RJ Connect Editor's Choice Fieldbus & Industrial Networking
In this article, we will explore what is driving the rise of time-sensitive networking, how it is reshaping industrial efficiency, the challenges when deploying this technology, and ways to tackle these challenges.

Read more...
Loop Signature 30: Nonlinearity in control loops (Part 1)
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
If nonlinearity occurs it means that if one is to carry on controlling with the same response to changes in load or setpoint, then the tuning of the controller will also need to be adjusted to meet the new conditions.

Read more...
PC-based control regulates innovative dehumidifiers
Beckhoff Automation Fieldbus & Industrial Networking
Swedish company, Airwatergreen is breaking new ground in the dehumidification of air in industrial buildings and warehouses. The patented CVP technology reduces energy requirements and ensures an indoor climate that prevents corrosion and mould growth. PC-based control from Beckhoff regulates this innovative process.

Read more...
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...









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