
Diagnostics
7.4 Diagnostics with STEP 7 on PROFIBUS DP
M200D PROFIBUS/PROFINET
Manual, 08/2014, A5E01577426A/RS-AA/004
151
7.4
Diagnostics with STEP 7 on PROFIBUS DP
7.4.1
Reading out the diagnostic data
Length of the diagnostics frame
The maximum message frame length is 32 bytes.
Options for reading diagnostics data
Reading diagnostics data with STEP 7
Automation system with
DP master
Blocks or registers in
STEP 7
Application
Reference
SIMATIC S7/M7
SFC 13
"DP NRM_DG"
Reading slave
diagnostic data (stored
in the data area of the
user program)
Section "Structure of
the slave diagnostics";
SFC see online help in
STEP 7
Example of reading out S7 diagnostics using SFC 13 "DP NRM_DG"
This is an example of how to use the SFC 13 to read out the slave diagnostics for a DP slave
in the STEP 7 user program.
Assumptions
Exceptions for this STEP 7 user program:
●
Diagnostics address is 1022 (3FEH).
●
Slave diagnostic data must be stored in DB82: from address 0.0, length 32 bytes.
●
The slave diagnostic data has a length of 32 bytes
STEP 7 user program
STL
Explanation
CALL SFC 13
REQ :=TRUE
//Request to read
LADDR :=W#16#3FE
// Diagnostics address
RET_VAL := MW0
//RET_VAL of SFC 13
RECORD :=P#DB82.DBX 0.0 BYTE 32
//Mailbox for diagnostics data in DB82
BUSY :=M2.0
//Read process runs over several OB1 cycles
Содержание SIRIUS M200D
Страница 2: ......
Страница 16: ...Product description 1 3 PROFIenergy M200D PROFIBUS PROFINET 16 Manual 08 2014 A5E01577426A RS AA 004 ...
Страница 24: ...Product family 2 3 Design concept M200D PROFIBUS PROFINET 24 Manual 08 2014 A5E01577426A RS AA 004 ...
Страница 90: ...Functions 3 22 Logbook M200D PROFIBUS PROFINET 90 Manual 08 2014 A5E01577426A RS AA 004 ...
Страница 118: ...Mounting connection 4 2 Connection M200D PROFIBUS PROFINET 118 Manual 08 2014 A5E01577426A RS AA 004 ...
Страница 222: ...Appendix A 2 Order numbers M200D PROFIBUS PROFINET 222 Manual 08 2014 A5E01577426A RS AA 004 ...
Страница 224: ...Correction sheet M200D PROFIBUS PROFINET 224 Manual 08 2014 A5E01577426A RS AA 004 ...
Страница 232: ...Index M200D PROFIBUS PROFINET 232 Manual 08 2014 A5E01577426A RS AA 004 ...
Страница 233: ......