DiagnosisΒΆ

In addition to the user data transportation, ETHERCAT provides a wide range of diagnostic functions, which can be useful for system activating. The upcoming diagnostic events from the ETHERCAT slaves are centralized in the master and can be displayed by using several function blocks. Localization of failures is greatly simplified with this function.

ETHERCAT Function Block Library

The function block library EtherCAT_AC500_V13.lib (since firmware version 1.3.0) EtherCAT_Library: ETHERCAT LibraryETHERCAT Communication Module and connected ETHERCAT slaves. These function blocks can be embedded additionally, especially for the initial operation.

ETHERCAT Status and Diagnosis via Function Blocks

The ETHERCAT status messages can be requested by the following function blocks:

Function Block Name Function
ECAT_STATE: ECAT_STATE Common information about the status of the ETHERCAT bus
ECAT_BUS_DIAG: ECAT_BUS_DIAG Information about the status of all bus participants
ECAT_GET_DCLK_DEVI: ECAT_GET_DCLK_DEVI Information about the distributed clock of every slave

A detailed function block description is in the document The ETHERCAT Library.

ETHERCAT Slave Diagnosis via Function Blocks

Status and error messages, which describe the slave state, are requested via the ECAT_SLV_DIAG function block:

Function Block Name Function
ECAT_SLV_DIAG: ECAT_SLV_DIAG Representation of diagnosis messages of connected slaves

Device Revision

Hardware and firmware revision can be queried using the ECAT_SOE_READ: ECAT_SOE_READ

  • HW-Revision (WORD) is stored in the first 2 bytes,
  • SW-Revision (1 CHAR plus 3 x BYTE, e. g. V.1.2.3)

Online Diagnosis

The online diagnosis in Automation_Builder software is only available by using special function blocks Diagnosis.