EasyManua.ls Logo

Siemens SIMATIC ET 200M

Siemens SIMATIC ET 200M
274 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Other manuals for Siemens SIMATIC ET 200M

Related product manuals