OPC Server
OPC Server
OPC Server
v.7.20
©2015 Ing. Punzenberger COPA-DATA GmbH
Distribution and/or reproduction of this document or parts thereof in any form are permitted solely
with the written permission of the company SIEMENS. Technical data is only used for product
description and are not guaranteed qualities in the legal sense. Subject to change, technical or
otherwise.
SICAM 230
Contents
2. OPC server................................................................................................................................... 5
11. Logging...................................................................................................................................... 15
3
SICAM 230
4
SICAM 230 Welcome to SIEMENS help
GENERAL HELP
If you cannot find any information you require in this help chapter or can think of anything that you
would like added, please send an email to [email protected]
(mailto:[email protected]).
PROJECT SUPPORT
You can receive support for any real project you may have from our Support Team, who you can contact
via email at [email protected] (mailto:[email protected]).
If you find that you need other modules or licenses, our staff will be happy to help you. Email
[email protected] (mailto:[email protected]).
2. OPC server
The OPC server makes the variables of the project available for standard OPC client tools.
The use of the OPC UA Server is recommended for several operations. It is part of the SIEMENS Process
Gateway
License information
5
SICAM 230 Compare OPC Server and OPC UA Server
OPC SERVER
6
SICAM 230 Compare OPC Server and OPC UA Server
OPC UA SERVER
Interoperability no yes
Redundancy no yes
7
SICAM 230 Technical background
Windows CE no yes
4. Technical background
The concept of OPC ist conceived for the application in the cell and management level. Here the OPC
server offers data from the control level
OPC SERVER
OPC defines objects, which are described by object interfaces. In the OPC server there are two kinds of
object interfaces, which can be addressed by an OPC client:
8
SICAM 230 Technical background
The COM-Interface is used by function pointer orientated languages such as C++. Through the
automation interface it is possible to communicate with script languages such as Visual Basic.
The server
Groups and
Items
An OPC server shows the real objects as items (variables). These items are within the OPC server unique.
The client organizes the items in one or more OPC groups.
9
SICAM 230 Technical background
same server.
Example
Project1.ActualValue
. (Point) = Separator
The update cycle in the group is not considered by the OPC Server as the OPC Server has an on-change
data connection to the Runtime. Therefore every modification of value will be transmitted to the OPC
Server without cyclically requesting the value.
Information
OPC clients must create an own group for each SICAM 230 project.
10
SICAM 230 Installing the OPC Server
Interfaces supported
IOPCServer Yes
IOPCBrowseServerAddressSpace Yes
IOPCServerPublicGroups No
IPersistFile Yes
IOPCSyncIO No
To use OPC Servers, you still have to install the OPC core components. You can find them on the
installation medium with the additional programs.
11
SICAM 230 Registering the OPC Server
1. Install the OPC-DA core components from the OPC Foundation. The setup is in the DVD in the
"AdditionalSoftware" directory.
5. Enter the desired parameters in the Command line parameters drop-down list
Possible inputs:
zenopcsrv.exe /RegSrv: registers the OPC server; a message is given if this is not
successful
zenopcsrv.exe /RegSrvD: registers the OPC server and also gives a message if this is
successful
zenopcsrv.exe /UnregSrv: deregisters the OPC server; a message is given if this is
not successful
zenopcsrv.exe /UnregSrvD: deregisters the OPC server and also gives a message if
this is successful
12
SICAM 230 Licensing the OPC Server
Licencing is done with the standard licencing procedure. On ordering the OPC Server you have to state,
on which computer the OPC Server should be installed, and the Runtime serial number you use there.
From the licencing office you then get a new serial number and a new activation number for that
computer. With these the OPC Server is licensed. These numbers have to be entered in the
zenon6.ini with the tool licence order (Start – Programs – COPA-DATA – Licence order).
[VBA]
EVENT=1 Switches on or off the event mechanism for the VBA – COM interface )
Default =0
Attention
If the event mechanism in the Runtime is deactivated, the OPC Server can access the
variables for writing, but the reading access does not work!
The OPC Server then gets no change events from the Runtime. For the connection quality
all OPC Clients will display “disturbed”.
The OPC Server reads out the running Runtime and offers all variables of all running projects for the
connection.
13
SICAM 230 Browsing of the OPC Server
Information
As soon as the Runtime is started, you can read out all variables from all projects that are
available in the Runtime. This is independent from the fact, if the included projects are
standalone, client or server projects.
Hint: If you install the freely available Matrikon OPC Simulator Server, OPCEnum is also installed.
Information
When browsing the control system OPC Server offers all variables that exist in the
running control system Runtime. So you have to make sure, that the control system
Runtime is running, before you start browsing the variables.
14
SICAM 230 Logging
11. Logging
For monitoring and evaluating the activities of the <CD_PRODUCTNAM> OPC Server the Diagnose
Viewer is used.
15
SICAM 230 REMOTE access with DCOM
Attention
The OPC server is optimized for local use; use in a network is expressly not
recommended!
Background: OPC network communication works using DCOM technology from
Microsoft, which has proven itself to be prone to errors and unstable. Particular
disconnections, such as unplugging a network cable and very long time-out periods are
problematic in industrial applications.
Recommended solution:
Using an OPC_UA Servers
or
SICAM 230 Runtime is installed and works as a client for the desired program on the computer on
which the OPC client is running. SICAM 230 OPC Server is started for this client. In this way, SICAM
230 OPC Server can be connected to the OPC client.
Attention
Make sure, that always the user of the OPC Client application logs in at the server. In
certain cases, this does not have to be the user registered on the client PC.
This is then the case if the application is started with another user. This happens e.g., if
the Runtime (with an OPC Client driver, that connects to the remote OPC Server) is
started with the Remote Transport. Then the OPC Client runs in the context of the
SYSTEM user and in the context of the logged in user.
In any case, you must enter the correct user on the OPC Server PC in Access
authorizations (on page 20)!!
As the correct configuration could not be found, when this tutorial was written, we recommend at the
16
SICAM 230 REMOTE access with DCOM
Start the Control panel on the OPC Server and open the entry “User accounts”. With 'Add…' add a new
user, with which the OPC Client logs in, and configure this user as an administrator. See example 'user' in
the screenshot.
Information
The best is to use the same Windows user on the OPC Server and on the OPC Client and
to add this user to the administrator group.
Attention! It is not sufficient to have local users with the same name on both computers.
It has to be the same domain user!
17
SICAM 230 REMOTE access with DCOM
Open the console root and switch to the Component services - Computer - Workspace.
Usually you do not have to make changes in the property pages “General”, “Options”, “Standard
protocols” and “MSDTC”.
Open the property page “Standard settings”. Here you have to make sure, that DCOM is activated for
this computer. Do not care about the other settings.
18
SICAM 230 REMOTE access with DCOM
On the property page “COM standard security” you will find the settings for the access authorization.
Attention
The limit settings for the access authorizations and the start and activation
authorizations must be set, otherwise remote access is prevented by the operating
system!
19
SICAM 230 REMOTE access with DCOM
The limits to access authorizations and the start and activation authorizations must be edited.
Click on “Edit limits…”. In the dialog you can define the access authorizations. First add the needed users
(in our example the Praktikant) and allow the remote access! You also have to allow the remote access
for the user “ANONYMOUS-ANMELDUNG” necessarily.
Attention
Never remove the user “ANONYMOUS-ANMELDUNG” or prohibit the local access.
With this you would prevent any COM data traffic on your PC!
Information
Never remove the user “ANONYMOUS-ANMELDUNG” or prohibit the local access.
With this you would prevent any COM data traffic on your PC! You now have to configure
the user “ANONYMOUS-ANMELDUNG” correctly. For all other settings the user with
which the OPC Client logs in is sufficient.
20
SICAM 230 REMOTE access with DCOM
Similar to the access authorization you have to add the OPC Client user/s and allow all authorizations.
Open the console root and switch to the Component services – Computer – Workspace – DCOM –
Configuration. It may occur, that not correctly registered programs are listed. Confirm the message
boxes with “Yes”. So the programs are added to the registry.
Search the OPC Server from the list and click on the OPC Server with the right mouse button. Select the
properties in the context menu.
Information
The OPC Server is independent of the SICAM 230 version. So the name of the OPC Server
can differ from the version number of your control system installation. Usually you will
see the name OPC Server for Version 5.21. Don’t get confused, it has no influence on the
functionality. Important is the unique application ID (AppID). It has to be correct. The
AppID of the OPC server is: {CA2AF1F9-C031-42B7-8BF3-6C6041B23EAC}
Check if the path leads to the correct OPC Server. You will find the path of the the
registered OPC Server under Local path.
21
SICAM 230 REMOTE access with DCOM
Start and activation Select adjust. With a click on “Edit…” you open the
authorization authorization dialog. Add the necessary users and activate all
authorizations.
Access authorization Select adjust. With a click on “Edit…” you open the
authorization dialog. Add the necessary users and activate all
access authorizations.
On the property page End points: Click on “Add...” and add connection oriented TCP/IP with the
standard points.
22
SICAM 230 REMOTE access with DCOM
23