6
Diagnostics and Interrrupts of the CP 343-2
108
CP 343−2 / CP 343−2 P AS−Interface Master
Release 08/2008
C79000−G8976−C149−04
6.6
Reading the Diagnostic Data Record DS 1
The CP 343-2 continuously updates a delta list containing all the slaves that exist
but that differ from the configuration; in other words, they are missing, incorrect, or
not configured (each slave is assigned a bit in the delta list: 0 = no error; 1 = error).
This delta list is part of the diagnostic data record DS1 that can be read out by
calling the operating system functions SFC 51 “RDSYSST” or SFC 59 ”RD_REC”.
To optimize the time at which DS1 is read, it is advisable to use SFC 51.
On the CP 343-2, DS 1 always has a length of 16 bytes and is structured as
follows:
Byte
Value/meaning
0−3
These four bytes contain DS 0 and correspond to the local data bytes 8
to 11 in OB82.
Byte
Value
Purpose
4
60H
Fixed value
5
00H
Fixed value
6
40H
Fixed value
Byte
Bit *)
Value/meaning *)
7
0..7
1: error in AS-i slave 0.. 7
8
0..7
1: error in AS-i slave 8..15
9
0..7
1: error in AS-i slave 16..23
10
0..7
1: error in AS-i slave 24..31
11
0..7
1: error in AS-i slave 0B.. 7B
12
0..7
1: error in AS-i slave 8B..15B
13
0..7
1: error in AS-i slave 16B..23B
14
0..7
1: error in AS-i slave 24B..31B
15
reserved
*) Bit 0 belongs to slave 0, bit 1 belongs to slave 1 etc.
After the programming example, Section 6.7 contains an example of evaluating the
delta list.