3. Diagnosis and error treatment
3−19
Festo P.BE−CP−FB13−E−EN en 0802h
Possibilities for reading out the diagnosis for S5/S7
The diagnosis for PROFIBUS−DP is supported in the various
control systems by means of function modules. These read
out the slave diagnosis and writ
e it into a data range of the
user program.
Control system
Function module See ... Manufacturer
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
functions and standard
functions"
Siemens
Tab.3/12:Possibilities for reading out the diagnosis for S5/S7
Example for a STEP 7 user program
STL Explanation
CALL SFC 13 Reading request
REQ:=TRUE
LADDR:=W#16#03FE Pointer at diagnostic address, e.g. 1022
d
= 03FE
h
(see mask Properties DP slave" in HW Config)
RET_VAL:=MW100 If fault occurs, output fault 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