Siemens Simatic ET 200S Operating Instructions Manual page 170

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

Advertisement

Alarm, error and system messages
8.1 Alarm, error and system messages on PROFIBUS DP
Automation system with DP
master
only for S7-400 from V3.0 and CPU 318 from V3.0
1
Example of reading out S7 diagnostics using SFC 13 "DP NRM_DG"
Here, you will find an example of how to use SFC 13 to read out the slave diagnostics for a
DP slave in the STEP 7 user program.
The following assumptions apply to this STEP 7 user program:
• The diagnostic address of the ET 200S is 1022 (3FE
• The slave diagnostic information is to be stored in DB 82: from address 0.0, length
• The slave diagnostics consist of a maximum 64 bytes (IM151-1 STANDARD in DPV0
STEP 7 user program
STL
CALL SFC 13
REQ
:=TRUE
LADDR
:=W#16#3FE
RET_VAL
:=MW0
RECORD
:=P#DB82.DBX 0.0 BYTE 64
BUSY
:=M2.0
8-22
STEP 7
Block or tab in
SFB 54 "RALRM"
1
64 bytes.
mode).
Application
Receiving interrupts from the
interrupt OBs
Explanation
Read request
Diagnostic address of the ET 200S
RET_VAL of SFC 13
Data record for the diagnostic information in DB82
The read process iterates through several OB 1 cycles
Reference
Online Help in
SFB see
STEP 7
(system
functions/system function
blocks)
).
H
Operating Instructions, 12/2005, A5E00515771-03
ET 200S

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents