Siemens SIMATIC S7-300 Hardware And Installation Manual page 177

Hide thumbs Also See for SIMATIC S7-300:
Table of Contents

Advertisement

Agreement for the STEP 5 user program
For this STEP 5 user program we agree:
• The IM 308-C operating as DP master uses page frame 0 to 15 (number 0 of
IM 308-C).
• The DP slave has the PROFIBUS address 3.
• Slave diagnostics data should be stored in DB 20. Here you can also use any
other data block.
• Slave diagnostic data has a length of 26 bytes.
STEP 5 User Program
STL
:A
DB 30
:SPA
FB 192
Name
:IM308C
DPAD
:
KH F800
IMST
:
KY 0, 3
FCT
:
KC SD
GCGR
:
KM 0
TYP
:
KY 0, 20
STAD
:
KF +1
LENG
:
KF 26
ERR
:
DW 0
Example of reading out S7 diagnostic data with SFC 59 "RD REC"
Here you will find an example of how to use SFC 59 in the STEP 7 user program
to read S7 diagnostics data records for a DP slave. reading slave diagnostic data is
similar with SFC 13.
Agreement for the STEP 7 user program
For this STEP 7 user program we agree:
• Diagnostic data for the input module at address 200
• Data record 1 is to be read out.
• Data record 1 is to be stored in DB 10.
S7-300 Programmable Controller Hardware and Installation
A5E00105492-01
Testing functions, Diagnostics and Fault Elimination
Description
Default address area of IM 308-C
//IM no. = 0, PROFIBUS address for the DP slave = 3
//Function: Read slave diagnosis
//not evaluated
//S5 data area: DB 20
//Diagnostic data as of dataword 1
//Length of diagnostic data = 26 bytes
//Error code storage in DW 0 of DB 30
is to be read.
H
10-17

Advertisement

Table of Contents
loading

Table of Contents