OPC-Server For Siemens HMI Pnls PDF
OPC-Server For Siemens HMI Pnls PDF
OPC-Server For Siemens HMI Pnls PDF
o
v options are there in WinCC flexible
What
foreusing a Multi Panel or Mobile Panel as
r
an OPC server?
s flexible
WinCC
h
FAQe March 2012
et
Question
This entry originates from the Service&Support Portal of Siemens AG, Sector
Industry, Industry Automation and Drive Technologies. The conditions of use
specified there apply (www.siemens.com/nutzungsbedingungen).
Go to the following link to download this document.
http://support.automation.siemens.com/WW/view/en/22701694
Question
What options are there in WinCC flexible for using a Multi Panel or Mobile Panel as
an OPC server?
Answer
Follow the instructions and notes listed in this document for a detailed answer to
the above question.
Contents
Contents
Cover sheet ......................................................................................................... 1
1
Introduction........................................................................................... 4
3
3.1
3.2
3.3
4
4.1
4.2
Requirements ..................................................................................... 12
Hardware and software requirements ................................................ 12
OPC XML-compatible panels............................................................. 13
5
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
1 Introduction
Introduction
Multi Panels and Mobile Panels as from the 270 series can also act optionally as
OPC XML DA servers. Communication via DCOM with the OPC XML DA server of
the Multi Panel or Mobile Panel is not possible, because the realtime operating
system Windows CE has no DCOM interface. Therefore, an OPC XML gateway is
always required for communication between a PC (OPC DA client) and a multi
panel or mobile panel (OPC XML DA server). The OPC XML gateway implements
communication from XML to COM or DCOM.
OPC XML (Extensible Markup Language) has been added to OPC. Data exchange
with OPC XML is via the SOAP protocol (Single Object Access Protocol). This
provides platform-independent data exchange and also enables data transfer via
the Internet. The server-client architecture of OPC XML is retained. You need an
OPC XML gateway for exchanging data between an OPC DA client and an OPC
XML DA server.
Figure 2-2
3.1
In principle, you can use all automation and visualization components that can
work as an OPC DA client.
Note
3.2
In principle, you can use all automation and visualization components that can
work as an OPC DA client.
Note
3.3
You can use all automation and visualization components that can work as an OPC
XML DA client.
10
Note
In principle, only eight OPC connections are possible with an OPC XML DA
server. You can get around this restriction by using the OPC XML gateway. It is
not possible to use an OPC XML DA client via the OPC XML gateway!
11
4 Requirements
Requirements
Below is a list of the software and hardware requirements for the separate
versions.
4.1
Versions A and B: at least one PC with OPC XML gateway and OPC DA client
(for example, ProTool/Pro as from V5.2 or WinCC flexible as from version 2004
Advanced)
Note
Version C: one PC as OPC XML DA client (e.g. SIMATIC WinCC as from V6.0)
Check the compatibility between the versions of WinCC flexible and the
Microsoft Windows operating systems in Entry ID 22055368. This also applies
for all other visualization software products that you use with the OPC XML DA
server of WinCC flexible.
Note
PC Runtime
Client
OPC DA
OPC XML DA
OPC DA
OPC XML DA
ProTool/PRO PC Runtime
X2)
--
X2)
--
WinCC flexible PC
Runtime
--
--
WinCC PC Runtime
X1)
X1)
Excel-Makro 3)
--
--
--
--
--
--
WinCC flexible
Runtime
1)
12
4 Requirements
4.2
2)
3)
MP270B
MP277
MP370
MP377
13
5.1
14
Table 5-1
No.
1.
Procedure
Information on the OPC XML DA server
Configuration of the Multi Panel or Mobile Panel as OPC XML DA server is
identical for all versions.
Note
The OPC server for the Multi Panel or Mobile Panel is always an OPC XML
DA server.
The OPC communication with a Multi Panel or Mobile Panel as OPC XML
DA server can only be implemented via Industrial Ethernet.
Multi Panels and Mobile Panels can only be used as OPC XML DA servers,
not as OPC DA clients or OPC XML DA clients.
WinCC flexible Runtime must be started on the Multi Panel or Mobile Panel
with the OPC XML DA server so that the OPC XML DA server is activated.
2.
Open the WinCC flexible project in which the Multi Panel or Mobile Panel is
configured.
Create an "INT" data type tag ("Tag_1"), for example, in "Communication >
Tag".
Transfer the WinCC flexible project to the Multi Panel or Mobile Panel.
15
5.2
Procedure
Configuration and installation of the OPC XML gateway
The OPC XML gateway is informed of the IP address of the OPC XML DA server
via the setting for the OPC XML manager on the PC.
The settings are required in the two configuration versions A and B.
Note:
You can also use multiple OPC XML gateways on multiple PCs for
communication between an OPC XML DA server and multiple OPC DA clients.
WinCC flexible 2004:
The Setup for installing the "OPC XML Gateway" is on the WinCC flexible
CD 2 under "WinCCflexible\setup\OPCXMLWrapper\Disk1".
2.
16
In the "Start" menu, select the program "SIMATIC > WinCC flexible > WinCC
flexible Runtime > XmlMuxConfig". In the OPC XML Manager click on the
"Add..." button (see Fig. 07).
As from WinCC flexible 2007:
In the "Start" menu, select the program "SIMATIC > OPC-XML Gateway >
OPC XML Manager". In the OPC XML Manager click on the "Add..." button
(see Fig. 07).
No.
3.
Procedure
Add the prefix and host name
WinCC flexible 2004:
Enter the prefix ("Prefix" for example) and host name or IP address (such as
150.150.150.20).
Explanation of parameters:
[Prefix] The prefix specifies which OPC XML DA server the tag is assigned
too.
[Host Name] Device name or IP address of the OPC XML DA server.
Confirm the input with the "OK" button. Close the OPC XML manager.
Note:
You can incorporate several OPC XML DA servers via the OPC XML Manager.
17
5.3
18
Procedure
1.
Select "OPC V6.0" as the protocol - for ProTool/Pro V6.0 - and then open
the "Parameters...".
2.
Select "OPC.Siemens.XML" as
OPC server.
Select "OPC.Siemens.XML" as
the OPC server and specify the IP
address of the PC with an installed
OPC gateway ("Start the server on
this computer:").
No.
3.
Procedure
Create tags
Once the OPC connection has been configured, you can create tags.
If the OPC server is activated on the Multi Panel or Mobile Panel (Runtime is
started on the panel), you can use "Browse" in the Tag dialog to access the OPC
server tags.
Note:
If you are also using a gateway PC, then there must also be network connection
between the gateway PC and the configuration PC when tag browsing.
Otherwise, you can also use the following syntax for the OPC items:
[Prefix]:Win CC Flexible RT <@>[tag]
Example:
DEVICE_1:Win CC Flexible RT<@>Test.VAR_1
19
No.
Procedure
Note:
If you make changes to the configurations, e.g. add or change tags, you have to
transfer the changed configuration to the Multi Panel or Mobile Panel before you
can subsequently access the changed or extended tags.
5.4
20
5.5
Procedure
Open the Excel macro
The Excel macro is located in Attachment 2 that you can download at the end of
this entry.
2.
For "Server Name" (1) you specify the OPC DA server or OPC XML DA
server "OPC.Siemens.XML".
Version A:
Specify the IP address (2) of where the OPC XML gateway is installed.
Versions A and B:
A group name is not required for communication with the OPC XML DA server.
21
No.
3.
Procedure
Define tags
Create all the relevant tags or OPC item using the following syntax:
[Prefix]:Win CC Flexible RT<@>[Tag]
Tag
WinCC flexible 2004:
WinCC flexible 2008:
Folder.Variable
Folder\Variable
Example
WinCC flexible 2004: DEVICE_1:Win CC Flexible RT<@>TEST.Var_1
WinCC flexible 2008: DEVICE_1:Win CC Flexible RT<@>TEST\Var_1
22
No.
4.
Procedure
Start/stop the OPC DA connection
Click on the "Start" button to establish the OPC DA connection to the OPC
XML gateway.
Note:
If the connection to the OPC XML gateway has been established and there
is a connection to the OPC XML DA server, you can change the tags both in
Excel and on the OPC XML DA server.
Click on the "Stop" button to disconnect the OPC DA connection to the OPC
XML gateway.
23
5.6
24
Procedure
1.
Open the WinCC project and right-click on "Tag Management" to add the
"OPC.chn" driver.
2.
Add connection
If you have installed the OPX XML
gateway on a separate PC, then you
can skip this step and go directly to
Step 3.
Add connection
If you have installed the OPX XML
gateway on the same PC, then you
can skip this step and go directly to
Step 4.
No.
3.
Procedure
Create tags
Once the connection has been configured, you can create tags in the "Tag" tab.
Set the data type first of all. Then click "Select" to specify the item name for the
tag. Here, you must observe the following syntax:
[Prefix]:Win CC Flexible RT<@>[Variable]
Tag
WinCC flexible 2004: Folder.Variable
WinCC flexible 2008: Folder\Variable
Example
WinCC flexible 2008: DEVICE_1:Win CC Flexible RT<@>Test.VAR_1
WinCC flexible 2008: DEVICE_1:Win CC Flexible RT<@>TEST\Var_1
25
No.
26
Procedure
5.7
Procedure
1.
2.
27
No.
28
Procedure
3.
Configure a connection
4.
No.
5.
Procedure
Activate the XML DA server
6.
29
No.
7.
Procedure
Add an OPC web server
Assign the URL web address that you assigned in Step 5, see Fig. 23:
http://IP address of the Multi Panel/soap/OpcXml
Example:
http://169.254.247.170/soap/OpcXml
8.
30
Click on the "URL address" set previously in the "OPC item manager".
No.
9.
Procedure
Add tags
If the OPC server is activated on the Multi Panel or Mobile Panel and Runtime is
started on the panel, you can now access the OPC XML DA server tags.
Note:
The tags are now available for further processing in WinCC.
31
5.8
Download
The attached download contains an archived STEP 7 project with an MP370 Touch
as OPC XML DA server, a ProTool PC station (OPC DA client) and a WinCC
flexible PC station (OPC DA client).
Program description
Using the ProTool or WinCC flexible PC station configuration, you can access the
tags of the MP370 Touch configuration via the OPC XML manager.
The MP370 Touch has been displayed "symbolically" in the PC runtime in order to
illustrate how this works.
Figure 5-1
Table 5-7
Plant
Download
1.
OPC_XML_Project.zip
2.
OPC_Client_V1_1.zip
Attachment 2 contains the Excel macro described, which sets up a connection
as an OPC DA client to an OPC DA server or to the OPC XML gateway via
COM or DCOM.
32
PC operating system
Standard tools
Office Tools
Engineering tools
--
HMI software
HMI devices
PC & MP370
Controllers
--
PC operating system
Standard tools
Office Tools
Engineering tools
--
HMI software
HMI devices
Controllers
--
33