EasyManuals Logo

Siemens Simatic S7-300 CPU 31xC Series User Manual

Siemens Simatic S7-300 CPU 31xC Series
272 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
Page #198 background imageLoading...
Page #198 background image
Debugging functions, diagnostics and troubleshooting
10.7 Diagnostics of DP CPUs
S7-300, CPU 31xC and CPU 31x: Installation
10-22 Operating Instructions, Edition 08/2004, A5E00105492-05
Automation system with
DP master
Blocks or registers in STEP 7 Application Further Information
SFB 52 “RD_REC” and
SFC 59 “RD_REC”
Reading the data records
of S7 diagnostics (stored
in the data area of the
user program)
System and Standard Functions
Reference Manual
FB 125/FC 125 Evaluating slave
diagnostic data
On the Internet at
http://www.ad.siemens.de/simatic-cs,
article ID 387 257
SIMATIC S5 with
IM 308-C operating in
DP master mode
FB 192 “IM308C” Reading slave diagnostic
data (stored in the data
area of the user program)
Distributed I/O System
ET 200
Manual
SIMATIC S5 with
S5-95U PLC operating
in DP master mode
FB 230 “S_DIAG”
Example of reading slave diagnostic data, using FB 192 "IM 308C"
This shows you an example of how to use FB 192 in the STEP 5 user program to read out
slave diagnostics data for a DP slave.
Assumptions regarding the STEP 5 user program
For this STEP 5 user program it is assumed that:
The IM 308-C operating in DP master mode uses the page frames 0 to 15 (number 0 of
IM 308-C).
The DP slave is assigned PROFIBUS address 3.
Slave diagnostics data should be stored in DB 20. You may also use any other DB.
Slave diagnostic data has a length of 26 bytes.
STEP 5 user program
STL Description
: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
//Default address area of IM 308-C
//IM no. = 0, PROFIBUS address of the DP slave = 3
//function: Read slave diagnostics
//not evaluated
//S5 data area: DB 20
//Diagnostic data starting at data word 1
//Length of diagnostic data = 26 bytes
//Error code storage in DW 0 of DB 30

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7-300 CPU 31xC Series and is the answer not in the manual?

Siemens Simatic S7-300 CPU 31xC Series Specifications

General IconGeneral
SeriesS7-300 CPU 31xC
Power Supply24 V DC
Communication InterfacesMPI, PROFIBUS DP
Programming LanguagesLAD, STL, FBD, SCL
Operating Temperature0°C to +60°C
Memory48 KB - 512 KB
Dimensions40 x 125 x 130 mm (varies by model)

Related product manuals