Siemens SIMATIC IM151-1 STANDARD Manual page 40

Et 200s distributed i/o interface module
Hide thumbs Also See for SIMATIC IM151-1 STANDARD:
Table of Contents

Advertisement

Interrupt, error, and system messages
4.4 Diagnostics with STEP 7
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.
For the purpose of this STEP 7 user program, the following is assumed:
● The diagnostic address of the ET 200S is 1022 (3FE
● The slave diagnostics are to be stored in DB 82: Starting from address 0.0, length = 64
bytes.
● The slave diagnostics consist of a maximum of 64 bytes (IM151-1 STANDARD in DPV0
mode).
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
40
Description
Read request
Diagnostic address of the ET 200S
RET_VAL of SFC 13
Data record for the diagnostics in DB 82
The read process runs through several OB 1 cycles
Interface module IM151-1 STANDARD (6ES7151-1AA06-0AB0)
).
H
Manual, 07/2015, A5E01075950-AD

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

6es7151-1aa06-0ab0

Table of Contents