Us diagnostics – Bronkhorst DeviceNet slave interface User Manual
Page 27
BRONKHORST
®
Page 27
DeviceNet interface
9.17.026
4.7 B
US DIAGNOSTICS
A propar (FLOW‐BUS) variable (process 125, parameter 20) can be used to retrieve a string with bus diagnostics. This
zero terminated string contains 13 bytes of data and is described below.
Layout bus diagnostics string for DeviceNet:
Byte
field
Description
Diagnostic values
Explanation
Length
0
ces_state
0
error active
CAN error state
1
1
error passive
2
bus off
1
ces_event
0
no events (always 0)
CAN error state event
1
2
nas_state
0
on line
Network access state
1
1
waiting for dup MAC ID check message
2
sending dup MAC ID check message
3
non existent
4
communication fault
3
nas_event
0
duplicate MAC ID check req/resp not received (num_reties = 1) Network access state
1
1
duplicate MAC ID check req/resp not received (num_reties = 0)
2
duplicate MAC ID check request received
3
duplicate MAC ID check response received
4
powerup/reset
5
bus off detected
4
sos_state
0
executing
duplicate MAC ID check req/resp
not received (num_reties = 1)
1
1
idle
2
abort
3
self‐testing
4
self‐test exception
5
critical fault
5
sos_event
0
receipt of first valid IO data
Supervisor object state event
1
1
IO connection timeout
2
IO connection deleted
3
start request
4
abort request
5
stop request
6
reset request
7
recover request
8
self test passed
9
self test failed
10
perform diagnostics request
11
power applied
12
critical fault from any state
6
diag_bits
bit 0 ces state, error passive
Diagnostic bits
(will be reset automatically)
2
bit 1 ces state, bus off
bit 2 nas state, communication fault
bit 3 nas event occurred, duplicate MAC ID check request received
bit 4 nas event occurred, duplicate MAC ID check response received
bit 5 sos state, critical fault
bit 6 sos event occurred, IO connection timeout
bit 7 sos event occurred, IO connection deleted
bit 8 sos event occurred, self test failed
bit 9 sos event occurred, critical fault from any state
bit 10 rx queue overrun
bit 11 tx queue overrun
bit 12 can overrun
bit 13 explicit connection timeout
bit 14 devicenet reset
bit 15 bus sense error (24V detection)
8
AnSens Data Type
(attr:0x31/1/3)
Analog sensor data type
1
9
AnAct Data Type
(attr:0x32/1/3)
Actuator data type
1
10
Contrl Data Type
(attr: 0x33/1/3)
Controller data type
1
11
Default Inp IO
(attr: 0x30/1/102)
Current Assembly Instance
(Input)
1
12
Default Outp IO
(attr: 0x30/1/103)
Current Assembly Instance
(Output)
1