Diagnostic Tool

You can use the Diagnostic Tool to monitor the connectivity between the master and slave devices on the EtherCAT network. When there are errors occur or changes in the EtherCAT states of the devices, corresponding error messages and status icons will be displayed for notifications. The status will be dynamically displayed and updated every second.

To open the Diagnostic Tool window, click Diagnostics on the Toolbar of KINGSTAR Analysis Console.

Topics:


User Interface

The following content describes the user interface of Diagnostic Tool.

Reset Button

You can click the Reset button to reset all displayed error messages, enabling you to identify which errors persistently occur.

 

Device Tree

The Device Tree displays the connectivity between the master and slave devices on the EtherCAT network. When there are errors occur or changes in the EtherCAT states of the devices, corresponding error messages and status icons will be displayed for notifications.

Devices without Coupler/Junction Devices with Coupler/Junction

represents the port of the device. In this example, Device of 1001 has port 1 and port 2.

Devices without Coupler/Junction Devices with Coupler/Junction

represents the port of the device. In this example, Device of 1001 has port 1 and port 2.

The colors of the lines show the connection/online state.
Device to Device Linking Port to Device Linking Device to Port Linking

Yellow line: connected
Gray line: disconnected

Yellow line: connected
Gray line: disconnected

Yellow line: device is online (Device of 1001)
Gray line: device is offline (Device of 1001)

The colors represent the EtherCAT states.
* When errors occur on a device, a yellow warning sign and a red error description will be displayed. You can determine the types of errors from the red error description. To view the errors in detail, you can either 1) select a device and then click the Errors tab in the right-side pane or 2) check for all errors in the Errors Pane at the bottom of the Diagnostic Tool window.
An error type may contain several error items. Here are the definitions of each error type.
Device Type Error Type Error Item
Master Frame lost Acyclic frame lost
Cyclic frame lost
Slave Communication error Working counter error
Not present
Port frame error
Port physical layer error
Slave Lost link Not present
Port lost link
Slave AL (status) error AL status code is not zero

You can also view the device info or errors of a specific device through the Device Tree. To do this, select a device by clicking on it on the Device Tree and then click the General tab or Errors tab on the right-side Device Info Pane.

 

Errors Pane

You can check for all errors or device information in the Errors Pane, where errors are listed one by one and categorized into different tabs.

Error Counter Description
Working counter error The number of cycles the datagram, which is responsible for processing data exchange of the slave, was received back with an invalid working counter.
Abnormal state change The number of times the slave autonomously transitions from its state to a lower state without a master request.
Not present The number of times the master lost the physical link with the slave.
Port frame error The Ethernet frame error count.
Port physical layer error The physical layer communication error count.
Port lost link The port link is lost.

TIP: In a table, double-click on a row can select the device on the Device Tree. You can further check the general information or errors of the device in the Device Info Pane.

 

Help

Click to display the KINGSTAR offline help.

 

Device Info Pane

Click a device on the Device Tree, the device information or its error messages will be displayed here.

NOTE:  The information or errors displayed in the Device Info Pane are only available when the selected device is in the specific state(s). Please refer to the Available Master EtherCAT State or Available Slave EtherCAT State column in each table below for the corresponding availability.

Offline → Init → PreOP → SafeOP → OP
Offline → Init → Boot

Info Description Available Master EtherCAT State
Vendor ID The vendor ID of the company. >= Init
Product code A vendor-specific product code used for identification in conjunction with the vendor ID. >= Init
Revision number A vendor-specific revision number. >= Init
Serial number A vendor-specific serial number. >= Init
EtherCAT state The EtherCAT state of the master. >= Init
Cyclic frame lost The number of cyclic lost frames. OP
Acyclic frame lost The number of acyclic lost frames. OP
Info Description Available Slave EtherCAT State
Name The name of the device. Any
Fixed address The fixed address of the slave. Any
Alias address It can be written by the master and is stored in the slave EEPROM. This value is kept when powering off and can be used to differentiate identical slaves. Any
(could be updated when device is reconnected)
Slave index The index of the slave array. Any
Vendor ID The vendor ID of the company. Any
Product code A vendor-specific product code used for identification in conjunction with the vendor ID. Any
Revision number A vendor-specific revision number. Any
(could be updated when device is reconnected)
Serial number A vendor-specific serial number. Any
(could be updated when device is reconnected)
EtherCAT state The EtherCAT state of the slave devices. Any
Requested state The requested EtherCAT state of the slave device. The request is made by the master. >= Init
Device type The type of the slave. Any
Mailbox input The size of a slave's input mailbox in bytes. Size between 128 and 512 bytes is considered moderate, while a size under 32 bytes is considered small. Any
Mailbox output The size of a slave's output mailbox in bytes. Size between 128 and 512 bytes is considered moderate, while a size under 32 bytes is considered small. Any
Link
(Port 0, 1, 2, 3)
The slave or master device that is connected or expected to be connected to the port. If it's a slave, the fixed address of the device is displayed. Any
Port status
(Port 0, 1, 2, 3)

The loop control setting and the state of the port. For example, "Loop Auto: Opened" means that the loop setting is auto and the port is opened.

Each port can be configured to Open, Close, Auto and Auto Close. The current state can be Opened or Closed.

  • Open: the port is always opened. If there is no link, the outgoing EtherCAT frames are lost.
  • Close: the port is always closed. If there is a link, the incoming EtherCAT frames won't be received.
  • Auto: the port state is determined by the link state. When there is a link, the port is opened. When there is no link, the port is closed.
  • Auto Close: the port state is determined by the link state. If there is no link, the port is closed. If a link is created, the port won't be opened automatically unless the master makes an explicit request.
OP
Info Description Available Slave EtherCAT State
AL status code It displays the error code that indicates the last time the slave encountered a problem. The error code list can be checked in the EtherCAT AL Status codes. >= Init
AL error The errors correspond to the AL status code. >= Init
Working counter error The number of cycles the datagram, which is responsible for processing data exchange of the slave, was received back with an invalid working counter. OP
Not present count The number of times the master lost the physical link with the slave. Any
Abnormal state change The number of times the slave autonomously transitions from its state to a lower state without a master request. Any
Frame error
(Port 0, 1, 2, 3)
The Ethernet frame error count of port 0, 1, 2, 3. OP
Physical layer error
(Port 0, 1, 2, 3)
The physical layer communication error count of port 0, 1, 2, 3. OP
Lost link
(Port 0, 1, 2, 3)
The lost link count of port 0, 1, 2, 3. OP
 

Work with Diagnostic Tool

To use the KINGSTAR Diagnostic Tool to monitor the device connectivity on the EtherCAT network:

  1. Start your KINGSTAR application. Make sure all the hardware devices are connected. Here, we use KINGSTAR Configuration Tool as an example.
  1. Open the Diagnostic Tool window. To do this, start the KINGSTAR Analysis Console and click Diagnostics on the Toolbar.
  1. The Diagnostic Tool window should be displayed. You can start monitoring the connectivity between the master and slave devices on the EtherCAT network. You can click the Reset button multiple times to identify which errors persistently occur.

 

See also

Clear

Copy and synchronization

Export

Filter

Instance and message configurations

Log selection: Standard messages

Log selection: Trace messages

Open

Refresh

Search

Settings

View

Work with KINGSTAR Analysis Console