WinCC ConnectivityPack en-US en-US
WinCC ConnectivityPack en-US en-US
0 Installation /
Release Notes 1
WinCC/Connectivity Pack
documentation 2
SIMATIC HMI
WinCC V8.0
WinCC/Connectivity Pack
System Manual
03/2023
A5E52671436-AA
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended or
approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance
are required to ensure that the products operate safely and without any problems. The permissible ambient
conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 3
Table of contents
WinCC/Connectivity Pack
4 System Manual, 03/2023, A5E52671436-AA
Table of contents
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 5
Table of contents
WinCC/Connectivity Pack
6 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes 1
1.1 WinCC Installation Notes
Contents
This documentation contains important information on the scope of delivery, as well as on the
installation and operation of WinCC.
The information contained here takes precedence over the information contained in the
manual and online help.
Components supplied
WinCC V8.0 is available as a basic package or upgrade package and as a download package "OSD"
(Online Software Delivery).
You will receive the following components:
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 7
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
1) Refer to the software requirements in the installation notes and release notes.
2) When you install SIMATIC Logon, a computer restart may be necessary.
3) Use at least SIMATIC Logon V1.6, Update 7.
Note
Print Installation Notes
The installation notes for the respective products are also provided as a PDF file.
You can find the installation notes and release notes on the WinCC DVD in the
"Install_and_Release-Notes" directory.
You need at least Adobe Acrobat Reader V5.0. You can download the Adobe Acrobat Reader free
of charge from the following URL:
• http://www.adobe.com/products/acrobat
Communication drivers
The communication drivers included in the package do not need an additional license:
• Allen Bradley - Ethernet IP
• Mitsubishi Ethernet
• Modbus TCP/ IP
• OPC
• OPC UA 1)
• PROFIBUS DP
• SIMATIC 505 TCPIP
• SIMATIC S5 Ethernet Layer 4
• SIMATIC S5 Profibus FDL
• SIMATIC S5 Programmers Port AS511
• SIMATIC S5 Serial 3964R
• SIMATIC S7 Protocol Suite
• SIMATIC S7-1200, S7-1500
• SIMATIC TI Ethernet Layer 4
• SIMATIC TI Serial
WinCC/Connectivity Pack
8 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
• SIMOTION
• System Info
1) You need a Connectivity Pack license for the WinCC OPC UA server.
See also
Information on WinCC CS (Page 64)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 9
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Compatibility tool
With the compatibility tool, Industry Online Support gives you a function you can use to put
together a compatible selection of software products or to check existing configurations for
compatibility.
In entry 64847781 you can access the compatibility tool and find additional information on
how to use the tool:
• Siemens Industry Online Support: Compatibility tool for Automation and Drives (https://
support.industry.siemens.com/cs/ww/en/view/64847781)
Introduction
The WinCC software is protected and can only be used in its full measure with a valid license.
Each installed software and option used requires a valid license for unrestricted operation of
WinCC. The licenses for optional packages must be ordered separately.
You will receive the necessary license keys for the installation of licenses as follows:
• As storage medium with license keys
• Via the Internet (online software delivery)
Licenses which are installed for use in WinCC are transferred from the storage medium to a
local drive and are unregistered on the storage medium.
Note
Furthermore, the licensee confirms that the software (SW) contains licensed software by
Microsoft Corporation or its subsidiaries. Thereby, licensee agrees to be bound by the terms and
conditions of the appended license agreement between Microsoft SQL Server and end user, and
to fulfill same.
Note
It is not allowed to run WinCC in process mode without a valid license.
WinCC/Connectivity Pack
10 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Cumulating licenses
The cumulation of more than one license per component subject to a license is only possible for
the following licenses or licenses of the following options:
• WinCC Archive licenses
• WinCC/DataMonitor
• WinCC/WebNavigator
• WinCC/WebUX
• WinCC/IndustrialDataBridge
• WinCC/PerformanceMonitor
• SIMATIC Information Server
Other licenses cannot be cumulated.
Demo Mode
If a license is missing for one or several components, WinCC will run in demo mode. WinCC also
switches to demo mode when the maximum authorized number of process tags or archive tags
is exceeded in a project.
In Demo mode, you can use the WinCC software fully for a maximum of one hour. After this
period, the operation of WinCC violates the license agreements.
After one hour, the WinCC Explorer and the editors will be closed.
In runtime, the system will request the acquisition of a valid license. This dialog will appear
every 10 minutes.
To exit WinCC demo mode, install the required licenses.
Details on demo mode may be found in WinCC Information System under "Licensing".
Uninstalling
After uninstalling WinCC, you also need to remove the "WinCC" SQL server instance:
Select "Control Panel" > "Software" and then select the "Microsoft SQL Server 2019" item for
removal.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 11
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Installation of Licenses
You may use the Automation License Manager for installation of licenses.
Licenses may be installed during installation of WinCC or after the fact. You will find the
Automation License Manager in the Windows start menu in the "Siemens Automation"
program group. An after-the-fact installation of a license will take effect upon restart of
your computer.
For the installation of licenses, the following requirements must be met:
• The storage medium containing the licenses must not be write protected.
• You can install the RC licenses on a license server for the configuration. You do not have to
install the licenses on the local drive.
• Licenses may only be installed on a non-compressed drive.
Note
After uninstalling WinCC, the licenses remain installed on the system.
Overview
The license keys for WinCC Runtime and WinCC RC (Runtime and Configuration) are provided on
the supplied license storage medium "License Key USB Hardlock".
The licensed ASIA version is executable in parallel to the European version by switching to
Unicode.
The "License Key USB Hardlock" (dongle) checks the following conditions:
• WinCC GUI language
• Runtime language
• The Text Library contains an Asian language.
• Asian characters are used in the WinCC project.
• Operating system settings
WinCC/Connectivity Pack
12 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
You can find more information about installing the license under "Licenses and licensing".
Note
It is not allowed to run WinCC in process mode without a valid license.
Installed Languages
A newly created project receives all installed WinCC languages as project languages.
Delete configuration languages
If you do not have a license for an ASIA version and delete the Asian project languages in the text
library, the WinCC project continues to run in demo mode.
To disable Demo mode, close the WinCC project. When reopened it is recognized that the WinCC
project no longer requires licenses for an ASIA version.
The same error message appears after a few minutes if you disconnect the dongle from the
computer with a correctly licensed WinCC version.
If this error message does not appear, a non-licensed WinCC version is installed.
No right of usage for WinCC is available in this case. Uninstall this WinCC version and obtain a
legally licensed version of WinCC V8.
If necessary, contact WinCC Support and provide the serial number of your software version:
• http://www.automation.siemens.com/partner/index.asp (http://
www.automation.siemens.com/partner/index.asp)
You can find the serial number on the "Certificate of License" (CoL).
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 13
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
NOTICE
Do not remove the "License Key USB Hardlock" dongle
If you remove the dongle from the computer, an error message is generated and WinCC
switches to Demo mode.
If you re-connect the dongle to the computer, the error message disappears and Demo mode
is disabled. WinCC works once again in licensed mode.
See also
http://www.automation.siemens.com/partner/index.asp (http://
www.automation.siemens.com/partner/index.asp)
WinCC/Connectivity Pack
14 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Introduction
You will need special hardware and software for the installation of WinCC. The requirements are
described in the chapters "Hardware Requirements for Installation" and "Software Requirements
for Installation".
Note
Windows operating system: Avoid changes in system
Windows settings deviating from default can have an effect on operation of WinCC.
Observe this note particularly for the following changes:
- Change of processes and services in Control Panel.
- Changes in Windows Task Manager.
- Changes in Windows registry.
- Changes in Windows security policies.
The first check if certain conditions are met is already executed during the installation of
WinCC. The following conditions are checked:
• Operating system
• User Rights
• Graphic Resolution
• Internet Explorer
• MS Message Queuing
• Due Complete Restart (Cold Restart)
Error Messages
If one these conditions is not met, the WinCC installation will be aborted and an error message
will be displayed. For details about the error messages displayed see the table below.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 15
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
See also
Defining Access Rights in the Operating System (Page 26)
How to Adapt the Windows Security Policies (Page 32)
Notes on Data and System Security (Page 24)
Software requirements for installing WinCC (Page 18)
Hardware requirements for installing WinCC (Page 16)
Microsoft SQL Server for WinCC (Page 22)
Introduction
Certain hardware configuration conditions must be fulfilled for installation.
Hardware requirements
WinCC supports all common IBM/AT-compatible PC platforms.
To efficiently work with WinCC, select a system with the recommended specifications.
Note
Unless noted to the contrary, the same requirements as for servers are applicable to single-user
systems.
Minimum Recommended
CPU Windows 10 / Windows 11 Dual core CPU Multi core CPU
(64-bit) Client / single-user system 2.5 GHz Client: 2.7 GHz
Single-user system: 2.7 GHz
Windows Server 2019 / Dual core CPU Multi core CPU
Windows Server 2022 Client / single-user system / server: Single-user system / server: 3.5 GHz
2.5 GHz
WinCC/Connectivity Pack
16 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Minimum Recommended
Work memory Windows 10 / Windows 11 Client: 2 GB 4 GB
(64-bit) Single-user system: 4 GB
Windows Server 2019 / 4 GB 8 GB
Windows Server 2022
Free storage Installation: Installation:
space on the • Client: 1.5 GB • Client: > 1.5 GB
hard disk
• Server: > 1.5 GB • Server: 2 GB
- for the installa‐
tion of WinCC Working with WinCC: Working with WinCC:
- for working • Client: 1.5 GB • Client: > 1.5 GB
with WinCC 1) 2) • Server: 2 GB • Server: 10 GB
Archive databases may require ad‐
ditional memory.
Virtual work 1.5 x RAM 1.5 x RAM
memory 3)
Color depth / 256 Highest (32 Bit)
Color quality
Resolution 800 * 600 1920 * 1080 (Full HD)
Note
In the case of online configuration, the recommended requirements are valid as the minimum
requirement.
Virtualization
The following virtualization systems are tested:
• Microsoft Hyper-V 2012 R2 / 2016 / 2019
• VMware ESXi 6.5 / 6.7 / 7.0
Requirement
The performance data of the virtual computers must meet the minimum requirements for
WinCC clients.
You can find additional information about virtual environments with WinCC at the following
URL (entry ID=49368181):
• SiePortal: FAQ Virtualization (http://support.automation.siemens.com/WW/view/en/
49368181)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 17
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
See also
Defining Access Rights in the Operating System (Page 26)
Notes on Data and System Security (Page 24)
Software requirements for installing WinCC (Page 18)
Introduction
Certain requirements concerning operating system and software configuration must be met for
the installation.
Note
WinCC in a domain or workgroup
WinCC is enabled for operation within a domain or workgroup.
Note however that domain group policies and restrictions in the domains may prevent
installation. In this case, remove the computer from the domain before installing Microsoft
Message Queuing, Microsoft SQL Server and WinCC. Log on to the computer concerned locally
with administrator rights. Carry out the installation. Following successful installation, the WinCC
computer can be registered in the domain again. If the domain-group policies and domain
restrictions do not impair the installation, the computer must not be removed from the domain
during installation.
Note however that domain group policies and restrictions in the domain may also hinder
operation. If these restrictions cannot be overcome, operate the WinCC computer in a work
group. If necessary, contact the domain administrator.
Operating systems
WinCC/Connectivity Pack
18 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Configurations
When using more than one server, all servers must be operated with a uniform operating
system:
Microsoft Windows Server 2019 or 2022, uniformly Standard or Datacenter edition in each
case.
1) The currently released build versions of Windows 10 or Windows 11 are listed in the compatibility tool.
You can also run single-user systems and clients in WinCC multi-user systems on Microsoft
Windows Server 2019 / 2022.
WinCC Server
Note
Only enable the terminal server for WinCC/WebNavigator
WinCC is not suitable for use on a Microsoft terminal server.
You can use the Microsoft terminal server only in connection with the WinCC Web client. Note
the installation instructions of the WinCC/WebNavigator.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 19
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Virus scanner
You can find information on the use of virus scanners as well as approved virus scanner
versions in the WinCC Release Notes under "Notes on operation (Page 48)".
Illegal characters
The following characters are not permitted in the computer name:
• .,;:!?"'^´`~_
• +=/\¦@*#$%&§°
• ()[]{}<>
• Space character
Note the following:
• Only uppercase relevant
• The first character must be a letter.
Note
Do not disable Internet Explorer.
WinCC/Connectivity Pack
20 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Note
Operating system update
An update of the operating system is not permitted if WinCC is started.
Start the computer again after updating the operating system.
See also
Notes on Data and System Security (Page 24)
Defining Access Rights in the Operating System (Page 26)
Installing WinCC (Page 32)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 21
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Licensing
Note the information on licensing of the SQL Server under "Licenses and licensing".
User rights
The corresponding user rights must be set up for accessing the SQL Server data. For more
information, refer to the section "Specifying access rights in the operating system (Page 26)".
Encrypted connection
To increase security, use encrypted communication.
You can find information on this in the following Microsoft entries:
• Internet: "Server network configuration" (https://docs.microsoft.com/en-us/sql/database-
engine/configure-windows/server-network-configuration?view=sql-server-ver15)
• Internet: "Configure SQL Server Database Engine for encrypting connections" (https://
docs.microsoft.com/en-us/sql/database-engine/configure-windows/configure-sql-server-
encryption?view=sql-server-ver15)
WinCC/Connectivity Pack
When you install WinCC/Connectivity Pack, the required connectivity components are
installed along with the Microsoft SQL Server.
WinCC/Connectivity Pack
22 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
See also
Defining Access Rights in the Operating System (Page 26)
Software requirements for installing WinCC (Page 18)
Notes on Data and System Security (Page 24)
Internet: "Server network configuration" (https://docs.microsoft.com/en-us/sql/database-
engine/configure-windows/server-network-configuration?view=sql-server-ver15)
Access rights in the operating system (Page 26)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 23
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Introduction
System security when using WinCC can be increased by implementing simple measures.
You can find more information in the "WinCC Release Notes > Notes on Operation >
Information on the Windows operating system (Page 50)".
You can find information on the remote access under "WinCC Release Notes > Notes on
WinCC > Remote access and Remote Desktop Protocol (RDP) (Page 71)".
Information on write access for WinCC project folders can be found under "Access rights in
the operating system > Defining Access Rights in the Operating System (Page 26)".
Firewall settings
To limit the incoming rule for the CCAgent or CCEServer, you can change the parameter "Remote
address" from "Any" to "Local subnet".
You can edit the firewall rules in the "Windows Firewall with Advanced Security" dialog.
WinCC/Connectivity Pack
24 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Note
The functions can be configured using the Windows Control Panel.
If the functions are activated in the Windows Control Panel before activating WinCC Runtime,
they are no longer locked in runtime.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 25
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Disable the "Plug&Play" service in the Windows Services Manager. Activate the service only if
you actually need access, for example, to a chip card reader.
See also
Information on the Windows operating system (Page 50)
Microsoft SQL Server for WinCC (Page 22)
Defining Access Rights in the Operating System (Page 26)
How to Adapt the Windows Security Policies (Page 32)
How to install WinCC (Page 33)
Notes on operation (Page 48)
Remote access and Remote Desktop Protocol (RDP) (Page 71)
SiePortal: WinCC FAQs (http://support.automation.siemens.com/WW/view/en/
10805583/133000)
SiePortal: WinCC FAQ 44027453 (http://support.automation.siemens.com/WW/view/en/
44027453)
Introduction
To support you in protecting your system, WinCC offers a structured user administration:
• Protect your system against unauthorized access.
• Assign each user the required rights.
In order to work with WinCC, certain folders can be enabled for access via the network. For
security reasons, you should only assign access rights to these folders to authorized users.
You manage access rights via the Windows Standard user groups and user groups created by
WinCC.
WinCC/Connectivity Pack
26 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 27
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
WinCC Installation
• Task: WinCC Installation
• Role: Configuration engineer, Administrator
• Authorization: Windows Administrator rights
• Procedure:
Prior to installation, ensure that you have local administrator rights on the computer.
• Explanation:
You need local administrator rights to install WinCC.
WinCC/Connectivity Pack
28 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
• Procedure:
Enter the WinCC users on all computers in the same group.
Assign the same password to all the users.
• Explanation:
For access to distributed systems, the same user groups must be created on clients and
servers.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 29
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
See also
Notes on Data and System Security (Page 24)
How to Adapt the Windows Security Policies (Page 32)
How to install WinCC (Page 33)
WinCC Installation Requirements (Page 15)
Introduction
Include those local users in the "SIMATIC HMI" group whose login permits access to WinCC. You
must first create local users to do so. Users of a domain may be directly included in the user group
"SIMATIC HMI".
Procedure
1. Open the workstation administration under Windows.
2. Select the entry "Local Users and Groups > Users" in the navigation window .
All local users are displayed in the data window.
3. Open the "New User" dialog via the shortcut menu.
Create a user account with the same login for each user who is to have access to WinCC.
4. Select the entry "Local Users and Groups > Groups" in the navigation window".
All groups are displayed in the data window.
Select the "SIMATIC HMI" group.
5. Using the shortcut menu, open the "Add Member" dialog and include those users as
members of the "SIMATIC HMI" user group.
Introduction
During operation of a domain, an additional domain-global user group may be created and
included as a member of the "SIMATIC HMI" user group.
Application example
You can find a detailed application example in the Internet under Entry ID 78346833:
• SiePortal: "Installation and operation of WinCC in a Microsoft domain environment" (https://
support.industry.siemens.com/cs/ww/en/view/78346833)
WinCC/Connectivity Pack
30 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Requirements
• The domain administrator creates a domain-global user group.
• Within the domain, the domain administrator includes those users in the domain whose
login permits access to WinCC.
Procedure
1. Open the workstation administration under Windows.
2. In the navigation window, select the "Local Users and Groups > Groups" entry. The data
window displays all groups. Select the group "SIMATIC HMI".
3. Using the pop-up menu, open the "Add Member" dialog and include domain-global user
group as members of the "SIMATIC HMI" user group.
See also
SiePortal: "Installation and operation of WinCC in a Microsoft domain environment" (https://
support.industry.siemens.com/cs/ww/en/view/78346833)
Introduction
You must first remove the existing release of the project directory if the user group "SIMATIC HMI"
has to access an existing user group. Then the project is released again while opening WinCC
Explorer.
Procedure
1. Open the workstation administration under Windows.
2. In the navigation window, select the entry "Shared Folders > Shares". The data window
displays all unlocked directories.
3. Select the respective project directory and remove the enable through the "Cancel Share"
pop-up menu.
4. If you now open the project in WinCC, the project directory is automatically unlocked for the
"SIMATIC HMI" user group, and all members of the user group are granted access to the
project directory.
Note
The enable name of the directory unlocked by WinCC must not be modified.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 31
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Introduction
Before you install WinCC, you must check the operating system settings:
• The system must permit the installation of unsigned drivers and files.
Procedure
1. To open the Windows entry field, select the entry "Run" in the "Windows System" program
group.
2. Enter "gpedit.msc" in the input box.
The "Local Group Policy Editor" dialog box opens.
3. In the left section of the window under "Policy for local computer", select "Computer
Configuration > Administrative Templates > System > Device Installation > Device Installation
Restrictions".
4. Check the settings of the security policies below:
– "Display a custom message when installation is prevented by policy (balloon text)"
– "Display a custom message when installation is prevented by policy (balloon title)"
"Not configured" must be set for the policy.
See also
Notes on Data and System Security (Page 24)
Defining Access Rights in the Operating System (Page 26)
Software requirements for installing WinCC (Page 18)
WinCC Installation Requirements (Page 15)
Introduction
This section describes the installation of WinCC.
During the WinCC installation, MS Message Queuing and Microsoft Internet Information
Service (IIS) are installed and configured if necessary.
WinCC/Connectivity Pack
32 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Note
Usage only with administrator rights
If you want to use the Fileserver, you need administrator rights.
Fileserver installation requirements
WinCC V8 and WinCC Fileserver V8 cannot be installed at the same time on one computer.
See also
Upgrading WinCC (Page 44)
How to Install Supplementary Components Later (Page 38)
How to install WinCC (Page 33)
Hardware requirements for installing WinCC (Page 16)
Introduction
This section describes how to install and run WinCC.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 33
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
The components already installed are displayed during setup. The following symbols are used:
Symbol Meaning
Current version of program is installed.
Program setup conditions are not met. Click the symbol for more detailed information.
Scope of Installation
During custom installation of WinCC, you can choose between the following variants:
1) When installing the "WinCC Client", you need an "RT Client" or "RC Client" client license.
You can also install or remove components and languages at a later time. For more
information, see the sections "How to Install Supplementary Components Later (Page 38)"
and "How to Install Supplementary Languages (Page 39)".
WinCC/Connectivity Pack
34 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
The required drive space depends upon the installed components. An estimated value is
shown in the status bar.
Requirements
• Make sure that no other setup is running on the computer at the same time, for example, a
Windows update.
• You need local administrator rights to install WinCC.
Information on user rights, which is necessary for the operation of WinCC, is located in
section "Instructions for Security of Data and System".
• The computer name may only contain permissible characters.
• The security policies must be adapted under Windows.
• No manually created SQL server entity with the name "WinCC" may be installed.
• During the WinCC installation, Microsoft Message Queuing is installed and configured.
• The storage medium with the licenses is still not to be connected with the installation
computer.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 35
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
WinCC is released for the following operating system languages: English, German, French,
Italian, Spanish, Chinese (simplified, PR China), Chinese (traditional, Taiwan), Japanese,
Korean and multi-lingual operating system.
Note
Unfulfilled requirements
An error message is output if you run WinCC Setup without having the administrator rights, or
if other setup conditions are not met.
You can find more information on error messages under "WinCC Installation Requirements
(Page 15)".
Procedure
1. Start the WinCC product DVD.
– The DVD starts automatically if Autorun is enabled in the operating system.
– If the Autorun function is not activated, start the program Setup.exe on the DVD.
2. Follow the on-screen instructions.
Read the License Agreement and the Open Source License Agreement.
3. Select the languages you want to install.
You may install other languages at a later time.
4. Select "Install" as the setup type.
If an older WinCC version is found, you can also activate the "Update" setup type. However,
this does not allow you to install any additional products.
5. Select the setup mode.
6. In Package installation , select the Program package "WinCC Installation".
– If you also want to install WinCC options, select the corresponding program packages.
– Select "WinCC Client Installation" if you only want to install the WinCC client.
– Select the scope of your installation in User-defined installation.
The components to be installed are highlighted in Setup.
Click on "Help" for a description of the displayed symbols. Click on "Readme" to open the
Information System.
7. Read the license agreement for the Microsoft SQL Server.
8. Before the installation, the security settings that are adapted for WinCC are displayed in the
"System Settings" dialog. The firewall is configured automatically.
Confirm the changes to the system settings.
9. Start the installation.
You can track the status of the installation in the displayed dialog. Select "Cancel" to cancel
the installation of the current component.
WinCC/Connectivity Pack
36 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
10.You can transfer the product License Keys after having installed the components.
To do so, click on "Transfer License Key".
Select "Next" if you have already transferred the license keys or want to install them at a later
time.
Note
Transferring the licenses
The license keys will not be transferred automatically. You will have to transfer missing
license keys during or after installation with Automation License Manager .
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 37
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
See also
Upgrading WinCC (Page 44)
Notes on Data and System Security (Page 24)
Defining Access Rights in the Operating System (Page 26)
How to Adapt the Windows Security Policies (Page 32)
WinCC Installation Requirements (Page 15)
Introduction
Once you have installed WinCC, you can then install further components or options at a later
date.
WinCC/Connectivity Pack
38 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Procedure
1. Start the WinCC product DVD.
If the Autorun function is not activated, start the program Setup.exe on the DVD.
2. Specify whether you wish to install individual components or options. The already installed
components will be displayed.
3. Follow the on-screen instructions.
See also
WinCC Installation Requirements (Page 15)
How to install WinCC (Page 33)
Introduction
Once you have installed WinCC, you can later install additional languages.
Procedure
1. Open the "Programs and Features" entry in the Control Panel.
2. Select "SIMATIC WinCC Runtime V8.0" and click the "Change" button.
The WinCC Setup program opens.
3. Select the desired languages.
4. When prompted, insert the WinCC product DVD in the DVD drive.
Once the start page of the DVD is opened via Autorun function, close the window with "Exit".
5. Follow the instructions on the screen.
6. If you have installed WinCC CS, select "SIMATIC WinCC Configuration V8.0" and click the
"Change" button.
Repeat steps 3 to 5 for WinCC CS.
Repeat this procedure for any additionally installed components and options.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 39
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Record function
The Record function supports multiple installation on different computers with identical options.
During setup, the Record function records the settings and creates a "Ra_Auto.ini" installation
file which supports you during installation.
While in the past you had to navigate through all setup dialogs for each installation, all you
have to do now is start setup with the "Ra_Auto.ini" control file.
WinCC/Connectivity Pack
40 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
The control file can only be executed on PCs on which the same operating system version
is running. During installation of WinCC, Microsoft updates are installed, for example, which
depend on the installed operating system.
Requirement
• You need administrator rights on your PC.
Procedure
1. To open the Windows entry field, select the entry "Run" in the "Windows System" program
group.
2. Enter the following command line:
– <Path for the installation data>\setup.exe /record
Select the DVD drive or a central PC to which the installation data were copied as path for the
installation files.
Setup is started.
3. Select the desired language and click "OK".
The "Record function" dialog is displayed.
4. Activate the Record function.
5. Select the path in which you want to create the "Ra_Auto.ini" control file and confirm with
"Next".
6. Select the required components and settings for the installation.
Once you have made the settings, the message "Recording completed" is displayed.
Result
The control file "Ra_Auto.ini" is created and saved in the selected path.
The same setup version must be used for central installation and for creation of the
"Ra_Auto.ini" file.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 41
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Requirement
• You have created the "Ra_Auto.ini" file using the Record function.
The file "Ra_Auto.ini" must be created with the existing setup version.
• The same operating system version is installed on the PC.
Procedure
1. If required, copy the setup to a central server or PC.
2. Copy the file "Ra_Auto.ini" to the folder "C:\Windows" on the PC to be installed.
3. Start central installation by calling automatic installation:
– <Path for the installation data>\setup.exe /silent
You may receive a message when the central installation was completed successfully.
Note
If an error or inconsistency occurs during installation, you will receive messages that require
your acknowledgement.
Alternative procedure
If the file "Ra_Auto.ini" is not located in the "C:\Windows" folder, start central installation with the
following call:
• <Path for the installation data>\setup.exe /silent=<storage
path>\Ra_Auto.ini
Introduction
On your computer, you can remove WinCC completely or simply remove individual components.
You cannot remove individual languages.
You can execute the removal via the WinCC product DVD or vial the control panel of the
operating system.
WinCC/Connectivity Pack
42 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 43
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
You can adapt these settings in the Windows Event Viewer yourself.
Introduction
As of version WinCC V7.2, you can upgrade to WinCC V8.0 by means of an upgrade installation.
Make sure that the latest WinCC updates for the respective WinCC version have been installed.
Proceed as described in "Upgrading an installation" section.
Note
Restart PC before installing the update
Restart the PC before commencing installation of the update to WinCC V8.0.
Requirements for the upgrade
If you are upgrading WinCC versions prior to V7.0 SP3, observe the operating system
requirements and hardware requirements.
More information on migration of WinCC versions V4 or higher is available under the following
URL (entry ID=44029132):
• SiePortal: FAQ Migration V4 > V7 (https://support.industry.siemens.com/cs/de/en/view/
44029132)
Note
WinCC user no longer needs to be a member of the "SQLServerMSSQLUser$<COMPUTER
NAME>$WINCC" user group
When you migrate projects created prior to WinCC V7.2, you remove the WinCC users from this
group.
In WinCC projects prior to V7.2, you will find the user group under the name
"SQLServer2005MSSQLUser$<COMPUTER NAME>$WINCC".
WinCC/Connectivity Pack
44 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Notes on licensing
You need to upgrade licenses of WinCC prior to V8.0 to the current version.
You can update the licensing retroactively. Detailed information is available in the WinCC
Information System under the topic "Licensing".
See also
How to Perform an Upgrade Installation (Page 45)
SiePortal: FAQ Migration V4 > V7 (https://support.industry.siemens.com/cs/de/en/view/
44029132)
Introduction
If you currently have WinCC V.2 or higher installed on your system, you can perform an upgrade
installation. Make sure that the latest WinCC updates for the respective WinCC version have been
installed.
Before beginning an upgrade installation, the transfer of existing projects must be prepared.
Requirement
The hardware configuration of previous versions is sufficient in most cases to install an upgrade
to WinCC V8.0.
However, performance is reduced if the amount of data is increased too much.
If it is expected that the data volume will increase, upgrade the hardware in good time.
Note
Restart PC before installing the update
Restart the PC before commencing installation of the update to WinCC V8.0.
Requirements for the upgrade
If you are upgrading WinCC versions prior to V7.0 SP3, observe the operating system
requirements and hardware requirements.
More information on migration of WinCC versions V4 or higher is available under the following
URL (entry ID=44029132):
• SiePortal: FAQ Migration V4 > V7 (https://support.industry.siemens.com/cs/de/en/view/
44029132)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 45
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
Upgrade preparation
Note
Backing up a WinCC project
Make a backup copy of your project before upgrading WinCC.
Restart PC before installing the update
Restart the PC before commencing installation of the update to WinCC V8.0.
Additional steps and adjusting settings
Also read the notes in the WinCC Information System under "Migration".
NOTICE
Transferring archives with impermissible special characters
When transferring archives, if they contain impermissible special characters, the runtime
archive may be lost.
Procedure
1. Prepare existing WinCC projects for migration.
Check the used names for impermissible special characters.
2. Install WinCC V8.0.
Proceed as described in the section "How to install WinCC".
You need the storage medium that contains the licenses for WinCC V8.0.
Upgraded licenses of previous WinCC versions will be lost.
3. Migrate your existing WinCC projects.
Note the corresponding "First Information > Migration" section in the WinCC Information
System.
WinCC/Connectivity Pack
46 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.1 WinCC Installation Notes
See also
How to install WinCC (Page 33)
SiePortal: FAQ Migration V4 > V7 (https://support.industry.siemens.com/cs/de/en/view/
44029132)
Introduction
For trouble-free operation and optimal performance of WinCC, observe the notes on operation
under Windows and the notes on configuration.
You can find this information in the following sections of the WinCC Information System:
• "Release Notes > Notes on operation (Page 48)"
This section includes information on compatibility and on use of virus scanners.
• "Release Notes > Notes on WinCC > Remote access and Remote Desktop Protocol (RDP)
(Page 71)"
The section contains information about remote communication.
• "Working with WinCC > Working with Projects > Making Settings for Runtime > Effect of
External Applications at Runtime"
This section contains information on applications that can affect system resources.
• "Working with WinCC > Working with Projects > Making Settings for Runtime > System
diagnostics with performance tags"
The section contains information on system tags with which, for example, the time behavior
during reading or writing of tags is analyzed.
• "Working with WinCC > Configuration recommendations"
The section contains information on the high-performance configuration of process pictures
and on the optimal dynamization of picture objects and controls.
• "Configurations > Multi-User Systems > Quantity structures and performance"
The notes on configuration in this section apply to all project types.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 47
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Content
These Release Notes contain important information.
The information in these Release Notes has priority over that in the manuals and online help
with regard to legal validity.
Please read these Release Notes carefully since it contains information which may prove
helpful.
General information
WinCC/Connectivity Pack
48 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
The usage and diagnostic data is then also transferred to Siemens via a secure
communication channel for the above-mentioned purposes.
You can deactivate this function via the project settings at any time.
Compatibility
You can find information on compatibility on the Internet in FAQ No. 64847781:
• SiePortal: FAQ 64847781 (https://support.industry.siemens.com/cs/ww/en/view/64847781)
• Compatibility tool for automation and drive technology: (https://
support.industry.siemens.com/kompatool/index.html?lang=en)
Fundamental principle
The use of a virus scanner should not hamper the runtime process in a plant.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 49
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
• Dialogs
To avoid interfering with the process mode, no dialog messages should be displayed on the
virus scan clients.
• Drives
Only the local drives are scanned to prevent overlapping scans on network drives.
• You can deactivate e-mail scan except on the WinCC engineering station that receives email.
Accept all other default settings.
Note
When using a virus scanner, make sure that the computer has sufficient system resources.
Screen savers
Using a screen saver costs processor time and can lead to a system overload. Screen savers that
do not release portions of the work memory no longer needed continually reduce the usable
work memory.
The Microsoft Windows "Logon screen saver" can be used.
See also
Software requirements for installing WinCC (Page 18)
SiePortal: FAQ 64847781 (https://support.industry.siemens.com/cs/ww/en/view/64847781)
Compatibility tool for automation and drive technology: (https://
support.industry.siemens.com/kompatool/index.html?lang=en)
WinCC/Connectivity Pack
50 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
General information
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 51
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
WinCC/Connectivity Pack
52 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
See also
Notes on Data and System Security (Page 24)
SiePortal: FAQ 18752994 (https://support.industry.siemens.com/cs/ww/en/view/18752994)
SiePortal: FAQ search (https://support.industry.siemens.com/cs/products?
search=microsoft&dtp=Faq&mfn=ps&o=DefaultRankingDesc&pnid=14866&lc=en-WW)
SiePortal: WinCC FAQs (http://support.automation.siemens.com/WW/view/en/
10805583/133000)
Information on DB.dll
DB.dll is an ODK component for accessing databases via C API functions.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 53
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
This functionality is no longer supported when using WinCC. Do not develop any new
applications with the WinCC database access layer DB.dll.
Instead, use the following functions offered by Microsoft:
• Use ADO.NET for .NET-based applications.
The database interface of the .NET Framework is object-oriented and designed for scalable
applications. The interface is also well suited for data communication through firewalls.
• You can use OLE DB for C++ based applications.
Microsoft provides templates with Visual Studio for this. They make it easier to use the OLE
DB database technology with classes, which implement many commonly used OLE DB
interfaces.
• You can also use ODBC C++ based applications.
Microsoft provides classes for this, which facilitate programming.
You can find more detailed information and examples on the Microsoft website.
Error accessing the SQL master database after switching off the server while the system is
running
If a server fails unexpectedly in runtime (power failure, disconnection of power plug), the WinCC
installation may be corrupted as a result and the SQL server will no longer be able to access the
SQL master database following a restart.
Access is only possible after reinstalling the WinCC instance.
In order to reinstall the WinCC instance, both WinCC and the SQL server must be removed
and installed again.
WinCC/Connectivity Pack
54 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Information on networks
WinCC only supports the TCP/IP network protocol on the terminal
bus.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 55
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Example:
• Computer_1 199.99.99.020 is interpreted as 199.99.99.16 (decimal)
• Computer_2 199.99.99.026 is interpreted as 199.99.99.22 (decimal)
The specification can also be made hexadecimal:
• 199.99.99.0x10 for Computer_1
WinCC/Connectivity Pack
56 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
When the user administration is realized in a working group, all the WinCC users must
be set up on all the computers in the multi-user system and have the necessary access
authorization.
Application example
You can find a detailed application example in the Internet under Entry ID 78346833:
• SiePortal: "Installation and operation of WinCC in a Microsoft domain environment" (https://
support.industry.siemens.com/cs/ww/en/view/78346833)
Application example
You can find a detailed application example in the Internet under Entry ID 78346833:
• SiePortal: "Installation and operation of WinCC in a Microsoft domain environment" (https://
support.industry.siemens.com/cs/ww/en/view/78346833)
Using routers
With WinCC V7/V8, it is also possible to connect WinCC clients to WinCC servers via routers.
WinCC clients without their own project cannot be used for configuration with the routers,
only for WinCC Runtime. There are no restrictions for WinCC clients with their own project.
The following is required when using routers:
• WinCC must use the correct IP address of the WinCC stations.
• The WinCC stations must be capable of resolving the physical computer name (NETBIOS
name) of the other computers in the WinCC project.
• The WinCC stations must be capable of reaching each other via TCP/IP and ICMP without any
problems. When testing the connection using Ping, it must be possible to access the
computers immediately.
• Activate multicast forwarding to the network routers between the servers and the clients.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 57
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
• Using the ISDN router for a WinCC client in multi-link mode (channel bundling). Bandwidths
below 128 Kbps have proved insufficient.
• Integrate only one WinCC client for each additional ISDN channel.
• The operation of WinCC via ISDN routers depends on the stability and availability of the ISDN
network.
• Reserve the maximum bandwidth of the connection for WinCC.
Note
Connection via ISDN and operation using slow connections has not been approved for clients
without a local project.
WinCC/Connectivity Pack
58 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Requirements
The following conditions can lead to undesirable reactions when operating WinCC:
• The IP address band used in the terminal network is higher than the APIPA address band
(169.254.x.x).
• IP addresses are routed via the default gateway.
• IP addresses from the APIPA band are routed to the firewall.
Solution
This reaction can be avoided by assigning a unique IP address to each WinCC station.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 59
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
See also
SiePortal: "Installation and operation of WinCC in a Microsoft domain environment" (https://
support.industry.siemens.com/cs/ww/en/view/78346833)
General information
WinCC/Connectivity Pack
60 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Note for migrated project that were created with WinCC prior to V7.2:
• You must re-enter the user name and the password for "WinCC Service Mode" operating
mode.
• To increase security of WinCC through improved encryption, you have the re-enter the
passwords in the User Administrator.
Make sure that the WinCC passwords meet the standard security guidelines.
Define the minimum complexity in the User Administrator, e.g. the required number of
special characters.
C scripting
WinCC and Windows API functions can be called in the action scripts. In addition, the
integrated script programming contains a C interpreter with a large number of standard
functions complying to ANSI-C.
Please note that, due to the openness of the system, it is possible to write actions that
block the system and lead to system crashes in runtime due to continuous loops, incorrectly
initialized pointers, etc. Pay attention to the availability of allocated memory.
VB scripting
VBScript (VBS) enables access to tags and objects of the graphical runtime system during
runtime. In addition to VBS standard functions and constants, the Windows Scripting Host
and the MS Automation interface can also be used to make the Windows environment
dynamic.
There is no guarantee nor WinCC support for the VBS functionality with regard to its
adaptation to the Windows environment.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 61
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
You can find additional information in the following sections of the WinCC Information
System:
• "ANSI-C for Creating Functions and Actions"
• "VBS for Creating Procedures and Actions"
• "Process Picture Dynamics"
Time synchronization
Time synchronization between the servers and automation systems is essential for the correct
functioning of:
• Redundancy synchronization
• Chronological messaging
• Search and sorting criteria using the time code
• Operating multi-user projects in one domain
You can find additional information in the following sections of the WinCC Information
System:
• "Redundant systems"
• "Chronological reporting"
• "Multi-user systems"
• "Time synchronization"
WinCC/Connectivity Pack
62 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
The "Archive Configuration" entry is not available in Tag Logging and Alarm Logging.
CPU load
If data, transferred from a server to a client, cannot be processed at the same speed, the client
rejects the data frames from a specified threshold value.
The following process control messages are issued in conjunction with this:
• 1000200: "WCCRT:Status"
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 63
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
You will find the following additional information in the comment of this message or in the
log file "WinCC_Sys_<x>.log":
• 1000200,4,,<Computer name>, DataManager Runtime, RPC call took longer than 5000
msec
(Client requires a very long time to process the data)
• 1000200,4,,<Computer name>, DataManager Runtime, Update data for Client '<client
name>' lost,
(message frames for the client are discarded on the server)
Data may be lost on the client.
See also
SiePortal: WinCC demo projects (https://support.industry.siemens.com/cs/products?
search=demo&dtp=ExampleOfUse&o=DefaultRankingDesc&pnid=14867&lc=en-WW)
SiePortal: WinCC V7.5 SP1 demo project (https://support.industry.siemens.com/cs/ww/en/
view/109783749)
SiePortal: "How do you delete the DCF file of your WinCC project?" (https://
support.industry.siemens.com/cs/ww/en/view/109763043)
SiePortal: Demo projects for SIMATIC WinCC V7.4 SP1 (http://
support.automation.siemens.com/WW/view/en/109482515)
General information
WinCC/Connectivity Pack
64 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
This applies to both a direct installation of the ActiveX control on the computer with WinCC,
Web server or Web client and the installation using a plug-in, such as on the Web client.
• With a direct installation, the ActiveX control should therefore be installed prior to WinCC
Basic System, Web Server or Web Client.
If the custom ActiveX controls do not function without error after this step, there is no
compatibility.
• If the custom ActiveX Control was packaged in a plug-in and installed via download, an
upgrade of WinCC Basic System, Web Server or Web Client will also require generation of a
new plug-in using this ActiveX Control.
When creating the plug-in, care should be taken to use compatible binaries (DLL, OCX, etc.).
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 65
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
You can download the Adobe Acrobat Reader free of charge from the following URL:
• http://www.adobe.com/products/acrobat (http://www.adobe.com/products/acrobat)
I/O fields copied from WinCC < V7.3: No data format "Date/Time"
When you copy an I/O field created in WinCC < V7.3, the "Date/Time" data format is not available
for the pasted I/O field.
Pictures with transparent areas: Using file formats with alpha channel
If you want to use a graphic for Direct2D display which contains transparent areas, use only
graphic formats with an alpha channel, e.g. BMP or PNG.
Solution
To print barcodes, use the "Version for MS Dynamics German + English" font.
This font is language-independent. The barcodes are printed even if the computers have
different language settings.
Additional information is available from Product Support under the entry ID 109750328:
• SiePortal: FAQ 109750328 (https://support.industry.siemens.com/cs/ww/en/view/
109750328)
Information on VBA
VBA updates
The user is solely responsible for the installation of updates for VBA.
The corresponding updates for VBA are made available by Microsoft on the download pages.
Siemens does not supply any updates from Microsoft.
Install the updates for VBA after installing WinCC.
WinCC/Connectivity Pack
66 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
See also
Scope of delivery (Page 7)
SiePortal: FAQ 109750328 (https://support.industry.siemens.com/cs/ww/en/view/109750328)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 67
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Information on OPC
No deinstallation of SIMATIC WinCC OPC Server when the OPC channel is used
When you use the OPC channel, you must not remove the SIMATIC WinCC OPC DA Server.
OPC tags: Time stamp for Alarm Logging and Tag Logging
If messages are triggered by OPC tags, the message time stamp is used by the OPC server,
comparably to chronological reporting.
For Tag Logging the time stamp is generated by the Tag Logging server.
OPC Alarm&Event
WinCC/Connectivity Pack
68 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Filtering messages when using format instructions in the user text block
The OPC source of a message is shown in an user text block. This is user text block 2 with the
default setting.
If you use format instructions in this user text block, you need to use wild cards for the filter
setting.
This ensures correct filtering when the OPC sources are generated dynamically in Runtime.
Tag Export/Import
To export tags from a WinCC project or import them into a WinCC project, use the WinCC
Configuration Studio.
For compatibility reasons, the "Tag Export/Import" tool is still included in the "uTools"
installation path.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 69
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
WinCC/Connectivity Pack
70 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Released scenarios
The following scenarios have been tested:
• WinCC as single-user system
• WinCC as distributed system
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 71
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Use of RealVNC
For instructions on how to use "RealVNC", refer to FAQ 55422236:
• SiePortal: Access via "RealVNC" to WinCC stations and PCS 7 stations (https://
support.automation.siemens.com/WW/view/en/55422236)
NOTICE
Data loss after interruption of the remote desktop connection
When the remote desktop connection is interrupted, for example, because the network cable
was removed from the computer of the Remote Desktop Client, the archives and the OPC
server, among others things, will no longer receive values from the data manager.
This status will persist until the connection has been restored, or the timeout of approximately
35 seconds has expired.
WinCC/Connectivity Pack
72 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Procedure
1. To start a console session, open the "Run" dialog, for example, with <Windows button+R>.
2. Enter the following command:
– mstsc /v:<Server> /admin
Enter the computer name or the IP address as server.
See also
Notes on Data and System Security (Page 24)
SiePortal: Remote access to WinCC stations (http://support.automation.siemens.com/WW/
view/en/78463889)
SiePortal: Access via "RealVNC" to WinCC stations and PCS 7 stations (https://
support.automation.siemens.com/WW/view/en/55422236)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 73
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
A double failure occurs, for example, when the terminal bus was pulled on server 1 while
server 2 was deactivated.
WinCC/Connectivity Pack
74 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
Multiple languages
Online documentation in the WinCC Information System is available only in English, French,
German and Chinese (Simplified, PR China).
If you work with a French, English or German version of Windows computer software and
install a different language, it is possible that terms in WinCC appear in this language even if
WinCC is operated with the same language as Windows.
Different buttons have English labels especially in the multi-lingual versions of Windows
independent of the language setting and independent of the WinCC language. This affects
dialog boxes in particular which the user must respond with Yes/No, OK/Cancel etc.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 75
WinCC V8.0 Installation / Release Notes
1.2 WinCC Release Notes
WinCC/Connectivity Pack
76 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.3 WinCC/Connectivity Pack Installation Notes
Introduction
The WinCC/Connectivity Pack enables licensed access to online and archive data of WinCC.
The Connectivity Pack includes licenses for access using:
• WinCC OPC-DA Server
• WinCC OPC HDA Server
• WinCC OPC A&E Server
• WinCC OPC UA Server
Starting from WinCC/Connectivity Pack V7.0, a WinCC Client Access License (WinCC/CAL) is
no longer required.
Introduction
The installation of the Connectivity Pack server includes the following components:
• WinCC OLE DB Provider
• SQL Server 2019 64-bit
• "Automation License Manager" for Management of WinCC Licenses
• WinCC Archive Connector
• WinCC DataConnector
• WinCC Basic Components
• Documentation
• Examples
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 77
WinCC V8.0 Installation / Release Notes
1.3 WinCC/Connectivity Pack Installation Notes
Requirement
• Hardware requirement:
Observe the hardware requirements of WinCC V8.0 for WinCC servers.
• Operating system:
– Microsoft Windows 10 Pro / Enterprise / Enterprise LTSC (max. 3 clients) 64-bit
– Microsoft Windows 11 Pro / Enterprise (max. 3 clients) 64-bit
– Microsoft Windows Server 2019 Standard / Datacenter 64-bit
– Microsoft Windows Server 2022 Standard / Datacenter 64-bit
• During the WinCC installation, Microsoft Message Queuing is installed and configured.
• For access to WinCC RT archives, WinCC V8.0 must be installed.
Note
To use more than three clients, you must install the server version.
With the workstation version, you can use max. three clients.
Procedure
1. In order to configure a computer as Connectivity Pack Server, run the Connectivity Pack
Server setup on the computer.
2. Select the "ConnectivityPack-Server" entry on the WinCC Product DVD in the "Program
Packages" dialog.
Licensing
For operation of the Connectivity Pack Server, the license for the WinCC Connectivity Pack option
is required.
Access rights
All the users of the WinCC/Connectivity Pack have to be included in the Windows user group
"SIMATIC HMI".
The user has to be a member of the user group "SIMATIC HMI" on the Connectivity Pack
server for remote access of a Connectivity Pack client.
WinCC/Connectivity Pack
78 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.3 WinCC/Connectivity Pack Installation Notes
Introduction
The installation of the Connectivity Pack Client includes the following components:
• WinCC OLE DB Provider
• WinCC DataConnector
• SQL Connectivity Tools
• Documentation
Note
In order to install the SQL Connectivity Tools, you will need administrator rights on the computer.
Requirement
• Operating system:
– Microsoft Windows 10 Pro / Enterprise / Enterprise LTSC 64-bit
– Microsoft Windows 11 Pro / Enterprise 64-bit
– Microsoft Windows Server 2019 Standard / Datacenter 64-bit
– Microsoft Windows Server 2022 Standard / Datacenter 64-bit
• During the WinCC installation, Microsoft Message Queuing is installed and configured.
Procedure
1. In order to configure a computer as Connectivity Pack Client, run the Connectivity Pack Client
setup on the computer.
2. Select the "ConnectivityPack-Client" entry on the WinCC Product DVD in the "Program
Packages" dialog.
3. If WinCC V8.0 is already installed on the client, an additional installation of the Connectivity
Pack Client is not required.
Access rights
All the users of the WinCC/Connectivity Pack have to be included in the Windows user group
"SIMATIC HMI".
The user has to be a member of the user group "SIMATIC HMI" on the Connectivity Pack
server for remote access of a Connectivity Pack client.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 79
WinCC V8.0 Installation / Release Notes
1.4 WinCC/Connectivity Pack Release Notes
Content
These release notes contain important information.
The statements in these release notes take precedence over information provided in the
manuals and in the online help.
Please read these release notes carefully as they contain useful information.
Exchange of data between OPC client and Connectivity Station via OPC UA
A OPC UA server is implemented in the Connectivity Station which is available at the address
"opc.tcp://[HostName]:[Port]" .
WinCC/Connectivity Pack
80 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
Introduction
Certain hardware and software configuration requirements must be fulfilled for installation.
Note
A DataMonitor server cannot be operated on a WinCC client without a project of its own.
Only use a DataMonitor server on a computer which is not operated in WinCC ServiceMode.
Hardware requirements
To work with WinCC/DataMonitor efficiently, select a system that meets the recommended
specifications for an optimum configuration.
DataMonitor server
Minimum Recommended
DataMonitor server on WinCC server CPU Dual core CPU; 2.5 GHz Multi core CPU; 3.5 GHz
for more than 10 clients Work memory 4 GB 8 GB
DataMonitor server on WinCC server CPU Dual core CPU; 2.5 GHz Multi core CPU; 3.5 GHz
with WinCC project in runtime Work memory 4 GB 8 GB
DataMonitor server on WinCC server CPU Dual core CPU; 2.5 GHz Multi core CPU; 3.5 GHz
Work memory 4 GB > 4 GB
DataMonitor server on WinCC single- CPU Dual core CPU; 2.5 GHz Multi core CPU; 3.5 GHz
user system or WinCC client with its Work memory 4 GB > 4 GB
own project
DataMonitor client
Minimum Recommended
CPU Dual core CPU; 2 GHz Multi core CPU; 3 GHz
Work memory 1 GB 2 GB
Software requirements
Certain requirements concerning operating system and software configuration must be met for
the installation.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 81
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
DataMonitor server on WinCC single-user system or WinCC client with its own project
1) ActiveX controls that were created with a 32-bit version are not compatible with the 64-bit version of Microsoft Office 365. You
can only use the Excel add-in with the 32-bit version of Microsoft Office 365.
You also need access to the Intranet/Internet or a TCP/IP connection to the Web client.
DataMonitor client
1) ActiveX controls that were created with a 32-bit version are not compatible with the 64-bit version of Microsoft Office 365. You
can only use the Excel add-in with the 32-bit version of Microsoft Office 365.
You also need access to the Intranet / Internet or a TCP/IP connection to the Web server.
WinCC/Connectivity Pack
82 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
Introduction
You can install the DataMonitor client as follows:
• Installation from the product DVD
In this case, certain Windows user rights are necessary, depending on the operating system.
• Installation via the Intranet/Internet
In this case, certain Windows user rights are necessary, depending on the operating system.
• Installation using the group policy-based software distribution in networks
This can be done without any user interaction and using the Windows user permissions of the
current user.
Windows user permissions required for installation and initial logon of the client
Depending on the operating system, specific minimum user rights are required to install the
DataMonitor client via Intranet/Internet.
After installation, the client must log in with the following user identification for initial
registration on the DataMonitor server:
• Under a user identification with Windows user rights higher or equal to those defined by the
user identification that was given for the installation.
The connections must be established successfully. The subsequent logins can then be
performed under a different Windows user authorization with possibly limited rights.
Minimum required user rights:
• Administrator
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 83
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
The following is possible with the Microsoft Systems Management Server or a group policy
on a Domain Controller:
• The installation for a group of users or computers configured by the administrator
– To do this, the "WinCCDataMonitorClient.msi" MSI file is published on the domain
controller and then released for a user group. The installation is then performed
according to the configuration of the group policy based software distribution either
during login of the defined users or when the computer is started.
– When using a Microsoft Systems Management Server, the installation is configured by the
administrator, triggered and executed when the relevant computer boots. Additional
information on Microsoft Systems Management Server is available in the Internet on the
Microsoft Homepage.
Group policy based software distribution
The software installation is normally executed with the access rights of the current Windows
user. When using MSI technology, the installation is performed by an operating system
service with a higher level of rights. This enables installations to be performed for which
the Windows user has no permission. Applications which require installations with a higher
permission are referred to as "privileged installations" in MSI technology. Installation of these
applications is possible when a Windows user is assigned the "Always install with elevated
privileges" permission.
In order to use the group policy-based software distribution, a group policy is created on
the domain controller and assigned to the distributing software or published using Active
Directory.
• Assignment: The software distribution can be assigned to a user or a computer. In this case,
the software to be distributed is automatically installed when the user logs in or the
computer is started.
• Publication: The software distribution can be published for single users. In this case, when
the user logs onto the client computer, the software to be distributed appears in a dialog and
can be selected for installation.
See also
Installing DataMonitor (Page 84)
Introduction
This section describes the installation of the DataMonitor server and DataMonitor client.
Installation on the DataMonitor client depends on the DataMonitor tool used.
WinCC/Connectivity Pack
84 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
This installation allows you to access the WinCC runtime archive using "Trends & Alarms".
Only "Webcenter" and "Trends & Alarms" are installed on a computer with WinCC file server,
for example, used as a archive server, because the other components require WinCC Runtime.
"Webcenter" and "Trends & Alarms" install all necessary components in the process.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 85
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
Depending on the operating system, specific user rights may be required for installing the
DataMonitor client. For more information, refer to "User rights for installing the DataMonitor
client (Page 83)".
Note
Downloading the client setup
To save the client setup on the client computer, select the "Save" option when downloading the
client software from the DataMonitor server. It is recommended to save the Setup file because,
in the event of a restart of the client computer being necessary, the Setup need not be
downloaded again.
If the DataMonitor client has already been installed from DVD and you want to install an updated
version of the client via the Intranet/Internet, you must save the client setup on the target
computer.
64-bit computer as client
If the DataMonitor client is a 64-bit machine, you first need to install the required Visual C++
Redistributable, which is required for the DataMonitor client. Use the link that is displayed during
installation via intranet/Internet.
The required Visual C++ Redistributable must also be available for domain environments as an
"msi" package.
If the DataMonitor clients on the 64-bit computers are integrated in domain group policies, the
users of the clients must install "DataMonitorClient_x64_AddOn.msi" themselves.
Excel Workbook Wizard requires Microsoft .Net Framework
In order to us Excel Workbook Wizard make sure that the .Net Framework is installed on the
DataMonitor client.
Client installation on a DataMonitor server
Proceed as follows if you also wish to install the DataMonitor client or WebNavigator client on a
DataMonitor server:
1. Use the Services Manager in Windows to set the start type of the "CCArchiveConnMon"
service to manual.
2. Restart the computer.
3. Install the client.
Ensure that no WebNavigator clients or DataMonitor clients access the server during
installation.
4. Switch the start type of the "CCArchiveConnMon" service back to automatic.
Requirement
• The DataMonitor server requires the Internet Information Services (IIS).
• The DataMonitor server requires the WinCC configuration data.
• You need Windows "Administrator" rights to install the DataMonitor server.
WinCC/Connectivity Pack
86 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
Procedure
1. Insert the WinCC DVD into the DVD drive.
2. If the automatic execution of an autorun file is activated, after a few seconds the setup
program starts automatically.
The setup can also be started manually in case the installation is performed from a network
drive or the autorun function has been disabled.
The setup program is started.
3. To install, click the text "Install Software".
4. In the following dialog, select the component "DataMonitor Server" or "DataMonitor Client".
5. Follow the instructions of the setup program.
See also
User rights for installing the DataMonitor client (Page 83)
DataMonitor client
No license is required for the DataMonitor client on the computer.
The DataMonitor clients are licensed on the DataMonitor server. Install the license keys for
the client access to the server on the DataMonitor server.
DataMonitor server
As a prerequisite for the WinCC basic system, the WinCC RT basic license is required.
Licenses are available for 1 / 3 / 10 / 30 clients that can simultaneously access the
DataMonitor server. The licenses are cumulative.
A message will appear if the number of licensed clients is exceeded during a login attempt by
a DataMonitor client. No further logins will be possible.
Note
The connection to the DataMonitor server is maintained if the user closes the DataMonitor start
page without logging off with the "Log off" button.
The license remains allocated and is only released after approximately 20 minutes.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 87
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
License count
DataMonitor distinguishes between the following function groups:
• Excel Workbooks
A "WinCC DataMonitor" license is required on the server computer for each DataMonitor
client.
• Webcenter, Trends & Alarms, Reports
It is not the number of clients but the number of connections that is relevant for the license
count for the Webcenter function group.
The following table shows the maximum number of clients or connections per license based
on the function group. The values are valid only within a function group.
WinCC/Connectivity Pack
88 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
Introduction
You can configure the DataMonitor server in such a way that only HTTPS connections are
supported.
In this way, you increase the security of your connections.
You need a digital certificate for the DataMonitor server to set up the secure connection.
Requirement
• The Windows "Internet Information Service" component is installed.
• WinCC Web Configurator is installed.
• WinCC DataMonitor server is installed.
• A DataMonitor web page has been set up and the Web folder is created.
More information
You can find information on self-signed certificates when using different web browsers on the
Internet under Entry ID 109773769:
• SiePortal: "How do you fix problems when using self-signed certificates from WebUX or
WebNavigator with different web browsers?" (https://
support.industry.siemens.com/cs/ww/en/view/109773769)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 89
WinCC V8.0 Installation / Release Notes
1.5 WinCC/DataMonitor Installation Notes
See also
SiePortal: "How do you fix problems when using self-signed certificates from WebUX or
WebNavigator with different web browsers?" (https://support.industry.siemens.com/cs/ww/en/
view/109773769)
WinCC/Connectivity Pack
90 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.6 WinCC/DataMonitor Release Notes
Excel workbook functions and print jobs after deactivating and activating WinCC Runtime
If you deactivate WinCC Runtime and then reactivate it, you also need to restart the Web
application.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 91
WinCC V8.0 Installation / Release Notes
1.6 WinCC/DataMonitor Release Notes
WinCC/Connectivity Pack
92 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.6 WinCC/DataMonitor Release Notes
See also
Setting up a secure connection over HTTPS (Page 89)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 93
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Scope of delivery
You can find the following components for WinCC/WebNavigator on the WinCC DVD:
• WebNavigator server
• WebNavigator client
• WinCCViewerRT
• WebNavigator diagnostics client
• WinCC Web Publishing Wizard (PublishingWizard)
• WebNavigator Plug-In Builder
• Documentation
• Release notes
Note
WinCC/WebNavigator V8.0: Installation is only released on the basis of WinCC V8.0
You cannot install the WebNavigator server/client of V8.0 on a computer with WinCC versions
earlier than V8.0.
Nor can a WebNavigator server/client version older than V8.02 be installed on a computer with
WinCC V8.0.
Note that mixed use of European and Asian versions of WinCC and WebNavigator is not
permitted in the configuration.
Introduction
This section describes the hardware and operating system requirements for WinCC/
WebNavigator.
WinCC/Connectivity Pack
94 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
WebNavigator client
Hardware
Minimum Recommended
CPU Dual core CPU; 2 GHz Multi core CPU; 3 GHz
Work memory 1 GB 2 GB
Software
Hardware
Minimum Recommended
CPU Dual core CPU; 2.5 GHz Multi core CPU; 3.5 GHz
Work memory 2 GB > 4 GB
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 95
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Software
WebNavigator server on WinCC server or WinCC client with its own project
Hardware
Minimum Recommended
CPU Dual core CPU; 2.5 GHz Multi core CPU; 3.5 GHz
Work memory 4 GB 8 GB
Software
Software
WinCC/Connectivity Pack
96 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
See also
https://support.microsoft.com/en-us/kb/3072449 (https://support.microsoft.com/en-us/kb/
3072449)
WebNavigator client
No license is required for the PC on which the WebNavigator client is running, as server licenses
are available on the WebNavigator server.
WebNavigator server
As a prerequisite for the WinCC basic system, the WinCC RT basic license is required. No WinCC
server license is required if no local WinCC clients are to be operated. Even when operating a
WinCC client as a dedicated web server, you do not require a WinCC server license for the WinCC
client.
Licenses are available for 1 / 3 / 10 / 30 / 100 clients. If you have upgraded a WebNavigator
version prior to V7.4, there may also be licenses for 5 / 25 / 50 / 150 clients.
The packages are version-independent and can be combined. Up to 150 clients can access
the WebNavigator server simultaneously.
A message will appear if the number of licensed clients is exceeded during a login attempt by
a WebNavigator client. No further logins will be possible.
WinCC/WebUX clients
If the WinCC/WebUX option is also used in the WinCC system, a WebUX client can also occupy
a WebNavigator license. This reduces the number of available WebNavigator licenses.
You can find more information in the documentation for WinCC/WebUX.
Test mode
If there is no WebNavigator license or if the license has been removed, the WebNavigator
server runs in Test mode.
Test mode runs for a maximum of 30 days from the date of installation. Once 30 days have
expired after the installation, the WebNavigator server can only be started with an installed
license.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 97
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Note
Computer with WinCC basic system and diagnostics client
If you install a diagnostics client on a computer with the WinCC basic system, you will have to
reinstall the diagnostics client after removing WinCC.
1) Note the behavior in test mode. Test mode runs for a maximum of 30 days from the date of installation.
WinCC/Connectivity Pack
98 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Terminal server
Hardware
Minimum Recommended
CPU Dual core CPU; 2 GHz Multi core CPU; 3 GHz
Work memory 1 GB 2 GB
Note
Memory requirements
Each terminal client will increase the memory requirements and the processor load.
You must therefore ensure that the terminal server has adequate memory and processor load
capacity.
Software
Terminal client
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 99
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Note
Terminal Services Client Access Licenses (CALs)
As with Windows Server CAL, there are two different CAL terminal services:
• The TS device CAL enables a device to run user-independent Windows sessions on a Windows
Server.
• The TS user CAL enables a user to run device-independent Windows sessions on a Windows
Server.
A Windows Server Terminal Server CAL "TS CAL" is required for every user or every device.
Additional information can be found in the Microsoft documentation "https://
docs.microsoft.com/en-us/troubleshoot/windows-server/ (https://docs.microsoft.com/en-us/
troubleshoot/windows-server/remote/terminal-server-licensing)".
See also
https://docs.microsoft.com/en-us/troubleshoot/windows-server/remote/terminal-server-
licensing (https://docs.microsoft.com/en-us/troubleshoot/windows-server/remote/terminal-
server-licensing)
Requirements
• The software requirements for the Windows operating system have been met.
• Local administrator rights.
• The WinCC basic system is installed.
NOTICE
WebNavigator server: Using a secure connection over HTTPS
To increase the security of your communication, configure the WebNavigator server in such a
way that only HTTPS connections are supported. You need a digital certificate for your
WebNavigator server for this.
You can find more detailed information under "Setting up a secure connection over HTTPS
(Page 102)".
WinCC/Connectivity Pack
100 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
See also
Installing the WebNavigator server (Page 101)
Setting up a secure connection over HTTPS (Page 102)
Requirements
• Local administrator rights
• The Internet Information Server is installed.
Procedure
1. Insert the WinCC DVD in the drive.
The DVD starts automatically if Autorun is enabled in the operating system.
If the autorun function is not activated, start the program Setup.exe on the DVD.
2. In the "Installation Type" dialog, select "Package Installation".
3. Select the "WebNavigator Server" installation.
4. Before the installation, the security settings that are adapted for WinCC are displayed in the
"System Settings" dialog.
The firewall is configured automatically.
Confirm the changes to the system settings.
5. Start the installation.
You can track the status of the installation in the displayed dialog.
Select "Cancel" to cancel the installation.
6. You can transfer the license key for the product after installation of the WebNavigator server.
To do so, click on "Transfer License Key".
Select "Next" if you have already transferred the license key or want to install it at a later time.
Note
License keys will not be transferred automatically.
You will have to transfer missing license keys during or after installation with "Automation
License Manager" .
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 101
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Result
The WebNavigator server is installed and is displayed in the navigation window of the WinCC
Explorer.
Introduction
You can configure the WebNavigator server in such a way that only HTTPS connections are
supported.
In this way, you increase the security of your connections.
You need a digital certificate for the WebNavigator server to set up the secure connection.
Requirement
• The Windows "Internet Information Service" component is installed.
• WinCC Web Configurator is installed.
• WinCC WebNavigator server is installed.
• A WebNavigator web page has been set up and the Web folder is created.
More information
You can find information on self-signed certificates when using different web browsers on the
Internet under Entry ID 109773769:
• SiePortal: "How do you fix problems when using self-signed certificates from WebUX or
WebNavigator with different web browsers?" (https://
support.industry.siemens.com/cs/ww/en/view/109773769)
WinCC/Connectivity Pack
102 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
See also
General information about WebNavigator (Page 114)
SiePortal: "How do you fix problems when using self-signed certificates from WebUX or
WebNavigator with different web browsers?" (https://support.industry.siemens.com/cs/ww/en/
view/109773769)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 103
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Introduction
You can install the WebNavigator client as follows:
• Installation from the WinCC product DVD.
In this case, certain Windows user rights are necessary, depending on the operating system.
• Installation via the Intranet/Internet.
In this case, certain Windows user rights are necessary, depending on the operating system.
• Installation without user interaction:
– Using the Windows user rights of the current user
– Or in networks, using group policy-based software distribution
In addition, you can also install the WebNavigator client on the WebNavigator server.
This is useful, for example, if you want to check the WinCC project locally on the server in
Internet Explorer.
Remote communication
If the WebNavigator client is not running on the same computer as the WebNavigator server,
enable remote communication on both computers in the "Simatic Shell" dialog.
Note
.Net controls on the WebNavigator client
If you wish to use .Net controls on the WebNavigator client, you need to install the .Net
Framework 4.0 or higher on the client from the WinCC product DVD.
The .Net controls should not be copied to the Windows folder "Common Files". Instead, use the
following path:
• <Installation directory>WinCC\WebNavigator\Client\bin
WinCCViewerRT
The web viewer "WinCCViewerRT" is installed upon installation of the WebNavigator client.
WinCC/Connectivity Pack
104 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Procedure
1. Entry and check of the settings of the client computer in Internet Explorer.
2. Installation of the WebNavigator client.
Note
If you are installing from the DVD or using software distribution based on group policy, you
can directly upgrade an older version of the WebNavigator client without having to remove
the older client first.
If you install the WebNavigator server on a PC after the WebNavigator client, you will have to
install the client again.
Plug-in reinstallation
The plug-ins "User Archive Control", "FunctionTrend Control", "Hard Copy" and "Web Client"
are already integrated in the WebNavigator client as of version V7.0 upon installation.
If a WebNavigator client as of V7.0 is connected to a WebNavigator server older than V7.0
(e.g. V6.2 SP3), you will be offered these plug-ins for installation in the download area of the
Web navigation user interface.
The plug-ins are already installed. Do not reinstall these plug-ins.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 105
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
• In the download area of the Web Navigation user interface, the Plug-Ins which can be
installed are displayed.
The same minimum user rights are required for installing these plug-ins as for installation of
the WebNavigator client.
If you select a plug-in in the Web Navigation user interface, WebNavigator client setup will
start. You will have to confirm the selected plug-in again.
WinCC/Connectivity Pack
106 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
See also
https://support.microsoft.com/en-us/kb/3072449 (https://support.microsoft.com/en-us/kb/
3072449)
Windows user rights required for installation and initial registration of the WebNavigator client
"Administrator" rights are required for installing the WebNavigator client via Intranet/Internet or
using the product DVD. The initial registration of the client on the WebNavigator server must
take place with the user identification used during installation and the same or higher Windows
user rights. The connections must be established successfully. All subsequent logins can then be
performed by users with different Windows user rights, which may be more restricted.
SIMATIC HMI These members may create local projects, and may process, start, and access these
projects remotely. Access to the WinCC database is limited to the minimum rights
necessary (read/write).
SIMATIC HMI View‐ These members have read access only to configuration and runtime data in the
er WinCC database.
In the following cases you must add users of the WebNavigator client to a Windows user
group:
• The WebNavigator client is installed on a PC on which WinCC is already installed:
Users of the Web client must be members of the user group "SIMATIC HMI VIEWER" or
"SIMATIC HMI".
• The WebNavigator client accesses the WebNavigator server as "Remote Desktop" user:
Users of the Web client must be members of the user group "SIMATIC HMI VIEWER".
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 107
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Even the add-ins and plug-ins for the WebNavigator client can be installed. "Administrator"
rights are required for the installation of plug-ins that were created with the WinCC Plug-In
Builder.
Introduction
You have to adapt the web browser security settings in order to utilize the full functionality of the
WebNavigator client.
The procedure depends on the browser used and is described using the example of the
"Internet Explorer" browser.
Procedure
1. Click "Tools > Internet Options" in Internet Explorer.
2. Select the "Security" tab.
Select the corresponding zone, for example, "Local Intranet" or "Internet".
WinCC/Connectivity Pack
108 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
See also
Hardware and software requirements for WebNavigator (Page 94)
General information about WebNavigator (Page 114)
Notes on Internet Explorer for WebNavigator (Page 121)
Requirements
• For the installation and use of the WebNavigator client, the information in Settings in the web
browser (WebNavigator client) (Page 108) applies.
• Depending on the operating system, specific minimum user rights are required to install the
WebNavigator client; see User rights and user groups for WebNavigator clients (Page 107).
Procedure
1. Insert the WinCC DVD in the drive.
The DVD starts automatically if Autorun is enabled in the operating system. If the Autorun
function is not activated, start the program Setup.exe on the DVD.
2. In the "Installation Type" dialog, select "Package Installation".
3. Select the "WebNavigator Client" program package.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 109
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
4. Before the installation, the security settings that are adapted for WinCC are displayed in the
"System Settings" dialog. The firewall is configured automatically. Confirm the changes to the
system settings.
5. Start the installation. You can track the status of the installation in the displayed dialog.
Select "Cancel" to cancel the installation.
6. Restart the computer when prompted to do so by setup.
Result
The WebNavigator client is now installed and has been added as a function to the navigation
window of the WinCC Explorer.
Requirements
• For the installation and use of the WebNavigator client, the information in Settings in the web
browser (WebNavigator client) (Page 108) applies.
• Depending on the operating system, specific minimum user rights are required to install the
WebNavigator client; see User rights and user groups for WebNavigator clients (Page 107).
• The WebNavigator server must be installed on a computer:
– The Internet Information Server must be configured with the WinCC Web Configurator.
– The users must be registered in the WinCC User Administrator.
– The WinCC project must be in runtime.
• The latest cumulative security update for Internet Explorer must be installed.
This applies to all installed versions of Internet Explorer.
Information on the installation of ActiveX controls: Microsoft entry KB3072449 (https://
support.microsoft.com/en-us/kb/3072449).
• The required Microsoft Visual C++ Redistributable must be installed on the WebNavigator
client with a 64-bit computer before the connection to the WebNavigator server is
established.
Procedure
1. Enter the address of the WebNavigator server in the address bar of the Internet browser, e.g.
the IP address.
For installation in a virtual directory, the URL can be as follows:
– "https://www.servername/WebNavigator/"
2. Type in the user name and password.
3. The first time you access the WebNavigator server, you will be prompted to install the
WebNavigator client.
If the client is a 64-bit computer, an additional link is displayed in order to install the required
"Visual C++ Redistributable".
This installation is a requirement for the Web client.
WinCC/Connectivity Pack
110 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Result
Following successful installation, the WebNavigator client connects to the WinCC project
currently in runtime.
Note
Virtual keyboard: .net installation
If you want to use the on-screen keyboard, you also have to install .net 4.0 or higher.
If you install the WebNavigator client from the WinCC DVD, .net 4.0 is already included.
See also
https://support.microsoft.com/en-us/kb/3072449 (https://support.microsoft.com/en-us/kb/
3072449)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 111
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
Introduction
The software for the WebNavigator diagnostics client is installed on the client computer from the
DVD.
Requirements
• To do this, you must have administrator rights.
• Access via Remote Desktop Protocol (RDP) is not enabled for the diagnostics client.
Procedure
1. Insert the WinCC DVD in the drive.
The DVD starts automatically if Autorun is enabled in the operating system.
If the Autorun function is not activated, start the program Setup.exe on the DVD.
2. In the "Installation Type" dialog, select "Custom Installation".
3. Select the "Diagnostics Client" program in the "Web Navigator" program group.
4. Before the installation, the security settings that are adapted for WinCC are displayed in the
"System Settings" dialog. The firewall is configured automatically.
Confirm the changes to the system settings.
5. Start the installation.
You can track the status of the installation in the displayed dialog.
Select "Cancel" to cancel the installation.
6. Restart the computer when prompted to do so by setup.
Result
The WebNavigator diagnostics client is now installed.
Introduction
The WinCC Demo Project can be downloaded as a self-extracting ZIP file from:
• SiePortal: WinCC demo projects (https://support.industry.siemens.com/cs/products?
search=demo&dtp=ExampleOfUse&o=DefaultRankingDesc&pnid=14867&lc=en-WW)
Installation
To install the project, copy the file in a local target directory and start the decompressing process
by double-clicking the file.
WinCC/Connectivity Pack
112 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.7 WinCC/WebNavigator Installation Notes
See also
SiePortal: WinCC demo projects (https://support.industry.siemens.com/cs/products?
search=demo&dtp=ExampleOfUse&o=DefaultRankingDesc&pnid=14867&lc=en-WW)
Introduction
You can remove the WebNavigator server and WebNavigator client in the usual way, as in
Windows.
Result
The WebNavigator Server or WebNavigator client has now been removed from the computer.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 113
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
Introduction
These release notes contain important information.
The statements in these release notes take precedence over information provided in the
manuals and in the online help.
Read these release notes carefully as they contain useful information.
NOTICE
Security restrictions and response times in Internet Explorer
Please note the Internet-specific security restrictions when using the WebNavigator client.
The WebNavigator client may take significantly longer (>20 seconds) than a regular WinCC
client to recognize that the WebNavigator server is down or that the communication is faulty.
WinCC/Connectivity Pack
114 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
Defense in depth
Follow the instructions on "Industrial Security" on the Siemens website:
• http://www.siemens.com/industrialsecurity (http://www.siemens.com/industrialsecurity)
Project Change
Following a change of projects, a sporadic inoperable period of the Internet Information Services
(IIS) may occur.
The computer must then be restarted.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 115
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
This setting can cause the password prompt for the user certificate to be displayed in the
session of another logged-on user when the terminal session is established.
Corrective measure
To prevent this Windows behavior, use the default setting "Not defined" on the system that is
used as the terminal server.
This behavior occurs only when this group policy is activated.
WinCC/Connectivity Pack
116 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
• 2010x86 / 2010x64
• 2012x86 / 2012x64
See also
Settings in the web browser (WebNavigator client) (Page 108)
Setting up a secure connection over HTTPS (Page 102)
http://www.siemens.com/industrialsecurity (http://www.siemens.com/industrialsecurity)
Notes on installation
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 117
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
NOTICE
Security restrictions and response times in Internet Explorer
Please note the Internet-specific security restrictions when using the WebNavigator client.
The WebNavigator client may take significantly longer (>20 seconds) than a regular WinCC
client to recognize that the WebNavigator server is down or that the communication is faulty.
WinCC/Connectivity Pack
118 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 119
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
Initial Situation
The WebNavigator client is connected with a WebNavigator server operated in WinCC
ServiceMode.
Behavior
If you are using WinCC Alarm Control prior to WinCC V7 that is connected via a server prefix,
you will not be able to open the selection dialog.
Solution
Use the WinCC AlarmControl that is offered as of WinCC V7.
WinCC/Connectivity Pack
120 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
Example
The following script checks the environment and can thus be called in the WebNavigator
client and in WinCC Runtime.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 121
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
WinCC/Connectivity Pack
122 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.8 WinCC/WebNavigator Release Notes
See also
Settings in the web browser (WebNavigator client) (Page 108)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 123
WinCC V8.0 Installation / Release Notes
1.9 WinCC/WebUX
1.9 WinCC/WebUX
WebUX client
The WebUX clients are licensed on the WebUX server.
No license is required for the WebUX client on the computer.
WebUX server
The WebUX server is installed on a WinCC system. The WinCC basic system requires at least the
WinCC basic RT license.
The license keys are differentiated as described below and run in parallel on the WinCC/
WebUX server:
License packages
The license packages are available with 1, 3, 10, 30 and 100 clients.
If you have upgraded from WebUX V7.3, there may also be licenses for 5 / 25 / 50 / 150
clients.
If the number of licensed clients is exceeded during the logon attempt by a WebUX client, no
further logon is permitted.
WinCC/Connectivity Pack
124 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.9 WinCC/WebUX
Reserved license
A reserved WebUX license always gives the user guaranteed access to the WebUX server.
A connection remains reserved for the user. The number of freely available WebUX licenses is
reduced by each configured reserved license.
Applications
Possible applications include:
• Remote operator access:
If the connections to the WebUX server are occupied by read-only access, a connection
remains reserved for operation.
• Central display:
Central client stations are always connected, for example, to display the status of the WinCC
system.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 125
WinCC V8.0 Installation / Release Notes
1.9 WinCC/WebUX
You can find further information in the documentation of the WinCC/WebNavigator option
under:
• WinCC/WebNavigator documentation > Operating a WinCC project > Diagnosis of the
Connections with "Status.html"
See also
Installation of WebUX (Page 126)
Software requirements
Certain requirements concerning operating system and software configuration must be met for
the installation.
WinCC/Connectivity Pack
126 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.9 WinCC/WebUX
• Static content
WWW Services > Performance Fea‐
tures:
• Compression of dynamic con‐
tent
• Compression of static content
WWW Services > Application De‐
velopment Features:
• ASP.NET ≥ 4.5
Note
Browser-dependent representation
Differences in display and behavior are possible in the different browser versions.
To display a configured character set, for example, this must also be available in the browser or
on the device.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 127
WinCC V8.0 Installation / Release Notes
1.9 WinCC/WebUX
See also
WebUX licensing (Page 124)
Configuring the WebUX website (Page 128)
See also
Installation of WebUX (Page 126)
WinCC/Connectivity Pack
128 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.9 WinCC/WebUX
NOTICE
Protecting the infrastructure
Setting up a Web server may enable access to your plant infrastructure.
Therefore, protect the computer on which the Web server is installed. Make sure that the
following rules are followed:
• The computer is only accessible via secure connections.
• The check mechanisms provided by software vendors are activated and cannot be bypassed
under any circumstances.
Additional information
You can find information on self-signed certificates when using different web browsers on the
Internet under Entry ID 109773769:
• SiePortal: "How do you fix problems when using self-signed certificates from WebUX or
WebNavigator with different web browsers?" (https://
support.industry.siemens.com/cs/ww/en/view/109773769)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 129
WinCC V8.0 Installation / Release Notes
1.9 WinCC/WebUX
Note
Restricted authentication
The certificates that you create when you configure the WebUX website itself are not verified by
an official certification body. Depending on your browser settings, a warning message is
displayed when you access the website.
To better secure the server authentication, install the certificate of an official certification body.
Display of secure data sources only
For display of web pages and external files, one of the following conditions must be met:
• Call via the HTTPS connection
• Call of a trusted site
Requirement
• You have administrator rights on the WebUX server.
Procedure
1. Open the "Internet Information Services (IIS) Manager".
2. Select the web page under "Sites" in the "Connections" navigation area.
3. Click "Bindings" in the "Actions" area.
The "Site bindings" dialog opens.
4. To configure the settings, click "Add".
The "Add site bindings" dialog opens.
5. Select the website type, IP address and the port.
To display the fields for configuration of the SSL certificate, select the type "https".
6. Select the SSL certificate from the list or with "Select".
7. Confirm with "OK" to close the dialog.
You can delete the other entries in the "Site bindings" dialog.
8. Exit the configuration with "Close".
9. In the data area "Default Web Site Home", select the "SSL settings" under "IIS".
10.Activate the "Require SSL" option and select the setting for client certificates.
See also
SiePortal: "How do you fix problems when using self-signed certificates from WebUX or
WebNavigator with different web browsers?" (https://support.industry.siemens.com/cs/ww/en/
view/109773769)
WinCC/Connectivity Pack
130 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
1.10.1 Warnings
Security information
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury may result if proper precautions are not taken.
NOTICE
indicates that property damage may result if proper precautions are not taken.
Note
indicates important information about the product and its use or a specific section of the
documentation to which you should pay particular attention.
If more than one degree of danger is present, the warning notice representing the highest
degree of danger will be used. A warning notice of injury to persons with a safety alert
symbol may also include a warning relating to property damage.
Qualified personnel
The product/system described in this documentation may be operated only by personnel
qualified for the specific task in accordance with the relevant documentation, in particular its
warning notices and safety information. Qualified personnel are those who, based on their
training and experience, are capable of identifying risks and avoiding potential hazards when
working with these products/systems.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 131
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
Proper use
Note the following:
WARNING
Proper use of Siemens products
Siemens products may only be used for the applications described in the catalog and in the
relevant technical documentation. If products and components from other manufacturers are
used, these must be recommended or approved by Siemens. Proper transport, storage,
installation, assembly, commissioning, operation and maintenance are required to ensure that
the products operate safely and without any problems. The permissible ambient conditions
must be adhered to. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining names in this
publication may be trademarks whose use by third parties for their own purposes could violate
the rights of the owner.
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:
• https://www.siemens.com/industrialsecurity (https://www.siemens.com/industrialsecurity)
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 under:
• https://www.siemens.com/cert (https://www.siemens.com/cert)
WinCC/Connectivity Pack
132 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
Disclaimer of liability
We have reviewed the contents of this publication to ensure consistency with the hardware and
software described. Since discrepancies cannot be precluded entirely, we cannot guarantee full
agreement. However, the information in this publication is reviewed regularly and any
necessary corrections are included in subsequent editions. Suggestions for improvement are
welcomed.
Information in the online documentation is more binding than that in the manuals and PDF
files.
Observe the Release Notes and Installation Notes. Information in the Release Notes and
Installation Notes is more binding than that in the manuals and online help.
See also
https://www.siemens.com/industrialsecurity (https://www.siemens.com/industrialsecurity)
https://www.siemens.com/cert (https://www.siemens.com/cert)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 133
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
Purposes
The above data is required for the following purposes:
• Access protection and security measures (e. g. Login, IP address)
• Process synchronization and integrity (e. g. time zone information, IP addresses)
• Archiving system for traceability and verification of processes (e. g. access timestamps)
• Message system for traceability and availability (e. g. email notification)
The storage of data is appropriate and limited to what is necessary, as it is essential to
identify the authorized operators and process events.
Data configuration
The customer may configure the data collected via the product as follows:
• Display data in process pictures
• Data output in form of reports, e. g. for printing or display as electronic file
• Data collection and evaluation in form of graphics, e. g. for KPI analysis
Deletion policy
The product does not provide an automatic deletion of the above data.
WinCC/Connectivity Pack
134 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
If necessary, these can be deleted manually if desired. To do this, please refer to the product
documentation or contact customer support.
Securing of data
The above data will not be stored anonymously or pseudonymized, because the purpose of
access and event identification cannot be achieved otherwise.
The above data is secured by adequate technical measures, such as:
• Encryption of log data
• Storing the process data in access-protected SQL databases
The user must ensure the access protection as part of their process configuration.
Technical support
Technical support is available around the clock from Monday to Friday.
The latest Technical Support information can be found at the following URL:
• https://support.industry.siemens.com/cs/ww/en/sc/4868 (https://
support.industry.siemens.com/cs/ww/en/sc/4868)
Form for support requests:
• https://www.siemens.com/supportrequest (https://www.siemens.com/supportrequest)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 135
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
WinCC FAQs
WinCC Online Support with information on FAQs (Frequently Asked Questions) may also be
found at the following URL:
• https://support.industry.siemens.com/cs/ww/en/ps/14866/faq (https://
support.industry.siemens.com/cs/ww/en/ps/14866/faq)
Technical Forum
The Technical Forum supports exchange with other SIMATIC users. You can find the forum at
the following URL:
• https://support.industry.siemens.com/tf/ (https://support.industry.siemens.com/tf/ww/en/)
WinCC/Connectivity Pack
136 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
Product Information
SIMATIC WinCC
Go to the following URL for general information about WinCC:
• WinCC Landing Page:
https://support.industry.siemens.com/cs/ww/en/view/93906404 (https://
support.industry.siemens.com/cs/ww/en/view/93906404)
• SIMATIC HMI software product overview:
http://www.siemens.com/wincc (http://www.siemens.com/wincc)
SIMATIC Products
Go to the following URL for general information about SIMATIC products:
• http://www.siemens.com/simatic (http://www.siemens.com/simatic)
See also
SiePortal - Home (https://sieportal.siemens.com/)
SiePortal: Support request (https://www.siemens.com/supportrequest)
SiePortal: Technical support (https://support.industry.siemens.com/cs/ww/en/sc/4868)
SiePortal: Siemens Industry Service Card (https://support.industry.siemens.com/cs/ww/en/sc/
4869)
SiePortal: SIMATIC WinCC in Online Support / Landing Page (https://
support.industry.siemens.com/cs/ww/en/view/93906404)
SiePortal: Service and Support (https://support.industry.siemens.com/cs/ww/en/)
SiePortal: Information and help for support (https://
support.industry.siemens.com/cs/ww/en/sc/4866)
SiePortal: Support - How-to Videos (https://support.industry.siemens.com/cs/ww/en/sc/2063)
SiePortal: Mobile use via support app (https://support.industry.siemens.com/cs/ww/en/sc/
2067)
SiePortal: WinCC FAQs (https://support.industry.siemens.com/cs/ww/en/ps/14866/faq)
SiePortal: Support Technical Forum (https://support.industry.siemens.com/tf/ww/en/)
SiePortal: Technical documentation for SIMATIC products (http://www.siemens.com/simatic-
tech-doku-portal)
Internet: Contact person database (http://w3.siemens.com/aspa_app/?lang=en)
Internet: Information about WinCC (http://www.siemens.com/wincc)
Internet: SIMATIC Products (http://www.siemens.com/simatic)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 137
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
In order to provide you with fast and effective support, please complete the "Support
Request" form online on the Internet. Describe the problem in as much detail as possible.
We would appreciate if you would provide us with all project data so that we can reproduce
the error situation or shorten the turn-around time.
Before filling out the support request, check whether your configured quantity structure is
within the range of tested quantity structures (see "Performance Data" section).
Procedure
1. Open the "Support Request" form via the link and click "New request"
Step 1 "Product search" is displayed.
2. Enter the order number or the product name in the field. Upper/lower case is not relevant.
Search for parts of the product name or enter the full product name in the correct order. You
can e. g. search for the following terms:
– "WinCC Runtime V7"
– "wincc editor"
– "WinCC DataMonitor"
– "wincc webnav"
– "Connectivity"
The found products are offered in the "Product selection" field.
If you have any questions about licensing, activate the option "Licensing/Authorization".
3. Select the desired product and click "Next".
Step 2 "Problem description" is displayed.
4. Fill in the form.
Depending on the selection, suggested solutions and FAQs that were found for the selected
keywords are listed.
If you have found a suggested solution for your problem, close the form in the browser.
WinCC/Connectivity Pack
138 System Manual, 03/2023, A5E52671436-AA
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
5. Describe your problem as exactly as possible in the "Details" field. Please also check your
WinCC installation and the configuration.
If you have any idea what has caused the error, please let us know. No detail should be
omitted, even if you consider it unimportant.
Pay particular attention to the following questions and comments:
– Was the configuration data created with older WinCC versions?
– How can the error be reproduced?
– Are other programs running simultaneously with WinCC?
– Have you activated screen savers, virus scanners, power management?
– Search your computer for log files (WinCC\Diagnose\*.log, drwatson.log, drwtsn32.log).
The log files are needed for error analysis. Therefore, be sure to send the log files as well.
– To assemble diagnostic and system information from computers and other devices, use
the "SIMATIC Assessment Suite - Data Collector" (SAS-DC) diagnostics tool.
More information is available in the Support entry 65976201 (https://
support.industry.siemens.com/cs/ww/en/view/65976201).
6. To load your project directory and the log files into the Support Request, drag and drop the
files into the gray field.
To do this, compress the data, for example, as a zip file.
7. When you have entered all the information, click "Next"
Step 3 "Check and submit" is displayed.
8. Enter your contact details and review the summary.
9. You close the support request by clicking the "Send" button.
Your data will be transmitted to Customer Support and processed there.
You will receive an order confirmation by email.
Step 4 "Confirmation" is displayed.
10.To print out your data, click "Request - Show/print details".
Thank you for your cooperation. We hope that we can be of assistance in solving your
problems.
Your WinCC Team
See also
SiePortal: Support request (https://www.siemens.com/supportrequest)
SiePortal: Specifications for the Technical Support (https://
support.industry.siemens.com/cs/ww/en/view/16607894)
SiePortal: Support - service catalog (https://support.industry.siemens.com/cs/ww/en/sc/2100)
SiePortal: SIMATIC Assessment Suite - Data Collector (SAS-DC) (https://
support.industry.siemens.com/cs/ww/en/view/65976201)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 139
WinCC V8.0 Installation / Release Notes
1.10 Service and Support
WinCC/Connectivity Pack
140 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation 2
2.1 WinCC/Connectivity Pack
Content
Through the WinCC Connectivity Pack, you receive licensed access to WinCC databases via OPC
or WinCC OLE DB Provider.
This chapter will show you
• how to install the Connectivity Pack Server and Client;
• the OPC servers of WinCC;
• how to configure access to the alarm message archive;
• how to configure access to the process value archive.
• how to configure the Connectivity Station.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 141
WinCC/Connectivity Pack documentation
2.2 Overview: WinCC/Connectivity Pack
Introduction
Licensed access to online and archive data of WinCC is enabled with the WinCC / Connectivity
Pack.
The WinCC OLE DB Provider makes access to the process value and alarm archives possible.
Data that is stored, compressed in the database can be read as decompressed data.
The WinCC OLE DB Provider also provides analysis functions such as Minimum, Maximum of
archive tags for example.
OPC enables cross-manufacturer communication in automation via the following
standardized interfaces:
• OPC HDA 1.20 (Historical Data Access)
• OPC A&E 1.10 (Alarm & Events)
• OPC DA 2.05a, 3.00
• OPC XML DA 1.01
• OPC UA 1.03
As a result, WinCC operating as an OPC server can forward current process data and
messages to other OPC clients (e.g. Microsoft Excel).
The WinCC Connectivity Station also uses OPC to access data of different WinCC stations.
The Connectivity Pack includes:
• The WinCC OLE DB Provider for directly accessing process value and alarm archives in the SQL
server database on the WinCC RT computer and on an archive server.
• The tool "Archive Connector" for configuring the database access.
With it, swapped out WinCC archive databases can be connected to or disconnected for the
SQL server. In doing so, an overview of the individual database segments is generated.
The Archive Connector can monitor folders and automatically connect copied in archives.
• WinCC DataConnector for configuration and access to the process value and alarm archives
in process images.
• WinCC Connectivity Station
• License for Server OPC HDA 1.20 (Historical Data Access) for access to historical data in the
WinCC archive system.
• License for Server OPC A&E 1.10 (Alarms & Events) for forwarding and acknowledging of
messages.
• License for Server OPC XML DA 3.00 (OPC eXtensible Markup Language).
• License for the OPC UA Server 1.03
• The licenses for access to the WinCC archive databases through the WinCC OLE DB-Provider
or WinCC User Archive through Microsoft OLE DB.
WinCC/Connectivity Pack
142 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.2 Overview: WinCC/Connectivity Pack
Note
SQL server settings
When configuring WinCC OLE DB Provider as a "Linked Server", the "WinCC OLE DB Provider for
Archives" entry must be selected in the "Provider Name" field of the "Linked Server Properties"
dialog.
Activate the "AllowInProcess" checkbox in the "Provider Options" dialog.
You will find more detailed information in the "SQL Server Books Online" under "Configuring OLE
DB Providers for Distributed Queries".
Example of a WinCC OLE DB Provider as a Linked Server with the server name "WinCC":
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 143
WinCC/Connectivity Pack documentation
2.2 Overview: WinCC/Connectivity Pack
Note
If you access message archives or swapped out archives via "CC_ExternalBrowsing", this access
may take several minutes.
WinCC DataConnector
The DataConnector provides the following functions:
• Using the DataConnector Wizard, a process picture may be configured in Graphics Designer
for an archive inquiry for message or process value archives.
• DataConnector Control will execute the archive inquiry in Runtime after opening the process
picture and will display the data found.
WinCC/Connectivity Pack
144 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.2 Overview: WinCC/Connectivity Pack
OPC
Access via OPC can only take place on computers on which WinCC Runtime is running.
Note
WinCC archive databases: Connectivity Pack license
For access to WinCC archive databases using OPC HDA, process values with OPC XML and alarms
with OPC A&E, a Connectivity Pack license is required on the computer with this data.
An installation of Connectivity Pack Server or Client is not required.
OPC DA is licensed with a valid RT license for WinCC.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 145
WinCC/Connectivity Pack documentation
2.2 Overview: WinCC/Connectivity Pack
See also
Access Using OPC to WinCC Archives, Tags, and Messages (Page 154)
WinCC/Connectivity Pack
146 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.3 Applications
2.3 Applications
WinCC station
^
DB provider (local)
Principles
An application uses WinCC OLE DB Provider to access the local WinCC RT database.
You may locally analyze the archive data and may, for example, calculate the standard
deviation of a process value.
Software requirements
On the WinCC station, the following licenses need to be installed:
• A valid RT license for WinCC
• WinCC Option Connectivity Pack
See also
Examples for Access Using OLE DB Provider (Page 307)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 147
WinCC/Connectivity Pack documentation
2.3 Applications
Connectivity
Pack Client
Remote access
via WinCC OLE
DB provider
WinCC station
^
Connectivity WinCC
Pack RT database
Principles
The Connectivity Pack Client remotely accesses the WinCC RT database of a WinCC station. Via
the WinCC OLE DB Provider, the Connectivity Pack Client reads the data of the process value and
alarm message archives.
Since in this use case, the swapped-out WinCC archive is not accessed, the Archive Connector
does not have to connect WinCC archives to an SQL server.
You may use the Connectivity Pack Client to display, analyze, or process the data, e.g. by
exporting it to a CSV file.
Software requirements
On the WinCC station, the following licenses need to be installed:
• A valid RT license for WinCC
• WinCC Option Connectivity Pack
The access may take place under various configurations of the Connectivity Pack Client.
• A WinCC software like WinCC Basis, Web Navigator Server, DataMonitor Server or
Connectivity Pack Server exists on the client computer.
The Connectivity Pack Client does not have to be installed explicitly. Licensing is provided
through WinCC licenses.
• The client computer has no installation of WinCC software.
Then the Connectivity Pack Client needs to be installed on the client computer.
See also
Examples for Access Using OLE DB Provider (Page 307)
WinCC/Connectivity Pack
148 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.3 Applications
WinCC station
^
DB provider (local)
Principles
An application accesses the local archive database using WinCC OLE DB Provider. The older
archive data are copied from the WinCC RT database to a separate directory on the same
computer.
With the Archive Connector, the swapped out WinCC archives are reconnected to an SQL
Server. The archives are then available for access using WinCC OLE DB Provider.
Local archive data may be displayed, searched or analyzed, e.g. to search for process errors or
to optimize processes.
Software requirements
The WinCC station requires the following installations:
• WinCC Basic System
• A valid RT license for WinCC
• License for WinCC Option Connectivity Pack
See also
Examples for Access Using OLE DB Provider (Page 307)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 149
WinCC/Connectivity Pack documentation
2.3 Applications
Connectivity
Pack Client
Remote access
via WinCC OLE
DB provider
^
Connectivity Pack
WinCC Stations
Principles
A long-term archive server is used to secure database files of process value and message
archives, for example, in a monthly backup.
With the Archive Connector, the swapped out WinCC archives are reconnected to an SQL
Server. The archives are then available for access using WinCC OLE DB Provider.
The Connectivity Pack Client accesses the archives via the WinCC OLE DB Provider. Using a VB
application, for example, the archives may be analyzed, and process values of a specific day
may be displayed.
Note
If you access message archives or swapped out archives via "CC_ExternalBrowsing", this access
may take several minutes.
Software Requirements
The long-term archive server requires the following to be installed:
• Connectivity Pack Server
• License for WinCC Connectivity Pack
WinCC/Connectivity Pack
150 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.3 Applications
Access may take place under various configurations of the Connectivity Pack Client.
• A WinCC software like WinCC Basis, Web Navigator Server, DataMonitor Server or
Connectivity Pack Server exists on the client computer.
The Connectivity Pack Client does not have to be installed explicitly. Licensing is provided
through WinCC licenses.
• The client computer has no installation of WinCC software.
Then the Connectivity Pack Client needs to be installed on the client computer.
See also
Examples for Access Using OLE DB Provider (Page 307)
WinCC station
^
provider (local)
Principles
An application accesses the local archive WinCC user archives using the MS OLE DB Provider.
Using a VB application, for example, you may display, search, and write back modified values
for local archive data.
Software requirements
The WinCC station requires the following installations:
• WinCC Basic System
• A valid RT license for WinCC
• License for WinCC Option Connectivity Pack
See also
Examples for Access Using OLE DB Provider (Page 307)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 151
WinCC/Connectivity Pack documentation
2.3 Applications
Connectivity
Pack Client
Remote access
via MS OLE DB
provider
WinCC station
^
Connectivity WinCC
Pack User Archives
Principles
The Connectivity Pack Client accesses the WinCC user archives using the MS OLE DB Provider.
Using a VB application, for example, you may display, search, and write back modified values
for archive data.
Software requirements
The WinCC server requires the following installations:
• WinCC Basic System
• A valid RT license for WinCC
• License for WinCC Connectivity Pack
Access may take place under various configurations of the Connectivity Pack Client.
• A WinCC software like WinCC Basis, Web Navigator Server, DataMonitor Server or
Connectivity Pack Server exists on the client computer. The Connectivity Pack Client does not
have to be installed explicitly. Licensing is provided through WinCC licenses.
• The client computer has no installation of WinCC software.
Then the Connectivity Pack Client needs to be installed on the client computer.
See also
Examples for Access Using OLE DB Provider (Page 307)
WinCC/Connectivity Pack
152 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.3 Applications
WinCC station
Remote access
Archive
via WinCC OLE
database
DB provider
^ WinCC RT ^
database
Connectivity
Connectivity Pack
Pack
Remote access
via WinCC OLE Long-term archive server (Connectivity Pack Server)
DB provider
Archive database
Connectivity Pack Client (WinCC Station "x")
Archive database
(WinCC station "y")
Archive database
(WinCC station "z")
^
Connectivity Pack
Principles
WinCC OLE DB Provider may be used to access WinCC databases while employing the Wizard
"SQL Server Import/Export.
The Wizard "SQL Server Import/Export" enables data to be extracted from different sources
and their export into other formats, e.g. in Excel table. Databases are linked using OLE DB,
and access to WinCC databases using WinCC OLE-DB Provider. You can save the inquiry of
data in a DTSX-Package.
The DTSX-Packages can be bound in scripts, to obtain a time-controlled inquiry and transfer
of data into the target format. Equally, tasks may be tied into packages, for example, in order
to initiate a notification by mail following execution of the package.
Using WinCC computers, access to runtime and archive databases may be established locally
or remotely. In the case of long-term archive servers, local or remote access is only possible
to the archive databases since they have no runtime databases.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 153
WinCC/Connectivity Pack documentation
2.3 Applications
Software requirements
The WinCC station requires the following installations:
• WinCC Basic System
• A valid RT license for WinCC
• License for WinCC Option Connectivity Pack
For further information, refer to the chapter "Configure Access via the Wizard SQL Server
Import/Export."
See also
Examples for Access Using OLE DB Provider (Page 307)
Configure Access via the Wizard "SQL Server Import/Export" (Page 184)
Introduction
OPC enables licensed access to online and archive data of WinCC. WinCC OPC-Servers provide
WinCC data to the OPC client through the OPC software interface. As OPC client, any software
can be implemented which is based on the respective OPC specification.
OPC DA
The WinCC OPC DA server makes the data from the WinCC project available to other applications.
These applications may be running locally or on computers linked to the network environment.
In this way WinCC tags can for example be exported to Microsoft Excel. The WinCC-OPC-DA
server and its licensing are components of the WinCC base system.
OPC XML
Within a distributed system, WinCC clients have views of several WinCC servers. The WinCC OPC-
XML server provides the OPC-XML client with the OPC process data as a web service. You can
access the web service via the Internet using HTTP. The OPC XML client is no longer limited to the
local network. In this way, OPC XML clients can access WinCC Runtime data via any platform as
well as through an intranet or the Internet.
OPC HDA
Using the OPC HDA (Historical Data Access) server permits access to historical data of the WinCC
archive system.
Installations without write access permit only reading and analyzing of WinCC archive data.
Write access permits analyzing, adding, deleting, and updating of data.
WinCC/Connectivity Pack
154 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.3 Applications
An OPC HDA client may be used for analysis and evaluation of archive data and for process
controlling of archives from different OPC HDA servers.
Note
OPC HDA does not permit access to message archives. Application permits access to process
value archives only.
OPC A&E
The OPC A&E (Alarms & Events) server permits forwarding or acknowledging of WinCC
messages.
An OPC A&E client, for example, may be used for analysis and joint archiving of alarms from
different OPC A&E servers.
Note
Error OPC_E_MAXEXCEEDED for archive access via OPC
If the OPC client requests more than 2,000 values during synchronous or asynchronous data
reading, the request is rejected with the OPC_E_MAXEXCEEDED error message. This limit serves
to limit the computer load and duration of the call.
This limit does not apply if the entire time range is read.
Introduction
The archiving of process values and messages is used to register, manage and archive process
data from an industrial system.
The registered process data is swapped out onto an archive server, e.g. a "Process Historian",
by the WinCC stations at regular intervals.
The archived process data of a longer time period are therefore distributed to two archive
databases.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 155
WinCC/Connectivity Pack documentation
2.3 Applications
The transparent access will ensure that the requested process data from the two archive
databases are combined.
Note
A Multiclient can also be used for transparent access instead of a Connectivity Station.
How it works
The following screen will show the principle of transparent access using an example of a user
query for process values of the previous month:
Connectivity Station
User query:
Process values of
the last month
Result of the
user query
The result of the user query is shown to the user as though the process values stem from a
data source.
WinCC/Connectivity Pack
156 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.3 Applications
Data source
<SYMBOLIC COMPUTER NAME>::\WinCC
Catalog
Name of the WinCC project
Introduction
In the following you find a short description of important functions already implemented in
Microsoft SQL Servers.
The technical documentation for the SQL Server 2019 is made available by Microsoft on the
Internet:
• SQL Server 2019 documentation (https://docs.microsoft.com/en-us/sql/sql-server/?
view=sql-server-ver15)
Functions
Backup
The "Backup" component of the SQL server provides important protection for critical data in
SQL server databases.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 157
WinCC/Connectivity Pack documentation
2.3 Applications
This will prevent damage caused by memory media malfunctions, user errors or the
permanent loss of a server.
In addition, the component can be useful in other cases, for example:
• Copying databases between different servers
• Making a copy of a database via backup and subsequent restore to another computer
Replication
The "Replication" component enables copying, distributing, and modifying of data within the
corporate level.
For this purpose, SQL server contains several methods and options for designing a
replication, implementation, monitoring and administration.
In this way, SQL server provides the required functionality for distributing data and
maintaining data consistency.
Linked Server
The Microsoft SQL Server allows creating a connection to OLE DB databases by using the
"Linked Server".
The use of a "Linked Server" offers the following advantages, for example.
• Accessing data records from the OLE DB databases and displaying them in tabular form using
Transact-SQL instructions.
• Transmission of commands to the OLE DB data sources and tabular representation of the
result data via Transact-SQL instructions.
A description of a use case for WinCC OLE DB Provider as "Linked Server" can be found in the
section "Overview: WinCC/Connectivity Pack (Page 142)".
See also
Overview: WinCC/Connectivity Pack (Page 142)
Configure Access via the Wizard "SQL Server Import/Export" (Page 184)
Use Case 7: Access Via the WinCC OLE DB Provider (Page 153)
SQL Server 2019 documentation (https://docs.microsoft.com/en-us/sql/sql-server/?view=sql-
server-ver15)
WinCC/Connectivity Pack
158 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Introduction
Using OLE DB, you have the following options for accessing WinCC archive data and for
displaying these using an external interface.
Note
Microsoft OLE DB is only tested and released for access to WinCC User Archives but not to alarm
and process value archives.
Use the WinCC OLE DB Provider to access message and process value archives.
Configuration Options
For access to databases with WinCC OLE DB, you may write your own applications. For the
communication with the WinCC OLE DB Provider, applications - created with, for example, Visual
Basic, VBScript or VBA - use the ADO DB.
Note
Special characters in tag names
Please not that programming languages such as Visual Basic, VBScript or VBA only allow the
following characters in the tag names: "A...Z", "a...z", "0...9" and "_".
In WinCC if you use special characters such as "," or ";" in the tag names then the script will be
aborted with an error message. In such a case use the "Tag-ID" to access a tag with special
characters in the script name.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 159
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
3. Establish the connection to the database, for example by using MS Excel or your own
application. Define the desired selection criteria and read the archive data.
4. The query result, for example, may be displayed in MS Excel or be exported as a csv file.
See also
Configure Access via the Wizard "SQL Server Import/Export" (Page 184)
Querying the Archive Data (Page 169)
Establishing the Connection to the Archive Database (Page 165)
WinCC Archive Connector (Page 161)
Bases of OLE DB (Page 160)
Introduction
Using the OLE DB interface and the associated database provider supplied by WinCC, you have
access to process value and message archives.
OLE DB
OLE DB is an open standard for a fast access to different databases. It is irrelevant whether the
database is relational or not.
The connection between the OLE DB level and the database is established through a
database provider.
OLE DB interfaces and providers are offered from various manufacturers.
WinCC/Connectivity Pack
160 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Note
If WinCC closes a full archive and opens a new one, no data from the message and process value
archives are read momentarily via the OLE DB Provider.
Microsoft OLE DB
Microsoft OLE DB only provides access to WinCC user archives.
As protection from unauthorized access using MS OLE DB, the administrator of the databases
can take appropriate actions. Additional information may be found in Chapter "Security
Settings for Access to SQL Databases Using MS OLE DB".
Note
Microsoft OLE DB is only tested and released for access to WinCC User Archives but not to alarm
and process value archives.
Use the WinCC OLE DB Provider to access message and process value archives.
See also
Security Settings During Access to SQL Databases Using MS OLE DB (Page 193)
Access to Archive Data Using OLE DB Provider (Page 159)
Introduction
The WinCC "Archive Connector" is used for configuring the access to the archive database. The
tool is an integral part of WinCC DataMonitor and Connectivity Pack. With the Archive Connector,
already swapped out WinCC archives can be reconnected to an SQL Server. DataMonitor client
or WinCC OLE DB provider can then access the archives.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 161
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Note
WinCC RT archives in directory "<Project Directory> \ ArchiveManager" and the associated
subdirectories must not be connected to or disconnected from the Archive Connector since their
connection to the SQL server is managed by the WinCC Basic system.
The path for the swapped out WinCC archives is set in WinCC with the Archive Configurator, e.g.
of Tag Logging, not with the WinCC Archive Connector.
If access is to be made to swapped archives which are on interchangeable media such as tape or
MOD drives, pay attention that the connection to these archives on this medium is disconnected
using the Archive Connector before changing the medium in the drive. After changing the
medium, the user should check the Archive Connector whether or not the archives on the new
medium are connected.
Configuration of the WinCC Archive Connector should be accessible to a limited circle of people
only. Therefore, access to the Tool should be protected using Windows user authorization
"Administrators" or other Windows protective measures, such as storage in a protected directory.
Note
Use the Archive Connector to access the linked archives using the Connectivity Pack or
DataMonitor.
The following objects do not give any access to the linked archives using Archive Connector:
• WinCC Alarm Control
• WinCC Online Trend Control
• WinCC Online Table Control
• WinCC Online Function Control
WinCC/Connectivity Pack
162 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
In the "Configuration" tab, archiving folders are displayed and managed that are to be
accessed through the Web or the WinCC OLE DB Provider.
Via buttons, archiving folders can be added or removed. For each archiving folder, a
symbolic, unique name has to be assigned during the configuration.
DataMonitor client or the WinCC OLE DB-Provider use the symbolic name to access the
archive.
The name is also used for managing and connecting exported data from multiple computers
or projects.
The symbolic names must only contain SQL-syntax-permissible characters.
By activating the corresponding checkbox, all archives added to the selected folder at the
time of activation will automatically be connected to the SQL Server.
If you activate or deactivate monitoring, the changes will not be activated until you close the
Archive Connector.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 163
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
The "Connect/Disconnect Archive" tab lists all archives existing in the archiving directories.
The connection status of each archive is displayed. The connection to the archives can be
established or terminated via buttons.
The archive type is shown in the "Type" field:
• "A" = Alarm Logging;
• "TF" = Tag Logging (Fast);
• "TS" = Tag Logging (Slow).
The columns "From" and "To" provide information on the local time zone.
Note
The connection of multiple, swapped-out archives to the SQL server may take several seconds.
It is not possible to connect a database file with the same name twice.
The WinCC Archive Connector connects finalized and backed up (swapped-out) archives to the
SQL server. Archives not finalized are not supported.
The user interface language of the Archive Connector is based on the settings of the regional and
language options in Windows.
WinCC/Connectivity Pack
164 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Note
Archives created with SQL Server 2000 can only be connected if you remove the write protection
of the archive. Archives that are once linked can no longer be linked using the Archive Connector
of the Connectivity Pack under SQL Server 2000.
In order to connect swapped out archives on CD or DVD, copy the archives to a media where you
will be able to remove the write protection.
Introduction
For ActiveX data objects (ADO), the connection between the application and the archive
database is established by the connection object.
An important parameter here is the ConnectionString.
The ConnectionString contains all necessary information for access to the database using
OLE DB Provider.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 165
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Parameter Description
Provider Name of the OLE DB Provider, e.g.:
• WinCCOLEDBProvider
Catalog Name of the WinCC database
With WinCC RT databases, you use database names that end in "R":
• <Database name_R>
The database "CC_ExternalBrowsing" can also be used.
If you have connected swapped-out WinCC archives to the SQL Server via the WinCC Ar‐
chive Connector, use their symbolic name.
Note
Enter the WinCC project name for "Catalog" for transparent access; e.g.:
• Catalog=WinCC_Project_Name
Note
If you access message archives or swapped out archives via "CC_ExternalBrowsing", this
access may take several minutes.
Data Source Server name
Local:
• .\WinCC" or "<Computer Name>\WinCC
Remote:
• <Computer name>\WinCC
Note
With transparent access to an archive server or with redundant servers via the OLE DB
Provider, enter the following for "Data Source":
• <Symbolic Computer Name>::\WinCC.
Note
Use the archive tag name to directly access an archive tag in a database containing 8-byte
value IDs, e.g. on an archive server.
In this case, the archive server returns the server ID and not the archive tag ID as ID:
• <Symbolic computer name>\<Archive_Var_Name>
WinCC/Connectivity Pack
166 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Note
In order to improve performance during local access, enter "<Computer name>\WinCC" as the
data source instead of ".\WinCC".
See also
Example: Configuring Access to Archive Data Using DataConnector Wizard (Page 309)
Example: Configuring the Access to Archive Data Using VB (Page 307)
Query for User Archives (Page 181)
Querying Alarm Message Archives (Page 177)
Querying Process Value Archives (Page 170)
Introduction
The query result is returned as recordset.
In this section, the structure of the recordset for process value archives is described.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 167
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Recordset structure
Schema "TAG:R"
Schema "TAG_EX:R"
See also
Querying the Archive Data (Page 169)
Establishing the Connection to the Archive Database (Page 165)
Access to Archive Data Using OLE DB Provider (Page 159)
Bases of OLE DB (Page 160)
WinCC/Connectivity Pack
168 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Introduction
The queries are forwarded to the database by the command object. An important parameter,
aside from "ConnectionString", is CommandText. The CommandText transmits the query. The
result is returned as the Recordset.
Note
Time range for archive inquiries for message and process values
If the query for message or process value archives specifies a time range for which no messages
or other values exist within the archives, no information message or other status display occurs.
If this status is to be displayed, error handling must be implemented by the user.
A simple version of this error handling routine is described in the sample script under the topic
"Example: Reading message archive data via the WinCC OLE DB Provider".
In the following examples, a command object each is generated and the query transmitted as
CommandText.
In the following structure examples, CommandText also includes the ConnectionString
whose structure is described under "Establishing Connection to Archive Database".
Structure of CommandText
User archives
Set oRs = CreateObject("ADODB.Recordset")
Set oCom = CreateObject("ADODB.Command")
oCom.CommandType = 1
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 169
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
See also
Example: Reading Process Value Archive With WinCC OLE DB Provider and Visual Basic 6
(Page 315)
Displaying User Archives (Page 183)
Displaying Alarm Message Archives (Page 179)
Displaying Process Value Archives (Page 167)
Query for User Archives (Page 181)
Querying Alarm Message Archives (Page 177)
Querying Process Value Archives (Page 170)
Establishing the Connection to the Archive Database (Page 165)
WinCC Archive Connector (Page 161)
Bases of OLE DB (Page 160)
Examples for Access Using OLE DB Provider (Page 307)
Principle
With the following query, a process value archive can be accessed.
The data can be selected using filter criteria.
WinCC/Connectivity Pack
170 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Note
Length of the ValueID
The length of the ValueID can be different:
• For databases processed on a central archive server, the ValueID is 8 bytes long.
It includes a ValueID assigned by the respective server in the LO-DWORD area and a server ID
in the HI-DWORD area.
• For all other databases, the ValueID is 4 bytes long.
It includes only the unique ValueID assigned by the WinCC server.
The 4-byte query via TAG:R and TAG_EX:R is still possible for compatibility in any case. The 4-byte
ValueID returned here is no longer unique in the case of databases with 8-byte ValueIDs.
Queries for process value archives are limited to a maximum of 20 tags, each with a maximum
of 128 characters per tag.
Syntax
Note that the query may not contain any spaces.
Request of ValueIDs 8 Bytes long:
TAG_LLVID:R,<ValueID or
ValueName>,<TimeBegin>,<TimeEnd>[,<SQL_clause>][,<TimeStep>]
Request of ValueIDs 4 Bytes long:
TAG:R,<ValueID or ValueName>,<TimeBegin>,<TimeEnd>[,<SQL_clause>]
[,<TimeStep>]
Schema "TAG_EX"
To access process values of the following tag types, use the "TAG_EX:R" schema:
• Text tag, 8-bit character set / 16-bit character set
• Floating-point number 64-bit IEEE 754
Replace "TAG_LLVID:R" with "TAG_LLVID_EX:R".
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 171
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Parameter
Parameter Description
ValueID Value ID from the database table
Multiple names are possible, for example:
• "TAG:R,(ValueID_1;ValueID_2;ValueID_x),<TimeBegin>,<TimeEnd>"
ValueName ValueName in the format 'ArchiveName\Value_Name'.
The parameter <ValueName> must be enclosed in single quotes.
Multiple names are possible, for example:
• "TAG:R,('ValueName_1';'ValueName_2';'ValueName_x'), <TimeBegin>,<TimeEnd>"
Note
Please note that programming languages such as Visual Basic, VBScript or VBA only allow the following
characters in the tag names:
• "A...Z", "a...z", "0...9" and "_"
In WinCC if you use special characters such as "," or ";" in the tag names then the script will be aborted with
an error message. In such a case use the "Tag-ID" to access a tag with special characters in the script name.
TimeBegin Start time in the format:
• 'YYYY-MM-DD hh:mm:ss.msc'
While using <TimeStep> you must specify <TimeBegin> as absolute time.
A relative statement or "0000-00-00 00:00:00.000" are not permitted.
TimeEnd End time in the format:
• 'YYYY-MM-DD hh:mm:ss.msc'
SQL_Clause Filter criterion in SQL syntax:
• [WHERE search_condition]
[ORDER BY {order_expression [ASC|DESC] } ]
"ORDER BY" criterion can only be used with the given sort sequence "{order_expression [ASC|DESC] }".
Example: The following query returns all values of the tags "ValueName_1" and "ValueName_2" which are
below 50 or above 100.
• "TAG:R,('ValueName_1';'ValueName_2'),<TimeBegin>,<TimeEnd>, 'WHERE RealValue > 100 OR RealVal‐
ue < 50'"
WinCC/Connectivity Pack
172 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Parameter Description
TimeStep Values in the stated time interval are summarized, beginning with the start time <TimeBegin>.
• Format: 'TIMESTEP=x,y'
• x = interval in seconds
• y = Aggregation type, defines the interval result
The following values are possible for aggregation type:
Without interpolation With interpolation Description
1 (FIRST) 257 (FIRST_INTERPOLATED) First value
2 (LAST) 258 (LAST_INTERPOLATED) Last value
3 (MIN) 259 (MIN_INTERPOLATED) Minimum value
4 (MAX) 260 (MAX_INTERPOLATED) Maximum value
5 (AVG) 261 (AVG_INTERPOLATED) Median value
6 (SUM) 262 (SUM_INTERPOLATED) Sum
7 (COUNT) 263 (COUNT_INTERPOLATED) Number of values
Without interpolation means:
• If no values are present in the interval, no interval result will be returned.
With interpolation means:
• If no values are present in the interval, the value will be derived by linear interpolation from the results
of the neighboring intervals that are not empty.
No extrapolation is done.
Example:
For TIMESTEP=60.257 for each interval of 60 seconds, the first value of this interval or - if there are no values
in this interval - the linear, interpolated value from the first values of the neighboring intervals will be
returned.
• "TAG:R,1,'2004-07-09 09:03:00.000','0000-00-00 00:10:00.000','TIMESTEP=60,257'"
Note
<TimeBegin> and <TimeEnd>
<TimeBegin> and <TimeEnd> must never both be "ZERO" = "0000-00-00 00:00:00.000".
Performance: Use ValueID instead of ValueName
In order to improve performance, use the parameter "ValueID" instead of "ValueName" during
the query.
The "ValueID" may be determined from the table "Archives".
Time unit under 1 second
Some applications cannot process the time in steps of 1 ms with process values which can lead
to inaccuracies.
An example for the ungrouping of the milliseconds from the time stamp of process values can
be found in the VB script "SplitDateTimeAndMs" under:
• "Example: Reading Process Value Archive With WinCC OLE DB Provider and Visual Basic 6
(Page 315)"
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 173
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Example A1:
Reads the values of the ValueID 1 from start time 9:03 hours to end time 9:10 hours.
"TAG:R,1,'2004-07-09 09:03:00.000','2004-07-09 09:10:00.000'"
Note
Relative time period: Do not use months
Enter a relative period you want to query in a linked archive database using the following format:
• 0000-00-DD hh:mm:ss.msc
If you indicate the time frame in months, the content can be faulty, because a month can have
28 to 31 days.
Example B1:
Reads the absolute time from "TimeBegin" to end of recording, i.e. the last archived value.
<TimeBegin> = '2003-02-02 12:00:00.000', <TimeEnd> = '0000-00-00
00:00:00.000'
Example B2:
Reads the absolute time from "TimeBegin" for the next 10 seconds.
<TimeBegin> = '2003-02-02 12:00:00.000', <TimeEnd> = '0000-00-00
00:00:10.000'
Example B3:
Reads 10 seconds backward from the absolute time from "TimeEnd".
<TimeBegin> = '0000-00-00 00:00:10.000', <TimeEnd> = '2003-02-02
12:00:00.000'
Example B4:
Reads the values of the last hour starting from the time of the last archived value for multiple
valueIDs (1;3;5;6).
"TAG:R,(1;3;5;6),'0000-00-00 01:00:00.000','0000-00-00
00:00:00.000'"
WinCC/Connectivity Pack
174 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Example B5:
Reads the values of the last five minutes starting from the time of the last archived value for
"TAG_2" tag from the "ArTags" archive.
"TAG:R,'ArTags\TAG_2','0000-00-00 00:05:00.000','0000-00-00
00:00:00.000'"
The following diagram shows a possible result of this example:
Example C1:
The following query also uses the <SQL_Clause> parameter and returns all tag values that
have the ValueID "3" and "6" and are below 50 or above 100.
"TAG:R,(3;6),<TimeBegin>,<TimeEnd>,'WHERE RealValue > 100 OR
RealValue < 50'"
Example C2:
The following query uses the <TimeStep> parameter and returns all values of ValueID "1" -
starting from start time "TimeBegin" till 5 minutes later in intervals of "60" seconds with the
aggregation type "5" = "Average value without Interpolation".
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 175
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Example C3:
The following query uses the <TimeStep> parameter and returns all values of ValueID "1" and
"2" - starting from start time "TimeBegin" till 2 minutes later in intervals of "15" seconds with
the aggregation type "261" = "Average value with linear Interpolation".
"TAG:R,(1;2),'2004-10-13 17:00:00.000','0000-00-00 00:02:00.000',
'TIMESTEP=15.261'"
The following diagram shows the query result:
• The left table displays the archive data which were archived in an archiving cycle of 30
seconds.
• The right table displays the query result.
The archive values at "0" and "30" seconds are displayed in the query result unchanged with
their time stamp.
For second "15," the linear, interpolated value is formed of archive values at seconds "0" and
"30".
For the "45" second, the linear, interpolated value is taken from the archive values of "30"
second of the same minute and the "0" second of the next minute.
WinCC/Connectivity Pack
176 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
See also
Example: Reading Process Value Archive With WinCC OLE DB Provider and Visual Basic 6
(Page 315)
Displaying Process Value Archives (Page 167)
Configure Access via the Wizard "SQL Server Import/Export" (Page 184)
Introduction
With the following query, the message archive can be accessed.
The data can be selected using filter criteria. The queries are forwarded to the database by
the command object.
You can find additional information of the status of messages in the WinCC Information
System under:
• "Working with WinCC > ANSI-C Function for Creation of Functions and Actions > ANSI-C
Function descriptions > Appendix > Structure Definitions > Structure Definition
MSG_RTDATA_STRUCT".
When querying message archives, the result is summarized by archive, but without sorting
the queried archive segments.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 177
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
The filter condition needs to be extended accordingly if the segments are to be sorted, e.g.,
for the chronological sorting "ORDER BY DateTime ASC, MS ASC".
Syntax
ALARMVIEWEX:SELECT * FROM <ViewName>[WHERE <Condition>...., optional]
Parameter
Parameter Description
ViewName Name of the database table.
The table has to be specified in the desired language.
The "ViewName" for the five European language is e.g.:
• ALGVIEWEXDEU: German message archive data
• ALGVIEWEXENU: English message archive data
• ALGVIEWEXESP: Spanish message archive data
• ALGVIEWEXFRA: French message archive data
• ALGVIEWEXITA: Italian message archive data
The "ViewName" for the Asian language is e.g.:
• ALGVIEWEXCHS: Chinese (simplified) message archive data
• ALGVIEWEXCHT: Chinese (traditional) message archive data
• ALGVIEWEXJPN: Japanese message archive data
• ALGVIEWEXKOR: Korean message archive data
Note
The languages that are installed in the WinCC base system or that are configured in the
WinCC Text Library are supported.
Information concerning the possible query-languages or the respective "ViewName" can
be found in the SQL-Server in the linked alarm archives under "Views". All languages that
are supported in the corresponding archive are shown here with their IDs, e.g. "ALGVIE‐
WEXENU".
Condition Filter criterion, for example:
• DateTime>'2003-06-01' AND DateTime<'2003-07-01'
• DateTime>'2003-06-01 17:30:00'
• MsgNr = 5
• MsgNr in (4, 5)
• State = 2
With DateTime, only absolute time indications can be used.
Example 1:
Reads all entries of message number 5 that were recorded after July 5, 2003.
"ALARMVIEWEX:SELECT * FROM ALGVIEWEXENU WHERE MsgNr = 5 AND
DateTime>'2003-07-05'"
Example 2:
Reads all messages with a time stamp between July 3, 2003 and July 5, 2003.
WinCC/Connectivity Pack
178 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
See also
Displaying Alarm Message Archives (Page 179)
Introduction
The query result is returned as Recordset.
The table contains the structure of the Recordset for message archives.
You will find information about the status of messages in the WinCC Information System
under "Working with WinCC > ANSI-C Function for Creation of Functions and Actions > ANSI-C
Function descriptions > Structure Definitions > Structure Definition MSG_RTDATA_STRUCT".
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 179
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
WinCC/Connectivity Pack
180 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
See also
Querying the Archive Data (Page 169)
Establishing the Connection to the Archive Database (Page 165)
Access to Archive Data Using OLE DB Provider (Page 159)
Bases of OLE DB (Page 160)
Introduction
With the following query, you may use MS OLE DB Provider to access WinCC user archives. Access
may be read or write enabled in order to analyze the saved data and to modify and save same.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 181
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
The data can be selected using filter criteria. The queries are forwarded to the database by
the command object.
Note
Consider the following when accessing WinCC user archives via the MS OLE DB Provider:
• Ensure that the write access is not enabled simultaneously via the MS OLE DB Provider and
WinCC. This prevents inconsistencies in the archives.
• Changes via MS OLE DB Provider will not be displayed in WinCC Runtime until the user archive
table controls are selected by a picture change. The current data of the user archives are read
again.
• User archives changed via MS OLE DB Provider are not synchronized in a redundant system.
• Note that WinCC updates can cause changes in the database scheme. The scheme can also
be changed by the installation of hot fixes and service packs. In this case, you must adapt the
read and write access accordingly.
Syntax
Reading of Values
SELECT * FROM UA#<ArchiveName>[WHERE <Condition>...., optional]
Writing of Values
UPDATE UA#<ArchiveName> SET UA#<ArchiveName>.<Column_n> = <Value>
[WHERE <Condition>...., optional]
Parameter
Parameter Description
ArchiveName Name of the user archive.
Condition Filter criterion e.g.:
LastAccess>'2004-06-01' AND LastAccess<'2004-07-01'
DateTime>'2004-06-01 17:30:00'
ID = 5
ID > 3
Example 1:
Reads all data in the user archive "Test".
WinCC/Connectivity Pack
182 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Example 2:
Reads all data in the user archive "Test" that were changed between June 1, 2004 and July 1,
2004.
SELECT * FROM UA#Test WHERE LastAccess>'2004-06-01' AND
LastAccess<'2004-07-01'
Example 3:
Enters the value 'New_String' in the field F_STRING of the ID 3.
UPDATE UA#TEST SET F_STRING = 'New_String' WHERE ID = 3
Example 4:
Inserts a data set with the ID 100.
INSERT INTO UA#Test (ID,F_Integer,F_Float,F_Double,F_String) VALUES
(100.10,'10.0','AAAA')
Example 5:
Deletes the data set with the ID 100.
DELETE FROM UA#Test WHERE ID = 100
See also
Displaying User Archives (Page 183)
Introduction
Each user archive consists of data fields with editable properties.
Each data field has properties such as name, alias name, type, lengths, value, etc.
The representation of the data fields and properties in the Editor User Archives is done in
lines and columns. Therefore, we are talking of rows instead of data fields and of columns
instead of properties.
The possible structure of a user archive is described below as an example.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 183
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
See also
Querying the Archive Data (Page 169)
Establishing the Connection to the Archive Database (Page 165)
Access to Archive Data Using OLE DB Provider (Page 159)
Bases of OLE DB (Page 160)
Introduction
WinCC OLE DB Provider may be used to access WinCC databases while employing the Wizard
"SQL Server Import/Export".
You can save the unzipped data to an intermediate database using the wizard; you access the
database with standard SQL queries.
• Using WinCC computers, access to runtime and archive databases may be established locally
or remotely.
• In the case of long-term archive servers, local or remote access is only possible to the archive
databases since they have no runtime databases.
Procedure
1. Start the "SQL Server Management Studio" and select the desired database.
2. In the shortcut menu of the database, select "Tasks > Export Data".
The SQL Server Import/Export Wizard opens.
3. Configure the data source:
– In the "Data source" field, select the entry "WinCC OLE DB-Provider for Archives".
– Click the "Properties" button.
– The "Data Link Properties" dialog opens.
WinCC/Connectivity Pack
184 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Note
In order to improve performance during local access, enter "<Computer Name>\WinCC" in
the "Data Source" field instead of ".\WinCC".
Note
You can also leave the "Database" field empty. No target tables are then created.
Result
The wizard executes the data export to the target database.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 185
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
If the data export was successful, the uncompressed data in the target database is saved in
the newly created table "dbo.Query".
You can change the table name.
Even if you do not change the table name, data will not be overwritten with a new export.
New tables with names "Query1", "Query2" etc. are created by the wizard.
See also
Use Case 7: Access Via the WinCC OLE DB Provider (Page 153)
Querying Process Value Archives (Page 170)
Introduction
You can use the SQL Server Reporting Services with WinCC.
This makes it possible to provide reports created with Microsoft Visual Studio with archive
data on the network.
Requirements
The use of the Reporting Services with WinCC requires the following other software
prerequisites.
• Internet Information Services
• Reporting Services of the Microsoft SQL Server 2019
Note
Take the installation steps in precisely the indicated order.
WinCC/Connectivity Pack
186 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Note
We recommend restarting the computer after completing the installation.
Result
This makes the prerequisites for using the Reporting Services.
You can now create reports and provide them on the internet.
Introduction
Different analysis functions are available with WinCC for querying archived messages and
process values.
The analysis is triggered by a query with parameters for different aggregate functions.
Calculation of the aggregate function is performed on the Connectivity Pack server, and
only the result is transferred to the client.
Additional information on CommandText and ConnectionString which are used in the
following examples may be found under "Establishing Connection to Archive Database" and
"Querying Archive Data".
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 187
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Note
"String" data type is not supported
If you use these functions for the "String" data type, the analysis function returns the result "0".
Syntax
For the calculation of aggregate functions for messages, the following command is issued to
WinCC OLE DB Provider.
"AlarmHitView: SELECT * FROM <ViewName>[WHERE <Condition>]"
Here:
<ViewName> = Name of the database table in the desired language, e.g. ALGVIEWMENU for
English.
[WHERE <Condition>] = optional filter criterion as WHERE condition in the SQL syntax.
Additional information on the syntax of parameters may be found in the section "Query for
Alarm Logs".
WinCC/Connectivity Pack
188 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Example
The example provides results of the aggregate functions for all messages for the time range
between 7/15/2004 12:00 p.m. and 12:15 p.m. from the "ALGVIEWENU" database.
ConnectionString:
"Provider=WinCCOLEDBProvider.1;Catalog=CC_OpenArch_03_05_27_14_11_46
R;Data Source=.\WinCC"
CommandText:
"AlarmHitView: SELECT * FROM ALGVIEWENU WHERE DateTime>'2004-07-15
12:00:00' AND DateTime<'2004-07-15 12:15:00'"
Note
Text tags are not supported
In a query for text tags (8-bit character set / 16-bit character set) via TAG_EX:R, the analysis
function returns the result "0".
Syntax
For the calculation of aggregate functions for process values, a query is issued to the MS SQL
OLE DB Provider and the procedure "cp_TagStatistic" from database "SQL Server Master" is
executed.
Note
The analysis functions for process values in transparent access function only with Connectivity
Station on a client with own project.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 189
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Where:
"@P1" = database name (e.g. WinCC Runtime database or symbolic name of the directory
with the swapped out archives). For transparent access, use the WinCC project name instead
of the database name.
"@P2" = WinCC OLE DB-Provider String for process values.
"@P3" = desired aggregate function.
"@P4" = <Symbolic computer name>::\WinCC (required only for transparent access).
Additional information on the syntax of parameters "@P1" and "@P2" may be found in the
section "Query for Process Value Archives".
Note
Analysis functions for process values with Asian archive tag names
If you use archive tag names with Asian character sets to calculate an analysis function, the
request for Unicode character sets has to be adapted.
Add the prefix "N'" in front of both parameters.
Example: cp_TagStatistic N'TestDB',N'TAG:R,17,''2004-05-17 12:00:00'',''2004-05-17
13:00:00''','AVG'
Example
This query will return the average of process values in the time range between 5/17/2004
12:00 and 13:00 for ValueID "17" from database "TestDB".
ConnectionString:
"Provider=SQLNCLI11;Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=master ;Data Source=.\WinCC"
CommandText:
"cp_TagStatistic 'TestDB','TAG:R,17,''2004-05-17
12:00:00'',''2004-05-17 13:00:00''','AVG'"
See also
Querying the Archive Data (Page 169)
Establishing the Connection to the Archive Database (Page 165)
WinCC/Connectivity Pack
190 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
Introduction
The analysis query for message archives returns a specific recordset which contains
configuration and runtime data for each message as well as results of the aggregate functions.
This Recordset is not identical to the Recordset of normal queries of message archives.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 191
WinCC/Connectivity Pack documentation
2.4 Access Via the OLE DB Provider
See also
Analysis Functions for Messages and Process Values (Page 187)
WinCC/Connectivity Pack
192 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.5 Security Settings During Access to SQL Databases Using MS OLE DB
Introduction
Using MS OLE DB, users may access SQL databases, such as WinCC user archives, and may modify
these.
It is therefore possible for unauthorized users to do so.
To protect against unauthorized access, the administrators of the databases must take
suitable measures.
Principle
One option for access protection is to create a user or user group on the SQL server for access to
SQL databases. This user or user group will then be assigned certain authorizations for access to
SQL databases.
This may use local or global Windows user groups on the SQL server to organize such access
authorizations in SQL.
Alternatively, Windows users can be transferred to the SQL server–either directly as Windows
users or as individually defined SQL users.
Server Roles
Part of the security structure of an SQL server are the so-called "Server Roles".
This organizes users into groups for administrative purposes, similar to Windows.
"Server Roles" are used to assign server-wide security settings to a login or if there are no
corresponding Windows user groups.
The technical documentation for the SQL Server 2019 is made available by Microsoft on the
Internet:
• SQL Server 2019 documentation (https://docs.microsoft.com/en-us/sql/sql-server/?
view=sql-server-ver15)
See also
Bases of OLE DB (Page 160)
SQL Server 2019 documentation (https://docs.microsoft.com/en-us/sql/sql-server/?view=sql-
server-ver15)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 193
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
WinCC can be used as both an OPC server and as an OPC client. The OPC channel is the OPC client
application of WinCC.
The OPC communication driver can be used as OPC DA client, OPC XML client, and OPC UA
client. The documentation for the OPC UA client is available under "OPC UA channel".
The following OPC components are installed automatically:
• OPC communication driver
• OPC Item Manager
Possible Applications
WinCC
(OPC DA client)
WinCC/Connectivity Pack
194 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Note
The WinCC OPC channel establishes connections only to OPC servers which have the status
"OPC_STATUS_RUNNING".
Note
"OPC" channel
Unicode is not supported for connection names. Make sure that you name all connections in the
project in the same language. Open the Control Panel of your computer to set the code page of
this language for use in programs that do not support Unicode.
Introduction
A connection and a WinCC tag are configured in the WinCC project of the WinCC OPC client to
enable access to tags of an OPC server. The OPC Item Manager simplifies this process for you. The
OPC Item Manager is automatically installed with WinCC.
Note
"OPC" channel
Unicode is not supported for connection names. Make sure that you name all connections in the
project in the same language. Open the Control Panel of your computer to set the code page of
this language for use in programs that do not support Unicode.
Requirements
The following requirements must be met in order to use the OPC Item Manager for configuration:
• The OPC server is an OPC DA server.
• A tag is already configured on the OPC server.
• If WinCC is to be used as the OPC server the WinCC project of the WinCC OPC server must be
enabled. If this is not the case, the OPC Item Manager cannot access the WinCC OPC server.
• It must be possible to access the computer of the OPC servers via the IP address or HTTP.
• The OPC server must support the browser functionality. If that is not the case, access to the
tag of the OPC server must be configured manually.
Note
If you change language in the WinCC Explorer while the OPC Item Manager is open, no tags
are displayed when you click the "Browse Server" button. Exit the OPC Item Manager before
changing language.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 195
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
OPC DA server
The OPC Item Manager can be used to determine the name of the OPC DA server in the
network. These OPC DA servers can run on the same computer or on different computers in
the connected network environment. For further details, refer to "WinCC OPC DA client ".
The computer was not found in the network or the computer could not be accessed.
A networked computer contains the OPC DA server designated with the OPC symbol. The
number indicates which OPC DA specification of the WinCC OPC DA client is used.
\\<LOCAL> Refers to the computer running the OPC Item Manager.
WinCC/Connectivity Pack
196 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Creating a connection
The OPC Item Manager configures all required settings when creating a connection. If a
connection to the OPC server has already been created, this function is not available.
Tag selection
You may use the tag selection dialog to select one or more tags on the OPC server which the
WinCC OPC client is to access. Filter criteria can be used to limit the choices in the tag selection
dialog.
Adding a tag
The names of the WinCC tags that access the tags of the OPC server can be set in the "Add
Tags" dialog.
The WinCC tag name consists of the "prefix", "name" and "suffix". The "Name" field is
preconfigured with the "ExampleTag" text. "ExampleTag" stands for the WinCC tag name of
the WinCC OPC server.
You can assign a prefix or suffix to distinguish the WinCC tag name on the WinCC OPC client
from the WinCC tag name on the WinCC OPC server. When configuring project monitoring, a
prefix or suffix must be assigned.
The tag name may be assigned only once in a given WinCC project.
Example
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 197
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
The WinCC tag name on the WinCC OPC DA server is called "OPC_Server_Tag". The "Client_"
value is entered in the prefix field and "_xyz" in the suffix field. In the WinCC project of the
WinCC OPC DA client, the WinCC tag "Client_OPC_Server_Tag_xyz" is created.
If the tag name on the OPC server contains special characters, they are replaced by an
underscore ( "_" ), because not all special characters occurring in tag names are supported by
the OPC Item Manager.
Click "Finish" to add the WinCC tags to the WinCC project of the WinCC OPC DA client. The
OPC Item Manager automatically sets the data type, the name and the address parameters
for the WinCC tag.
See also
How to Access a WinCC Tag with the OPC Item Manager (Page 201)
The list below shows the data types that are supported by the WinCC OPC DA client and WinCC
OPC DA server:
• Binary tag
• Signed 8-bit value
• Unsigned 8-bit value
• Signed 16-bit value
• Unsigned 16-bit value
• Signed 32-bit value
• Unsigned 32-bit value
• Floating-point number 32-bit IEEE 754
• Floating-point number 64-bit IEEE 754
• Text tag, 8-bit character set
• Text tag, 16-bit character set
• Raw data type
• Structure types
• Text reference
• Date/Time
WinCC/Connectivity Pack
198 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Note
Structure types
For structure types, only the structure elements are supported, not the structure itself. However,
the structure can be configured later. For more information, refer to the topic "Using structures
on the WinCC OPC DA client."
Text reference
If a text tag is created with the OPC Item Manager, it is assigned a length of 160 characters. This
length can be changed to any length.
See also
How to Use Structures on the WinCC OPC DA Client (Page 208)
Introduction
The OPC channel does not require a separate communication module. The OPC channel is an
application which employs the OPC software interface to use an OPC DA server to access process
data.
If WinCC is to be used as an OPC DA client, the OPC channel must be added to the WinCC
project.
If a communication is established to a WinCC OPC DA server, the values of the WinCC tags
are exchanged. To do this, a connection is set up in the WinCC project of the WinCC OPC DA
client; it is used to handle access to the WinCC OPC DA server.
For the WinCC OPC DA client to access multiple OPC DA servers, a connection for each
of the OPC DA servers must be set up in the WinCC project. For more information about
troubleshooting channels and tags, refer to "Troubleshooting".
Note
The WinCC OPC channel establishes connections only to OPC servers which have the status
"OPC_STATUS_RUNNING".
Note
"OPC" channel
Unicode is not supported for connection names. Make sure that you name all connections in the
project in the same language. Open the Control Panel of your computer to set the code page of
this language for use in programs that do not support Unicode.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 199
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Connection Monitoring
Three mechanisms are integrated for connection monitoring in the WinCC OPC-DA client. It is
thus possible to take the best possible measures in the event of a network error or malfunction
of an OPC DA server.
1. If the processing period for a DCOM activation exceeds warning value of 5 seconds, the tag
is assigned the value "Addressing Error". If the processing period exceeds the cancellation
value of 10 seconds, the connection to the OPC DA server is interrupted. This is displayed in
the "Connection Status" dialog of the WinCC Explorers.
The OPC DA specification 3.00 is provided with the "Keep-Alive" feature. If the OPC DA server
supports the OPC DA specifications 3.00, this feature is used. The feature causes the OPC
DA server to automatically trigger cyclic updating (call OnDataChange) even if the tag values
have not changed. If this regular updating is disabled, the WinCC OPC DA client terminates
the connection.
The same behavior applies in the case of an OPC DA server which supports the OPC DA
specifications 2.05a. In order to check the connection to the OPC DA server, the WinCC OPC
DA client requests the status cyclically every 10 seconds. If this regular updating is disabled,
the WinCC OPC DA client terminates the connection.
Generally, the WinCC OPC DA client terminates the connection to the OPC DA server
when the connection is not capable of functioning. The WinCC OPC DA client attempts to
re-establish the connection again, automatically, every 10 seconds.
See also
How to Use Structures on the WinCC OPC DA Client (Page 208)
Accessing a WinCC Tag without the OPC Item Manager (Page 206)
Configuring Access with the OPC Item Manager (Page 202)
Overview of the Supported WinCC Data Types (Page 198)
OPC Item Manager (Page 195)
OPC specifications and compatibility (Page 216)
Functionality of the WinCC OPC DA Server (Page 220)
WinCC/Connectivity Pack
200 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
When an OPC connection is made between WinCC and WinCC, data exchange occurs using
WinCC tags. The WinCC OPC DA client uses an OPC connection to read the WinCC tag
"OPC_Server_Tag" on the WinCC OPC DA server. To simplify the process, the OPC Item Manager
is used.
Data exchange
via OPC
WinCC WinCC
(OPC DA server) (OPC DA client)
OPC_Server_Tag Client_OPC_
Server_Tag_xyz
Requirements
• Two computers with WinCC projects.
• Both computers must be accessible via their IP addresses.
Configuration Steps
The following configurations are required in the WinCC project of the WinCC OPC DA client:
• Creation of a connection.
• Configuration of the "XMLClient_OPC_Var1_xyz" WinCC tag on the WinCC OPCXML client
which accesses the WinCC tag of the WinCC OPC DA server.
See also
Configuring Access with the OPC Item Manager (Page 202)
Configuring the OPC Channel on the WinCC OPC DA Client (Page 201)
Example of WinCC to WinCC Connection (Page 223)
Introduction
To use OPC for data exchange, the OPC channel must be set up in the WinCC project.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 201
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Procedure
1. Click the "Tag Management" icon in the navigation window of the WinCC Explorer on the
WinCC OPC DA client.
2. Select "Add New Driver" from the "Tag Management" shortcut menu. The "Add New Driver"
dialog is opened.
3. Select the "OPC.chn" driver and click the "Open" button. The channel is created and the
communication driver is displayed in the tag management.
See also
Configuring Access with the OPC Item Manager (Page 202)
Introduction
This section explains how to use the OPC Item Manager to configure access to the WinCC tag
"OPC_Server_Tag" of the WinCC OPC DA server.
Requirements
• Configure an internal tag named "OPC_Server_Tag" of the data type "signed 16-bit value" in
the WinCC project of the WinCC OPC DA server.
• Enable the WinCC project of the WinCC OPC DA server.
• Add the "OPC" channel to the WinCC project of the WinCC OPC DA client.
Note
"OPC" channel
Unicode is not supported for connection names. Make sure that you name all connections in the
project in the same language. Open the Control Panel of your computer to set the code page of
this language for use in programs that do not support Unicode.
WinCC/Connectivity Pack
202 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Procedure
1. In the shortcut menu of the channel unit "OPC Groups(OPCHN Unit#1)" on the WinCC OPC DA
client, select "System Parameters". The "OPC Item Manager" opens.
2. Choose the name of the computer to be used as the WinCC OPC DA server from the selection
dialog.
Select "OPCServer.WinCC" from the list displayed.
3. Click the "Browse Server" button.
The "Filter criteria" dialog is opened.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 203
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
4. Click "Next".
The "OPCServer.WinCC ..." dialog is opened.
WinCC/Connectivity Pack
204 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
8. Enter the text "Client_" in the prefix field and the text "_xyz" in the suffix field.
9. Select connection "OPCServer_WinCC".
Click "Finish".
10.Click the "Back" button in the "OPCServer.WinCC ..." dialog.
Click "Exit" to close the OPC Item Manager.
See also
Configuring the OPC Channel on the WinCC OPC DA Client (Page 201)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 205
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
OPC servers that do not support browser functionality require access to be configured manually.
Configuration of WinCC tags on the WinCC OPC DA client is shown using an example of a WinCC-
WinCC OPC connection.
Data exchange
via OPC
WinCC WinCC
(OPC DA server) (OPC DA client)
OPC_Var1 Client_OPC_
Var1_xyz
Note
To access a WinCC tag without the OPC Item Manager, the ItemID must be set manually. When
addressing WinCC tags, the symbolic computer name (server prefix) can also be specified. The
ItemID has the following syntax: Server prefix::WinCC tag. If the WinCC tag of the local WinCC
project is addressed, the server prefix is omitted.
The following configurations are required in the WinCC project of the WinCC OPC DA client:
1. Selection of the "OPC_Var1" WinCC tag to be accessed.
2. Creation of a connection.
3. Configuration of the "Client_OPC_Var1_xyz" WinCC tag that accesses the WinCC tag of the
WinCC OPC DA server.
Requirements
• Two computers with WinCC projects.
• Both computers must be accessible via their IP addresses.
• Configure an internal tag named "OPC_Var1" with data type "signed 16-bit value" in the
WinCC project of the WinCC OPC DA server.
• Enable the WinCC project of the WinCC OPC DA server.
• Add the OPC channel to the WinCC project of the WinCC OPC DA client.
Note
"OPC" channel
Unicode is not supported for connection names. Make sure that you name all connections in the
project in the same language. Open the Control Panel of your computer to set the code page of
this language for use in programs that do not support Unicode.
WinCC/Connectivity Pack
206 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Procedure
1. Select "New Connection" from the shortcut menu of the channel unit "OPC Groups(OPCHN
Unit#1)" on the WinCC OPC DA client. The "Connection Properties" dialog is opened. Enter a
name for the connection in the corresponding field.
2. Click the "Properties" button. A dialog with the connection name in its title is displayed.
For connections to WinCC V 6, the entry in the "OPC Server Name" field must be
"OPCServer.WinCC".
3. Enter the name of the computer to be used as the OPC DA server in the "Start Server on this
Computer" field. Click "Test Server", to check the connection to the WinCC OPC DA server.
4. Select "New Tag" from the shortcut menu of the connection. The "Tag Properties" dialog
opens.
5. Enter the name "Client_OPC_Var1_xyz" in the "Tag" field. Set the data type to "signed 16-bit".
6. In the "Tag Properties" dialog, click the "Select" button. The "Address Properties" dialog opens.
Enter the name of the WinCC tag of the WinCC OPC DA server in the "Item Name" field. Leave
the entry in the "Access Path" field unchanged. Set the data type to "signed 16-bit".
7. Click "OK" to close all open dialogs.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 207
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
Structures are used to organize tags and tag types that form a logical unit. This allows them to
be referenced using a single logical name.
Structures are not supported by the OPC DA specification. As a result, structures cannot be
set up using the OPC Item Manager, only the individual tags in a structure. If you wish to use
structures on the WinCC OPC DA client nonetheless, the data structure must be configured
subsequently in the WinCC project of the WinCC OPC DA client in order to supply it with the
relevant item names of the server tags.
Requirements
• Two computers with WinCC projects.
• Both computers must be accessible via their IP addresses.
Configuration steps
The following configuration steps are necessary to use structures on the WinCC OPC DA client:
• Configuring structures and structure tags on the WinCC OPC DA server
• Using structures on the WinCC OPC DA client in the WinCC project
See also
How to Configure Structures on the WinCC OPC DA Client (Page 209)
Configuring Structures and Structure Tags on the WinCC OPC DA Server (Page 208)
Introduction
In this section a structure and a structure tag is created in the WinCC project of the OPC DA server.
This configuration is required for the OPC DA client to access the structure tag.
WinCC/Connectivity Pack
208 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Procedure
1. Select "New Structure Type" from the structure types shortcut menu on the WinCC OPC DA
server. The "Structure Properties" dialog is displayed.
2. Click "New Element" and create the internal tag "OPCServer_Struct" of data type SHORT.
See also
How to Configure Structures on the WinCC OPC DA Client (Page 209)
Introduction
Structures are not supported by the OPC DA specification. As a result, structures cannot be set up
using the OPC Item Manager. In this section, the structure already present in the WinCC project
of the WinCC OPC DA server is configured for the WinCC project of the WinCC OPC DA client. A
WinCC tag that accesses the existing structure tag on the WinCC OPC DA server is configured on
the WinCC OPC DA client.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 209
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Requirements
• Create a structure and a structure tag named "Var.OPCServer_Struct" in the WinCC project of
the WinCC OPC DA server.
• Enable the WinCC project of the WinCC OPC DA server.
• Add the OPC channel to the WinCC project of the WinCC OPC DA client.
Note
"OPC" channel
Unicode is not supported for connection names. Make sure that you name all connections in the
project in the same language. Open the Control Panel of your computer to set the code page of
this language for use in programs that do not support Unicode.
Procedure
1. Select "New Structure Type" from the structure types shortcut menu on the WinCC OPC DA
client. The "Structure Properties" dialog is displayed.
2. Click the "New Element" button and set up an external tag. Name the element exactly as it is
in the WinCC project of the OPC-DA server. Click "OK" to close the "Structure Properties" dialog.
3. If a connection to the OPC DA server already exists, continue with step 6.
If no connection has been created, select "New Connection" from the shortcut menu of the
channel unit "OPC". The "Connection Properties" dialog is opened. Enter a name for the
connection in the corresponding field.
4. Click the "Properties" button. A dialog with the connection name in its title is displayed. For
connections to WinCC V 6, the entry in the field "OPC Server Name" must be
"OPCServer.WinCC".
5. Enter the name of the computer to be used as the WinCC OPC DA server in the field "Start
Server on this Computer". Click "Test Server", to check the connection to the WinCC OPC DA
server. Click "OK" to close the dialog.
6. Select "New Tag" from the shortcut menu of the connection. The "Tag Properties" dialog
opens. Select the newly created structure type as the data type.
7. In the "Tag Properties" dialog, click the "Select" button. The "Address properties" dialog opens.
In the "Item Name" field, enter the name "Var.OPCServer_Struct" for the structure tag of the
WinCC OPC DA server. Leave the entry in the "Access Path" field unchanged.
8. Click "OK" to close all open dialogs.
See also
Configuring the OPC Channel on the WinCC OPC DA Client (Page 201)
Configuring Structures and Structure Tags on the WinCC OPC DA Server (Page 208)
WinCC/Connectivity Pack
210 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The procedure for communication testing is independent of how WinCC is used.
See also
WinCC is used as the OPC DA client, and the connection is not established. (Page 215)
WinCC is used as the OPC DA client, and the connection is established. (Page 214)
WinCC is used as the OPC DA server, and the connection is not established. (Page 213)
WinCC is used as the OPC DA server, and the connection is established successfully.
(Page 212)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 211
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC is used as the OPC DA server, and the connection is established successfully.
:LQ&&LVXVHGDVWKH23&'$VHUYHU
$FRQQHFWLRQLVHVWDEOLVKHGEXWWKH
YDOXHRIWKHWDJLVLQFRUUHFW
&KHFNWKHFRQILJXUDWLRQRIWKHLWHP
QDPHDQGWKHGDWDW\SHRIWKH23&
'$FOLHQW
$UHWKHLWHP 1R
QDPHDQGGDWD &RUUHFWWKHHQWULHV
W\SHFRUUHFW"
<HV
,VWKH
<HV
$FFHVVSDWKILHOG 'HOHWHWKHHQWU\
HPSW\"
1R
&KDQJHWKHFRQILJXUDWLRQRQWKH:LQ&&
$UHWKH 1R '$23&VHUYHU
'&20VHWWLQJV <RXFDQILQGIXUWKHULQIRUPDWLRQLQWKH
FRUUHFW" GRFXPHQWDWLRQRIWKHRSHUDWLQJV\VWHP
<HV
1R
&KHFNWKH23&'$FOLHQW
WinCC/Connectivity Pack
212 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC is used as the OPC DA server, and the connection is not established.
:LQ&&LVXVHGDVWKH23&'$VHUYHU
8QDEOHWRHVWDEOLVKDFRQQHFWLRQ
2SHQWKHUHJLVWUDWLRQHGLWRU,QWKH5HJLVWUDWLRQPHQXFOLFN
&RQQHFWZLWKQHWZRUNUHJLVWUDWLRQ(QWHUWKHQDPHRIWKH
FRPSXWHURQZKLFKWKH23&'$VHUYHULVUXQQLQJLQWKH
&RPSXWHUQDPHILHOG&OLFNWKH2.EXWWRQ
,VWKH &DQ\RXFRQQHFWWR
1R FRPSXWHU 1R WKHQHWZRUNUHJLVWUDWLRQRIWKH
DYDLODEOHRQWKH 23&'$VHUYHU"
QHWZRUN"
<HV <HV
,V5XQWLPH
0DNHVXUHWKH 1R $FWLYDWHWKH:LQ&&
DFWLYHRQWKH:LQ&&
FRPSXWHULVDYDLODEOH 23&'$VHUYHU" SURMHFW
RQWKHQHWZRUN
<HV
2SHQ7DVN0DQDJHU
RQWKH:LQ&&'$23& $UHWKH
VHUYHU,QWKH3URFHVVHVWDELV 1R FRQILJXUHG3URJ,' <HV
WKH623&6(59:LQ&&SURFHVV DQGWKHVHUYHUQDPHRIWKH
DFWLYH" FOLHQWDSSOLFDWLRQ
FRUUHFW"
1R
<HV
&RUUHFWWKHHQWULHV
&KDQJHWKHFRQILJXUDWLRQRQWKH
:LQ&&'$23&VHUYHU 1R $UHWKH
<RXFDQILQGIXUWKHULQIRUPDWLRQLQWKH '&20VHWWLQJV
GRFXPHQWDWLRQRIWKHRSHUDWLQJV\VWHP FRUUHFW"
<HV
&RQWDFWWKH:LQ&&&XVWRPHU
6XSSRUW
&KHFNLI\RXFDQ
HVWDEOLVKDFRPPXQLFDWLRQ <HV <RXFDQQRZXVHWKH23&
FRQQHFWLRQQRZ FRQQHFWLRQIRUGDWDFRPPXQL
FDWLRQ
1R
&KHFNWKH23&'$FOLHQW
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 213
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
:LQ&&LVXVHGDVWKH23&'$FOLHQW
$FRQQHFWLRQLVEHLQJHVWDEOLVKHGEXWWKHWDJYDOXHLV
LQFRUUHFW
,IWKH23&'$VHUYHU
KDVDEURZVHULQWHUIDFHDUH
<HV 1R
WKHWDJVRIWKH23&'$VHUYHU
GLVSOD\HGLQWKH23&,WHP0DQDJHU"
,QWKH:LQ&&SURMHFWRIWKH23&'$ (QDEOHWKH:LQ&&SURMHFWRIWKH23&
FOLHQWRSHQWKHDGGUHVVSURSHUWLHVRI '$FOLHQW6WDUWWKH:LQ&&&KDQQHO
WKH:LQ&&WDJWKDWDFFHVVHVWKHWDJRI 'LDJQRVLVIURPWKH6WDUWPHQX(QDEOH
WKH23&'$VHUYHU WKHWUDFHIXQFWLRQ
,QWKH$GGUHVV
3URSHUWLHVGLDORJDUHWKH $UHWKH &RQWDFWWKH:LQ&&&XVWRPHU
<HV '&20VHWWLQJV <HV
HQWULHVLQWKHILHOGV,WHP1DPHDQG 6XSSRUW
'DWD7\SHFRUUHFW" FRUUHFW"
1R
1R
&RUUHFWWKHHQWULHV &KDQJHWKHFRQILJXUDWLRQRQWKH
:LQ&&'$23&FOLHQW
)RUDGGLWLRQDOLQIRUPDWLRQUHIHUWRWKH
GRFXPHQWDWLRQRIWKHRSHUDWLQJ
V\VWHP
&KHFNZKHWKHU
\RXFDQHVWDEOLVKWKH <HV <RXFDQQRZXVHWKH23&
FRPPXQLFDWLRQFRQQHFWLRQ FRQQHFWLRQIRUGDWDWUDQVPLVVL
QRZ RQ
1R
&KHFNWKH23&'$
VHUYHU
WinCC/Connectivity Pack
214 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC is used as the OPC DA client, and the connection is not established.
:LQ&&LVXVHGDVWKH23&'$FOLHQW
8QDEOHWRHVWDEOLVKDFRQQHFWLRQ
*RWRWKH3URSHUWLHV&RQQHFWLRQ ,VWKH
1R 0DNHVXUHWKHFRPSXWHULV
GLDORJRQWKH23&'$FOLHQWDQG FRPSXWHU DYDLODEOHRQWKHQHWZRUN
FKHFNWKHHQWULHVLQWKH23& DYDLODEOHRQWKH
&RQQHFWLRQWDE QHWZRUN"
<HV
$UHWKH3URJ,'
<HV $UHWKH &RQWDFWWKH:LQ&&&XVWRPHU
DQGWKHFRPSXWHUQDPH <HV
'&20VHWWLQJV 6XSSRUW
FRUUHFW"
FRUUHFW"
1R 1R
&RUUHFWWKHHQWULHV
&KDQJHWKHFRQILJXUDWLRQRQWKH
:LQ&&'$23&FOLHQW
<RXFDQILQGIXUWKHULQIRUPDWLRQLQWKH
GRFXPHQWDWLRQRIWKHRSHUDWLQJ
V\VWHP
&KHFNLIWKH <RXFDQQRZXVHWKH23&
<HV
FRUUHFWYDOXHLVQRZ FRQQHFWLRQIRUGDWDFRPPXQLFD
GLVSOD\HG WLRQ
1R
&KHFNWKH23&'$
VHUYHU
Contents
The OPC standardized software interface allows you to combine devices and applications from
various manufacturers in a uniform manner.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 215
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC can be used as an OPC server or an OPC client. The "OPC" channel represents the OPC
client application of WinCC.
This section shows you:
• which OPC servers WinCC has.
• how to use OPC in WinCC.
• how to set up various OPC DA links.
• how to configure the access to the WinCC message system.
• how the WinCC message system is mapped on the OPC A&E.
• how to set up access to the WinCC archive system.
Overview
OPC specifies interfaces for access to the following objects in WinCC:
• Process values (OPC Data Access 2.05a, 3.0; OPC XML Data Access 1.01; OPC UA 1.03)
• Archived process values (OPC Historical Data Access 1.20; OPC UA Historical Access 1.03)
• Chronological messages (OPC Historical Alarms and Events 1.10)
• Messages (OPC Alarms and Events 1.10; OPC UA Alarms and Conditions 1.03)
For more information about individual OPC specifications, refer to the OPC Foundation (http://
www.opcfoundation.org) website.
Compatibility
Support of these specifications is regularly monitored by the "Compliance Test Tool" (CTT) of the
OPC Foundation. Interoperability with OPC products from other manufacturers is guaranteed by
participation in "OPC Interoperability Workshops".
WinCC/Connectivity Pack
216 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
The test results submitted are published on the OPC Foundation website. To view the results,
enter the search term "OPC Self-Certified Products".
Introduction
In WinCC, servers are available for the following OPC interfaces:
• OPC Data Access / OPC XML Data Access: Access to the WinCC body of data
• OPC Historical Data Access: Access to the WinCC archive system
• OPC Alarms&Events: Access to the WinCC message system
• OPC Unified Architecture: Access to the WinCC body of data and archive system
WinCC contains an OPC channel by default. The OPC channel can access the relevant OPC
servers as client via OPC DA , OPC XML DA or OPC UA.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 217
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC OPC UA
Messages
External system
For example, another automation system,
PLC from a third-party supplier or a control system
Ethernet/TCP/IP
Licensing
WinCC/Connectivity Pack
218 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The OPC client and the OPC server are DCOM applications. A distributed DCOM application can
only be run under the same user account. Therefore the OPC server must recognize the OPC
client's user account and vice-versa. If the WinCC OPC servers are used with WinCC OPC clients,
the correct configuration is already warranted by the installation.
Requirements
Log on as the administrator to both the WinCC OPC server and OPC client workstations to
configure the user permissions.
Procedure
1. Go to "Control Panel > System and Security > Administrative Tools > Computer Management
> Local Users and Groups".
2. In the "Users" shortcut menu, select "New User".
In the "New User" dialog, enter the user account details of the communication partner. Click
"Create" and close the dialog.
3. Click the "Users" icon. Double-click the relevant user. The "Properties" dialog for this user is
displayed.
4. Click the "Member Of" tab. Click "Add". The "Select group" dialog is opened.
5. Add the group "Users".
If you are on a computer that has WinCC installed, also add the group "SIMATIC HMI". Click
"OK" to close all open dialogs.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 219
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The WinCC OPC-DA-Server supports OPC Data Access specifications 2.05a and 3.00. This has
been confirmed by the compliance test.
The WinCC OPC DA server is a DCOM application. This interface is used by the WinCC OPC DA
server to make the required information about WinCC tag available to the WinCC client.
The WinCC OPC DA server is active, if the WinCC OPC DA client is accessing it via a
connection. To establish successful OPC communication, the following must be observed:
• The WinCC project of the WinCC OPC DA server must be enabled.
• The computer on which the WinCC OPC DA server runs must be accessible via its IP address.
Installation
The WinCC OPC DA server can be selected during the installation of WinCC. After installation, the
WinCC OPC DA server is immediately usable without any further configuration.
The WinCC OPC DA server can be implemented on a WinCC server or a WinCC client.
Notes on configuration
• If the WinCC-OPC-DA server is used, the application "OPC-DA server, OPC-A&E server, OPC-
HDA server" must be activated.
You can activate the application in the Editor "Computer" of the WinCC Configuration Studio
in the "Processes when starting WinCC Runtime" tab.
• You can assemble tags into tag groups for structuring in the WinCC project. The tags should
not have the same name as the group.
• Each write request initiated in WinCC, for example via VBScript or the object "IO field", is
always treated as a synchronous "Write" call. The "IOPCSyncIO::Write" interface is used by the
WinCC OPC DA server for this. The asynchronous write mechanism is not implemented in the
WinCC OPC DA channel.
Note
If the Internet options on a computer are set to automatically detect settings under "Connections
-> LAN Settings", access to OPC DA via the web service will take significantly longer.
See also
Querying the OPC DA Server Name (Page 222)
Using Multiple OPC DA Servers (Page 221)
WinCC/Connectivity Pack
220 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
More than one OPC DA server may be installed on a computer, and any number may work in
parallel.
In this way, the OPC DA server of WinCC and the OPC DA server of another (third-party) provider
may be operated independently of one another on the same computer.
The WinCC OPC DA client can access the process data of the automation device via the OPC
server of the third-party provider. The OPC DA client of Microsoft Excel can use the WinCC
OPC DA server to access the WinCC data.
XYZ WinCC
(OPC DA server) (OPC DA server)
WinCC MS Excel
(OPC DA client) (OPC DA client)
There are a number of OPC DA servers available from various manufacturers. Each of these
OPC DA servers has a unique name (ProgID) for identification. OPC DA clients must use this
name to address the OPC server.
The OPC Item Manager can be used to query the name of the OPC DA server. The OPC DA
server of WinCC V 7 is named: "OPCServer.WinCC".
See also
Querying the OPC DA Server Name (Page 222)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 221
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
Multiple OPC DA servers can be installed on a single computer. The OPC Item Manager displays
the names of the OPC DA servers available to the workstation in a selection window. These OPC
DA servers can be run on the same computer or on computers in the network environment.
Requirement
Add the "OPC" channel to the WinCC project of the WinCC OPC DA client.
Procedure
1. In the shortcut menu of the channel unit "OPC Groups(OPCHN Unit#1)" on the WinCC OPC DA
client, select "System Parameters". The "OPC Item Manager" is opened.
2. In the navigation window of the OPC Item Manager, select the name of the computer you
wish to access.
3. The OPC Item Manager displays the names of the OPC DA servers that available to your
computer in a selection window.
See also
OPC Item Manager (Page 195)
WinCC/Connectivity Pack
222 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
When establishing a WinCC - WinCC connection, data are exchanged between the WinCC OPC
DA server and client by means of the "OPC_Server_Tag" WinCC tag. The
"Client_OPC_Server_Tag_xyz" WinCC tag on the client reads the "OPC_Server_Tag" WinCC tag on
the server. If the value of the "OPC_Server_Tag" tag on the WinCC OPC server changes, the value
of the "Client_OPC_Server_Tag_xyz" WinCC tag on the WinCC OPC DA client also changes.
Changes on the client are also reflect on the server.
Tag values are displayed in I/O fields on both computers.
Data exchange
via OPC
WinCC WinCC
(OPC DA server) (OPC DA client)
I/O field I/O field
OPC_Server_Tag Client_OPC_
Server_Tag_xyz
Requirements
• Two computers with WinCC projects.
• Both computers must be accessible via their IP addresses.
Configuration Procedure
The following configurations are required to establish a WinCC - WinCC connection:
1. Configuring a WinCC Project on a WinCC OPC DA Server
2. Configuring a WinCC Project on a WinCC OPC DA Client
See also
How to Configure a WinCC Project on a WinCC OPC DA Server (Page 224)
Configuring the WinCC Project on the WinCC OPC DA Client (Page 224)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 223
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
In this section, a WinCC tag is created in the WinCC project of the WinCC OPC DA server and
displayed in an I/O field.
Procedure
1. Select "New Tag" from the shortcut menu of the "Internal Tags" icon on the WinCC OPC DA
server. Create a new tag called "OPC_Server_Tag" of the "signed 16-bit value" type.
2. Launch the Graphics Designer and open a new picture.
3. Add an I/O field to the picture. Select the "I/O field" object from the object list under "Smart
Objects". The "I/O Field Configuration" dialog is opened.
See also
Configuring the WinCC Project on the WinCC OPC DA Client (Page 224)
Introduction
In this section, a WinCC tag is created on the WinCC OPC DA client, in order to read a WinCC tag
on the WinCC OPC DA server. The tag value is displayed in an I/O field.
WinCC/Connectivity Pack
224 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Requirements
• Add the "OPC" channel to the WinCC project of the WinCC OPC DA client.
• Configure an internal tag named "OPC_Server_Tag" of the data type "signed 16-bit value" in
the WinCC project of the WinCC OPC DA server.
• Enable the WinCC project of the WinCC OPC DA server.
Procedure
1. In the shortcut menu of the channel unit "OPC Groups(OPCHN Unit#1)" on the WinCC OPC DA
client, select "System Parameters". The OPC Item Manager is opened.
2. Choose the name of the computer to be used as the OPC DA server from the selection dialog.
Select "OPCServer.WinCC" from the list. Click the "Browse Server" button. The "Filter Criteria"
dialog is opened.
3. Click the "Next->" button in the "Filter Criteria" dialog. Select the "OPC_Server_Tag" tag in the
"OPCServer.WinCC ..." dialog. Click the "Add Items" button.
4. If a connection to the OPC DA server already exists, continue with step 5.
If no connection has been configured, a corresponding message is displayed.
Click "Yes". The "New Connection" dialog is displayed.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 225
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
6. Click the "<- Back" button in the "OPCServer.WinCC ..." dialog. In the "OPC Item Manager", click
"Exit" to close the OPC Item Manager.
7. Launch the Graphics Designer and open a new picture. Add an I/O field to the picture. Select
the "I/O field" object from the object list under "Smart Objects". The "I/O Field Configuration"
dialog is opened.
8. Enter the name "Client_OPC_Server_Tag_xyz" in the "Tag" field. Set the update to "2 s". Set the
field type to "I/O field". Close the dialog and save the picture. Enable the WinCC project by
clicking the "Activate" button in the Graphics Designer.
9. The value of the configured tags is displayed in the I/O field on both the WinCC OPC DA server
and the client. Enter a new value in the I/O field on the WinCC OPC DA server. The new value
is displayed in the I/O field on the WinCC OPC DA client.
See also
How to Configure a WinCC Project on a WinCC OPC DA Server (Page 224)
Configuring the OPC Channel on the WinCC OPC DA Client (Page 201)
WinCC/Connectivity Pack
226 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
During the installation of SIMATIC NET, you can select the OPC server to be installed. In the
following example, a connection between WinCC and SIMATIC NET FMS OPC server is
configured. Data from the automation device is made available to WinCC through the SIMATIC
NET FMS OPC server.
In this example, WinCC is used as the WinCC OPC DA client. The OPC Item Manager displays
the indexes of the object list configured for the automation device.
The current value of the tag is displayed in an I/O field. As soon as the value of the tags
on the SIMATIC NET FMS OPC server changes, the new value is reflected on the process
picture on the WinCC OPC DA client. Conversely, a value entered in the I/O field is sent to the
automation device.
WinCC
OPC DA client
Requirements
• A computer with WinCC, SIMATIC NET software.
• A configured SIMATIC NET FMS OPC server. For additional information regarding the setup of
SIMATIC NET S7 OPC servers refer to the SIMATIC NET documentation.
Configuration steps
The following configuration is required in the WinCC project of the WinCC OPC DA client:
1. Configuring a WinCC - SIMATIC NET FMS OPC server connection
Communication Manual
The communication manual contains additional information and extensive examples for the
channel configuration. This manual is available for download on the Internet:
• http://support.automation.siemens.com/
Search by item number:
• A5E00391327
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 227
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
How to Configure the WinCC - SIMATIC NET FMS OPC Server Connection
Introduction
In this section, a WinCC tag that accesses an FMS index is configured in the WinCC project of the
WinCC OPC DA client. The tag value is displayed in an I/O field.
Requirement
• Add the "OPC" channel to the WinCC project of the WinCC OPC DA client.
Procedure
1. In the shortcut menu of the channel unit "OPC Groups(OPCHN Unit#1)" on the WinCC OPC DA
client, select "System Parameters". The OPC Item Manager is opened.
2. Choose the name of the computer to be used as the OPC DA server from the selection dialog.
Select "OPC.SIMATICNet" from the list.
Click the "Browse Server" button. The "Filter Criteria" dialog is opened.
3. Click the "Next->" button in the "Filter Criteria" dialog. The "OPC.SIMATICNet.." dialog is
opened. All FMS indexes configured are displayed in a selection list. Select an index. Click the
"Add Items" button.
4. If a connection to the SIMATIC NET FMS OPC server already exists, continue with step 5.
If no connection has been configured, a corresponding message is displayed.
Click "Yes". The "New Connection" dialog is displayed.
WinCC/Connectivity Pack
228 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
9. Click "OK" to close the dialog and save the picture. Enable the WinCC project by clicking the
"Activate" button in the Graphics Designer.
10.The current value of the FMS index is shown in the I/O field. The value is updated every two
seconds. Enter a value in the I/O field. The changed value is passed to the automation device.
See also
Configuring the OPC Channel on the WinCC OPC DA Client (Page 201)
WinCC
OPC DA client
Requirements
• A computer with WinCC, SIMATIC NET software.
• A configured SIMATIC NET S7 OPC Server. For additional information regarding the setup of
SIMATIC NET S7 OPC servers refer to the SIMATIC NET documentation.
Configuration steps
The following configurations are required to establish a WinCC - SIMATIC NET S7 OPC server
connection:
1. Adding Tags to a SIMATIC NET S7 OPC Server
2. Configuring Access to the Tags on a SIMATIC NET S7 OPC Server
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 229
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Communication Manual
The communication manual contains additional information and extensive examples for the
channel configuration. This manual is available for download on the Internet:
• http://support.automation.siemens.com/
Search by item number:
• A5E00391327
Introduction
In order for the OPC Item Manager to display the tags, they must be added to the address space
of the SIMATIC NET S7 OPC server. The "OPC Scout" program is used for the configuration. OPC
Scout is set up by the SIMATIC NET installer. For this example, the marker word "0" in the
automation device is addressed.
Parameter Value
Data type W
Range byte 0
No. values 1
Item alias MW0
Requirements
• Configure an S7 connection in the SIMATIC NET software. For more information, refer to the
SIMATIC NET documentation.
WinCC/Connectivity Pack
230 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Procedure
1. Open the "OPC Scout" via Start "Programs" "SimaticNet" "OPCServer"
"OPCScout" .
2. Select "OPC.SimaticNet" under "Local Server(s)". If the SIMATIC S7 OPC server is not run on
the same computer, select "Add Remote Server(s)" in the "Server(s)" shortcut menu. Enter the
name of the computer used as the OPC server in the "Add Remote Server(s)" dialog, then click
"OK" to close the dialog.
3. Select "Connect" in the "OPC.SimaticNet" shortcut menu. The "Add Group" dialog is displayed.
Enter a name for the group. Click "OK" to close the dialog.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 231
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
4. Select "Add Item" from the shortcut menu of the added group. The "OPC Navigator" is opened.
5. Select "M" (marker) under "Objects" in the "OPC Navigator". Double-click "(New Definition)" to
open the "Define New Tag" dialog.
6. Enter the parameters from the table in the "Define New Tag" dialog.
WinCC/Connectivity Pack
232 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
See also
Configuring Access to the Tags of the SIMATIC NET S7 OPC Server (Page 233)
Introduction
In this section, a WinCC tag is configured in the WinCC project of the WinCC OPC DA client. This
tag accesses the tag "MW0" in the address space of the SIMATIC NET S7 OPC server. The tag value
is displayed in an I/O field.
Requirements
• Create the tag "MW0" using the OPC Scout.
• Add the "OPC" channel to the WinCC project of the WinCC OPC DA client.
Procedure
1. Select "System Parameters" in the shortcut menu of "OPC Groups(OPCHN Unit#1)". The OPC
Item Manager is opened.
2. Choose the name of the computer to be used as the OPC server from the selection dialog.
Select "OPC.SIMATICNet" from the list.
Click the "Browse Server" button. The "Filter Criteria" dialog is opened.
3. Click the "Next->" button in the "Filter Criteria" dialog. The "OPC.SIMATICNet.." dialog is
opened. Select the "MW0" tag. Click the "Add Items" button.
4. If a connection to the SIMATIC NET FMS OPC server already exists, continue with step 5.
If no connection has been configured, a corresponding message is displayed.
Click "Yes". The "New Connection" dialog is displayed.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 233
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
7. Start Graphics Designer and open a picture. Add an I/O field to the picture. Select the "I/O
field" object from the object list under "Smart Objects". The "I/O Field Configuration" dialog is
opened.
8. Enter the name "Client_MW0_xyz" in the "Tag" field. Set the update to "2s". Set the field type
to "I/O field".
9. Close the dialog and save the picture. Enable the WinCC project by clicking the "Activate"
button in the Graphics Designer.
10.The I/O field on the WinCC OPC DA client displays the current value of the S7 tags. The value
is updated every two seconds. Enter a value in the I/O field. The changed value is passed to
the automation device.
See also
Adding Tags to the SIMATIC NET S7 OPC Server (Page 230)
Configuring the OPC Channel on the WinCC OPC DA Client (Page 201)
Introduction
In this example, an OPC DA client is created in Microsoft Excel using the Visual Basic Editor. The
OPC DA client reads a WinCC tag in the WinCC project of the WinCC OPC DA server and writes the
value into a cell. If a new value is entered in the cell, the value is passed to the WinCC OPC DA
server.
A computer on which both WinCC and Microsoft Excel are installed is used for the connection.
WinCC
OPC DA server
OPC DA client
MS EXCEL
Configuration steps
The following configurations must be made in Microsoft Excel:
1. Creating an OPC DA client in Visual Basic Editor of Microsoft Excel
2. Configuring access to a WinCC tag in Microsoft Excel
WinCC/Connectivity Pack
234 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
See also
How to Configure the Access to a WinCC Tag in Microsoft Excel (Page 237)
Creating an OPC DA Client in Microsoft Excel (Page 235)
Introduction
To use Microsoft Excel as an OPC DA client, a special script must be created in the Visual Basic
Editor of Microsoft Excel.
Requirements
Basic knowledge of Visual Basic Editor in Microsoft Excel.
Procedure
1. Open Microsoft Excel with a new workbook.
2. In the "Tools" menu of the Visual Basic Editor, click "Macro". The Visual Basic Editor for
Microsoft Excel is opened.
3. In the "Tools" menu of the Visual Basic Editor, select "References...". The "References -
VBAProject" dialog is displayed. Locate entry "Siemens OPC DAAutomation 2.0" in the list of
available references. Select the corresponding check box. Click "OK".
4. Copy the script shown below. This script is only available in the online help.
5. Open a new code window by double-clicking "Sheet1" in the project window of the Visual
Basic Editor.
6. Paste the script into the code window.
7. Select "Save" from the "File" menu. Select "Close and Return to Microsoft Excel" from the "File"
menu.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 235
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Example Script
Option Explicit
Option Base 1
'---------------------------------------------------------------------
' Sub StartClient()
' Purpose: Connect to OPC_server, create group and add item
'---------------------------------------------------------------------
Sub StartClient()
' On Error GoTo ErrorHandler
'----------- We freely can choose a ClientHandle and GroupName
ClientHandles(1) = 1
GroupName = "MyGroup"
'----------- Get the ItemID from cell "A1"
NodeName = Range("A1").Value
ItemIDs(1) = Range("A2").Value
'----------- Get an instance of the OPC-Server
Set MyOPCServer = New OpcServer
MyOPCServer.Connect ServerName, NodeName
ErrorHandler:
MsgBox "Error: " & Err.Description, vbCritical, "ERROR"
End Sub
'---------------------------------------------------------------------
' Sub StopClient()
WinCC/Connectivity Pack
236 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
' Purpose: Release the objects and disconnect from the server
'---------------------------------------------------------------------
Sub StopClient()
'----------- Release the Group and Server objects
MyOPCGroupColl.RemoveAll
'----------- Disconnect from the server and clean up
MyOPCServer.Disconnect
Set MyOPCItemColl = Nothing
Set MyOPCGroup = Nothing
Set MyOPCGroupColl = Nothing
Set MyOPCServer = Nothing
End Sub
'---------------------------------------------------------------------
' Sub MyOPCGroup_DataChange()
' Purpose: This event is fired when a value, quality or timestamp in our Group has changed
'---------------------------------------------------------------------
'----------- If OPC-DA Automation 2.1 is installed, use:
Private Sub MyOPCGroup_DataChange(ByVal TransactionID As Long, ByVal NumItems As Long,
ClientHandles() As Long, ItemValues() As Variant, Qualities() As Long, TimeStamps() As
Date)
'----------- Set the spreadsheet cell values to the values read
Range("B2").Value = CStr(ItemValues(1))
Range("C2").Value = Hex(Qualities(1))
Range("D2").Value = CStr(TimeStamps(1))
End Sub
'---------------------------------------------------------------------
' Sub worksheet_change()
' Purpose: This event is fired when our worksheet changes, so we can write a new value
'---------------------------------------------------------------------
Private Sub worksheet_change(ByVal Selection As Range)
'----------- Only if cell "B3" changes, write this value
If Selection <> Range("B3") Then Exit Sub
Values(1) = Selection.Cells.Value
'----------- Write the new value in synchronous mode
MyOPCGroup.SyncWrite 1, ServerHandles, Values, Errors
End Sub
See also
How to Configure a WinCC Project on a WinCC OPC DA Server (Page 224)
Introduction
The Excel OPC DA client reads a WinCC tag of the WinCC OPC DA server and writes the value of
the tag into a cell. In the WinCC project of the WinCC OPC DA server, the value of the tag is
displayed in an I/O field. If the tag value in a cell is changed, this alters the value in the I/O field
of the WinCC OPC DA server.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 237
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Requirements
• Configure an internal tag named "OPC_Excel" with data type "signed 16-bit value" in the
WinCC project of the WinCC OPC DA server.
• Write the value of the "OPC_Excel" tag to an I/O field on the WinCC project of the WinCC OPC
DA server.
• Enable the WinCC project of the WinCC OPC DA server.
Procedure
1. In Microsoft Excel, enter the name of the computer used as the OPC server in cell A1. In cell
A2, enter the tag name "OPC_Excel".
2. In the "Tools" menu in Excel, select "Macro" "Macros". The "Macro" dialog is opened.
Select the entry "Sheet1.StartClient" from the list of macros. Click "Run" to start the OPC client.
3. The value of the tag is written into cell B2, the quality code into C2 and the timestamp into
D2.
4. Enter a new value in cell B3. The changed value is displayed in the I/O field on the WinCC OPC
server.
5. In the "Tools" menu in Excel, select "Macro" "Macros". The "Macro" dialog is opened.
Select the entry "Sheet1.StopClient" from the list of macros. Click "Run" to stop the OPC client.
Introduction
The WinCC OPC HDA server is a DCOM application makings data needed from the archive system
available to the OPC HDA client. Access the data using Item Handles. Read or write access is
enabled. The data can also be analyzed.
The WinCC OPC HDA server supports the OPC Historical Data Access 1.20 specification. This
has been confirmed by the compliance test.
The following chapter explains the design of the data structure, as well as the attributes,
aggregates and functions supported by the WinCC OPC HDA server. This is not a detailed
description, but rather a summary of the most important information. For more information,
refer to the "OPC Historical Data Access 1.20" specification.
WinCC/Connectivity Pack
238 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Installation
The WinCC OPC HDA server can be selected during the installation of WinCC. It is possible to
select whether access is made to the WinCC archive system with or without write function . After
installation, the WinCC OPC DA server is immediately available for use without any additional
configuration.
In the case of installation without write access, the data in the WinCC archive system can
only be read and analyzed. In the case of write access, data in the WinCC archive system can
be analyzed, added, deleted and updated.
The WinCC OPC HDA server can be implemented on a WinCC server or a WinCC client.
Licensing
In order to operate the WinCC OPC HDA server, the following licenses must be installed on each
WinCC computer implemented as an OPC HDA server:
• A valid RT license for WinCC
• WinCC Option Connectivity Pack
Notes on configuration
If the WinCC OPC HDA server is used, the application "OPC DA server, OPC A&E server, OPC HDA
server" must be activated.
You can activate the application in the Editor "Computer" of the WinCC Configuration Studio
in the "Processes when starting WinCC Runtime" tab.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 239
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
If the concerned archive segment of the circulation archive has already been swapped out,
then the change is not done subsequently in the swapped-out archive. Even the modified
data is deleted when you delete the archive segment on the WinCC server.
See also
Quality codes (Page 245)
Data Structure of a WinCC OPC HDA Server (Page 240)
www.opcfoundation.org (http://www.opcfoundation.org)
Introduction
The data on the WinCC OPC HDA server are structured. The available data structures are listed
below. This is not a detailed description, but rather a summary of the most important
information. For more information, refer to the "OPC Historical Data Access 1.20" specification.
Data structure
Description
Attributes Provide additional quality characteristics for the raw data. Attributes include data
type, specifications re. archiving, etc. For more information, see the overview of
supported attributes.
Assemblies Summarize raw data of a specified time interval. Aggregates include average value,
minimum, maximum, etc. For more information, see overview of supported ag‐
gregates.
StartTime/ Set the beginning and end point for the time interval.
EndTime
Bounding values Values recorded at the beginning and end. If no bounding values are available, the
values closest to these times are used as bounding values.
Raw data Data from the WinCC archive system of a particular time interval. These data include
a time stamp and quality rating.
Item handle Unique assignment to a WinCC archive tag.
ItemID Unique identifier of the WinCC archive tag. The ItemID can be used to get an item
handle.
See also
Overview of the supported functions (Page 242)
Time Format of a WinCC OPC HDA Server (Page 243)
WinCC/Connectivity Pack
240 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The following table contains the attributes supported by the WinCC OPC HDA server.
For more information, refer to the "OPC Historical Data Access 1.20" specification.
Attributes
See also
Data Structure of a WinCC OPC HDA Server (Page 240)
www.opcfoundation.org (http://www.opcfoundation.org)
Introduction
The following table lists the aggregates supported by the WinCC OPC HDA server. For more
information, refer to the "OPC Historical Data Access 1.20" specification.
Assemblies
Assembly Description
OPCHDA_COUNT Returns the raw data count for the specified time interval.
OPCHDA_START Returns the initial value of the raw data at the beginning of the time
interval.
OPCHDA_END Returns the final value of the raw data at the end of the time interval.
OPCHDA_AVERAGE Returns the average value of the raw data for the specified time
interval.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 241
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Assembly Description
OPCHDA_TIMEAVERAGE Returns the time-weighted average of the raw data for the specified
time interval.
OPCHDA_TOTAL Returns the sum total value for the specified time interval.
OPCHDA_STDEV Returns the standard deviation of the raw data for the specified time
interval.
OPCHDA_MINIMUMACTUALTIME Returns the minimum value of the raw data and its time stamp for
the specified time interval.
OPCHDA_MINIMUM Returns the minimum value of the raw data for the specified interval.
OPCHDA_MAXIMUMACTUALTIME Returns the maximum value of the raw data and its time stamp for
the specified time interval.
OPCHDA_MAXIMUM Returns the maximum value of the raw data for the specified interval.
OPCHDA_DELTA Returns the difference between the first and last value in the raw
data for the specified time interval.
OPCHDA_REGSLOPE Returns the slope of the regression line of the raw data for the speci‐
fied time interval.
OPCHDA_REGCONST Returns the regression value of the raw data at the starting point.
OPCHDA_REGDEV Returns the standard deviation of the regression of the raw data in
the specified time interval.
OPCHDA_VARIANCE Returns the variance of the raw data for the specified time interval.
OPCHDA_RANGE Returns the difference between OPCHDA_MAXIMUM and OPCH‐
DA_MINIMUM of the raw data for the specified time interval.
OPCHDA_DURATIONGOOD Returns the period of time in which the quality of the raw data was
good. The period is indicated in seconds.
OPCHDA_DURATIONBAD Returns the period of time in which the quality of the raw data was
bad. The period is indicated in seconds.
OPCHDA_PERCENTGOOD Returns the percentage of the raw data of good quality.
OPCHDA_PERCENTBAD Returns the percentage of the raw data of bad quality.
OPCHDA_WORSTQUALITY Returns the worst quality of the raw data for the specified time in‐
terval.
See also
Data Structure of a WinCC OPC HDA Server (Page 240)
Functionality of the WinCC OPC HDA server (Page 238)
www.opcfoundation.org (http://www.opcfoundation.org)
Introduction
The following tables list the functions supported by the WinCC OPC HDA server. These functions
can be used by the OPC HDA client for data exchange. For more information, refer to the "OPC
Historical Data Access 1.20" specification.
WinCC/Connectivity Pack
242 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Read
Function Description
ReadRaw Returns the raw data, its quality and time stamp for the specified time interval.
ReadProcessed Returns the calculated value, the quality of the value and the time stamp for the
specified time interval. The calculated value is determined by the selected aggregate.
ReadAtTime Returns the raw data, its quality and time stamp for a particular time interval. If no
value is available, the value for this point is interpolated.
ReadAttribute Returns the item attributes and time stamp for the specified time interval.
See also
Functionality of the WinCC OPC HDA server (Page 238)
www.opcfoundation.org (http://www.opcfoundation.org)
Introduction
The time interval is specified on the WinCC OPC HDA server by setting the starting and ending
times. The specified time interval determines the observation period for the historical data.
When specifying the times, certain formats must be maintained.
The following options are available for the specification of times:
• Absolute based on UTC
• Relative to the local time of the server
Time format
YYYY/MM/DD hh:mm:ss.msmsms
Parameters
YYYY = year
MM = month
DD = day
hh = hours
mm = minutes
ss = seconds
ms = milliseconds
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 243
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Input example
2002/06/10 09:27:30.000
Time format
keyword +/-offset1 +/-offset(n)
The offset is the deviation from the local time of the server.
Keywords
NOW = current local time on the server
SECOND = current second
MINUTE = current minute
HOUR = current hour
DAY = current day
WEEK = current week
MONTH = current month
YEAR = current year
Offset
+/-S = deviation in seconds
+/-M = deviation in minutes
+/-H = deviation in hours
+/-D = deviation in days
+/-W = deviation in weeks
+/-MO = deviation in months
+/-Y = deviation in years
Example:
DAY - 1D = previous day
DAY-1D + 7H30 = previous day at 7:30
MO-1D+5H = last day of the previous month at 5:00.
NOW-1H15M = one hour and 15 minutes ago
YEAR+3MO= April of this year
WinCC/Connectivity Pack
244 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
See also
Functionality of the WinCC OPC HDA server (Page 238)
www.opcfoundation.org (http://www.opcfoundation.org)
Quality codes
Introduction
Quality codes are used to evaluate the status and quality of the raw data. The quality codes for
OPC are described under "6.8 OPC Quality flags" of the "Data Access Custom Interface Standard
Version 3.00" specifications.
See also
www.opcfoundation.org (http://www.opcfoundation.org)
Supported Write-Accesses
Introduction
The following table shows the write accesses supported by the WinCC OPC HDA server.
Table element:
Description
Cyclic archive The process values to be archived are stored in a cyclic archive. The cyclic archive consists of a config‐
urable number of data buffers. The size and a period of time (e.g. in days) for the data buffer are
defined. If all data buffers are full, the process data in the first data buffer is overwritten.
Cyclic archive after In order to protect process data in the data buffers from being overwritten process, it can be swapped
swapping (exported).
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 245
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Description
Supported by WinCC.
Write Accesses
Yes Yes The data buffer of the corresponding time period is swapped to an
archive backup. Process values cannot be added later to an archive
backup.
No No The cyclic archive is not available. The process value cannot be stor‐
ed.
No Yes The cyclic archive is not available. The process value cannot be stor‐
ed.
Yes Yes The data buffer of the corresponding time period is swapped to an
archive backup. Process values can be deleted from an archive
backup.
WinCC/Connectivity Pack
246 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
No Yes The cyclic archive is not available. The process value cannot be
stored.
Yes Yes The data buffer of the corresponding time period is swapped to an
archive backup. Process values cannot be edited in an archive back‐
up.
No No The cyclic archive is not available. The process value cannot be stor‐
ed.
No Yes The cyclic archive is not available. The process value cannot be stor‐
ed.
Introduction
In the example below, a connection between WinCC and the OPC HDA client is configured. Data
from the WinCC archive system are made available via the WinCC OPC HDA server. The OPC HDA
client accesses the data via item handles. To simplify the configuration process, the OPC HDA
browser is used.
The OPC HDA client from the OPC Foundation is used. All OPC HDA clients conforming to the
OPC Historical Data Access 1.20 specification can access the WinCC OPC HDA server.
Requirements
• Create an internal tag named "OPC_HDA" with data type "unsigned 16-bit value" in the WinCC
project of the WinCC OPC HDA server.
• Create a process value archive called "HDA_ProcessValueArchive" in the WinCC archive
system.
• Create an WinCC archive tag called "OPC_HDA_Tag" in the "HDA_ProcessValueArchive"
process value archive. Link the WinCC archive tag to the internal tag "OPC_HDA".
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 247
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
• In the Runtime list, launch Tag Logging Runtime and disable Graphics Runtime.
• Launch the WinCC project of the WinCC OPC HDA server.
Configuration steps
The following configurations are required to connect WinCC to the OPC HDA client:
1. Configuring access to a WinCC archive tag using the HDA server browser
2. Reading values from the WinCC archive tags
See also
How to Configure Access to a WinCC Archive Tag Using the HDA Server Browser (Page 250)
HDA server browser (Page 249)
Reading Values of WinCC Archive Tags (Page 251)
WinCC/Connectivity Pack
248 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The OPC HDA client accesses the tag values via item handles. For ease of configuration, the
WinCC OPC HDA server supports the browser functionality. The OPC HDA client can use the HDA
server browser to search the address space of the WinCC OPC HDA server. The data are listed
hierarchically by process value archive.
Note
Access to a WinCC archive tag without the HDA server browser requires manual configuration of
the item ID.
When addressing WinCC archive tags, the computer name (server prefix) is included in the path.
The ItemID has the following syntax: Server-prefix::process_value_archive\WinCC_archive_tag.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 249
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
See also
How to Configure Access to a WinCC Archive Tag Using the HDA Server Browser (Page 250)
www.opcfoundation.org (http://www.opcfoundation.org)
How to Configure Access to a WinCC Archive Tag Using the HDA Server Browser
Introduction
In this section, the OPC HDA client is used to access a WinCC archive tag.
The OPC HDA client from the OPC Foundation is used.
The HDA server browser is used to configure access.
Note
Demo client
The OPC HDA client described here is the demo client from the OPC Foundation.
You can find the sources for this on the Internet at http://www.opcfoundation.org.
Procedure
1. Copy the "SampleClientHDA.exe" file from the WinCC installation path
"Siemens\WinCC\documents\English" to a folder of your choice.
2. Double-click the "SampleClientHDA.exe" file.
The "HDA client" program opens.
3. In the "Server Name" area, select entry "OPCServerHDA.WinCC.1".
4. Click "Connect".
Confirm the next dialog.
WinCC/Connectivity Pack
250 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
See also
Reading Values of WinCC Archive Tags (Page 251)
www.opcfoundation.org (http://www.opcfoundation.org)
Introduction
This section explains how you can access and read WinCC archive tags.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 251
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Requirement
• The OPC HDA client must be running.
Procedure
1. Click "Show Items" in the HDA client.
2. Click "Get Item Handles" in the HDA client.
3. Double-click "HDA_ProcessValueArchive_HDA_Tag" in the selection field "Value" selection
field.
4. Enter "NOW-10S" in the "Start Time" field. Enter "NOW" in the "End Time" field.
5. Click "Read Raw". The values, their quality codes and time stamps are shown in the "Values"
selection field.
WinCC/Connectivity Pack
252 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Special features of the OPC HDA server in WinCC for acyclic logging
Introduction
Tag logging is performed in WinCC cyclically or acyclically. The WinCC HDA OPC server works
differently depending on the logging method for tags:
• For all cyclically logged values, the OPC HDA server operates in conformity to the HDA
specification of the OPC foundation. The OPC aggregates are linearly interpolated.
• Acyclically logged tags are not included in the HDA specification of the OPC Foundation. The
OPC aggregates are interpolated incrementally. Especially when a tag experiences no change
for a long period of time, no data is available during a time period. The following should be
taken into consideration to nevertheless obtain valid data.
Note
The OPC HDA server is not OPC-compliant for acyclically logged tags. The HDA specification
of the OPC Foundation does not recognize acyclically logged tags and, therefore, no archive
server can handle acyclically logged tags. The supported aggregates are calculated in
conformity to the OPC HDA specification. No non-explicitly called functions are supported.
Note
If write access to process value archives is enabled, no future values may be added.
Supported aggregates of the WinCC OPC HDA server for acyclically logged tags
The OPC HDA server supports the following aggregates:
• OPCHDA_MINIMUM
• OPCHDA_MAXIMUM
• OPCHDA_AVERAGE
• OPCHDA_END
• OPCHDA_INTERPOLATIVE
• OPCHDA_TIMEAVERAGE
• OPCHDA_TOTAL
• OPCHDA_DURATIONGOOD
• OPCHDA_PERCENTGOOD
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 253
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Supported functions of the WinCC OPC HDA server for acyclically logged tags
• ReadRaw with "boundings" only. ReadRaw for a tag must always be performed with
"boundings", in order to find the last real stored value for an area without logged value
change.
• ReadProcessed
• DeleteRaw
• DeleteAtTime
• Insert
• InsertReplace
• Replace
Example
The values for "00:59:00", "01:02:00" and "01:03:00" are stored for an acyclic tag logging tag.
An OPC HDA client postulates with "ReadProcessed" an aggregate with the following parameters:
• StartTime = 01:00:00
• EndTime = 01:04:00
• Interval = 00:02:00
Note
The time period is always 1 µs less than the time stamp at the limit for the calculation when
generating virtual values at limits ("EndTime"/"Interval").
A delta of 1 seconds is used in the following table to provide a better overview. The following
graphic illustrates the example.
The OPC server uses the following "RawData" for the calculation of the aggregate:
WinCC/Connectivity Pack
254 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The WinCC OPC A&E server is a DCOM application. The OPC A&E client is kept informed of status
changes for WinCC messages by means of subscriptions. The OPC A&E client can apply a filter to
the subscription. This filter determines which messages and attributes are displayed.
The WinCC OPC A&E server supports the specification OPC Alarm&Event 1.10. This has been
confirmed by the compliance test.
The following chapter explains the display of the WinCC message system on OPC A&E, as well
as the attributes supported by the WinCC OPC A&E server. This is not a detailed description,
but rather a summary of the most important information. For more information, refer to the
"OPC Alarms & Events 1.10" specification.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 255
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Installation
The WinCC OPC A&E server can be selected during the installation of WinCC. After installation,
the WinCC OPC A&E server is immediately available for use without any additional configuration.
The WinCC OPC A&E server can be implemented on a WinCC server and a WinCC client.
Licensing
In order to operate the WinCC OPC A&E server, the following licenses must be installed on each
WinCC server implemented as an OPC A&E server:
• A valid RT license for WinCC
• WinCC Option Connectivity Pack
Notes on configuration
If the WinCC OPC HDA server is used, the application "OPC DA server, OPC A&E server, OPC HDA
server" must be activated.
You can activate the application in the Editor "Computer" of the WinCC Configuration Studio
in the "Processes when starting WinCC Runtime" tab.
Server types
The WinCC OPC A&E server supports conditional events and simple events. In addition, there are
tracking events.
Note
Note the following when using redundant systems:
Simple events interconnected to internal tags are sent twice when tags are updated.
The first message is triggered by the master, the second by the standby.
WinCC/Connectivity Pack
256 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
See also
Quality Codes for OPC A&E (Page 262)
Mapping of the WinCC Message System on OPC A&E (Page 257)
www.opcfoundation.org (http://www.opcfoundation.org)
Introduction
During the configuration of the WinCC message system, settings are made to determine which
process events generate a message. This message is shown as an alarm in OPC A&E. The table
below lists the most important parameters of the alarm. It also describes how the information
is made available by the WinCC message system. For more information, refer to "Alarm
Structure".
Overview
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 257
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
See also
Acknowledgement theory (Page 260)
Attributes of the WinCC Message System (Page 259)
Mapping the WinCC message classes and message types (Page 258)
Introduction
The WinCC message system informs the user of disturbances and operating conditions in the
process. A WinCC message always belongs to a specific message class and message type that is
related to the event category.
The mapping of the WinCC message system on OPC is configured via the "CcAeProvider.ini"
file.
Event Category
An event category is created on the WinCC OPC A&E server for every combination of a message
class and type.
An event category is determined by a category ID and a descriptive "Category Description".
The category ID is composed of the WinCC internal IDs for the message class and the
message type; the category description is composed of the message class and message type.
Note
If the OPC A&E server is run on a WinCC client of a connectivity station, the OS servers linked to
it must have an identical configuration of message classes and message types. If this is not the
case, the OPC client used must access the OS server directly.
The names of the message classes and message types can be ascertained exactly via the
alarm attributes "CLASSNAME" and "TYPENAME".
WinCC/Connectivity Pack
258 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The priority of WinCC messages is displayed by the OPC server to the attribute "Severity".
When configuring alarms in the WinCC messaging system, you can configure a priority
between 0 and 16. The OPC A&E specification defines a value range from 1 to 1000 for
the severity where 1 stands for the lowest and 1000 for the highest severity.
Therefore, the values of the WinCC priority are suitably displayed to the OPC severity. In the
standard mapping, the WinCC priority 0 becomes OPC severity 1. All other priority values
are interpolated in a linear manner up to severity 1000. Other priority mapping rules can be
configured in the CcAeProvider.ini file.
Introduction
The following table lists the OPC attributes of the WinCC message system.
The attributes are configured in the WinCC message system.
Some attributes are intended for internal use in WinCC only and are therefore not relevant to
an OPC A&E client. These attributes are not contained in the table.
Attributes
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 259
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Acknowledgement theory
Introduction
For WinCC, the acknowledgment philosophy is how a message is displayed and processed from
"came in" to "went out". On the WinCC OPC A&E server, this message status is managed in
parameters "ChangeMask" and "NewState".
WinCC/Connectivity Pack
260 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
ChangeMask
The "ChangeMask" parameter keeps track of where the message status was changed.
Parameter values:
• OPC_CHANGE_ACTIVE_STATE
• OPC_CHANGE_ENABLE_STATE
• OPC_CHANGE_ACK_STATE
NewState
The "NewState" parameter indicates the message status after a change.
Parameter values:
• OPC_CONDITION_ACTIVE
• OPC_CONDITION_ENABLED
• OPC_CONDITION_ACKED
Overview
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 261
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
See also
www.opcfoundation.org (http://www.opcfoundation.org)
Introduction
Quality codes are used to evaluate the status and quality of a message. The quality codes for OPC
are described under "6.8 OPC Quality flags" of the "Data Access Custom Interface Standard
Version 3.00" specifications.
Quality codes
WinCC/Connectivity Pack
262 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
In the example below, a connection between WinCC and an OPC A&E client is configured. Data
from the WinCC message system are made available via the WinCC OPC A&E server.
The OPC A&E client is kept informed of status changes of WinCC messages by means of a
subscription.
All OPC A&E clients conforming to the OPC Alarms&Events 1.10 specifications can access the
WinCC OPC A&E server.
Configuration Step
The following configurations are required for connection between WinCC and the OPC A&E
client:
1. Configuring access to the WinCC message system
See also
How to Configure Access to the WinCC Message System (Page 263)
www.opcfoundation.org (http://www.opcfoundation.org)
Introduction
In this section, the OPC A&E client of the OPC foundation accesses the WinCC message system.
Note
The OPC A&E client described here is the demo client from the OPC Foundation. The source code
for it is found on the Internet at http://www.opcfoundation.org.
Requirement
• Create several internal tags of the "binary" data type in the WinCC project of the WinCC OPC
A&E server.
• Configure the WinCC message system in the WinCC project of the WinCC OPC A&E server. Link
the messages to the internal tags.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 263
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
• Configure a picture with the Graphics Designer. Add the WinCC alarm control and an I/O field
to the picture. Link the message tags to the graphic objects.
• Enable the "Alarm Logging Runtime" in the start list.
• Enable the WinCC project of the WinCC OPC A&E server.
Procedure
1. Copy the "SampleClientAE.exe" file from the folder "Siemens\WinCC\documents\english" to a
folder of your choice. This application is only available in the online help.
2. Select "OPC" >"Connect..." in the menu bar. Select "OPC.WinCC-AlarmsEvent" in the "OPC
Alarm Server" dialog. Click "OK" to close the dialog.
3. Select "OPC" >"Event Subscription..." from the menu bar. The "Event Subscription" dialog is
opened.
4. Select the check box labeled "Active" in the dialog. Enter "1000" in the "Buffer Time" and "Max
Size" fields. Click "OK" to close the "Event Subscription" dialog.
5. The messages from the WinCC message system are displayed in the OPC Event Sample Client.
6. Select "OPC" >"Filter" from the menu bar. The "Filter" dialog is opened. Select a category from
the "Event Category" field. Click "OK" to close the "Filter" dialog.
7. The messages meeting the filter criteria are displayed in the OPC Event Sample Client.
WinCC/Connectivity Pack
264 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Parameters may be set while creating a subscription. However, you cannot change an
existing subscription using SetState() after the fact.
For more information, refer to http://www.opcfoundation.org.
See also
www.opcfoundation.org (http://www.opcfoundation.org)
Introduction
The OPC-A&E server uses DCOM services for transferring messages between OPC-capable
applications. The OPC A&E server supports the specification OPC Alarm&Event 1.10.
The following chapter explains the mapping of the WinCC message system on OPC A&E with
hierarchical access and the attributes supported by the OPC A&E server. This documentation
includes an overview of the specific information. For more information, refer to the "OPC
Alarms & Events 1.10" specification.
Principle of operation
The OPC-A&E client receives WinCC messages via subscription. You can use the subscription
filter to reduce the number of events that will be transferred with a subscription. The OPC-A&E
client can be set for every event category that displays message attributes.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 265
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Installation
The WinCC OPC A&E server can be selected during the installation of WinCC. After installation,
the WinCC OPC A&E server is immediately available for use without any additional configuration.
The WinCC OPC A&E server can be implemented on a WinCC server and a WinCC client.
Licensing
In order to operate the WinCC OPC A&E server, the following licenses must be installed on each
WinCC server implemented as an OPC A&E server:
• A valid RT license for WinCC
• WinCC Option Connectivity Pack
Event types
The OPC-A&E server with hierarchical access supports conditional events, simple events and
tracking events.
Simple events
Simple events are messages that inform the OPC A&E client about events. Simple events
include, for example, starting or exiting programs.
Note
Note the following when using redundant systems:
Simple events interconnected to internal tags are sent twice when tags are updated.
The first message is triggered by the master, the second by the standby.
Tracking events
A tracking event is sent with a operator input message to the OPC A&E client. An operator
input message is triggered by manual intervention in the process.
WinCC/Connectivity Pack
266 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
If you are using the OPC A&E with hierarchical access and want to use all functions, you may
need to adapt the OPC A&E client currently used.
Note
Documentation on OPC
You can find additional information on OPC in the Chapter "Interfaces > OPC - OLE for Process
Control".
Differences between OPC A&E and OPC A&E with hierarchical access
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 267
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The WinCC message system resulting from the configuration defines which event in the process
will generate a message. This message is shown as an event notification in OPC A&E.
Mapping the WinCC message system on OPC A&E with hierarchical access
The OPC source of the WinCC user text block "2" and the OPC message of WinCC user text block
"1" are used in WinCC as a default setting for mapping the WinCC message systems.
Overview
The following table shows the most important attributes of the event notifications and the
respective information from the WinCC message system.
WinCC/Connectivity Pack
268 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
The events that use the configured attributes are shown in the third column of the table:
• "S" means a simple event
• "C" means a conditional event
• "T" means a tracking event
Note
If text without wild cards are specified as a filter for the area, only the messages of the area are
returned. If you want to include sources that are located in areas outside the specified area, you
need to use wild cards.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 269
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Note
The message classes and message types must be configured identically on the connected OS
servers, if you run the OPC A&E server as follows:
• On a WinCC Client
• On a Connectivity station
If the OS server is not configured identically, the employed OPC client must access the respective
OS server directly.
Introduction
The priority of messages is mapped by the OPC A&E server to the attribute "Severity".
When configuring alarms in the messaging system, you can configure a priority between "0"
and "16". The OPC A&E specification defines a value range of "1" to "1000" for the severity. In
this case, "1" stands for the lowest and "1000" for the highest severity.
Therefore, the values of the priority are suitably displayed to the OPC severity. In the standard
mapping, priority "0" is assigned to OPC severity "1" and priority "16" to OPC severity "1000".
All other priority values are interpolated linearly between "0" and "1000".
Introduction
The following table lists the OPC attributes of the WinCC message system.
The attributes are configured in the WinCC message system.
Some attributes are intended for internal use in WinCC only and are therefore not relevant to
an OPC A&E client. These attributes are not contained in the table.
Attributes
WinCC/Connectivity Pack
270 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 271
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Acknowledgement Theory
Introduction
The acknowledgment policy in WinCC is how a message from "came in" to "went out" is displayed
and processed . On the OPC A&E server, this message status is displayed in the "ChangeMask"
and "NewState" parameters.
Note
Messages with "System, does not require acknowledgment" message class and "Process control
system" message type are transferred as simple events with the "System message" event
category.
ChangeMask
The "ChangeMask" parameter keeps track of where the message status was changed.
Parameter values:
• OPC_CHANGE_ACTIVE_STATE
• OPC_CHANGE_ENABLE_STATE
• OPC_CHANGE_ACK_STATE
NewState
The "NewState" parameter indicates the message status after a change.
WinCC/Connectivity Pack
272 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Parameter values:
• OPC_CONDITION_ACTIVE
• OPC_CONDITION_ENABLED
• OPC_CONDITION_ACKED
Overview
Note
Historical alarms and events are not acknowledged. The OPC A&E historical events interface only
has read access.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 273
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
Quality codes are used to evaluate the status and quality of a message. The quality codes for OPC
are described under "6.8 OPC Quality flags" of the "Data Access Custom Interface Standard
Version 3.00" specifications.
Quality codes
Introduction
You can access the archived messages via the OPC A&E server using an OPC client. Two methods
are supported for accessing archived messages:
• Output archived messages from a time period in the past
• Output archived messages from a time period in the past without mentioning end of period.
After the output of archived messages, all other newly generated messages are automatically
sent to the OPC client.
Note
After reading archived messages, you cannot use the returned "ActiveTime" of a message for
acknowledging the message or tracing transitions of the message. To ensure this, the OPC
A&E client must check the "EventType" of a message with the extra flag
"OPC_HAE_HISTORICAL_EVENTFLAG". The "ActiveTime" is incorrect on archived messages.
You can find information on the additional flag under "Identifying archived messages".
WinCC/Connectivity Pack
274 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Syntax
OPCHAEServer hMode=(read|advise) htStartTime=szTime
[hEndTime=szTime] [bBounds=(TRUE|FALSE)]
Parameter
hMode = [read|advise]
This parameter is required. Defines how the archived messages and events are to be read.
Read: Outputs archived messages and events of a definite period from the past (comparable
to ReadRaw in case of OPC Historical Data Access).
The following is an example for setting a filter for reading over the last 30 minutes:
OPCHAEServer hMode=read htStartTime=NOW-30M bBounds=TRUE
Advise: Outputs archived messages and events from a definite period, After receiving all
archived messages, new messages are sent in the same way as in the case of an active
subscription (comparable to AdviseRaw in case of OPC Historical Data Access).
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 275
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
In the following example, the messages of the last 30 minutes are read (subscription must be
active):
OPCHAEServer hMode=advise htStartTime=NOW-30M
Note
The following notation is supported for parameters "htStartTime" and "htEndTime":
• Relative notations, for example NOW
• Symbolic values, for example NOW, YEAR, MONTH
• Specification of absolute UTC data/time values according to XML notation:
2006-09-01T10:00:00.000Z
Using the symbolic notation corresponds to the syntax from OPC Historical Data Access.
htStartTime =
This parameter is required. Defines the time from when the messages and events are to be
read from the archive.
htEndTime =
This parameter is optional. Defines the time up to which the messages and events are to be
read from the archive. With "hMode = read", the default setting "NOW" is used.
bBounds = [TRUE|FALSE]
This parameter is optional. Defines how messages close to the start and end time are to be
handled. The function is identical to OPC Historical Data Access
bBounds=FALSE:
• The time stamp of the first transferred message >= htStartTime
• The time stamp of the last transferred message >= htEndTime
bBounds=TRUE:
• The time stamp of the first transferred message <= htStartTime
• The time stamp of the last transferred message >= hEndTime
Default setting is FALSE.
Introduction
You can use one of two read modes to read archived messages:
• read
• advise
WinCC/Connectivity Pack
276 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 277
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
The transmission is ended when you set the subscription to "inactive". A "SetFilter" is rejected
while the subscription is active.
A "Refresh" on an active "historical" subscription in "advise" mode functions in the same way
as on a standard subscription:
All queued condition related events are transmitted in packets with Refresh identifier.
A "Refresh" call has no effect on the reading of historical alarms in "advise" mode.
General procedure
Archived messages are distinguished using an additional flag in EventType. This flag is linked to
the real EventType via a OR link.
Examples
Example 1
The following source filter is used to output archived messages and events of the last 30
minutes in "read" mode. The oldest message for each OS server is output as the first one. The
low limit value is also sent.
OPCHAEServer hMode=read htStartTime=NOW-30M bBounds=TRUE
Example 2
The following source filter is used to output archived events on September 1, 2006 from
10:00 to 12:00 hours in "read" mode. The newest message for each OS server is output as
the first one. The limits for this time period are also sent.
OPCHAEServer hMode=read htStartTime=2006-09-01T12:00:00.000Z
htEndTime=2006-09-01T10:00:00.000Z bBounds=TRUE
Example 3
The following source filter is used to output archived messages and events of the last 30
minutes in "advise" mode. After reading the archived messages, newly generated messages
are sent in the same way as for an active subscription.
OPCHAEServer hmode=advise htStartTime=NOW-30M
WinCC/Connectivity Pack
278 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
How it works
The WinCC OPC UA Server provides the following values:
• Process values
• Values from tag archives
• WinCC messages
The WinCC OPC UA server is installed as Windows service and started automatically. The
WinCC OPC UA server supports only the "UA-TCP UA-SC UA Binary" communication profile.
The used port number is adjustable.
Supported specifications
OPC Unified Architecture is a specification for the transmission of process values, archive data
and messages. The WinCC OPC UA server supports OPC UA Specification 1.03. For additional
information about supported UA functions, refer to "Supported OPC UA services and profiles
(Page 287)".
Installation
After WinCC is installed, the WinCC OPC UA server can be used immediately without the need for
any further configuration.
The WinCC OPC UA server can be used on a WinCC server or a WinCC client.
Parameter Description
HostName Placeholder for the computer name. Is used automatically
Port Port number. The default setting is "4862".
Discovery Server
The "Discovery Server" is available by the OPC foundation. The "Discovery Server" is by default
installed on the HMI device as Windows service.
On the "Discovery Server" via OPC UA server UA clients information is available that is
registered on the "Discovery Server".
Depending on the configuration, the WinCC OPC UA server registers on no, on one or on
multiple configured and available "Discovery servers" upon runtime startup. Registration is
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 279
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
then repeated cyclically. If you end Runtime, the WinCC OPC UA server is automatically
logged off from the "Discovery server".
Introduction
The OPC UA security concept is based largely on:
• Authentication and authorization of applications and users involved
• Ensuring the integrity and confidentiality of messages exchanged between the applications
Certificates are the method used for authentication of the OPC UA applications.
Each application has its own instance certificate with which it identifies itself in the public key
infrastructure. The instance certificate is also called the "application certificate".
NOTICE
Access to the folder with the private key
For security reasons, no other users or applications apart from the server and the system
administrator may have access to the private key of the WINCC OPC UA server.
WinCC/Connectivity Pack
280 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
The administrator of the plant can replace the server certificate and the corresponding
private key generated during the installation.
In accordance with the applicable security concept for the system, the new server certificate
can be either self-signed or issued by a certification authority.
The certificates used by the WINCC OPC UA server are determined by the settings in
the "OpcUaServerWinCC.xml" configuration file: You can find additional information under
"Configuration file of the WinCC OPC UA Server (Page 300)".
The WinCC OPC UA certificates are stored in the following folders of the WinCC installation
path:
Parameter Meaning
StoreType Type of certificate storage. The storage location can be either "Directory" or "Win‐
dows".
StorePath The certificates of trusted clients are stored under this folder.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 281
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
In this case, the WINCC OPC UA server trusts all clients whose server certificates are located in
the "…PKI\TrustList\Certs" folder.
For this storage option, the certificates of the clients must be located in the certificate store
of the operating system under "<Local Computer>\UA Applications".
Certificates from certification authorities that are required for verifying a client certificate
chain are stored in the certificate store of the certification authorities. Here too, you specify
storage settings using the WINCC OPC UA server configuration file:
Parameter Meaning
StoreType Type of certificate storage. The storage location can be either "Directory" or "Win‐
dows".
StorePath The certificates of trusted certification authorities are stored under this folder.
Note
Certificates from the memory of the certification authorities are not automatically trusted.
For a certification authority to be trusted, its certificate must be located in the memory for
trusted certificates.
The certificates of trusted certification authorities are in this case located in the "…
\PKI\CA\Certs" folder.
WinCC/Connectivity Pack
282 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
The "StorePath" parameter is not relevant. The certificates from certification authorities must
be stored in the Windows certificate memory in accordance with the operating system
requirements.
Certificates are trusted if they are located in one of these two locations:
• <Local computer>\Trusted root certification authorities
• <Local computer>\Third-party root certification authorities
Note
Important for storage
• The storage location for the server certificate must be "Directory".
• The two storage locations for trusted client certificates and for certificates from certification
authorities must have the same StoreType, i.e. both must either be "Directory" or "Windows".
Note
Here too, only the StoreType "Directory" is supported.
To enable secured communication with this client, you will have to move the rejected
certificate to the certificate store for trusted certificates.
See also
Configuration file of the WinCC OPC UA Server (Page 300)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 283
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The following is ensured at the communication level:
• UA application authenticity
• The confidentiality of messages exchanged
• The integrity of messages exchanged
The security mechanisms used, for example algorithms for encrypting and signing, are
defined by standardized security policies.
The security policies supported by the WinCC OPC UA server are set using the server
configuration file in "ServerConfiguration" and "SecuredApplication".
ServerConfiguration
The XML element "SecurityPolicies" under "ServerConfiguration" contains the list of all available
"Security Profile" and "Message Security Mode" combinations for the server.
1) Requirement for the Use of Security Polices "Basic256Sha256", "Aes128_Sha256_RsaOaep" and "Aes256_Sha256_RsaPss":
Instance certificate with signature algorithm "Sha256" and minimum key length = 2048.
Note
Ensuring secure communication
Secure communication requires server certificates for server and client and a correctly
configured certificate store.
WinCC/Connectivity Pack
284 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
SecuredApplication
In accordance with the OPC UA specification, the security mechanisms and explicitly enabled
and disabled with the "SecurityProfileUris" element under "SecuredApplication".
The diagram below shows a SecuredApplication in which unsecured communication is
disabled:
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 285
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
The WinCC OPC UA server therefore supports the following security strategies at runtime:
• "Basic128Rsa15"
• "Basic256"
• "Basic256Sha256"
• "Aes128_Sha256_RsaOaep"
• "Aes256_Sha256_RsaPss"
With "Message Security Modes Sign" and "SignAndEncrypt", but not unsecured
communication.
When communication is established, the UA clients select the required Policy from this list.
WinCC/Connectivity Pack
286 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
User identity
In addition to the security mechanisms of the communication level, the WinCC OPC UA server
also supports user authentication for the client applications using the UserTokenPolicy
"UserName" and "Certificate".
The client application must provide a valid combination of user certificate and private key
when communication is established. The WinCC OPC UA server checks the combination and
allows communication if the user certificate is trusted.
The UserTokenPolicy is set in the configuration file of the WinCC OPC UA server.
With this configuration, the WinCC OPC UA server supports both anonymous users and the
Policy "UserName" and "Certificate".
OPC UA services
The WinCC OPC A&E Server supports the following described functionality.
The following table summarizes the functionality supported by the OPC UA server 1.0.10:
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 287
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC/Connectivity Pack
288 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
The WinCC OPC A&E Server supports the following OPC UA profiles shown in the following
table, however with restrictions:
Introduction
The WinCC OPC UA server provides OPC UA clients with a hierarchical name area and access to
the following runtime data:
• Process values (WinCC tags and WinCC tag groups)
• Data log inclusive logging tags
• WinCC messages
The name area of the WinCC OPC UA server is attached in the "Objects" default folder.
The following screen shows the name area of the WinCC OPC UA server of an active WinCC
project on the local PC ("@LOCALMACHINE::"):
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 289
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC/Connectivity Pack
290 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 291
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
"OPC Historical Access" enables access to archives and includes the "Historical Data" and
"Historical Events" services. The WinCC OPC UA server supports only the "Historical Data" service.
The WinCC OPC UA Server offers the OPC clients access to the raw data of tag archives via
"Services".
• HistoryRead (READRAW)
• HistoryUpdate (INSERTDATA, REPLACEDATA, UPDATEDATA, DELETE_RAW)
You can read and limitedly write with an OPC UA client the values of archive tags in the
tag archives. Depending on the configuration of the tag archive, the archive tag can contain
either raw data or already processed process values.
WinCC/Connectivity Pack
292 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
• ExceptionDeviation
• ExceptionDeviationFormat
Introduction
As of WinCC 7.3, the OPC UA server provides access to the messages of the WinCC message
system.
The OPC UA server forwards WinCC message status changes to OPC UA clients with WinCC-
Event-Notifications via Subscriptions and Monitored Event Items but does not maintain a
Condition instance in its name space.
The Event Notifier node to be used is the start node of the WinCC name area.
The UA client can filter the messages and define the list of message attributes returned.
The OPC UA server supports the "OPC UA Alarms & Conditions 1.03" specification.
The following section outlines the mapping of the WinCC message system to OPC UA. You
can find additional information in the specification in "Part 9: Alarms and Conditions 1.03
Specification".
Note
Filter shows all WinCC messages
When you filter for "BaseEventType", you receive all WinCC messages.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 293
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCCEventType
This type is based on "BaseEventType" and maps "simple" WinCC messages with the following
acknowledgment theory:
• "Message without status went out" is activated
• "Acknowledgment came in" is not activated
Examples of this type of message are starting and stopping motors.
WinCCAlarmConditionType
This type is based on "AlarmConditionType" and maps all messages which cannot be mapped
on "WinCCEventType", for example, acknowledgeable messages and messages with the
status "came in" and "went out".
At a message of the "WinCCAlarmConditionType" type, the event is linked to a condition. For
example, WinCC generates a message as soon as a tag limit is violated. This message in OPC
UA is equivalent to an Alarm Condition.
Priority
When configuring messages in the WinCC message system, you can configure a priority between
"0" and "16". The OPC UA specification defines a value range of "1" to "1000" for the Severity. "1"
stands for the lowest and "1000" for the highest Severity.
The values of the priority must therefore be suitably mapped to the OPC severity. In standard
mapping, a priority of "0" is assigned to OPC-Severity "1" and a priority of "16" to OPC-Severity
"1000". All other values are interpolated linearly between "0" and "1000".
WinCC/Connectivity Pack
294 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
The following table shows the most important Properties of Events and how the WinCC
message system provides the information.
Note
The following OPC UA Condition and Alarm Properties are not supported by the OPC UA server:
• BranchId
• LastSeverity
• InputNode
• ConfirmedState
• SuppressedState
• ShelvingState
• SuppressedOrShelved
• MaxTimeShelved
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 295
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
WinCC/Connectivity Pack
296 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
SourceName Indicates the source of a message. The Source has the format "<Server pre‐
fix>::Area\UserTextBlock 2". The server prefix of the local computer is "@LO‐
CALMACHINE".
Message Returns the message text of the corresponding message number
SourceName Indicates the source of a message. The Source has the format "<Server pre‐
fix>::localhost::". The server prefix of the local computer is "@LOCALMACHINE".
Message Returns the message text of the corresponding message number
Alarm groups
In WinCC 7.3, the WinCC alarm groups are not displayed in the name area.
Acknowledgment
A WinCC message is acknowledged using the "Acknowledge" method of the
"AcknowledgeableConditionType" node in the standard OPC UA info model.
Only messages of the "WinCCAlarmConditionType" type can be acknowledged.
ConditionRefresh
Messages still pending are established using the "ConditionRefresh" method of the
"ConditionType" node in the standard OPC UA info model.
Filters
The OPC UA client can defined a filter for Monitored Event Items .
The following operators are, however, not supported by the OPC UA server:
• FilterOperator_Cast
• FilterOperator_BitwiseAnd
• FilterOperator_BitwiseOr
• FilterOperator_RelatedTo
• FilterOperator_InView
See also
Attributes of the WinCC message system (Page 298)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 297
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Overview
The following table lists the configurable attributes of the WinCC message system. The attributes
are mapped 1:1 as UA Event Properties .
WinCC/Connectivity Pack
298 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
See also
OPC UA Alarm & Conditions (Page 293)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 299
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Introduction
The WinCC OPC UA server is configured using the configuration file "OPCUAServerWinCC.xml".
The configuration file is broken down into multiple sections. This section describes the layout
of the configuration file.
The chapter "How to configure the OPC UA server (Page 304)" describes how you configure
the WinCC OPC UA server.
Note
Same parameters: Priority of the files
Some parameters are contained in both configuration files.
If the parameters do not match, the settings of the project-specific configuration file have a
higher priority.
<SecuredApplication>
<BaseAddresses> Configuration of the URL of the WinCC OPC UA server.
<...></...>
</BaseAddresses>
WinCC/Connectivity Pack
300 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
<ServerConfiguration>
<SecurityPolicies> Configuration of the message security modes.
<SecurityPolicy> Use the "none" setting only for test and diagnostics purposes
<...></...>
</SecurityPolicy>
...
</SecurityPolicies>
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 301
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
<ServerConfiguration>
<CertificateDescriptor>
<OrganizationUnit>...</...> Descriptive elements
<Organization>...</...> The parameters can be changed and have no effect on the
<Country>...</...> function of the applications.
<KeyLength>...</...> Length of the private key with which the certificate is created
The length depends on the signature algorithm.
• 1024: Minimum length for secure communication via OPC
UA
• 2048: Minimum length when Sha256 is used 1)
<SignatureAlgorithm>...</.. Signature algorithm used to sign the certificate
.> • Possible values: Sha1, Sha224, Sha256, Sha384, Sha512
• Usual values: Sha1, Sha256
• Default value: Sha256 with key length 2048 1)
<LifetimeInMonths>...</...> Validity period of the certificate in months
After the specified time has expired, the server can no longer
be operated with this certificate.
• Default value: 60
</CertificateDescriptor>
</ServerConfiguration>
WinCC/Connectivity Pack
302 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
1) To establish a secure connection with the Security Policy "Basic256Sha256", the server as
well as the OPC UA client need a certificate with the following values:
• KeyLength: At least 2048
• SignatureAlgorithm: Sha256
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 303
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Requirement
A WinCC project·has been created.
WinCC/Connectivity Pack
304 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
Note
Unsecured communication between client and server
Use the "none" setting only for test and diagnostics purposes.
For secure client/server communication·in production mode, you need to use at least the
following settings:
• SecurityPolicy:·Basic128Rsa15
Message·Security·Mode:·Sign
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 305
WinCC/Connectivity Pack documentation
2.6 Access vie OPC - Open Connectivity
2.6.2.10 Diagnostics
Trace file
All servers offer the possibility to activate the output of diagnostic data for test purposes and for
troubleshooting.
The data of a server is written to a trace file.
Setting
You specify the output of diagnostic data in the configuration file of the respective server.
For more information, refer to the SIMATIC Customer Support.
WinCC/Connectivity Pack
306 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Overview
The following examples demonstrate different ways of displaying and analyzing archive data.
See also
Example: Configuring the Access to Archive Data Using VB (Page 307)
Example: Configuring Access to Archive Data Using DataConnector Wizard (Page 309)
Example: Reading Process Value Archive With WinCC OLE DB Provider and Visual Basic 6
(Page 315)
Example: Reading Process Value Archive With WinCC OLE DB Provider and Visual Basic.NET
(Page 321)
Example: Reading Message Archive Data with the WinCC OLE DB Provider and Visual Basic 6
(Page 325)
Example: Reading Message Archive Data With WinCC OLE DB Provider and Visual Basic.NET
(Page 329)
Introduction
The following example shows how to configure a tabular display with Microsoft controls. You
may also use other controls or program your own.
Requirements
Archive files are local on the computer and must be connected to the SQL server, e.g., using the
WinCC Archive Connector.
Procedure
1. In Visual Basic Editor, create a new form that you want to use for displaying the archive data.
2. In Visual Basic Editor, select the menu commands "Project > Components".
3. Activate the controls that you want to use, e.g. an "MS Data Grid Control" and an "MS ADO
Data Control".
The related symbols are displayed in the toolbox.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 307
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
4. In your form, create an "MS Data Grid Control" for tabular display of archive data, and an "MS
ADO Data Control" for navigation within the tabular display.
5. Mark the MS Data Grid Control and select the entry "Adoc1" in the property window under
"DataSource" in order to link the two controls.
6. Mark the MS ADO Data Control and click the button "..." in the Property window under
"Connection String".
This opens the "Property pages" dialog.
7. Click on the "Create..." button next to the entry "Use Connection Character Sequence".
The "Data Link Properties" dialog opens.
8. In the "Provider" tab, select "WinCC OLE DB Provider for Archives" and click on "Next".
9. In the "Connection" tab, enter the data source in the "DataSource" box: <computer
name>\WinCC.
Test the connection by clicking on the button "Test Connection".
Select the Extended tab. After that, switch to the "All" tab without further changes. This step
is necessary to correctly set all parameters for the subsequently created connection character
set.
10.In the "All" tab, enter the name of the WinCC database in the "Catalog" box. The database
name can be found in the SQL Enterprise Manager at "SQL Server Group" > "<Computer
Name>\WinCC" > "Databases" > "<Database name_R>".
If the project is active, only use database names that end with "R".
If you have connected exported WinCC archives to the SQL Server via the WinCC Archive
Connector, use the symbolic name of the database or export directory.
Confirm your settings with "OK".
WinCC/Connectivity Pack
308 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
11.Mark the MS ADO Data Control and click the button "..." in the Property window under
"RecordSource". This opens the "Property pages" dialog.
Select the setting "1 - adCmdText" for the command type and enter a valid statement such as
TAG:R,1,'0000-00-00 00:10:00.000','0000-00-00 00:00:00.000' in the "Command text
(SQL)" box.
To access process values of the following tag types, replace the "TAG:R" schema with
"TAG_EX:R":
– Text tag, 8-bit character set / 16-bit character set
– Floating-point number 64-bit IEEE 754
12.Confirm your entries with "OK" and start Visual Basic Runtime.
Introduction
The following example shows how to configure a tabular display of process values using the
DataConnector Wizard in WinCC Graphics Designer.
Alternatively, you may also use the DataConnector Wizard to configure the display of
messages or graphical display of process values.
Requirements
• WinCC Basic system and Connectivity Pack are installed.
• Archive files are connected to the desired SQL server, e.g., using WinCC Archive Connector.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 309
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Procedure
1. Open Graphics Designer and select the entry "Create New Picture" in the "DataConnector"
menu. A new process picture opens and the dialog "DataConnector - Select Object" is
displayed.
2. For this example, select the option "Display Tag Values in Table Form" and then click the
"Continue" button.
WinCC/Connectivity Pack
310 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Click "Continue".
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 311
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Click "Continue".
WinCC/Connectivity Pack
312 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 313
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
6. The DataConnector Wizard will insert several elements into the opened process picture.
The selected server, the database and the time frame are displayed in the static text fields at
the top.
Next to them there will be a text with the selected archive tags and the selection field for the
archive tag.
As per the selection "Display tag values as tables", a data grid control, an ADO data control
and a button are inserted below them.
Save the process screen.
In order to change the configured values, open this process picture and select the entry
"Modify existing connection" in the "DataConnector" menu. The Wizard will restart and you
may change the configured values.
7. Start WinCC Runtime and open this process picture with the database query. The query will
be initially executed directly upon opening of the process picture.
In Runtime, the data found will be displayed in tabular form in Data Grid Control, and you may
navigate within the table using ADO Data Control.
With more than one configured archive tags, the tag, whose values are to be displayed can
be chosen in the selection field.
WinCC/Connectivity Pack
314 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
The displayed data can be updated via the "Update" button, for example, if the most recent
hour was indicated as a relative time frame.
Note
Archive query using data connector control on the Web client
If an archive query is to be performed on a WebNavigator client using the DataConnector
control in a process picture, the Connectivity Pack client must also be installed on the Web
client.
See also
Querying Alarm Message Archives (Page 177)
Querying Process Value Archives (Page 170)
2.7.4.1 Example: Reading Process Value Archive With WinCC OLE DB Provider and Visual
Basic 6
Introduction
In this example, the values of the last 10 minutes of the tag "Tag_1" are read from the local WinCC
RT database.
The data is displayed in a ListView with a time stamp, value and quality code. The output of
values is limited to 100 (constant NMAX = 100).
The example does not include error processing.
Procedure
1. Create a WinCC tag named 'Tag_1'.
2. Create a process value archive named "ArTags".
Connect the WinCC tag "Tag_1" with the process value archive.
3. Create a Visual Basic project.
Connect a MS Windows Common Controls 6.0 ListView control with the name "ListView1".
The columns in the ListView are created by the script.
Set the property "View" to the option "3 - lvwReport" on the ListView control.
4. Create a "CommandButton".
Copy in the script from the section "Example Script" below.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 315
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Example Script
Note
Improving performance
To improve the performance, note the following information:
• Replace the "Data Source=.\WinCC" instruction with the "Data
Source=<ComputerName>\WinCC" instruction.
• For the query, use "ValueID" instead of "<ArchiveName>\<TagName>".
In the example script, the expression 'ArTags\Tag_1' under point 1.2 would have to be
replaced by a "ValueID".
WinCC/Connectivity Pack
316 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Option Explicit
Const NMAX = 100
Private Sub Command1_Click()
Dim sPro As String
Dim sDsn As String
Dim sSer As String
Dim sTagSchema As String
Dim sCon As String
Dim sSql As String
Dim conn As Object
Dim oRs As Object
Dim oCom As Object
MsgBox "Open with:" & vbCr & sCon & vbCr & sSql & vbCr
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 317
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
' 3.1 Fill standard listview object with recordset according to schema
If sTagSchema = "TAG" Then
Display oRs
Else
DisplayEx oRs
End If
End Sub
Dim m, n, s, nRec
m = oRs_in.Fields.Count
n = 0
nRec = NMAX
If (m > 0) Then
oRs_in.MoveFirst
n = 0
Do While (Not oRs_in.EOF And n < nRec)
n = n + 1
WinCC/Connectivity Pack
318 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
oRs_in.MoveNext
Loop
oRs_in.Close
Else
End If
End Sub
Dim m, n, s, nRec
m = oRs_in.Fields.Count
n = 0
nRec = NMAX
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 319
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
If (m > 0) Then
oRs_in.MoveFirst
n = 0
Do While (Not oRs_in.EOF And n < nRec)
n = n + 1
SplitDateTimeAndMs oRs_in.Fields(1).Value, strDateTime, iMS 'Split
Millisecond from DateTime
s = FormatDateTime(strDateTime, 2) & " " & FormatDateTime(strDateTime, 3)
Set oItem = ListView1.ListItems.Add()
oItem.Text = s
oItem.SubItems(1) = iMS
oItem.SubItems(2) = oRs_in.Fields(0).Value
oItem.SubItems(3) = oRs_in.Fields(3).Value
oItem.SubItems(4) = Hex(oRs_in.Fields(4).Value)
oItem.SubItems(5) = Hex(oRs_in.Fields(5).Value)
oRs_in.MoveNext
Loop
oRs_in.Close
Else
End If
End Sub
Dim diff
Dim dtTemp
Dim lTemp As Long
diff = (CDbl(dtDateTimeWithMs_in) -
CDbl(CDate(CStr(dtDateTimeWithMs_in)))) * lTemp
If (diff < 0) Then
diff = 1000 + diff
dtTemp = CDbl(dtDateTimeWithMs_in) - diff / lTemp
strDateTime_out = CDate(dtTemp)
Else
strDateTime_out = CDate(dtDateTimeWithMs_in)
End If
strMs_out = "00" & Round(diff)
strMs_out = Right(strMs_out, 3)
WinCC/Connectivity Pack
320 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
End Sub
See also
Displaying Process Value Archives (Page 167)
Querying Process Value Archives (Page 170)
Querying the Archive Data (Page 169)
Establishing the Connection to the Archive Database (Page 165)
2.7.4.2 Example: Reading Process Value Archive With WinCC OLE DB Provider and Visual
Basic.NET
Introduction
In this example, the values of the last 10 minutes of the tag "Tag_1" are read from the local WinCC
RT database.
The data is displayed with a time stamp, value and quality code in a ListView.
The output of values is limited to 100 (constant MaxRows = 100).
The example includes simple error handling.
Procedure
1. Create a WinCC tag named "Tag_1".
2. Create a process value archive named "ArTags".
3. Connect the WinCC tag "Tag_1" with the process value archive.
4. In Visual Studio, create a new Visual Basic project of the "Windows Application" type.
5. Change to Designer View mode and enlarge the Windows Form "Form1" to a size of approx.
500x600.
6. Drag a "ListView Control" from the Toolbox to the left upper corner of the form and enlarge
it to approx. 400x450.
7. Drag a button from the Toolbox to the middle of the form below the Control.
The button will automatically be named "Button1".
8. Double-click the button and add the VB.NET sample code listed below IN FRONT OF the
instruction "End Sub" in the method "Private Sub Button1_Click".
9. Select "Build > Build Solution" in the menu or press <CTRL+Shift+B> to compile the finished
VB.NET project.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 321
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
WinCC/Connectivity Pack
322 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Example Script
ProviderName = "Provider=WinCCOLEDBProvider.1;"
CatalogName = "Catalog=CC_CPSample_07_10_09_13_44_26R;"
DataSourceName = "Data Source=.\WinCC"
' 1.3 Define command string for OLE DB access (relative time range, last 10
minutes)
CommandString = TagSchema + ":R,'ArTags\Tag_1','0000-00-00
00:10:00.000','0000-00-00 00:00:00.000'"
Try
DBConnection.Open()
DBReader = DBCommand.ExecuteReader()
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 323
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Me.ListView1.View = View.Details
Me.ListView1.GridLines = True
Me.ListView1.TabIndex = 0
Me.ListView1.Width = 400
Me.ListView1.Columns.Add("TimeStamp", HorizontalAlignment.Center)
Me.ListView1.Columns(0).Width = 150
Me.ListView1.Columns(0).Text = "Time Stamp"
Me.ListView1.Columns.Add("Value", HorizontalAlignment.Center)
Me.ListView1.Columns(1).Width = 60
Me.ListView1.Columns(1).Text = "Value"
Me.ListView1.Columns.Add("QC", HorizontalAlignment.Center)
Me.ListView1.Columns(2).Width = 60
Me.ListView1.Columns(2).Text = "Quality Code"
Me.ListView1.Columns.Add("Flags", HorizontalAlignment.Center)
Me.ListView1.Columns(3).Width = 60
Me.ListView1.Columns(3).Text = "Flags"
DBTimeStamp = DBReader.GetDateTime(1)
If TagSchema = "TAG" Then
DBValue = DBReader.GetValue(2)
DBQualityCode = DBReader.GetInt32(3)
DBFlags = DBReader.GetInt32(4)
Else
DBValue = DBReader.GetValue(3)
DBQualityCode = DBReader.GetInt32(4)
DBFlags = DBReader.GetInt32(5)
End If
WinCC/Connectivity Pack
324 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Me.ListView1.Items.Add(SingleRow)
Count = Count + 1
End While
' 4 Clean up
DBReader.Close()
DBConnection.Close()
End Try
2.7.5.1 Example: Reading Message Archive Data with the WinCC OLE DB Provider and
Visual Basic 6
Introduction
In this example, a time interval of 10 minutes is read from the alarm message archive data.
The data are displayed in a ListView Control with a time stamp, message number, status and
message type.
The example includes simple error handling.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 325
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Procedure
1. Create a Visual Basic project.
Connect the MS Windows Common Controls 6.0 ListView Control to the name "ListView1".
2. The columns in the ListView are created by the script.
3. Create a "CommandButton".
Copy in the script from the section "Example Script" below.
4. In the script, change the name of the WinCC Runtime database
"CC_OpenArch_03_05_27_14_11_46R" to that of your own project.
The database name can be found in the SQL Enterprise Manager at "SQL Server Group" >
"<Computer Name>/WinCC" > "Databases" > "<Database name_R>".
5. This example uses the English database table "AlgViewEXEnu".
If you want to read the alarm message archive data of another language, this entry needs to
be modified.
6. Activate WinCC Runtime.
7. start the VB application.
8. Click on the "CommandButton".
Example Script
Note
Improving performance
In order to improve performance, replace the "Data Source=.\WinCC" instruction with the "Data
Source=<Computer name>\WinCC" instruction.
The output of the values is limited to 100 (n >100).
The times indicated refer to system time.
WinCC/Connectivity Pack
326 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Dim m, n, s
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 327
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
End If
Set oRs = Nothing
conn.Close
Set conn = Nothing
ErrorHandlerA:
MsgBox Err.Description
See also
Establishing the Connection to the Archive Database (Page 165)
Displaying Alarm Message Archives (Page 179)
Querying Alarm Message Archives (Page 177)
Querying the Archive Data (Page 169)
WinCC/Connectivity Pack
328 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
2.7.5.2 Example: Reading Message Archive Data With WinCC OLE DB Provider and Visual
Basic.NET
Introduction
In this example, a time interval of 10 minutes is read from the alarm message archive data.
The data are displayed in a ListView Control with a time stamp, message number, status and
message type.
The example includes simple error handling.
Procedure
1. Create a new Visual Basic project in Visual Studio 2005 of the type "Windows Application".
2. Change to Designer View mode and enlarge the Windows Form "Form1" to a size of ca.
600x600.
3. Drag a "ListView Control" from the Toolbox to the left upper corner of the form and enlarge
it to ca. 500x450.
4. Drag a button from the Toolbox to the middle of the form below the Control.
The button will automatically be named "Button1".
5. Double-click the button and add the VB.NET sample code listed below IN FRONT OF the
instruction "End Sub" in the method "Private Sub Button1_Click."
6. Select "Build > Build Solution" in the menu or press <CTRL+Shift+B> to compile the finished
VB.NET project.
7. In the script, adjust the name of the WinCC Runtime database
"CC_CPSample_07_10_09_13_44_26R" to your own project.
The database name can be found in the SQL Server Management Studio under "Object
Explorer > <Computer Name>\WinCC > Databases > <Database name_R>".
8. Activate WinCC Runtime.
9. Select "Debug > Start Debugging" from the menu or press <F5> to start the VB application.
10.Click on the "Button1" button.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 329
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Example Script
ProviderName = "Provider=WinCCOLEDBProvider.1;"
CatalogName = "Catalog=CC_CPSample_07_10_09_13_44_26R;"
DSN = "Data Source=.\WinCC"
Try
DBConnection.Open()
DBReader = DBCommand.ExecuteReader()
Me.ListView1.View = View.Details
Me.ListView1.GridLines = True
Me.ListView1.TabIndex = 0
Me.ListView1.Width = 500
Me.ListView1.Columns.Add("Number", HorizontalAlignment.Center)
Me.ListView1.Columns(0).Width = 90
Me.ListView1.Columns(0).Text = "Number"
Me.ListView1.Columns.Add("Date/Time", HorizontalAlignment.Center)
Me.ListView1.Columns(1).Width = 130
WinCC/Connectivity Pack
330 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
Me.ListView1.Columns(1).Text = "Date/Time"
Me.ListView1.Columns.Add("State", HorizontalAlignment.Center)
Me.ListView1.Columns(2).Width = 60
Me.ListView1.Columns(2).Text = "State"
Me.ListView1.Columns.Add("Type", HorizontalAlignment.Center)
Me.ListView1.Columns(3).Width = 150
Me.ListView1.Columns(3).Text = "Type"
MsgNumber = DBReader.GetInt32(0)
MsgDateTime = DBReader.GetDateTime(2)
MsgMilliSecs = DBReader.GetInt16(3)
MsgState = DBReader.GetInt16(1)
MsgTypeName = DBReader.GetString(34)
ColumnEntry = MsgTypeName
SingleRow.SubItems.Add(ColumnEntry)
Me.ListView1.Items.Add(SingleRow)
Count = Count + 1
End While
' 4 Clean up
DBReader.Close()
DBConnection.Close()
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 331
WinCC/Connectivity Pack documentation
2.7 Examples for Access Using OLE DB Provider
End Try
WinCC/Connectivity Pack
332 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.8 Connectivity Station
Introduction
With the Connectivity Station, you can access WinCC stations with server packages from a
central computer without the WinCC software.
The WinCC stations can be accessed through two different interfaces:
• OPC interfaces of the Connectivity Station
• OLE DB interface of the Connectivity Pack
The access options include different functions.
Licensing
You need the "WinCC Connectivity Station" license to use the OPC interfaces of the
Connectivity Station on a computer without WinCC installation.
If you only use the OPC interfaces of a WinCC installation, you only need the "Connectivity
Pack" license.
The following table shows the rules:
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 333
WinCC/Connectivity Pack documentation
2.8 Connectivity Station
Install
Connectivity Pack
Client/Server
Open STEP 7
project
Create
or import
WinCC station
SIMATIC Manager
Create Connectivity
Station
Configure
Connectivity Station
in HW Config
WinCC/Connectivity Pack
334 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.8 Connectivity Station
See also
Bases of OLE DB (Page 160)
Transparent access to archived data (Page 155)
Functionality of OPC (Page 216)
Use of OPC interface of the Connectivity Station (Page 335)
Use of OLE DB interface of the Connectivity Station (Page 336)
Principle
The Connectivity Station includes the WinCC OPC-Server through which you can access WinCC
stations with server packages, using the OPC client.
You can use the OPC client locally on the Connectivity Station or on a separate computer.
The OPC client requires DCOM access rights to the Connectivity Station.
ES with project Process Historian WinCC Station (1) WinCC Station (2..n)
Data exchange
via OPC
Internal communication
AS (1..n)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 335
WinCC/Connectivity Pack documentation
2.8 Connectivity Station
See also
Basics of the Connectivity Station (Page 333)
Using OPC in WinCC (Page 217)
Access Using OPC to WinCC Archives, Tags, and Messages (Page 154)
Transparent access to archived data (Page 155)
Principle
The Connectivity Station can only be used, if there is a Connectivity Pack Server or a Connectivity
Pack Client installed.
The WinCC OLE DB provider of the Connectivity Pack Server/Client provides an OLE DB
interface.
You can access messages and tags via such OLE DB interfaces.
WinCC/Connectivity Pack
336 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.8 Connectivity Station
ES with project Process Historian WinCC Station (1) WinCC Station (2..n)
Connectivity Station
(uses OLE DB interface
of the Connectivity Pack)
Note
Connectivity Station on a client with own project
If you use the Connectivity Station on a client with own project and use the OLE-DB interface,
then observe the following:
You can only access those WinCC stations, which you entered during the configuration phase of
the Connectivity Station.
Connectivity Station does not use the server packages available on the client.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 337
WinCC/Connectivity Pack documentation
2.8 Connectivity Station
Note
Use project name as "Catalog"
Enter the WinCC project name for "Catalog" for transparent access; e.g.:
"Catalog=WinCC_Project_Name".
See also
Basics of the Connectivity Station (Page 333)
Transparent access to archived data (Page 155)
Analysis Functions for Messages and Process Values (Page 187)
Introduction
In order to set up the Connectivity Station, you will add a new "SIMATIC PC Station" to the system
configuration.
This "SIMATIC PC Station" receives the properties of the Connectivity Station by configuring
the application "SPOSA Application".
Depending on the project type, one of the following objects will be created in the "SPOSA
Application".
• With project type "STEP 7", this is the object "Connectivity Station_(n)".
• With project type "PCS 7", this is the object "Open_PCS7_Station_(n)".
In the following description, the project type "STEP 7" and the respective object name are
used.
Requirements
• The required software for the Connectivity Station is installed on the Connectivity Station PC.
• The system configuration contains WinCC stations with server packages.
Procedure
The configuration procedure for the Connectivity Station consists of the following steps:
1. Create and configure SIMATIC PC Station
2. Assign WinCC Station
3. Transfer connectivity station
WinCC/Connectivity Pack
338 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.8 Connectivity Station
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 339
WinCC/Connectivity Pack documentation
2.8 Connectivity Station
Result
A computer in the hardware configuration in the S7 project is supplemented and configured for
the Connectivity Station.
The required project data has been transferred to this computer.
Introduction
The Connectivity Station allows access to the data of different WinCC stations by means of an
OPC client. For this, the OPC client must simply connect to the Connectivity Station.
The data exchange between the OPC client and the Connectivity Station takes place via the
OPC. The following WinCC OPC-Servers are integrated into the Connectivity Station.
Requirements
• The software for the Connectivity Station is installed on the Connectivity Station PC.
• The Connectivity Station is configured in the S7 project and the project data is transferred to
the computer of the Connectivity Station.
• An OPC client in accordance with the OPC specifications is available.
Result
The OPC client is connected to the Connectivity Station and receives the WinCC data.
See also
Examples for Access Using OLE DB Provider (Page 307)
Access Using OPC to WinCC Archives, Tags, and Messages (Page 154)
WinCC/Connectivity Pack
340 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.8 Connectivity Station
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 341
WinCC/Connectivity Pack documentation
2.9 Connectivity Station for OPC UA
Introduction
With the Connectivity Station, you can access WinCC stations with server packages from a
central computer without the WinCC software.
You can use the OPC UA interface of the Connectivity Station to access the WinCC stations.
Licensing
You will need the "WinCC Connectivity Station" license to use the OPC interface of the
Connectivity Station on a computer without WinCC installation.
If you are only using the OPC interface of a WinCC installation, you will only need the
"Connectivity Pack" license.
The following table shows the rules:
WinCC/Connectivity Pack
342 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.9 Connectivity Station for OPC UA
After the installation, you can set up the access to the WinCC stations with the following
program:
• SIMATIC Manager of STEP 7
The figure below provides an overview of the configuration steps for the Connectivity Station:
Install
Connectivity Pack
Client/Server
Open STEP 7
project
Create
or import
WinCC station
SIMATIC Manager
Create Connectivity
Station
Configure
Connectivity Station
in HW Config
Principle
The Connectivity Station includes the WinCC OPC-Server through which you can access WinCC
stations with server packages, using the OPC client.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 343
WinCC/Connectivity Pack documentation
2.9 Connectivity Station for OPC UA
You can use the OPC client locally on the Connectivity Station or on a separate computer.
The exchange of data between the OPC client and the Connectivity Station takes place via
the OPC UA.
ES with project Process Historian WinCC Station (1) WinCC Station (2..n)
Data exchange
via OPC
Internal communication
AS (1..n)
Server name
The WinCC OPC server "WinCCConnectivity.OPCUAServer" is integrated into the Connectivity
Station.
Introduction
In order to set up the Connectivity Station, you will add a new "SIMATIC PC Station" to the system
configuration.
This "SIMATIC PC Station" receives the properties of the Connectivity Station by configuring
the application "SPOSA Application".
Depending on the project type, one of the following objects will be created in the "SPOSA
Application".
• With project type "STEP 7", this is the object "Connectivity Station_(n)".
• With project type "PCS 7", this is the object "Open_PCS7_Station_(n)".
In the following description, the project type "STEP 7" and the respective object name are
used.
WinCC/Connectivity Pack
344 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.9 Connectivity Station for OPC UA
Requirements
• The required software for the Connectivity Station is installed on the Connectivity Station PC.
• The system configuration contains WinCC stations with server packages.
Procedure
The configuration procedure for the Connectivity Station consists of the following steps:
1. Create and configure SIMATIC PC Station
2. Assign WinCC Station
3. Transfer connectivity station
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 345
WinCC/Connectivity Pack documentation
2.9 Connectivity Station for OPC UA
5. Select the "Object properties" menu command from the shortcut menu.
The "Properties - TIA application" dialog appears: "Connectivity Station" is opened.
6. Change to "Destination System" tab and enter the path to the Connectivity Station PC in the
"Path" field.
As an alternative, you may open a selection dialog via the "Browse..." button and search for
the computer in the network.
– After you have entered the PC name, click the "Apply" button.
– The directory "Automation Projects" will be appended to the computer name.
– Click "OK" to close the dialog.
Always use the default path "<Installation directory>\Siemens\AutomationProjects" for the
Connectivity Station. If you move the Connectivity Station into a different folder after the
installation, access will no longer work.
Result
A computer in the hardware configuration in the S7 project is supplemented and configured for
the Connectivity Station.
The required project data has been transferred to this computer.
2.9.4 Accessing WinCC data with the Connectivity Station (OPC UA)
Introduction
The Connectivity Station allows access to the data of different WinCC stations by means of an
OPC client. For this, the OPC client must simply connect to the Connectivity Station.
The exchange of data between the OPC client and the Connectivity Station takes place via
the OPC UA. The WinCC OPC server "WinCCConnectivity.OPCUAServer" is integrated into the
Connectivity Station.
Requirements
• The software for the Connectivity Station is installed on the Connectivity Station PC.
• The Connectivity Station is configured in the S7 project and the project data is transferred to
the computer of the Connectivity Station.
• An OPC client in accordance with the OPC specifications is available.
WinCC/Connectivity Pack
346 System Manual, 03/2023, A5E52671436-AA
WinCC/Connectivity Pack documentation
2.9 Connectivity Station for OPC UA
Result
The OPC client is connected to the Connectivity Station and receives the WinCC data.
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 347
WinCC/Connectivity Pack documentation
2.9 Connectivity Station for OPC UA
WinCC/Connectivity Pack
348 System Manual, 03/2023, A5E52671436-AA
Index
Configuring access with Visual Basic, 307
Query, 169, 177, 181
A Archive database, 165
Connect, 165
A&E server, 255, 257, 265, 267, 268
Archive system, 62
Condition Related Event, 255
Archive tag, 67
Conditional event, 265
Area names in distributed systems, 75
Hierarchical access, 267
Mapping the WinCC message system, 268
Mapping WinCC message classes and message
types, 268
B
Simple event, 265 Barcode, 66
Tracking event, 255, 265 Basics
A&E Server Connectivity Station, 333, 342
Mapping of the WinCC message system, 257 Bounding values, 240
Access protection for SQL database, 193 Buffer time, 263
Access right, 26, 30, 31
Access via the WinCC OLE DB, 184
Acknowledgement theory, 260 C
Acknowledgment policy, 272
CAL, 77
ActiveX Control, 64
CCAgent, 24
Display in Internet Explorer, 53
Client
Adding a tag, 195, 202
Operating system, 18
Example of OPC DA, 224
Remote access, 24, 62
Address properties, 206
Client Access License, 77
Aggregate functions for analysis, 187
Cluster, 55
Alarm Logging, 75
Color palette, 52
AlarmHitView, 187, 191
Change, 52
ALARMVIEW, 177
CommandText, 169
Analysis functions, 187
Commissioning, 306
Alarm logs, 187
Communication
Alarm Message Archives, 191
IPv4 protocol, 70
Process value archives, 187
Communication drivers, 7, 18
Recordset with the analysis of message
Communication process, 70
archives, 191
Compatibility, 48, 216
Application
Component, 7, 33, 38
Access Using OPC, 154
Communication drivers, 7
Access Via the WinCC OLE DB Provider, 157
Components supplied, 7
Application scenario, 150
Configuration file
Remote access to WinCC archive databases, 150
Certificates, 300
Archive configuration, 67
Layout, 300
Archive Connector, 142
Port number, 300
Archive data, 159, 169, 177, 181
Security settings, 300
Access Via the WinCC OLE DB Provider, 153
Storage location, 300
Access via WinCC OLE DB Provider, 159
URL of the WinCC OPC UA server, 300
as reports on the network, 186
User identification, 300
Configure access with Visual Basic.NET, 321, 329
WinCC logging write access, 300
Configuring access using DataConnector
configuring
Wizard, 309
Optimized WinCC archive write access, 306
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 349
Index
WinCC/Connectivity Pack
350 System Manual, 03/2023, A5E52671436-AA
Index
Languages, 75
Layout
H Print barcode, 66
License, 10, 97
Hardware
DataMonitor, 87
Requirement, 81, 94
Installation, 10
Hardware Requirement, 16
Invalid, 88
Reserved WebUX license, 125
WebNavigator diagnostics client, 97
I License Agreement, 10
I/O field configuration, 224 License type, 10
Example of OPC DA, 224 Licensing
Image painting time, 76 Connectivity Station, 333, 342
Installation, 7, 32, 33, 51, 77, 79 Linked Server, 142
Adapting Security Policy, 32
Component, 33, 38
Connectivity Pack Client, 79 M
Connectivity Pack Server, 77
Manual detachment, 54
Domain, 18
Max size, 263
Multilanguage, 51
Message archive, 169, 177
Notes on installed software, 33
Access with Visual Basic.NET, 329
PDF files, 7
Configuring access using DataConnector, 309
Performing, 33, 45
Displaying data, 179
Performing supplementary installation, 38, 39
Querying archive data, 169, 177
Preparing the installation, 32
Recordset, 179
Removing, 42
Message Archive, 325
Requirement, 81, 94, 99
Access with Visual Basic, 307, 325
Requirements, 15, 16, 18
Querying archive data, 325
Security settings, 108
Message archive data
Supplementary installation of a language, 39
Access with Visual Basic.NET, 329
Upgrade, 101, 104
Message classes on OPC A&E servers, 268
Upgrading an installation, 45
Message types on OPC A&E servers, 268
WebNavigator client, 104, 108, 109, 110
Microsoft SQL Server, 54
WebNavigator Diagnostics Client, 112
Microsoft SQL Server 2014, 10, 11, 42
WebNavigator server, 101
Microsoft SQL Server, 22
Installation Guide, 7
Migration, 75
Installation Notes, 7
Mitsubishi Ethernet
Installed software, 33
Information on communication, 71
Installing
MS OLE DB, 160
Connectivity Station, 334, 342
Multilanguage, 51
Internet Explorer, 18, 53, 92, 121
Installation, 51
Display ActiveX controls, 53
Security settings, 108
IP address, 55
ISDN router, 55
N
Item handle, 240 Netware, 51
Item ID, 240 Novell Netware client, 51
Network adapter, 55
Energy-saving mode, 55
L Network client, 51
Network connection, 55
Language
Speed, 55
Performing supplementary installation, 39
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 351
Index
WinCC/Connectivity Pack
352 System Manual, 03/2023, A5E52671436-AA
Index
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 353
Index
Redundancy, 55 Software, 18
Configuration of standard gateway, 74 Requirement, 18, 81, 94
Redundant server, 55 SQL database, 193
Release SQL master database, 54
Folder, 27 SQL queries
Release share, (See: Folder share) to WinCC databases, 184
Remote access, 24 SQL Server Import/Export, 153
Remote Desktop Protocol, 72 SQL Server Import/Export wizard, 184
Removal, 42 Standard SQL queries
Performing, 42 to WinCC databases, 184
Reporting Services Start menu, 33
Requirements, 186 Structure
Reports with archive data Configuring structure, 208
Available on the network, 186 Using structures on a WinCC OPC DA client, 208
Requirement, 15 Using WinCC OPC client, 209
Hardware, 16, 81, 94 Structure properties, 208
Installation, 81, 94 Structure tag, 208
Operating system, 18, 81, 94 Configuring structure tag, 208
Software, 18, 81, 94 Supplementary installation, 38, 39
Runtime, 54 Languages, 39
Displaying online help, 51 Performing, 38, 39
Server failure, 54 Support, 135, 138
Support request, 138
Swapped out WinCC archives on removable
S media, 161
System diagnostics, 138
S5 PROFIBUS DP
System stability, 61
Information on communication, 71
S7 Protocol Suite, 70
Information on communication, 70
Time change with AR_SEND, 70
T
S7DOS, 70 Tag
Safety, 24, 26 Adding a tag, 195
Scope of delivery, 7 Configuring HDA server browser, 250
Screen, 52 Configuring OPC Item Manager, 202, 206
Screen resolution, 52 Example of OPC DA, 230, 233, 237
Screen savers, 48 Example of OPC HDA, 250, 251
Security Controller, 33 HDA server browser, 249
Security policy, 32 OPC Item Manager, 202
Server R, 170
Operating system, 18 Tag selection, 195
Server names Tags with @ prefix, 75
WinCC OPC-Server, 336 TCP/IP protocol, 55
Server prefix, 55 Technical support, (See support)
Share, 26, (See: Folder share) Terminal bus
SIMATIC 505 TCPIP Large amounts of data, 67
Information on communication, 71 Terminal service, 99
SIMATIC HMI, 26, 30, 31 the Connectivity Station
User group, 26 Accessing WinCC station via, 340, 347
SIMATIC Manager The WinCC Station
User Rights, 26 Access ~ via the Connectivity Station, 340, 347
SIMATIC Security Controller, 33 Time synchronization, 62
TIMESTEP, 170
WinCC/Connectivity Pack
354 System Manual, 03/2023, A5E52671436-AA
Index
Toolbar, 24 WebNavigator
Transparent access Demo Project, 112
with OLE DB, 337 DVD contents, 94
with OPC, 336 Installation requirements, 94
Licenses, 97
WebNavigator client, 94, 109, 110
U Installation, 104
Installation under the Windows Server, 104
Uninterruptible power supply, 55
Licenses, 97
Unsigned driver, 32
Upgrade, 104
Unsigned file, 32
WebNavigator diagnostics client, 94
Upgrade, 101, 104
WebNavigator Diagnostics Client
Upgrade installation, 10, 45
Installation, 112
Performing, 45
WebNavigator server, 94
UPS, 55
Installation, 101
URL
Licenses, 97
OPC UA Server, 279
Upgrade, 101
Use
WebUX
OLE DB interface of the Connectivity Pack, 336
Installation, 126
OPC interface of the Connectivity Station, 335,
Licensing, 124, 126
343
Reserve license, 125
Use case, 147, 148, 149, 151, 152
WinCC, 55, 60
Access to local WinCC Archive Database, 149
as OPC DA client, 194, 211
Access to local WinCC RT Database, 147
as OPC XML client, 194
Access to local WinCC user archives, 151
General information, 60
Access Via the WinCC OLE DB Provider, 153
Installation, 7, 15, 32
Remote Access to WinCC RT Databases, 148
Installation requirements, 16, 18
Remote Access to WinCC User Archives, 152
Limit access, 26
User account, 219
Notebook, 55
Making OPC computers known, 219
OPC in WinCC, 194, 211, 217
User archive, 181, 183
Performing installation, 33
Displaying data, 183
Performing supplementary installation, 38, 39
Querying archive data, 181
Preparing the installation, 32
User authorization, 76
Remote access, 24
User group, 26
Removing, 42
Domain-global user group, 30
upgrade, 44
Include project, 31
Upgrading an installation, 45
SIMATIC HMI, 26, 30, 31
Use in multiple domains, 55
Use within a domain, 55
WinCC DVD, 7
V WinCC - Microsoft Excel Connection, 234
VBA, 66 Example of OPC DA, 234
Virtualization, 17 WinCC - OPC HDA client connection, 247
Virus scanner, 48 Example of OPC HDA, 247
Visual Basic, 307 WinCC - SIMATIC NET FMS OPC server
Access to Archive Data, 307 connection, 227
Visual Basic .NET, 321, 329 Example of OPC DA, 227
Access to Archive Data, 321, 329 WinCC - SIMATIC NET S7 OPC server connection, 229
Example of OPC DA, 229
WinCC - WinCC connection, 223
W Example of OPC DA, 223
WinCC Archive Connector, 142, 161
Web client, (See WebNavigator client)
WinCC/Connectivity Pack
System Manual, 03/2023, A5E52671436-AA 355
Index
WinCC/Connectivity Pack
356 System Manual, 03/2023, A5E52671436-AA