Commissioning and diagnostics
4-10
ET 200eco Distributed I/O Station
A5E00158716-02
Example of how to use FB 192 “IM308C” to read slave diagnostic data
This example shows you how to use SFC 192 to view diagnostics data of a DP
slave in the STEP 5 user program.
Assumptions
For this STEP 5 user program we shall assume that:
•
The DP master IM 308-C uses page frames 0 to 15 (Number 0 of IM 308-C).
•
The DP slave’s PROFIBUS address is ”3”.
•
Slave diagnostics data are to be written to DB 20. You can also use any other
DB.
•
Slave diagnostics data consists of 13 bytes.
STEP 5 user program
STL
Explanation
:A
DB 30
:SPA
FB 192
Name
:IM308C
DPAD
:
KH F800
IMST
:
KY 0, 3
FCT
:
KC SD
GCGR
:
KM 0
TYP
:
KY 0, 20
STAD
:
KF +1
LENG
:
KF –1
ERR
:
DW 0
Default address area of IM 308-C
IM ID = 0, PROFIBUS address of the DP slave = 3
Function: Read slave diagnostics data
not evaluated
S5 data area: DB 20
Diagnostic data starting at dataword 1
Diagnostic length = wildcard length (all permitted
bytes)
Error code written to DW 0 of DB 30
Содержание SIMATIC ET 200eco
Страница 8: ...Preface viii ET 200eco Distributed I O Station A5E00158716 02 ...
Страница 18: ...Product overview 1 6 ET 200eco Distributed I O Station A5E00158716 02 ...
Страница 70: ...Commissioning and diagnostics 4 16 ET 200eco Distributed I O Station A5E00158716 02 ...
Страница 116: ...I O address area C 6 ET 200eco Distributed I O Station A5E00158716 02 ...
Страница 124: ...Index Index 4 ET 200eco Distributed I O Station A5E00158716 02 ...