Commissioning and Diagnostics
5-31
ET 200X Distributed I/O Device
EWA 4NEB 780601602-06
Example of displaying the slave diagnosis with FB 192 ”IM308C”
Here you will find an example of how you use FB 192 to read out the slave
diagnosis for a DP slave in the STEP 5 user program.
Assumptions
The following assumptions apply to this STEP 5 user program:
The IM 308-C is assigned pages 0 to 15 (number 0 of the IM 308-C) as the DP
master.
The DP slave has PROFIBUS address 3.
The slave diagnosis is required to be stored in DB 20. However, you can also
use any other data block for this.
The slave diagnosis consists of 26 bytes.
STEP 5 user program
STL
Description
:A
DB 30
:JU
FB 192
Name
:IM308C
DPAD
:
KH F800
IMST
:
KY 0, 3
FCT
:
KC SD
GCGR
:
KM 0
TYPE
:
KY 0, 20
STAD
:
KF +1
LENG
:
KF –1
ERR
:
DW 0
Default address area of the IM 308-C
IM No. = 0, PROFIBUS address of DP slave = 3
Function: Read slave diagnosis
Not evaluated
S5 data area: DB 20
Diagnostic data from data word 1
Diagnosis length = joker length (all permissible
bytes)
Error code stored in DW 0 of DB 30
Содержание SIMATIC ET 200X
Страница 8: ...Preface viii ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Страница 20: ...Contents xx ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Страница 40: ...Product Overview 1 20 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Страница 58: ...Configuration Options 2 18 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Страница 80: ...Installation 3 22 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Страница 124: ...Configuration Options 2 18 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Страница 328: ...Order Numbers A 10 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Страница 348: ...Dimesioned Drawings and Pinouts C 18 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...
Страница 362: ...Index Index 8 ET 200X Distributed I O Device EWA 4NEB 780601602 06 ...