Diagnostics

There are several diagnostic options for EtherNet/IP. The diagnosis is divided into two areas, i.e. diagnosis for the scanner (master), and diagnosis for the adapters (slaves) that are connected to the scanner. These are cyclic diagnostic data which can be linked to the PLC. A further diagnosis is available via DiagHistory. Errors in the EtherNet/IP system are logged and can be evaluated for diagnostic purposes.

Diagnosis of the master (scanner)

The scanner diagnosis contains information about the status of the EtherNet/IP scanner. If the value is 0x0000, everything is OK and there is no error.

Diagnostics 1:

Values that the DevState can take:

0x0001 = Link error
0x0010 = Out of send resources (I/O reset required)
0x0020 = Watchdog triggered
0x8000 = reserved
0x4000 = Master has no valid IP Addr - pending DHCP request
0x2000 = TCP server: unable to listen on local EtherNet/IP Port (44818)
0x1000 = UDP server: unable to listen on local EtherNet/IP Port (44818)

Diagnosis of the slave (adapter)

Each slave has a state and a Ctrl word.

Diagnostics 2:

The Ctrl word currently has no purpose. In an error-free state, the value of the state is 0xXX00. Bits 16...31 are for information only. The state has the following meaning:

0x8000 = Remote Node has no connections
0x4000 = Remote Node is not reachable
0x2000)1 = TCP Client: initialization failed
0x1000 = UDP Client: initialization failed
0x0X00 = reserved
0x0001 = 1st Connection disconnected
0x0002 = 2nd Connection disconnected
0x0004 = 3rd Connection disconnected
...
0x0080 = 8th Connection disconnected

)1 This note may appear periodically. This is because the TCP connection can and may be closed by the slave when not in use. However, the Beckhoff EtherNet/IP Scanner rebuilds this automatically as soon as possible, so that the note 0x2000 disappears from the state again.

The note for interrupting the TCP/IP connection is only relevant if the I/O communication does not start up successfully.

Producer State

0x8000 = Producer has no valid Producer Objects configured
0x4000 = Producer has no valid IP Addr - pending DHCP request
0x2000 = TCP server: unable to listen on local EtherNet/IP Port (44818)
0x1000 = UDP server: unable to listen on local EtherNet/IP Port (44818)
0x0001 = 1st Connection disconnected
0x0002 = 2nd Connection disconnected
0x0004 = 3rd Connection disconnected
...
0x0800 = 12th Connection disconnected

Consumer State

0x0X00 = reserved
0x0001 = 1st Connection disconnected
0x0002 = 2nd Connection disconnected
0x0004 = 3rd Connection disconnected
...
0x0800 = 12th Connection disconnected