Commissioning and Diagnostics
5-30
ET 200X Distributed I/O Device
EWA 4NEB 780601602-06
Example of reading out the slave diagnosis with SFC 13 ”DPNRM_DG”
Here you will find an example of how to use SFC 13 to display 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 diagnosis address of the ET 200X is 1022 (3FE
H
).
The slave diagnosis should be stored in DB 82: as of address 0.0, length 64
bytes.
The slave diagnosis consists of 64 bytes.
STEP 7 user program
STL
Description
CALL SFC 13
REQ
:=TRUE
LADDR
:=W#16#3FE
RET_VAL :=MW 0
RECORD
:=P#DB82.DBX 0.0 BYTE 64
BUSY
:=M2.0
Read request
Diagnosis address of the ET 200X
RET_VAL of SFC 13
Data mailbox for the diagnosis in DB 82
Read operation runs over several OB1 cycles
Summary of Contents for SIMATIC ET 200X
Page 8: ...Preface viii ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Page 20: ...Contents xx ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Page 40: ...Product Overview 1 20 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Page 58: ...Configuration Options 2 18 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Page 80: ...Installation 3 22 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Page 124: ...Configuration Options 2 18 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Page 328: ...Order Numbers A 10 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Page 348: ...Dimesioned Drawings and Pinouts C 18 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Page 362: ...Index Index 8 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...