EtherCAT diagnosisPermalink

Automation Builder 2.3 provides an enhanced diagnosis interface for the EtherCAT fieldbus. EtherCAT diagnosis information from different editor views is available. All views are accessible within the EtherCAT master device editor and provide information about the master and all configured or connected slaves. The main diagnosis overview is given in the EtherCAT master view “Diagnostics main”.

“Diagnostics main” shows EtherCAT state “Operate”.

Main_Diagnosis-OP

“Diagnostics main” shows EtherCAT state “Topology error’”.

Main_Diagnosis_TopologyError

If the EtherCAT bus state shows “Operate”, the user does not need to check for any more information.

If the “Diagnostics main” shows any error, such as “Topology mismatch detected”, the next level of information can be accessed by opening the editor view “Master State Control”.

“Master State Control” shows EtherCAT state “Operate”.

Master_State_Control-OP

“Master State Control” shows EtherCAT state “Toplogy error”.

Master_State_Control-TopologyError

In editor view “Master State Control”, the user can request a master state change or obtain information about configured parameters, events and latest communication errors. In case of a topology error (e.g. slaves are configured in a different order than they exist in hardware), Automation Builder shows a hint that it may be helpful to execute a bus scan in the editor view “Diagnostics live list” to compare the scan result of the real hardware with the configures slaves in the Automation Builder project.

The bus scan result in the editor view “Diagnostics live list” shows the connected hardware.

Diagnostics_Live_list

The bus scan result list shows the following information for each connected slave.

ID

Position of the found slave device

Type

Slave identification (name or Vendor/Device ID number)

State

The connection/link state of all ports (0-3) of the given slave

Connected

Cable is plugged in.

+ Link

Physically connected to another slave.

+ Communication

Communication works fine.

Name

Not used for EtherCAT

Address

Not used for EtherCAT

Details

E.g. revision number of the slave device

The bus scan shows information about the real connected hardware.

Note that a bus scan always restarts the EtherCAT bus.

This is not a problem during commissioning but may not be applicable in a running system.

For runtime diagnosis, the Automation Builder provides cyclic information about all the configured slaves and their states in the editor view “Slave diagnosis”.

Slave diagnosis information shows that configured slaves are OK.

Slave_Diagnosis-OP

“Slave diagnosis” view shows wrong slave at position 1.

Slave_Diagnosis-TopologyError

The “Slave diagnosis” view shows information about the configured slaves. If the configured slaves are found in hardware, the states of all slaves are shown as OK. If there is a mismatch between hardware and configuration, the view shows the position at which the mismatch was detected.

The “Slave diagnosis” shows the following information for each configured slave.

Topology Position

Position of the configured slave device.

Configured Station Address

Address that is defined by configuration.

This address is not topology dependent.

Slave Name

Configured name of the slave device.

Slave State

The state of the slave. Possible slave states are:

‎NOT CONNECTED‎ 1)

‎INIT‎

‎PREOP‎

‎SAFEOP‎

‎OP‎

‎INIT ERR‎

‎PREOP ERR‎

‎SAFEOP ERR‎

Port State 2)

The state of all ports (0-3) of the given slave.

Shows how many connections this slave has to other slaves and if the connections are working fine:

Connected

=> Cable is plugged in

+ Link

=> Physically connected to another slave

+ Communication

=> Communication works fine

Last Error

The last error that occurred in this slave. As text, if available, and error number. If this is any topology error, the editor view will show a hint to perform a bus scan.

Emergency [CAN application protocol over EtherCAT (CoE)]

This column contains up to 5 CoE emergency entries.

Each entry has

Error code

Address of the error register

Error data (1 byte)

If there are more than five emergencies reported by the slave, the columns show a hint that some emergency entries have been lost.

The column is empty, if no CoE emergencies exist.

Frame Error Counters 2)

Counts transmission errors on frame layer, detected by CRC check of frames. Fast growing values show a serious problem. Possible root causes include damaged cables, high electromagnetic noise or misbehavior of EtherCAT slave devices. Four counter values are shown, one for each port 0-3. Column has red background in case of any value other than 0.

Physical Layer Error Counters 2)

Counts transmission errors on physical layer. Possible root causes include electromagnetic disturbance or faulty devices. Four counter values are shown, one for each port 0-3. Column has red background in case of any value other than 0.

Link Lost Counters 2)

Optional feature of EtherCAT slave devices, not supported by every device.

Counts loss of physical connection (no link, LED off). Even short interruptions can be detected. Possible root causes include power dips, device reset, poor cables or connectors, loose contact. Four counter values are shown, one for each port 0-3. Column has red background in case of any value other than 0.

1) Note that columns “Port State”, “Frame Error Counters”, “Physical Layer Error Counters” and “Link Lost Counters” show “LLD: Timeout”, if this state is ‎NOT CONNECTED‎, because this information is not accessible.

2) Note that this column contains “LLD: Timeout”, if the slave state is ‎NOT CONNECTED‎.

General note on the counters

General note on the counters

Please note that this kind of errors is detected by devices when power state changes occur, e.g. when the device itself or a neighboring device is powered on, caused by switching artifacts on the cable. This does not signal an issue. Only counters that increasing during normal operation should trigger deeper analysis. Counters can be reset by the PLC program using the corresponding function blocks.