Download Print this page

Siemens SIMATIC ET 200M Operating Instructions Manual page 192

Distributed i/o device
Hide thumbs Also See for SIMATIC ET 200M:

Advertisement

Interrupt, error and system messages
9.1 PROFIBUS DP
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
Assumptions
The following assumptions apply to this
● The IM 308-C connection as a DP master occupies the frames 0 ... 15 (number 0 of the
● 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
● The slave diagnosis consists of 29 bytes.
STEP 5 user program
STL
Name
DPAD
IMST
FCT
GCGR
TYPE
STAD
LENG
ERR
190
STEP 5
user program.
IM 308-C).
block for this.
:A
DB 30
:SPA
FB 192
:IM308C
:
KH F800
:
KY 0, 3
:
KC SD
:
KM 0
:
KY 0, 20
:
KF +1
:
KF -1
:
DW 0
STEP 5
user program:
Description
Default address area for the IM 308-C
IM no. = 0, PROFIBUS address of the DP slave = 3
Function: Read slave diagnosis
is not evaluated
S5 data area: DB 20
Diagnosis data as of data word 1
Diagnosis length = joker length (all permissible
bytes)
Error code storage in the DW 0 of the DB 30
Operating Instructions, 12/2008, EWA-4NEB780600602-08
ET 200M

Hide quick links:

Advertisement

loading

This manual is also suitable for:

Im 153-1Im 153-2Im 153-2 foIm 153-4 pn