![](https://csdnimg.cn/release/download_crawler_static/87750347/bg1.jpg)
SIEMENS 20.02.2003
Page 1/17 DP_DIA45_e.DOC
Description of the DP-Diagnostic Blocks for SIMATIC S7
Two different S7 blocks stand for the user program for diagnostic evaluation of decentralized structure
with PROFIBUS-DP and SIMATIC S7.
• The
FB125
is the right solution, if beside a overview diagnosis of the detailed information about fault
or failure of the bus node is required.
• The
FC125
is the easy variant and is valuing just for Information from (overview diagnosis) ”which
bus nodes are failed or faulty”. The detailed information can not be displayed with this block.
1 Application Area of FB125 and FC125
FB125 and FC125 can be used in the following integral and external DP interfaces:
• CPU 313C-2 DP
• CPU 314C-2 DP
• CPU 315-2 DP (from 6ES7 315-2AF
02
-0AB0)
• CPU 315-2 DP (only 6ES7 315-2AF
01
-0AB0):
Î
FC125 not usable
Î
FB125 without detection of faulty slaves by Start/RESET
• CPU 316-2 DP
• CPU 318-2 DP
• C7-626 DP (from 6ES7 626-2AG01-0AE3)
•
C7-633 DP and C7-634 DP
• SINUMERIK 840D with integrated CPU315-2 DP (6ES7 315-2AF
01
-0AB0):
Î
FC125 not usable
Î
FB125 without detection of faulty slaves by Start/RESET
•
SINUMERIK 840DI with integrated CPU315-2 DP (6ES7 315-2AF
03
-0AB0)
• CPU 41x-2/3/4 DP
• CP 443-5
• IM 467 and IM 467 FO
• WIN AC
• WIN LC
•
Not
for CP 342-5
2 FB125 Diagnostic Block
The FB125 is a interrupt-driven function for detection of failed and faulty DP slaves. In the case of faulty
slaves, detailed diagnostics information concerning the cause of the fault is displayed (slot or module
number, module status, channel number, channel fault). The diagnostics information of any DP slaves
can be read and interpreted via individual diagnostics. Overview diagnostics give information on
configured, existing, failed and faulty DP slaves
.
The FB125 diagnostic block also offers information of
subordinate ASI bus systems, when a DP/ASI-Link is used as a DP slave. If there’s an diagnostic
repeater (MLFB: 6ES7 972-0ABxx-0XA0) in the plant, the FB125 decodes the diagnostic frame of the
repeater and informs you about error location and error cause.
All interrupts are delayed during execution of the FB125.
2.1 Calling the FB125 DP in the S7 User Program
The DP diagnostic block is called via the following statement in the user program:
CALL FB125, DBxy
(xy represents any instance data block number)