Mailbox Interface 4-27
Diagnostics
Get Diagnostic String from Slave (MB_GET_DIAG_STRING)
Description
This function returns the Diagnostic String from a specified slave on the network.
Note:
This function is only relevant for 7.4 type slaves
Command and response layout:
Parameter
Description
Command initiator
Application
Command Name
MB_GET_DIAG_STRING
Message type
02h
Command number
0021h
Fragmented
No
Extended Header data
-
Command data
Slave Address
Response data
The response indicates if the command was accepted. The response data
contains the diagnostic string of the specified slave.
Command
Expected response
Message ID
(ID)
(ID)
Message information
4002h
0002h
Command
0021h
0021h
MB_GET_DIAG_STRING
Data size
0001h
(Depends on string size)
Frame count
0001h
0001h
Frame number
0001h
0001h
Offset high
0000h
0000h
Offset low
0000h
0000h
Extended word 1
-
-
Extended word 2
-
-
Extended word 3
-
-
Extended word 4
-
-
Extended word 5
-
-
Extended word 6
-
-
Extended word 7
-
-
Extended word 8
-
Fault information
Message data byte 1
Slave Address
Slave Address
Message data byte 2
String Length
Length of Diagnostic string in bytes
Message data byte 3
String byte 1
Message data byte 4
String byte 2
...
...
Message data byte n
String byte n