×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 29855065, Entry date: 12/22/2010
(16)
Rate

How can you have hardware diagnostics information (hard disk status, temperature, fan status, UPS and WinAC RTX) of SIMATIC IPCs displayed in WinCC Runtime?

  • Entry
  • Associated product(s)

Instructions:
By default, WinCC provides the "SYSTEM INFO" channel to display system information. Using the "SYSTEM INFO" channel, you can create tags in the WinCC Tag Management, in which the system enters diagnostics information at runtime. For example, you can create tags that contain the following information at runtime:

  • CPU load
  • Main memory load
  • Hard disk load

You can use these tags in other WinCC components (e.g. Graphics Designer, Tag Logging, Global Script).

There might be the requirement to display and edit system information that is not provided by the "SYSTEM INFO" channel, for example:

  • Display of the status of a RAID hard disk system
  • Display of the temperature of CPU and mainboard
  • Display of operating or error status of available fans
  • Display of operating or error status of any available UPS (uninterruptible power supply)
  • Display of operating or error status of any available PLC software (WinAC RTX)

When using the SIMATIC Industrial PCs listed below, you can display and edit the information described above simply in WinCC Runtime:

Requirements:

  • SIMATIC IPC DiagBase
    The "SIMATIC IPC DiagBase" software accesses the hardware of the computer and display the information in a separate Windows application (status of hard disks and fans, temperature of CPU and mainboard). The "SIMATIC IPC DiagBase" software replaces the "SOM" diagnostics software in SIMATIC IPCs.
    Until all devices are supplied with it ex works, the software is available for downloading in Entry ID: 29316343 . This entry also contains information on the SIMATIC IPCs that can be implemented. 
  • PCDiagBridge
    The "PCDiagBridge" software (also called "PCDiag") can be used with one of the above-mentioned SIMATIC Industrial PCs and the "SIMATIC IPC DiagBase" software. It is an ActiveX application that provides a programming interface. You can use this programming interface in WinCC Global Script VBS to access the information of "SIMATIC IPC DiagBase". You can write this information to internal WinCC tags and then use it directly in WinCC pictures, Alarm and Tag Logging.
    The "PCDiagBridge" software is available for downloading free of charge in Entry ID: 42674746 . This entry also contains information on the SIMATIC IPCs that can be implemented. 

    Compatibility:
     

      PCDiagBridge V0.1 PCDiagBridge V1.1.1 PCDiagBridge V1.4.0.1
    SIMATIC PCDiagBase V1.0 X - -
    SIMATIC PCDiagBase V1.1 - X X
    SIMATIC PCDiagBase V1.2 - X X
    SIMATIC PCDiagBase V1.2.0.22 - X X
    SIMATIC IPC DiagBase V1.4.0.20 - - X

    Notes:

    • In addition to the information from "SIMATIC IPC DiagBase", "PCDiagBridge" also provides information on the status of any SITOP UPS connected and any WinAC RTX installed.
    • Detailed information on PCDiagBridge is available in the associated "Readme" file.
       
  • SITOP UPS USB driver (FTD2XX.SYS)
    If the information of a connected SITOP UPS is to be read out with "PCDiagBridge", the USB driver for the SITOP UPS must be installed.

This entry provides a project in WinCC V7.0, which demonstrates how to use PCDiagBridge and the "SYSTEM INFO" channel.

PCDiagPrj_WinCCV70.zip ( 2405 KB )

Configuring the "SYSTEM INFO" channel (for displaying CPU, main memory and hard disk loads)
Below we describe the steps to be taken in the sample project to display the information of the "SYSTEM INFO" channel.
 

No. Procedure
1 Create "System Info" channel
In the WinCC Explorer, right-click the "Tag Management" item. A pop-up menu opens. Select the "Add new driver..." item. The "Add new driver" window opens. Select the ""System Info.chn" file and then the "Open" button.
2 Create tags in the Tag Management
Create the tags for system diagnostics in the "System Info.chn" channel. The figure below shows the tags created in the "System Info" channel.


Fig. 01

Notes:

  • In the "Tag properties" dialog, under "Address", you can select the hardware property (resource) you require to display the tag.
  • In this example we use the "SYSINFO_MEM_UsedPercent" tag to display the main memory used. This tag has the "Available main memory" function and the "Free mem in %" format as address parameters. Linear scaling is used with this tag to convert the "available main memory" value into the "main memory used" value.


    Fig. 02
3

Use tags in the picture
Create a new picture in the Graphics Designer to display the CPU, main memory and hard disk utilization at Runtime. In this sample project we use the picture name "PCDiagSysInfo.pdl". This picture is used as the Start picture of WinCC Runtime.


Fig. 03

The "PCDiagSysInfo.pdl" picture contains the following information:

  • General project information
    • Project name (Name)
      The project name is displayed as "static text". The "Text" property of the text field is dynamized with VBScript.
      The VBS instruction "item.Text = HMIRuntime.ActivateProject.Name" is used to display the project name.


      Fig. 04

       
    • Project path (Path):
      The project path is displayed as "static text". The "Text" property of the text field is dynamized with VBScript.
      The VBS instruction "item.Text = HMIRuntime.ActivateProject.Path" is used to display the project path.
       
    • DataSourceName (DSN):
      The DataSourceName is displayed as "static text". The "Text" property of the text field is linked directly to the WinCC system tag "@DatasourceNameRT".
       
  • CPU load
    The percentage value of the CPU load is displayed directly in the picture by the "SYSINFO_CPU_UtilizationTotal" tag. The display is made:
    • in an IO field
    • in a bar graph
    • in the WinCC OnlineTrendControl

    Note:
    If the "WinAC RTX" is also running on the computer, a CPU load of 100% is displayed. The reason for this behavior is the "RtxServer.exe" utility. However, it only seems to load the system so much. This behavior is intended so that the CPU is always loaded and not clocked down by power-saving functions of the operating system.
     

  • Main memory load
    The percentage value of the memory load is displayed directly in the picture by the "SYSINFO_MEM_UsedPercent" tag. The display is made:
    • in an IO field
    • in a bar graph
    • in the WinCC OnlineTrendControl
  • Hard disk memory load
    The percentage value of the memory load of the available hard disk partitions is displayed directly in the picture by the "SYSINFO_DISK_C_FreePercent" tag. The display is made:
    • in an IO field
    • in a pie chart (similar to the function in Windows Explorer) where the ellipse is more blue or magenta according to the hard disk space available.
      When the hard disk is full, the ellipse is completely blue.
      When the hard disk is empty, the ellipse is completely magenta.
      Dynamization is done with the dynamic dialog.


      Fig. 05

       
  • Button for selecting the "PCDiagBase.pdl" picture
    This button is used to select the "PCDiagBase.pdl" picture at runtime. The PCDiagBase picture contains diagnostics information that is read out by PCDiagBridge. The background color of the button is dynamized according to the error status. If there are no errors in the diagnostics information of PCDiagBridge, then the background color of the button is gray, otherwise red.
4 Tag Logging
CPU, main memory and hard disk are archived in Tag Logging. The size of the Tag Logging archive (Tag Logging FAST and SLOW) is set as follows:
  • Max. size of 1 segment: 100 MB
  • Max. duration of 1 segment: 1 day
  • Max. size of all segments: 700 MB
  • Max. duration of all segments: 1 week
5 Configure Alarm Logging
The tags of the SYSTEM INFO channel do not trigger any messages or alarms in this project. However, you can monitor the tags of the SYSTEM INFO channel yourself via script or using the "Analog Alarm" function of Alarm Logging.

Configuring PCDiagBridge (for displaying temperature, fan error status, hard disks, UPS)
Below we describe the configuration steps to be taken in the sample project to display the information of PCDiagBridge.
 

No. Procedure
1 Create tags in Tag Management
PCDiagBridge provides an object and methods for reading out hardware information. In this step, you must create the WinCC tags to which the PCDiagBridge information is to be written later. The tag names are the same as the PCDiagBridge methods for reading the information. For the sake of clarity, a separate tag group entitled "PCDiag" is used and the prefix "PCDIAG" is given to the tag names. The following figures show the tags for the different types of PCDiagBridge information as hard copy of the Tag Management.
  • Tags for temperature monitoring:


    Fig. 06

  • Tags for fan monitoring:


    Fig. 07

  • Tags for hard disk monitoring:


    Fig. 08

  • Tags for voltage monitoring:


    Fig. 09

  • Tags for UPS monitoring:


    Fig. 10


    Note:
    The "PCDIAG_UPS_ExitWinCC" tag is not provided by PCDiagBridge, but serves as a trigger to call a script if the power fails. This script first closes WinCC and then shuts down the whole system.
2 Assign values to tags with VBScript
Create a cyclic action in WinCC Global Script VBS to read hardware information with PCDiagBridge. The following figure shows an excerpt from the script.


Fig. 11

The script is also available as a text document.

PCDiagCycle_vbs.txt ( 7 KB )

Note
If you are using a version of "PCDiagBridge" that is older than V1.1.1, then you must replace the line:
Set PCDiag = CreateObject("PCDiagBridge.cPCDiag")  (line 33 in the Text file)
with the line:
Set PCDiag = CreateObject("PCDiag.cPCDiag")

3 Display tags in the picture
The information read with PCDiagBridge is displayed in the picture "PCDiagBase.pdl".


Fig. 12
  • Temperature monitoring:
    If one or more temperature measurements are available in the system, these are displayed with the associated limit values as IO fields and as a bar chart. 
     
  • Fan monitoring:
    If one or more fans are available in the system, the speeds are displayed with the associated limit values as IO fields. In addition, each fan is shown with a status display. The different statuses of a fan are defined in the "PCDiagBase_Fan_ICON.pdl" picture.


    Fig. 13

     
  • Tags for hard disk monitoring:
    The static hard disk data (Model, Device Name) and the dynamic data (S.M.A.R.T. information) is displayed.
    The S.M.A.R.T. information is displayed as text via dynamic dialog.


    Fig. 14


    Note:
    The dynamic dialog has the advantage that in the Graphics Designer, you can simply configure change of language for the different display texts.
     
  • Tags for voltage monitoring:
    In all SIMATIC IPCs, only the voltage of the CMOS backup battery is monitored. If the voltage is OK, a little green box is displayed, otherwise a little red box. In the "PCDiagBase_STATUS_ICON.pdl" picture, the different colors used for dynamization are defined. The different colors are stored as EMF files and are used in WinCC status displays.


    Fig. 15

     
  • Tags for UPS monitoring:
    If a SITOP UPS is in the system, the LEDs on the front of the SITOP UPS are shown in the picture. A detailed description of the meaning of the separate displays is available in the operating instructions for the "SITOP DC UPS Module".

    In the UPS area, there is an additional option check box marked "Shutdown". WinCC is terminated and the computer shut down if the following conditions are fulfilled:
    • The "Shutdown" check box is checked.
    • The load status of the UPS backup battery is less than 85%.
    • The UPS is in backup mode.

    The "Shutdown" function is triggered by a cyclic C action.


    Fig. 16


    The action is triggered by the tags "PCDIAG_UPSStateBuffering" and "PCDIAG_UPSStateBufferOK".
     
  • WinCC Alarm Control
    The WinCC Alarm Control is used to display alarm, warning and operating messages.


    Fig. 17

    Notes:

    • If a particular hardware device fails, it is also displayed in the picture with a square red background.
    • The tags "DiskAlarm", "TempAlarm", "FanAlarm", "VoltageAlarm" and "UPSState" are used to display a fault. These tags are bit coded. This means that if a bit is set, there is violation of the upper or lower limit value of a hardware device. The bit position corresponds to the number of the device.
4 Tag Logging
The tags of PCDiagBridge are not archived in Tag Logging.
5 Configure Alarm Logging
The figure below shows the configuration of the Alarm Logging.


Fig. 18
  • Max. size of 1 segment: 50 MB
  • Max. duration of 1 segment: 1 week
  • Max. size of all segments: 500 MB
  • Max. duration of all segments: 1 year

Version:
This entry has been tested with the following versions.
 

Component Product and version designation
PC operating system Microsoft Windows XP Professional SP2
Standard tools SIMATIC PC DiagBase V1.2
SIMATIC PC DiagBase V1.2.0.22
PCDiagBridge V1.1.1
HMI software SIMATIC WinCC V7.0
Options ---
PLC ---
Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.
Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.