Commissioning and diagnostics
4-9
ET 200eco Distributed I/O Station
A5E00158716-02
Example of how to fetch slave diagnostics data with SFC 13 “DPNRM_DG”
This example shows you how to use SFC 13 to view diagnostics data of a DP
slave in the STEP 7 user program.
Assumptions
For this STEP 7 user program we shall assume that:
•
The diagnostics address of ET 200eco is 1022 (3FE
H
).
•
Slave diagnostics data will be written to DB 82: starting at address 0.0, with a
length of 13 bytes.
•
Slave diagnostics data consists of 13 bytes.
STEP 7 user program
STL
Explanation
CALL SFC 13
REQ
:=TRUE
LADDR
:=W#16#3FE
RET_VAL :=MW 0
RECORD
:=P#DB82.DBX 0.0 BYTE 13
BUSY
:=M2.0
Request to read
Diagnostics address of ET 200eco
RET_VAL of SFC 13
Diagnostics data record in DB 82
OB1 performs several read access cycles
Summary of Contents for SIMATIC ET 200eco
Page 8: ...Preface viii ET 200eco Distributed I O Station A5E00158716 02 ...
Page 18: ...Product overview 1 6 ET 200eco Distributed I O Station A5E00158716 02 ...
Page 70: ...Commissioning and diagnostics 4 16 ET 200eco Distributed I O Station A5E00158716 02 ...
Page 116: ...I O address area C 6 ET 200eco Distributed I O Station A5E00158716 02 ...
Page 124: ...Index Index 4 ET 200eco Distributed I O Station A5E00158716 02 ...