Reading The Diagnosis Out Using Step 7 And Step 5 On Profibus Dp - Siemens SIMATIC ET 200S Manual

Distributed i/o system
Hide thumbs Also See for SIMATIC ET 200S:
Table of Contents

Advertisement

Commissioning and Diagnostics
Ways of reading the diagnosis
Table 6-7

Reading the diagnosis out using STEP 7 and STEP 5 on PROFIBUS DP

Programmable logic
controller with DP
master
SIMATIC S7/M7
SIMATIC S5 with
IM308-C as DP master
SIMATIC S5 with
S5-95U PLC as DP
master
1)
Only with S7-400 as of V3.0 and with CPU 318 as of V3.0
Example of reading the slave diagnosis using FB 192 "IM308C"
Here you will find an example of how to use FB 192 to read out the slave diagnosis
for a DP slave in the STEP 5 user program.
Assumptions
The following assumptions apply to this STEP 5 user program:
• 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 has the PROFIBUS address 3.
• The slave diagnosis is to be stored in DB20. However, you can also use any
other data block for this.
• The slave diagnosis consists of a maximum 64 bytes (IM151-1 STANDARD).
6-26
Block or
register in
STEP 7
"DP Slave
Slave diagnosis in plain-text form
Diagnostics" tab
on the STEP 7 user interface
SFC 13
Read out slave diagnosis
"DP NRM_DG"
(store in data area of the user
program)
SFC 59
Read data records of the S7
"RD_REC"
diagnosis (store in the data area of
the user program)
SFB 52
Read data records from the DP
"RDREC"
slave
SFB 54
Receive interrupts from the
1)
"RALRM"
interrupt OBs
FB 192
Read out slave diagnosis
"IM308C"
(store in data area of the user
program)
FB 230
"S_DIAG"
Application
)
See .
The section on hardware
diagnostics in the STEP 7
online help system
For the structure, see
Section 6.1.6.2; for SFC,
see the STEP 7 online
help system
See the system and
standard functions
reference manual
For SFB, see the STEP 7
online help system
(system functions/system
function blocks)
For SFB, see the STEP 7
online help system
(system functions/system
function blocks)
For the structure, see
Section 6.1.6.2; for FBs,
see the ET 200
th ET 200
Distributed I/O System
manual
ET 200S Distributed I/O System
EWA-4NEB 780602402-12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents