Diagnostics

DeviceNet state

In many cases it is important to know whether the communication with the higher-level master is still OK. To this end, link the NodeState variable with your PLC program. A TwinCAT configuration is required for this purpose.

Diagnostics 1:
DeviceNet diagnostics byte in the System Manager

Error number

Description

Remedy

0

no error

none

1

Node is deactivated by the scanner, node is no longer in the masters scan-list.
For Slave Devices it means that there is no Data-Exchange between the Master and the Slave. The Master has released the DeviceNet Slave

Check the configuration

2

No data exchange between node and DeviceNet Master, node access timeout

Check the connection

18

Node is configured, ready for data exchange

none

42

Electronic Key Error: Vendor ID

Check identity of DeviceNet slave

43

Electronic Key Error: Device Type

Check identity of DeviceNet slave

44

Electronic Key Error: Product Code

Check identity of DeviceNet slave

45

Electronic Key Error: Revision

Check identity of DeviceNet slave

46

Error writing start-up attributes

Check identity of DeviceNet slave

47

Wrongproduced IO-Data length

Check identity of DeviceNet slave

48

Wrong consumed IO-Data length

Check identity of DeviceNet slave

49

Idle Mode (for Slave Devices): no valid IO-Data is exchanged via DeviceNet

Check whether the master is in idle mode

Reading fieldbus state by ADS

You can read the fieldbus state via ADSREAD in the default configuration or in the TwinCAT configuration.

Parameter ADSREAD function block

Description

NetID

local – empty string

Port

1

IndexGroup

16#0006

IndexOffset

16#000C_AE00

LEN

1

State of the K-bus

An internal bus or Bus Terminal error is indicated in the K-bus state variable. A more precise fault description can be obtained via a function block (in preparation). To this end, link the K-bus state variable with your PLC program.

Diagnostics 2:
State of the K-bus

Error bit

Description

Error type

0

No error

No error

Bit 0

K-bus error

Error

Bit 2

K-Bus is re-triggered

Note

Reading K-Bus state by ADS

You can read the fieldbus state via ADSREAD in the default configuration or in the TwinCAT configuration.

Parameter ADSREAD function block

Description

NetID

local – empty string

Port

1

IndexGroup

16#0006

IndexOffset

16#000C_9000

LEN

1