![Siemens IM 153-4 PN Operating Instructions Manual Download Page 192](http://html.mh-extra.com/html/siemens/im-153-4-pn/im-153-4-pn_operating-instructions-manual_377175192.webp)
Interrupt, error and system messages
9.1 PROFIBUS DP
ET 200M
190
Operating Instructions, 12/2008, EWA-4NEB780600602-08
Example for reading the slave diagnosis with FB 192 "IM308C"
Here you will find an example of how to use the FB 192 to read 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 connection as a DP master occupies the frames 0 ... 15 (number 0 of the
IM 308-C).
●
The DP slave has the PROFIBUS address 3.
●
The slave diagnosis should be stored in the DB 20. You can also use any other data
block for this.
●
The slave diagnosis consists of 29 bytes.
STEP 5 user program
STL Description
:A
DB
30
:SPA FB
192
Name :IM308C
DPAD
:
KH F800
Default address area for the IM 308-C
IMST
:
KY 0, 3
IM no. = 0, PROFIBUS address of the DP slave = 3
FCT
:
KC SD
Function: Read slave diagnosis
GCGR
:
KM 0
is not evaluated
TYPE
:
KY 0, 20
S5 data area: DB 20
STAD
:
KF +1
Diagnosis data as of data word 1
LENG
:
KF -1
Diagnosis length = joker length (all permissible
bytes)
ERR
:
DW 0
Error code storage in the DW 0 of the DB 30
Summary of Contents for IM 153-4 PN
Page 186: ...Functions 8 9 SNMP ET 200M 184 Operating Instructions 12 2008 EWA 4NEB780600602 08 ...
Page 254: ...Order Numbers for the ET 200M ET 200M 252 Operating Instructions 12 2008 EWA 4NEB780600602 08 ...
Page 268: ...Glossary ET 200M 266 Operating Instructions 12 2008 EWA 4NEB780600602 08 ...