Siemens SIMATIC ET 200S Manual page 188

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

Advertisement

Commissioning and Diagnostics
Example of reading the S7 diagnosis using SFC13 "DP NRM_DG"
Here you will find an example of how to use SFC 13 to read out the slave
diagnosis for a DP slave in the STEP 7 user program.
Assumptions
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: starting at address
0.0, length 64 bytes.
• The slave diagnostics is max. 64 bytes (IM151-1 STANDARD in DPV0
operation).
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
6-28
Explanation
Read request
Diagnostic address of the ET 200S
RET_VAL of SFC13
Data mailbox for the diagnosis in DB82
Read operation runs over several OB1 cycles
).
H
ET 200S Distributed I/O System
EWA-4NEB 780602402-12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents