Escolar Documentos
Profissional Documentos
Cultura Documentos
WinCC system
diagnostics with
performance variables
Siemens
SIMATIC WinCC V7.5
Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/109767801 Support
Legal information
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
© Siemens AG 2019 All rights reserved
damages arising from a breach of material contractual obligations shall however be limited to the
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with industrial security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
Fehler! Linkreferenz ungültig..
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: Fehler! Linkreferenz ungültig..
Um stets über Produkt-Updates informiert zu sein, abonnieren Sie den Siemens Industrial
Security RSS Feed unter: Fehler! Linkreferenz ungültig..
Table of contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Components used ................................................................................ 4
1.3 Variables for measuring the performance and efficiency of the
WinCC system ...................................................................................... 5
1.4 Required knowledge ............................................................................. 6
2 Configuration ..................................................................................................... 7
2.1.1 WinCC OnlineTrendControl.................................................................. 9
2.1.2 Optional: Display counter ................................................................... 13
2.1.3 Archiving Performance Tags .............................................................. 15
2.1.4 Optional: Displaying more Performance Tags ................................... 19
2.1.5 Optional: Displaying the connection status ........................................ 19
3 Interpretation of Performance Values ........................................................... 22
3.1 General ............................................................................................... 22
3.2 Curve characteristics .......................................................................... 22
3.3 Example screen .................................................................................. 24
3.3.1 "Tag Logging" Analysis ...................................................................... 24
3.3.2 Analysis "S7 connection" .................................................................... 24
© Siemens AG 2019 All rights reserved
1 Introduction
1.1 Overview
With SCADA systems, the correct design of the system plays a decisive role.
Which hardware expansion and how many tags are required for your application?
With slow systems, the WinCC system is often overloaded at a certain point, e.g.
due to hardware that is too weak. On the other hand, incorrect programming of
scripts, for example, can result in high utilization of the communication channels.
An early and exact diagnosis of the cause is crucial so that you can take measures
to increase the performance of your WinCC system.
With WinCC V7.5, system variables for the connection status and performance
tags are available. The performance variables provide indicators for file processing
in runtime, archiving, and the status of the communication channels.
The following error types can be diagnosed with the performance variables.
• Overload in the communication channels
• Overload of the WinCC server
• Software error, e.g. in a script
Setup
All performance variables have the prefix "@PRF".
The performance variables are divided into the following groups by additional
prefixes:
Table 1-3
Prefix Components
@PRF_CLDCN WinCC Cloud Connector
@PRF_DMRT WinCC tag management
@PRF_TLGRT WinCC tag logging
@PRF_DMRT_CHNCON "Channel Connection", performance
© Siemens AG 2019 All rights reserved
Note In addition to the performance variables, you can create variables for the
connection status. These variables can be found in the internal tags under
"ConnectionStates".
To display the status of a connection, you can create status variables for each
communication channel. Two variables are created, the first one shows the
connection status and the other one can be used to control the communication
channel.
@<Connectionname>@ConnectionsStateEx
@<Connectionname>@ForceConnectionsStateEx
Figure 1-1
Note Under chapter 5.3 you will find SITRAIN courses in which you can refresh or
expand your knowledge of WinCC V7.
© Siemens AG 2019 All rights reserved
2 Configuration
General
We recommend that you use "trend controls" to display the performance variables,
as this enables you to quickly graphically record the values over time. In the
following chapter a suggestion is presented which variables you can use and how
you can configure the curve displays.
Tag table
The displayed variables are a selection from all available performance variables by
which you can most easily recognize loadings or overloads of the WinCC system.
The following variables are used in this example:
Table 2-1 Important performance variables
No. Tag Category
1. @PRF_DMRT_CHNCON_<S7Connection> Performance S7 connection
_TAG_READS_PENDING <S7Connection> The following
variables are used in this example:
2. @PRF_DMRT_CHNCON_<S7Connection> Performance S7 connection
_TAG_WRITES_PENDING <S7Connection> corresponds to
the name of the connection in
WinCC
3. @PRF_TLGRT_AVERAGE_TAGS_ Performance Tag Logging
© Siemens AG 2019 All rights reserved
PER_SECOND
4. @PRF_TLGRT_AVERAGE_TAGS_ Performance Tag Logging
PER_SECOND
5. @PRF_TLGRT_TAGS_PER_SECOND Performance Tag Logging
HMI screen
Two "Online Trend Controls" are used to display the performance indicators. In
addition, there are buttons for archiving the performance variables and a display of
the counters for read and write access.
You need archiving if you want to observe and investigate the behavior of your
WinCC system over a longer period of time.
The HMI screen is divided into two areas. On the left side, the current performance
of the tag logging is displayed and on the right side, for example, the performance
of an S7 channel (waiting read and write accesses).
1 2
5
4
5. In the "Curves" ("Trends") area, add a new curve and give it a name.
6. In the "Data Connection" area, select "Data source", "2 - Online Tags" and
select "@PRF_TLGRT_TAGS_PER_SECOND" as the variable.
Figure 2-4
© Siemens AG 2019 All rights reserved
7. In the same way, add the curves for the following variables:
• "@PRF_TLGRT_SIZEOF_NOTIFY_QUEUE"
• "@PRF_TLGRT_AVERAGE_TAGS_PER_SECOND"
8. Optional:
Adjust the design (color, line thickness) for each individual curve according to
your ideas.
Note The name "S7Connection" is a placeholder for the name of the S7 connection.
In this example, the variables from the following table are displayed:
Table 2-4 Important performance variables for an S7 communication channel
Tag Meaning
"@PRF_DMRT_CHNCON_<S7Connection> This value specifies the currently
_TAG_READS_PENDING“ pending read requests.
Note:
A high or strongly increasing value can
indicate communication problems.
"@PRF_DMRT_CHNCON_<S7Connection> This value specifies the currently
_TAG_WRITES_PENDING" pending write requests.
Note:
A high or strongly increasing value can
indicate communication problems.
Figure 2-6
A counter for read and write access is suitable for information purposes. You can
use this to check how many read or write accesses are requested over a defined
period (1h, 1d) via the communication channel.
Configuration
1. Open an HMI screen in the WinCC Graphics Designer.
2. Drag and drop two I/O fields into the HMI screen.
Figure 2-7
3. Use the configuration dialog to connect the I/O fields with the variables from
the following table:
Table 2-6
Tag Meaning
@PRF_DMRT_CHNCON_S7Connection_TAG_READS_TOTAL Counter read
accesses
@PRF_DMRT_CHNCON_S7Connection_TAG_WRITES_TOTAL Counter write
accesses
4. Insert a button (3) to reset the counters in the HMI screen.
5. Connect the button as described in the following table to generate a positive
signal edge.
Table 2-7
Event Action
Press left @PRF_DMRT_CHNCON_S7Connection_Reset = True
Releasing left @PRF_DMRT_CHNCON_S7Connection_Reset = False
Figure 2-8
3
© Siemens AG 2019 All rights reserved
Note The total counters can only be interpreted if you know since when the counter
has been active. If, for example, you reset the counter for a particular action, you
can then valuate these values.
To evaluate the variables over a longer period of time, save the variables in an
archive if required.
In the example project, "Tag Logging" can be activated or deactivated via a button.
This allows you to reduce the archiving load of the WinCC system and the
variables are only archived when required.
Requirement
The service "WinCC Tag Logging Runtime" is activated in the computer properties.
Configuration
Archiving is configured with the acquisition type "cyclic-selective". With this entry
type, you specify two variables that specify the start and end of archiving. Use the
button to invert both variables in order to alternately generate a positive signal
edge for starting and ending the archiving.
Figure 2-9
To configure the archiving of the performance variables with the button, carry out
the following steps:
© Siemens AG 2019 All rights reserved
Note You can select multiple variables by holding down the <STRG> key during
selection.
Figure 2-10
To be able to control archiving, create two variables "Start" and "Stop" each for
the performance tags of "Tag Logging" and "S7 Connection" (a total of four
variables of the data type "Bool"). The variables created in this application
© Siemens AG 2019 All rights reserved
Figure 2-11
© Siemens AG 2019 All rights reserved
7. Open the "Graphics Designer" and place a button on your HMI screen.
8. Create a new click event for the button.
9. You can use the following example code to switch between the two variables.
This alternately generates a positive signal edge for "Start" and "Stop".
Note In the example project, the button is configured so that a graphic is displayed
depending on the state. This represents a slider.
Figure 2-12
Note If you use the script, you must set the start value of the stop variable
"endArchive_*" in the WinCC variable household to "1", otherwise the script will
simultaneously generate positive signal edges for the start and stop signal. In
this case, archiving is not started.
Alternatively, you can use two separate buttons, one for the start signal and the
other for the stop signal.
Result:
In Runtime you switch archiving on and off alternately with the configured button.
Tag Management
The next table lists a selection of performance tags for the Variable Budget area.
You can also display these variables in WinCC analog to the project engineering of
the performance display for "Tag Logging".
Table 2-10
Tag name Meaning
@PRF_DMRT_SRV_CYCLIC_READ_ Tag Management
CALLBACKS_PENDING Constantly rising values indicate
overload of the system, caused by
reading requirements of the client
applications.
@PRF_DMRT_SRV_CYCLIC_READ_ Tag Management
REQUESTS_ACTIVE Steadily rising values indicate too many
(slow) client applications.
@PRF_DMRT_SRV_WRITE_ Tag Management
REQUEST_ACTIVE Steadily rising values indicate an
overload of the data manager.
© Siemens AG 2019 All rights reserved
General
You can use the status variables for the individual WinCC connections to display
whether the controller still has a connection to the WinCC system.
For this purpose, you can create the following two variables for each WinCC
connection:
Table 2-11
Tag Function
S7Connection@ConnectionStateEx Display of the connection status:
0: Connection interrupted
1: Connection has been established
S7Connection@ForceConnectionStateEx Selectively switch the connection on and
off:
1 > 0: Turn off connection
0 > 1: Turn on connection
Note: S7Connection is an example of the WinCC connection name.
Tag creation
To create the status variables, proceed as follows:
1. Open the "Tag Management" in WinCC.
2. In the Connections area, right-click the connection to which you want to create
the variables.
3. Click on "Create Enable/Disable Tags" in the context menu.
Figure 2-13
© Siemens AG 2019 All rights reserved
Result
The two status variables described are automatically generated for the selected
connection. The status variables are stored in the "Internal variables" under
"ConnectionStates".
Figure 2-15
Figure 3-1
In this application example, the following variables are crucial for performance
measurement and overload detection of the WinCC system:
Table 3-1
Affected tag WinCC components Possible causes
@PRF_DMRT_SRV_* Data management 1. Too many /
overloaded client
applications
2. Overload of the data
manager
@PRF_TLGRT_* Tag Logging Overload the tag logging
Notify Queue runtime
@PRF_DMRT_CHNCON Overload of process
communication due to too
many clients
In the "Tag Logging" area, the processed archived variables fluctuate cyclically by
one value per second. The average value is "8", as you can see from the light gray
curve.
The blue curve symbolizes the wait loop, i.e. the variables that cannot be
processed immediately by the WinCC system. This value remains "0" over the
entire period. WinCC therefore archives all variables without delay.
You derive the following knowledge from the left curve diagram:
– The archiving system works and archives an average of 8 variables per
second.
– WinCC is never fully utilized, all variables are archived immediately.
Note In this example, a permanently rising blue curve would indicate performance
problems.
In the area of the S7 connection, you can see two deflections in the read accesses
to the S7 variables. This means that individual reading requests have waited at
these times. After a few seconds, the deflections fell back to "0". You derive the
following knowledge from the curve diagram on the right:
– There were rashes, these are uncritical, as they only lined up for a very
short time.
– The WinCC communication channel operates normally for the period under
consideration.
Note Constantly rising values indicate performance problems during the processing or
communication of variables with the controller.
To take the current computer name from Windows, click the "Use Local
Computer Name" button.
Figure 4-3:
Before you start the WinCC Runtime, configure the connection of the controller in the
next chapter.
Figure 4-4
3. Enter the IP address of your controller under "IP address". Then click "OK".
Figure 4-5
© Siemens AG 2019 All rights reserved
Note For this step, the controller must be accessible from the WinCC computer.
5. To load the control variables into WinCC, right-click on the connection and
select "AS Symbols > Load from AS"
Figure 4-7
4.3 WinCC-Runtime
© Siemens AG 2019 All rights reserved
1. To start the WinCC Runtime, click on the "Start" button in the WinCC Explorer.
Figure 4-8
Figure 4-9
In Runtime you can see the two configured trend controls. In the example
application, the traffic light at the top right corner of the screen indicates the
connection status of the S7-1500.
With the two buttons for archiving, archiving in runtime can be switched on and
off as required.
© Siemens AG 2019 All rights reserved
3. To view the archived variables, switch to the "Performance History" tab page.
Figure 4-10:
4. On the HMI "Performance History" screen, you can see all archived variables.
Figure 4-11
Note The performance variables for archiving (variables per second) are visualized in
a weaker color because they can only be used for information purposes and are
not a direct indicator of an overload of the archiving system.
© Siemens AG 2019 All rights reserved
6 Appendix
6.1 Service and support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire
service and support know-how and portfolio.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos
– all information is accessible with just a few mouse clicks:
support.industry.siemens.com
Technical Support
The Technical Support of Siemens Industry provides you fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts. Please send queries
to Technical Support via Web form:
www.siemens.com/industry/supportrequest
© Siemens AG 2019 All rights reserved
Service offer
Our range of services includes the following:
• Plant data services
• Spare parts services
• Repair services
• On-site and maintenance services
• Retrofitting and modernization services
• Service programs and contracts
You can find detailed information on our range of services in the service catalog
web page:
support.industry.siemens.com/cs/sc