Diagnostics Using the User Program
10-9
DP/PA Link and Y Link Bus Couplings
A5E00193841-011
Byte x
The status is encoded by means of two bits for each slot.
00
B
: “Module OK”, valid user data
01
B
: “Module faulty”, user data invalid
10
B
: “Incorrect module”, user data invalid
11
B
: “No module”, user data invalid
Slot 1 is assigned to the first configured slave.
Bit no.
Length of the diagnostic blockincluding byte x
(= 63 bytes)
Code for station diagnosis
Byte x+4
Byte x+5
7
Byte x+59
Byte x+60
Byte x+61
.
.
.
6543210
00111111
Byte x+1
82
H
Status type: module status
Byte x+2
Not applicable
Byte x+3 Not applicable
Bit no.76543210
4 3 2 1 Modules 1 to 4
8 7 6 5 Modules 5 to 8
.
.
.
.
.
.
.
.
.
224 223 222 221 Modules 221 to 224
Byte x+62
228 227 226 225 Modules 225 to 228
232 231 230 229 Modules 229 to 232
236 235 234 233 Modules 233 to 236
Figure 10-4 Structure of the module status
Start address x is 37 for both S7 standard operation and redundant operation; in
DP standard master operation, it is dependent on which diagnostic blocks are
present (see Table 10-2).
10.2.4 Status message
The status message is part of the station diagnosis and delivers the following
information:
Underlying slaves that have reported diagnosis
Underlying slaves that are engaged in data exchange
State of the IM 157 as master of the underlying PROFIBUS