Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Siemens AG, Sector Industry, Industry Automation, Automation Systems This entry is from the Technical Support of Siemens AG, Industry Automation. If you have any questions regarding this entry, please contact us at the following email address: support.automation@siemens.com
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
Contents
Contents
Warranty and Liability ................................................................................................. 2 1 Overview ............................................................................................................. 4 1.1 1.2 1.3 1.3.1 2 2.1 2.2 2.2.1 2.3 2.4 2.5 3 3.1 3.1.1 3.1.2 3.1.3 4 5 4.1 5.1 5.2 6 6.1 Motivation ............................................................................................. 4 Overview of Diagnostics Options ......................................................... 4 Requirements for Extended Diagnostics of PCS 7 and WinCC Plants 6 Software Components.......................................................................... 6 Dr. Watson ........................................................................................... 8 User Mode Process.............................................................................. 9 Processes to be monitored ................................................................ 14 Script Diagnostics (APDIAG) ............................................................. 16 Windows Performance Monitor .......................................................... 18 SIMATIC Batch Trace ........................................................................ 26 SIMATIC Diagnostics Tool ................................................................. 30 Install the SIMATIC Diagnostics Tool................................................. 30 Configure the SIMATIC Diagnostics Tool Locally .............................. 31 Configure the SIMATIC Diagnostics Tool Centrally ........................... 34 Acquisition of Local Diagnostics Data ................................................ 39 Bibliography........................................................................................ 41 Internet Links...................................................................................... 41 Version Overview ............................................................................... 42
Tools ................................................................................................................. 30
History............................................................................................................... 42
1 Overview
1
1.1
Overview
Motivation
Proper evaluation of qualified status data is necessary for successful diagnostics and resulting actions. The aim is to improve the quality diagnostics results and therefore their comparability by applying automatic, uniform diagnostics. The advantages of this diagnostics concept are the following: Standardized and automatic acquisition of diagnostics data Permanent and comprehensive diagnostics Integration of the diagnostics tool without causing interference of production operations The diagnostics data is available as soon as an event occurs Diagnostics of the Windows process level
1.2
Figure 1-1
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
1 Overview
Dr. Watson Dr. Watson logs data after a program error. Creating a log file Creating a crash memory dump
User Mode Process The "User Mode Process Dumper" monitors the processes set and creates a memory dump in the event of an error. Script Diagnostics (APDIAG) Diagnostics tool for in-depth and effective analysis of script errors. Runtime monitoring for determining script errors. Support in analyzing errors and performance problems.
Windows Performance Monitor The system monitor (performance monitor) integrated in the Windows operating system is designed to detect resource bottlenecks in the system. Detailed monitoring of the operating system resources used. Cyclic recording of system resources.
SIMATIC Batch Trace After activation, a log of the batch processes is stored continuously. SIMATIC Diagnostics Tool The "SIMATIC Diagnostics Tool" acquires diagnostics and system data for service, support and maintenance. The tool can be run locally on a computer, but can also acquire diagnostics data from other computers via remote access in distributed systems. Acquisition of diagnostics data. Acquisition of system data. Archiving of acquired data sorted according to computer in the ZIP format. Transfer of central data via the integrated ftp service.
1 Overview
1.3
1.3.1
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
1 Overview
User rights and releases The user requires administrator rights on the target system for installation and setting up. Hard disk space At least 3 GB of memory are required on your hard disk for the diagnostics data. The storage path is defined as "D:\Siemens\Diagnostics".
This storage path is used by the "User Mode Process" and "Windows Performance Monitor" tools and the "SIMATIC Diagnostics Tool".
Limitation This diagnostics concept does not include a description of the Engineering tools PCS 7 and WinCC Basic knowledge of these topics is prerequisite.
2 Configuration of Diagnostics
Configuration of Diagnostics
To fulfill the requirements for comprehensive diagnostics it is recommended to make all the settings described in this chapter.
2.1
Dr. Watson
Below we describe how to set "Dr. Watson" as the default debugger.
Table 2-1 No. 1. 2. 3. Procedure Execute Start > Run.... Enter DRwtsn32 -i and start the procedure with OK. Again select Start > Run... and again enter DRwtsn32 and again start the procedure with OK. Set the crash dump to Full.
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
2.2
Table 2-2 No. 1. Procedure Download the User Mode Process Dumper version V8.1 from the Microsoft internet site and install the user dump tool in "C:\kktools\userdump8.1".
2.
Switch to the "C:\kktools\userdump8.1" directory. Start the "setup.exe" of the User Mode Process Dumper from the folder corresponding to your operating system (ia64, x64 or x86). In the next window you click the "Next" button.
2 Configuration of Diagnostics
3.
In the "Terminate Mode" window you select the option "Disable "Dump on Process Termination" feature" and confirm with the "Next" button.
4.
Now, in the "Confirmation" window you click the "Finish" button to complete the installation.
5.
Acknowledge the next message with "Yes" to open the configuration of the "User Mode Process Dumper".
10
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
6.
In the "User Mode Process Dumper Properties" window you open the default rules and requirements window with the "Default Settings" button.
11
2 Configuration of Diagnostics
7.
In the "Default Exception Rules" window you set the rules as shown in the screenshot below and define the storage path of the dump as "D:\Siemens\Diagnose\Dumps".
Close the window with "OK". Note: These settings are used for all processes in which no "Custom Rules" are activated. The "dump files" are acquired by the "SIMATIC Diagnose Tool" from this predefined storage path.
12
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
8.
In the "User Mode Process Dumper Properties" window you use the "New" button to add a new item.
9.
In the "Add Application to Monitor for Excepti" window you enter the process name of the application in Table 2-3 respectively 2-4 that you wish to monitor in the Application name: field.
Close the window with OK. 10. 11. 12. Continue likewise with all the processes listed in Table 2-3 respectively 2-4. Here, a difference is made as to whether the configuration is made on the OS server or OS client. Once you have defined all the processes, you quite the User Mode Process
13
2 Configuration of Diagnostics
2.2.1
Processes to be monitored
When selecting the processes, a difference is made between OS server and OS client.
OS server With the OS server you add the following processes to the User Dump Tool.
Table 2-3 Process CCAgent.exe CCAlgRtServer.exe CCArchiveManager.exe CCDeltaLoader.exe CCEClient.exe CCEServer.exe CCLicenseService.exe CCProjectMgr.exe CCPtmRTServer.exe CCRtsLoader.exe CCSsmRTServer.exe CCTextServer.exe CCTlgServer.exe CCWriteArchiveServer.exe Gscrt.exe PdlRt.exe Rebootx.exe RedundancyControl.exe RedundancyState.exe script.exe Description Monitors the network in which the WinCC station is located. Used by NetCC. WinCC Alarm Logging Runtime Server WinCC Archive Manager Logs the changes made in a project. Central communication. Central communication. License monitoring Project Manager Picture Tree Manager Loader for WinCC Data Manager Base data management for Runtime Text Server WinCC Tag Logging Runtime Server Archive Server called at least three times for ALG, TLG fast and TLG2 slow archiving. Global Script - Runtime Graphics - Runtime PCS7 Reboot Box WinCC Redundancy Control WinCC Redundancy State Background processing of actions / functions
WARNING
In the case of blocking, manual dumps of the processes PdlRt.exe and script.exe must be made before restarting the computer. More information on generating manual dumps is available in our Entry ID: http://support.automation.siemens.com/WW/view/en/45020870
14
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
OS client With the OS server you add the following processes to the User Dump Tool.
Table 2-4 Process CCDmIVarProxyServer.exe CCEClient.exe CCEServer.exe CCNSInfo2Provider.exe CCPtmRTServer.exe CCSsmRTServer.exe gscrt.exe PassDBRT.exe PdlRt.exe RedundancyState.exe script.exe SFCRT.exe Sopcsrvrwincc.exe Picture Tree Manager Base data management for Runtime Global Script - Runtime User Administrator - Runtime Graphics - Runtime WinCC Redundancy State Background processing of actions / functions Visualization of SFCs SIMATIC OPC Server Central communication. Central communication. Description Ivar2 Proxy data manager access
WARNING
In the case of blocking, manual dumps of the processes PdlRt.exe and script.exe must be made before restarting the computer. More information on generating manual dumps is available in our Entry ID: http://support.automation.siemens.com/WW/view/en/45020870
Note Using the User Mode Process described does not affect the normal operation of the software and hardware. However, when using a dump event, might lead to temporary loss of performance and changes to the system timing.
15
2 Configuration of Diagnostics
2.3
2.
In the menu bar click Diagnostics, and then in the drop-down menu click Start. Enable the option Start automatically with start of WinCC and then select LEVEL_3. In this way diagnostics is started each time you open a project.
16
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
3.
In the menu bar you click Diagnostics, and then in the drop-down menu click OnFile. Make the settings as below.
With the OnErrorExecute -> Error in File parameter you set that the output of an OnErrorExecute is made in the OnErrorN.txt file in the ..\Siemens\WinCC\Diagnose directory. Close the window with OK.
17
2 Configuration of Diagnostics
2.4
Start the Performance Monitor with Start > Run . Enter perfmon and start the procedure with OK.
Open the menu item New Log Settings Fromin the Counter Logs submenu. Use the appropriate templates (*.htm files) for the log settings in Table 1-2 .
2.
3.
18
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
No. 4.
Action
Remark
Select the profile concerned from the prepared templates in accordance with the type of computer. DiagAllCountersClient.htm for a WinCC client. DiagAllCountersServer.htm for a WinCC server.
Close the dialog box with Open. 5. Accept the specified name for the setting. DiagAllCountersServer DiagAllCountersClient
19
2 Configuration of Diagnostics
No. 6.
Action The import makes the basic settings below. Storage path for the log file: D:\Siemens\Diagnostics\DiagAllCountersServ ermmddmmhh.blg Tab: General
Remark The log files are acquired by the SIMATIC Diagnose Tool from this predefined storage path.
20
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
Action
Remark
7.
In the Configure Log Files dialog the limit of the log files is set to 1024 MB.
21
2 Configuration of Diagnostics
No. 8.
Action
Remark
In the Schedule tab the Start log time is to be set in the past and the Stop log time is to be set in the future.
Click OK to close the settings. 9. The performance log is started automatically. The icon changes to green.
22
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
Event log entries How to parameterize the settings of an event log entry is described below.
Table 2-7 No. 1. Action Open the menu item New Alert Settings From in the Alerts submenu. Remark
2.
Open the menu item New Alert Settings From. Accept the specified name for the setting.
Use the template CPUPeakCheck.htm for the log settings in Table 1-2. CPUPeakCheck
3.
23
2 Configuration of Diagnostics
No. 4.
Remark
5.
24
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
WARNING
The performance log and the alarm configuration are restarted automatically when the PC is restarted. A new log file is created. Note that this occupies additional hard disk space. You can delete log files that are no longer needed in D:\Siemens\Diagnostics. If you terminate the performance log or alarm configuration manually with the STOP button, the preset times for logging are set to Manual. Then you must the times again as in Table 2-6 No. 8, otherwise the logging is not restarted automatically.
25
2 Configuration of Diagnostics
2.5
Table 2-8 No. 1. Action In the Windows Explorer double-click pcs7commontracecontrolx.exe to start the Trace Configuration Editor. Remark The Trace Control Panel opens.
26
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
No. 2.
3.
Select the API Batch Api item >> right-click >> Modify Selection (recursive).
27
2 Configuration of Diagnostics
No. 4.
Action Activate the option Enable, E, W, I, C, D. Close the dialog with OK.
Remark
5.
Save the settings in the Trace Configurator with Store. Acknowledge the message with OK.
28
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
2 Configuration of Diagnostics
No. 6. 7.
Remark
29
3 Tools
Tools
The archiving tool presented here is to be stored on the PC and so that it can be activated as required.
3.1
3.1.1
Table 3-1 No. 1. Procedure Copy the Zip archive SDT_2010_1.zip to you Engineering Station or target computer and unpack the archive on you drive in this path: ..\Program Files\Siemens\WinCC\uTools. For this use the password: 12345678. Copy all the xml files supplied with this diagnostics concept into the directory created: ..\Program Files\Siemens\WinCC\uTools\SDT_2010_1\bin Download the PsTools (PsExec) from the Microsoft internet site at: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx and copy it into this subfolder: ..\Program Files\Siemens\WinCC\uTools\SDT_2010_1\bin 4. Unpack the Zip archive PSTools.zip on your in drive in this path: ..\Program Files\Siemens\WinCC\uTools\SDT_2010_1\bin Download the User Mode Process Dumper tool from the Microsoft internet site. Link: User Mode Process Dumper Version 8.1 and unpack the User Dump tool in C:\kktools\userdump8.1.
2. 3.
5.
30
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
3 Tools
3.1.2
31
3 Tools
Table 3-2 No. 1. 2. Procedure Start the Settings Manager by double-clicking SettingsManager.exe in ..\Program Files\Siemens\WinCC\uTools\SDT_2010_1 Click the Open File button to open the profile supplied: local.xml.
3.
Under Computer Usage you select an appropriate designation or enter a designation of your choice.
32
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
3 Tools
No. 4.
Procedure Specify a storage path for the diagnostics data. This is preset as D:\Siemens\. Large volumes of data might be involved depending on the configuration. Therefore you should select a drive with enough free memory.
5.
Save the configuration with a new file name (plant designation) via File -> Save File As.
6.
This completes the configuration for acquiring all the local diagnostics data.
33
3 Tools
3.1.3
Requirements In order for the SIMATIC Diagnostics Tool to be able to acquire data from target computers in the network, specific requirements must be fulfilled on the target computers. Standard release of C:\ is activated: C$ Administrative account is known: User + Password Target computer is accessible: Start > Run > ping computer name
34
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
3 Tools
Table 3-3 No. 1. 2. Procedure Start the Settings Manager by double-clicking SettingsManager.exe in ..\Program Files\Siemens\WinCC\uTools\SDT_2010_1 Click the Open File button to open the profile supplied: remote.xml.
35
3 Tools
No. 3.
Procedure Add the data of the target computer under Manage Computer Profiles. Under Computer Usage you select an appropriate designation or enter a designation of your choice.
4.
Specify a storage path for the diagnostics data. This is preset as D:\Siemens\.
Large volumes of data might be involved depending on the configuration. Therefore you should select a drive with enough free memory.
5.
36
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
3 Tools
No. 6.
Procedure Add the data of the target computer under Manage Computer Profiles. Under Computer Usage you select an appropriate designation or enter a designation of your choice.
7. 8.
Copy and create a new profile for each target computer as in Steps 5 and 6. Save the configuration with a new file name (plant designation) via File -> Save File As.
37
3 Tools
No. 9.
Procedure Then quit the Settings Manager with the Exit button.
This completes the configuration for acquiring all the remote diagnostics data.
38
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
4
4.1
Table 4-1 No. 1. 2. Procedure Start the SIMATIC Diagnostics Tool by double-clicking SimaticDiagnosticsTool.exe in ..\Program Files\Siemens\WinCC\uTools\SDT_2010_1 Use the Open File button to download the configuration created in Chapter 3.
3.
Click the Get Information button to start acquiring all the configured data.
39
No. 4.
Procedure The message below indicates that the acquisition procedure has been completed successfully.
5.
40
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507
5 Literature
5
5.1
Literature
Bibliography
This list is by no means complete and is only a selection of relevant literature.
Table 5-1 Subject area /1/ /2/ PCS 7 Diagnostics Title SIMATIC Process Control System PCS 7 V7.0 PCS 7 Service Support and Diagnostics
5.2
Internet Links
This list is by no means complete and is only a selection of relevant information.
Table 5-2 Subject area \1\ \2\ \3\ Reference to entry Siemens Customer Support SIMATIC Diagnostics Tool Title
http://support.automation.siemens.com/WW/view/en/22089969 http://support.automation.siemens.com/WW/view/en/23486418 http://support.automation.siemens.com http://support.automation.siemens.com/WW/view/en/44029135
41
6 History
6
6.1
History
Version Overview
Table 6-1 Version V2.0 V2.1 V2.2 V2.3 V2.4 V2.5 V2.5.1 Date 07.12.2010 19.01.2011 28.01.2011 01.02.2011 01.04.2011 15.04.2011 25.05.2011 Second edition Maintenance in compliance with system test Inclusion of review comments Section 2.2.1 changed Redundancy Control removed Chapter 2.2.1 added with link on entry 45020870 English screenshots added .NET component deselected for the SIMATIC Diagnose Tool xml profiles changed Change
42
Extended Diagnostics in PCS 7and WinCC Plants V 2.5.1 Entry ID: 48698507