User manual

Chapter 4 Configuration
MAN_905G_1.16 Page 98
Get Slave Diagnostics
GET_SLAVE_DIAG: Command Number = 0004h
This command reads diagnostic data from a specified slave.
Note: The response data size depends on the actual slave implementation. Range 6 -244.
Command and response layout:
Command Response
Message ID
(ID) (ID)
Message Information
4002h 0002h
Command Number
0004h 0004h
Data Size
0000h (Size of data)
Extended Word 1
Slave
Address
Type of
request
Slave Address
Type of
request
Extended Word 2
- -
Extended Word 3
- -
Extended Word 4
- -
Extended Word 5
- -
Extended Word 6
- -
Extended Word 7
- Extended Fault Info
Extended Word 8
- Fault Information
Response data word 1
Station Status
1
Station Status
2
Response data word 2
Station Status
3
Master
Address
Response data word 3
Ident Number
Response data word 4
:::
Response data word n
Extended Diagnostic Data
Slave Address
Range 1-125, specifies the slave to read diagnostics from.
Type of request
0x00: Internal slave diagnostic request. The diagnostic information stored in the master is
returned. Can only be requested for slaves configured by the master.
0x01: External slave diagnostic request. A diagnostic request is sent on the network to the
specified slave. Can be requested for all slaves on the network.
Station Status [1 ...3 ]
Consult EN50170 Vol.2 for further information.
Master Address