3. Diagnosis
3-20
Festo Festo P .BE CP FB13-E-EN en 9910c
Possibilities for reading out the diagnosis for S5/S7
The diagnosis for PROFIBUS-DP is supported in the various
control systems by function modules. These read out the
slave diagnosis and write it into a data range of the user pro-
gram.
Control system
Function module See... Manufac-
turer
SIMATIC S5 with
IM 308C
FB 192 “IM 308C” Manual “ET 200 decentral pe-
riphery system ”
Siemens
SIMATIC S5 with
S5-95U/DP master
FB 230 “S_DIAG” Manual “ET 200 decentral pe-
riphery system ”
Siemens
SIMATIC S5 with
SF 50/DP master
FB 230 “S_DIAG” Manual “Programmable valve
terminal with SB/SF 50”
Festo
SIMATIC S7/M7 SFC 13 “DP NRM_DG” Reference manual “System
functions and standard func-
tions”
Siemens
Example for a STEP 7 user program:
AWL Explanation
CALL SFC 13 Reading requirement
REQ:=TRUE
LADDR:=W#16#03FE
Pointer at diagnostic address, e.g. 1022d = 03F Eh
(see mask “Features of DP slave” in hardware config)
RET_VAL:=MW100 when errors occur, output error code
RECORD:=P#M110.0 WORD 7 Pointer at start of data range for diagnosis
and length of diagnostic data
BUSY:=M10.0 Reading concluded