WinCC V7 IDB 5 XML en
WinCC V7 IDB 5 XML en
https://support.industry.siemens.com/cs/ww/en/view/109483465
Warranty and Liability
Note The Application Examples are not binding and do not claim to be complete with regard to
configuration, equipment or any contingencies. The Application Examples do not
represent customer-specific solutions. They are only intended to provide support for
typical applications. You are responsible for the correct operation of the described
products. These Application Examples do not relieve you of the responsibility of safely
and professionally using, installing, operating and servicing equipment. When using these
Application Examples, you recognize that we cannot be made liable for any
damage/claims beyond the liability clause described. We reserve the right to make
changes to these Application Examples at any time and without prior notice. If there are
any deviations between the recommendations provided in this Application Example and
other Siemens publications – e. g. catalogs – the contents of the other documents shall
have priority.
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of fundamental contractual obligations (“wesentliche
Vertragspflichten”). The compensation for damages due to a breach of a
fundamental contractual obligation is, however, limited to the foreseeable damage,
typical for the type of contract, except in the event of intent or gross negligence or
Siemens AG 2016 All rights reserved
injury to life, body or health. The above provisions do not imply a change of the
burden of proof to your detriment.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of Siemens AG.
Security Siemens provides products and solutions with Industrial Security functions that support
informa- the secure operation of plants, systems, machines and networks.
tion In order to secure plants, systems, machines and networks against cyber threats it is
necessary to implement (and to maintain continuously) a holistic, state-of-the-art Industrial
Security concept. With this in mind, Siemens’ products and solutions are only part of such
a concept.
It is the client’s responsibility to prevent unauthorized access to his plants, systems,
machines and networks. Systems, machines and components should only be connected
with the company’s network or the Internet, when and insofar as this is required and the
appropriate protective measures (for example, use of firewalls and network segmentation)
have been taken.
In addition, the recommendations by Siemens regarding the respective protective
measures have to be observed. For more information on Industrial Security, visit
http://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development in order to make them
even more secure. Siemens explicitly recommends to carry out updates as soon as the
respective updates are available and always only to use the current product versions. Use
of product versions that are no longer supported, and failure to apply latest updates may
increase customer’s exposure to cyber threats.
In order to always be informed about product updates, subscribe to the Siemens Industrial
Security RSS Feed at http://www.siemens.com/industrialsecurity.
Table of Contents
Warranty and Liability ................................................................................................. 2
1 Task ..................................................................................................................... 4
1.1 Overview............................................................................................... 4
1.2 Requirements of the automation task .................................................. 5
2 Solution............................................................................................................... 6
2.1 Overview............................................................................................... 6
Example project .................................................................................... 6
2.2 Description of the core functionality ..................................................... 7
2.3 Sequence of the core functionality ....................................................... 7
2.4 Hardware and software components ................................................... 8
3 Application example:....................................................................................... 10
3.1 Overview............................................................................................. 10
3.2 SIMATIC WinCC V7 ........................................................................... 10
3.2.1 Preparing the project environment in SIMATIC WinCC V7 ................ 10
3.2.2 Function description of the WinCC application .................................. 12
3.2.3 Operating the WinCC application ....................................................... 12
3.3 IDB configuration system (CS) ........................................................... 14
3.3.1 Creating and configuring the IDB project ........................................... 15
3.3.2 Creating links graphically ................................................................... 16
3.3.3 Configuring the OPC Data Access interface as provider ................... 19
Siemens AG 2016 All rights reserved
1 Task
1.1 Overview
Introduction
WinCC/IndustrialDataBridge V7.4 (IDB) is a WinCC option which enables easy and
fast configuration of data exchange between various automation systems across
various standard interfaces, e.g.:
• OPC XML,
• WinCC OLE DB or
• Send/Receive.
The WinCC/IndustrialDataBridge V7.4 also provides data exchange with other
applications for the analysis and storage of process values in Office formats, such
as:
• CSV/TXT,
• Microsoft Excel or
• Microsoft Access.
It is also possible to integrate databases (e.g. SQL Server, Oracle) for archiving
larger amounts of data.
Siemens AG 2016 All rights reserved
The figure below shows a schematic overview of the different applications and
format supported by the WinCC/IndustrialDataBridge V7.4.
Figure 1-1
The data interfaces shown in Figure 1-1 are integrated via software modules.
These modules are structured as follows:
Provider module
The provider module establishes the connection to the data source which delivers
the data.
Consumer module
The consumer module connects to the data target where the data are written.
Note You can connect different providers and consumers with each other. The
following must be observed:
• Saving IDB online values from the WinCC data manager outside WinCC in a
“Free Text Editor” XML file even as a consumer. This XML file can be used (as
1
a template) by SAP application systems , among others, via a message-based
interface. This fulfills the following objectives:
– Structured data exchange
– Base structure of different complex structures of different application
systems as simple as possible.
1
See Chapter 4.1
2 Solution
2.1 Overview
This documentation leads you through the configuration of
WinCC/IndustrialDataBridge V7.4 using a practical example.
The included TIA example project provides the required environment for the data
transfers between provider and consumer modules to be created in the
WinCC/IndustrialDataBridge V7.4.
Example project
The included WinCC project “WinCC_IDB_Application_5” enables reading online
tag values from the WinCC data manager of SIMATIC WinCC V7.
This example provides WinCC/IndustrialDataBridge V7.4 with the environment for
transferring the online tag values which can then be transferred via the “Free Text
Editor” module in XML format.
Figure 2-1 below shows a schematic overview of the sample project in WinCC
Runtime:
Figure 2-1
Siemens AG 2016 All rights reserved
Figure 2-2 shows a schematic diagram of the process sequence and the interfaces
used in the WinCC/IndustrialDataBridge V7.4.
Figure 2-2
Siemens AG 2016 All rights reserved
Software components
Table 2-1
Component Qty Article number
SIMATIC WinCC V7.3 1 6AV63.1-....7-3...
WinCC/IndustrialDataBridge 1 6AV6362-4AA07-4…
V7.4
Windows 7 SP1 64-bit 1
3 Application example:
In this chapter, you will learn how to online tag values from the WinCC data
manager to an XML file using
• WinCC/IndustrialDataBridge V7.4 and
• SIMATIC WinCC V7
3.1 Overview
The application example shows how to perform the following steps in the
WinCC/IndustrialDataBridge V7.4 using the WinCC project
“WinCC_IDB_Application_5”:
• Creating a new IDB project
• Creating the relevant link
• Configuring the respective provider/consumer links
• Setting the transmission behavior.
Assumed knowledge
No previous knowledge is required to understand the functional description of the
WinCC application.
This chapter describes the required steps for adjusting the project environment of
the WinCC project “WinCC_IDB_Application_5.MCP” included in the delivery for
SIMATIC WinCC V7 in order to avoid error messages when activating the WinCC
Runtime.
Table 3-1
No. Procedure
1. Start the SIMATIC WinCC Explorer.
2. Click on “File > Open” and select the WinCC project
“WinCC_IDB_Application_5.MCP” to open the project.
No. Procedure
3. In the WinCC Explorer window:
• Click the “Computer” icon in the WinCC Explorer (1).
• In the work area, right-click the computer name with “Server computer”
type (2).
• Then click on “Properties” (3).
Siemens AG 2016 All rights reserved
Figure 3-1 shows the WinCC application directly after activating the WinCC
Runtime.
Figure 3-1
2
Siemens AG 2016 All rights reserved
3
7
4
Table 3-2
No. Description
1. WinCC/IndustrialDataBridge Runtime (embedded in WinCC)
2. Existing IDB link(s)
3. Input field for the raw material name
4. Input field for number of pieces
5. Updating the IBD trigger
6. Opening the XML file (data target)
7. Preview of the latest tags exported to the XML file
This section describes how to establish a write access to the online tag values in
WinCC Manager.
Table 3-3
No. Procedure
1. Enter the desired name in the “Raw material” input field (1).
2. Confirm your entries with the “Enter” button.
3. Enter the desired amount in the “Value” input field (2).
4. Confirm your entries with the “Enter” button.
5. Upon clicking the “Update” (3) button, the IDB trigger stored in the
WinCC/IndustrialDataBridge is activated or set to “1” and transfers or
updates the tags via IDB(RT) in an XML file.
Siemens AG 2016 All rights reserved
Note The values in the XML file are overwritten with every transfer or update.
IDB project
Link(s)
OPC
OPC DA > XML Free Text Editor
Data Access
Siemens AG 2016 All rights reserved
Link settings
No. Procedure
In addition to the traditional way of creating links, IDB V7.4 offers the option to
Siemens AG 2016 All rights reserved
Note Create a link with the “OPC Data Access” interface as provider and the “Free
Text Editor” interface as consumer.
Table 3-6
No. Procedure
1. Double-click the left mouse button on “Add link(s) graphically” below the
“WinCC_XML_Application” project name node in the tree structure (1).
Siemens AG 2016 All rights reserved
No. Procedure
2. Create an “OPC DA > XML” link graphically
• In the “Link configuration” area, select the “OPC Data Access” provider
and drag and drop it in the “Free Text Editor” consumer.
• A new link is indicated by a line (1).
• Enter a unique link name for the new link, e.g. “OPCDA > XML” (2), in the
text field.
2 1
Siemens AG 2016 All rights reserved
Note:
For a better overview, it is sensible to identify the link with the name of the desired
provider and the respective consumer when assigning names. “Provider >
Consumer”
No. Procedure
3. The created link is displayed under the project name in the project tree.
Siemens AG 2016 All rights reserved
The next step is configuring the provider interface (OPC Data Access).
Note Make sure that the WinCC runtime has been activated.
Table 3-7
No. Procedure
1. Double-click the provider node “Provider(OPCDA)” within the created link in the
project tree.
Siemens AG 2016 All rights reserved
The “Computer name” field is automatically filled in after selecting the OPC
server.
2. In the configuration area in the tab “consumer configuration for the free
text editor”
Select the option “XML” in the “Document type” area (1).
In the “File selection” button, click the [...] button and change to the storage path
of the folder containing the “base file” in XML format.
Under: \\...\WinCC_IDB_Application_5\IndustrialDataBridge\XML.
No. Procedure
In the “Open” browser window, select the base file name “OPCDA.XML.xml” (1)
and click on “Open”. (2)
The preconfigured template can be found in the downloaded WinCC project
under:
“\\…\WinCC_IDB_Application_5\IndustrialDataBridge\XML\OPCDA-XML.xml“
1
Siemens AG 2016 All rights reserved
3. The “Output file name” field in the “File selection” area is filled in automatically by
adding the suffix “_Output” to the existing base file name.
Double-click the “Settings” node in the project tree and open the “Settings” window
in the work area. The “Settings” window contains three tabs:
• “Transfer options”,
• “Connection mapping” and
• “Connections”.
Figure 3-3
Siemens AG 2016 All rights reserved
Note Make sure that the WinCC runtime has been activated.
Table 3-9
No. Procedure
1. In the “OPC Data Access transfer settings” window
• In the “Group settings for the provider” area, select the option “Send
values using trigger”.
2. In the “Trigger settings” area, click on the [...] button to select the trigger.
Siemens AG 2016 All rights reserved
No. Procedure
4. In the “Trigger settings” area
Enter “1” in the field “Trigger value” (1).
Enter “0” in the field “Confirmation value” (2).
Note
With these settings, the IDB will send the desired tag values only if the “trigger
value” is set to “1”. After successful transfer to the “OPCDA-XML_Output.xml“
XML file, the IDB resets the “trigger value” to “0” as a confirmation.
• Connections
This application example considers the following tag names from the “OPC Data
Access provider” area for preparing and creating a “Free Text Editor” file:
• RawMaterial: contains the tag name.
• Value: contains the tag value.
To transfer tags from the “OPC Data Access provider” to a “Free Text Editor file”,
the desired column names from the “OPC Data Access provider” area must be
mapped to the “Free Text Editor consumer” area as follows:
Note Make sure that the WinCC runtime has been activated.
Table 3-10
Tag name Column name
(OPC Data Access provider) (Free Text Editor consumer)
RawMaterial Material
Value Value
The figure shows the completed Free Text Editor file after preparation:
Siemens AG 2016 All rights reserved
Proceed as follows:
Note If HTML/XML is used as the base file type, basic knowledge of HTML/XML is
required.
The IndustrialDataBridge V7.4 offers the following options for preparing the “Free
Text Editor” file and for mapping the connection:
• The Advanced option
• The drag-and-drop option
The following steps must be performed in the “Free Text Editor consumer
connection” within the predefined link “<OPCDA-XML>…</OPCDA-XML>” in the
input text field:
Table 3-11
No. Procedure
1. For mapping the provider column name “RawMaterial”, enter the following text in
the link “<OPCDA-XML>…</OPCDA-XML>” predefined in the input field, for
example:
<Material>@Material@</Material>
2. Save your changes by clicking on the “Save” button in the “Free Text Editor
consumer” register.
Siemens AG 2016 All rights reserved
3. Preview the XML file in its output form by clicking the “Edit/review” button in the
“Free Text Editor consumer” register. Change to edit mode with another click.
3 4
Siemens AG 2016 All rights reserved
No. Procedure
3. In the “Default name options” area
If the column names in the provider and consumer areas differ, the option “Name
equal to provider and consumer” is recommended.
5. Now the connection name in the “Connection mapping settings” area has
changed to “RawMaterial->@Material@” (1).
Click on the “ ” icon to create the connection between the two selected column
names of both areas (provider and consumer) (2).
No. Procedure
6. In the “Connections” area
This area shows the created connection.
Siemens AG 2016 All rights reserved
The following steps must be performed in the “Free Text Editor consumer
connection” within the predefined link “<OPCDA-XML>…</OPCDA-XML>” in the
input text field:
Table 3-13
No. Procedure
1. For mapping the provider column name “Value”, enter the following text in the
link “<OPCDA-XML>…</OPCDA-XML>” predefined in the input field, for
example:
“<Value></Value>”
Siemens AG 2016 All rights reserved
Note:
Compared to the advanced option, the tag name “@Value@” between the start
marker “<Value>” and the end marker “</Value>” must be left out in the
drag&drop option.
2. Save your changes by clicking on the “Save” button in the “Free Text Editor
consumer” register.
3 4
No. Procedure
4. In the “Free Text Editor consumer” area
After selecting the desired “Value” tag from the “OPC Data Access provider”,
place it between the start marker “<Value>” and the end marker “</Value>” of the
desired consumer tag in the “Free Text Editor Consumer” area with drag&drop.
Siemens AG 2016 All rights reserved
Note
Different data types between the provider and consumer tags will be
automatically matched by the provider tag.
5. Save your changes by clicking on the “Save” button in the “Free Text Editor
consumer” register.
No. Procedure
6. Preview the XML file in its output form by clicking the “Edit/review” button in the
“Free Text Editor consumer” register. Change to edit mode with another click.
7. Now the connection name in the “Connection mapping settings” area has
changed to “Value->@Value@” (1).
Siemens AG 2016 All rights reserved
Table 3-15
No. Procedure
1. Click “Save” in the IDB menu bar (1).
2. Then click “Generate runtime configuration” (2).
3. Save the IDB configuration file “WinCC_XML_Application.xml” in the appropriate
folder.
Under: \\...\WinCC_IDB_Application_5\IndustrialDataBridge\RT\
4. Click the “Runtime configuration” button in the IDB menu bar (3).
No. Procedure
6. • In the “Open” browser window, select the IDB configuration file
“WinCC_XML_Application.xml” you have created (1) under:
“\\…\WinCC_IDB_Application_5\IndustrialDataBridge\RT\WinCC_XML_Appli
cation.xml“.
• Click on the “Open” button (2).
Siemens AG 2016 All rights reserved
Result
Restart WinCC Runtime to automatically upload the existing IDB configuration file
“WinCC_XML_Application.xml” to the IndustrialDataBridge(RT).
XML file
The following figure is an example for a result of the data transfer to the XML file:
Figure 3-4
Siemens AG 2016 All rights reserved
OPC DA
interface
No
No
Yes
SAP systems
Yes
No
Update data
Siemens AG 2016 All rights reserved
Yes
reset
Overwrite
XML file
XML file
T1 Upon successful data transfer, the WinCC trigger (T2) is set to “1” by SAP
systems.
T2 Upon successful data transfer, the WinCC trigger (T1) is set to “0” by IDB.
5 Error detection
This chapter lists frequently occurring errors of the respective application
examples:
Table 5-1
No. Behavior Possible cause(s)
1. Error message upon Possibly, your computer is not configured as
activation of the SIMATIC server computer.
WinCC Runtime.
2. The OPC tag browser does To show OPC DA servers, opcenum.exe
not show an OPC DA must run as a service on the server
server, although there are computer.
OPC servers installed on To check whether the service is active, select
the computer. “Start > Execute” from the Windows start
menu. Enter “services.msc” and press the
enter button. If “opcenum” has not been
started, set automatic operation and start the
service.
If the OPC server cannot be displayed on the
Siemens AG 2016 All rights reserved
Topic Title
\1\ Siemens Industry Online http://support.industry.siemens.com
Support
\2\ Download page of the entry https://support.industry.siemens.com/cs/ww/en/view/10
9483465
7 History
Table 7-1
Version Date Modifications
V1.0 05/2016 First version