3. Diagnosis
3-20
Festo P.BE-CP-FB13-E-EN en 0112e
Possibility of reading diagnosis for S5/S7
The diagnosis for the PROF I BUS-DP is supported by function
modules in the various control systems. These function mod-
ules read out the slave diagnoses and write them in a data
range in the user program.
Control system
Function module See... Manufac-
turer
SIMATIC S5 with
IM 308C
FB 192 “IM 308C” Manual “ET 200 decentral
periphery system”
Siemens
SIMATIC S5 with
S5-95U/DP master
FB 230 “S_DIAG” Manual “ET 200 decentral
periphery 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
and standard functions”
Siemens
Example of a STEP7 user program:
STL Explanation
CALL SFC 13 Request read
REQ:=TRUE
LADDR:=W#16#03FE
Pointer to diagnostic address, e.g. 1022d = 03F Eh
(see mask “Properties of DP slave” in HW Config)
RET_VAL:=MW100 When faults occur, output error code
RECORD:=P#M110.0 WORD 7 Pointer to start of data range for diagnosis
and length of diagnostic data
BUSY:=M10.0 Reading finished