Possibilities of reading the diagnosis for S5/S7
The diagnosis for PROFIBUS DP is supported in the
various control systems by means of function modules.
These read the slave diagnosis and write it into a data
range in the user program.
Control system
Function
module
Refer to ...
Manufacturer
SIMATIC S5 with
IM 308C
FB 192
"IM 308C"
Manual "Decentral periphery
system ET 200"
Siemens
SIMATIC S5 with
S5-95U/DP master
FB 230
"S_DIAG"
Manual "Decentral periphery
system ET 200"
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 STEP 7 user program:
STL
Explanation
CALL SFC 13
REQ
:= TRUE
Request to read
LADDR
:= W#16#03FE
Pointer to diagnostic address e.g. 1022
d
=
03FE
h
(see mask "Features DP slave" in
hardware configuration)
RET_VAL
:= MW100
If 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
Read process finished
3. Diagnosis
3-20
CP FB13-E 9904b
Summary of Contents for Compact Performance CP-FB9-E
Page 12: ...Chapter 1 Installation 1 Installation CP FB13 E 9904b 1 1 ...
Page 30: ...Chapter 2 Commissioning 2 Commissioning CP FB13 E 9904b 2 1 ...
Page 70: ...Chapter 3 Diagnosis 3 Diagnosis CP FB13 E 9904b 3 1 ...
Page 95: ...3 Diagnosis 3 26 CP FB13 E 9904b ...
Page 96: ...Appendix A Technical specifications A Technical specifications and index CP FB13 E 9904b A 1 ...