Siemens SIMATIC ET 200S Manual page 16

Hide thumbs Also See for SIMATIC ET 200S:
Table of Contents

Advertisement

Error and system messages
3.3 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 = 43
● The slave diagnostics can be up to 43 bytes long.
STEP 7 user program
STL
CALL SFC 13
REQ
:=TRUE
LADDR
:=W#16#3FE
RET_VAL
:=MW0
RECORD
:=P#DB82.DBX 0.0 BYTE 43
BUSY
:=M2.0
16
bytes.
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
IM151-1 BASIC interface module (6ES7151-1CA00-0AB0)
).
H
Manual, 07/2008, A5E01075925-02

Advertisement

Table of Contents
loading

Table of Contents