Sunteți pe pagina 1din 12

http://support.automation.siemens.

com/WW/view/en/29338956

How is the diagnostic data of the DP diagnostics block FB125 in WinCC flexible visualized?

Entry ID:29338956 Date:2008-05-30

WinCC flexible ES -- Creating HMI configurations -- Outputting protocols, screens, messages and
documents
How is the diagnostic data of the DP diagnostics block FB125 in WinCC flexible visualized?

Instructions:
Using the diagnostics block FB125 from the S7 project "DP_DIAxx" the individual Profibus users can
be diagnosed in a Profibus subnet. You can download the diagnostics block or the S7 project under
the following Entry ID 387257.

Fig. 01

You find the diagnostics screens adapted to the appropriate operator panels for ProTool and for
WinCC flexible under the following Entry ID 5362473. If the operator panel is not in the download, use
the download of the previous version of the operator panel.

Alternatively you can use the WinCC flexible Library that can be loaded at the end of the entry.

The following description explains how you incorporate the FB125 and the diagnostics screens for
WinCC from the loadable library into your project:

No. Procedure
1 STEP 7 Open Manager

 Create a new project in STEP 7 and add all hardware components.


 Open the S7 project "DP_DIAxx".
 Copy the FB125 and DB125 or alternatively the FC125 into your project.
 Likewise add the OB82 and the OB86.

Fig. 02
2 Call function block FB125 in OB1

Page 1 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

 Call the FB125 including the DB125 in the cyclical program (for example OB1).
 Save and close the appropriate block - in the example OB1.

Fig. 03

3 Creating WinCC flexible project

 Select the project folder in the project path (1).


 Add a new WinCC flexible station via the menu "Insert > Station > SIMATIC HMI
Station" (2).

Fig. 04

Note:
For the Profibus diagnostics the WinCC flexible project must not necessarily be integrated in
STEP 7. The requirement in the WinCC flexible project is the correctly configured connection
to the controller in which the diagnostics block FB125 is called.
4 Opening WinCC flexible project

 Select the newly-created SIMATIC HMI station in the STEP 7 project.


 Open the context menu with a right-click and click on "Open Project".
 Select an operator panel (for example MP377).
 In WinCC flexible configure the Profibus connection between controller and operator
panel under "Communication > Connections".

Note:
Assign a clear user address.

Page 2 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

Fig. 05
5 Open WinCC library

 Click on the toolbar (1) on "Library".


 Open the context menu of the library with a right-click (2).
 Under "Library..." choose "Open" (3).

Fig. 06
6 Adding WinCC flexible library

 Add by "Drag & Drop" the diagnostics screens of the opened library to the folder
"Screens" in the project window.
 Add three buttons with the following designations:
- "Diagnostic Overview"
- "Detail Diagnostic"
- "Cable Diagnostic"
 In the properties of each button configure under the event "Print" the system function
"ActivateScreen" with the appropriate diagnostics screen.
 Add another button in the diagnostics screens, to change to the Start picture.

Fig. 07
7 Transferring project

 Connect the controller physically with operator panel.


 Load the STEP 7 project into the appropriate controller.

Note:
You can also use the option package "PLCSIM" to verify the diagnostics block.

Page 3 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

a) Verifying a real system

 Transfer the WinCC flexible project into the operator panel or use the WinCC flexible
PC-Runtime.
 Switch the controller into the "RUN"-mode.

b) Simulation with PLCSIM

 Open the option package "PLCSIM".


 Load the STEP 7 configuration including STEP 7 program into the PLCSIM Station.
 Switch the controller into the "RUN"-mode.
 In the "PLCSIM" menu via "Execute > Trigger Error OB" click on "Rack Failure
(OB86)...".
 Switch to the "DP Failure" tab.
 Select a configured DP Slave and then select "Station fault".
 Then click on the "Apply" button.

Fig. 08

Note:
For the simulation with PLCSIM further illustrations are avoided, because the subsequent
instructions are almost identical.

8 Verifying diagnostics blocks

 Start the WinCC flexible Runtime.


 Click on the button "Diagnostics overview".
 With the real system cause a disturbance (for example separate a configured DP slave
from the Profibus network).

Fig. 09

 Click on the button with the "magnifying glass", to change the screen to "Diagnostics
details".

Page 4 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

Fig. 10

 Change to the screen "Cabling diagnostics", by clicking on the second button below
see Fig. 09.
 Close PLCSIM as well as the WinCC flexible PC Runtime.

Fig. 11

Download:
In the attachment 1 you will find the library described above, available from WinCC flexible 2007.

Attachment 1: WinCC_flexible_Library_FB125.zip ( 10197 KB )

In Attachment 2 you will find the sample project described above. The current FB125 is available for
downloading under the Entry ID 387257.

Attachment 2: Example_FB125.zip ( 3123 KB )

Runnability and test environment:


The following table lists the components that have been used to create this entry and verify the
functions described.

Components Product and version designation


PC operating system Microsoft Windows XP SP2
Standard tools -
Engineering tool STEP 7 V5.4 SP3
HMI software WinCC flexible 2007 HF 4

Page 5 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

HMI system MP377

Keywords:
Profibus diagnostics, DP Slave diagnostics

Fig. 01

Fig. 02

Page 6 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

Fig. 03

Fig. 04

Page 7 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

Fig. 05

Fig. 06

Page 8 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

Fig. 07

Fig. 08

Page 9 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

Fig. 09

Page 10 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

Fig. 10

Fig. 11

Page 11 of 12 1/20/2011 11:34:36 AM


http://support.automation.siemens.com/WW/view/en/29338956

Entry ID:29338956 Date:2008-05-30

© Siemens AG 2011 - Corporate Information - Privacy Policy - Terms of Use

Page 12 of 12 1/20/2011 11:34:36 AM

S-ar putea să vă placă și