EasyManua.ls Logo

Siemens SIRIUS M200D - Diagnostics with STEP 7 on PROFIBUS DP

Siemens SIRIUS M200D
234 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals