OPC Server
OPC Server
OPC Server
v.7.60
©2017 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 COPA-DATA. Technical data is only used for product
description and are not guaranteed qualities in the legal sense. Subject to change, technical or
otherwise.
Contents
2. OPC server................................................................................................................................... 4
10. Logging...................................................................................................................................... 13
3
Welcome to COPA-DATA help
You can find practical examples for project configuration with zenon in our YouTube channel
(https://www.copadata.com/tutorial_menu). The tutorials are grouped according to topics and give an
initial insight into working with different zenon modules. All tutorials are available in English.
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 COPA-DATA Process
Gateway
4
Compare OPC Server and OPC UA Server
License information
Must be licensed in Editor and Runtime.
OPC SERVER
5
Compare OPC Server and OPC UA Server
OPC UA SERVER
Network use -- X
Windows CE -- X
X: is supported
6
Technical background
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 that are described by object interfaces. In the OPC server there are two kinds of
object interfaces, which can be addressed by an OPC client:
The COM custom interface
The OLE automation interface
7
Technical background
Items
An OPC server projects the real objects to items (variables). These items are unique within the OPC
server. The client organizes the items in one or more OPC groups.
The OPC server has to be able to distinguish, from which projects the variables come, because several
projects can be started in the Runtime.
So the server uses the following nomenclature for the process variables:
Projectname.Variablename
Projekt1.ActualValue
8
Technical background
. (Point) = Separator
ActualValue = Existing name of variable
Attention
Ensure that the OPC Data Access Client for each project accesses the variables in its own
respective group. Access to variables from different zenon Runtime projects in one single
group can cause error messages.
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 zenon project.
9
Installation and registration of the OPC Server
Interfaces supported
IOPCServer Yes
IOPCBrowseServerAddressSpace Yes
IOPCServerPublicGroups No
IPersistFile Yes
IOPCCommon (from 2.0) Yes
IOPCSyncIO No
IOPCItemProperties (from 2.0) Yes
IConnectionPointContainer (from 2.0) Yes
The OPC server is not registered by default for security reasons. After installation, the OPC server can
therefore not be discovered by an OPC client. The OPC Server has to be explicitly registered
10
Licensing the OPC Server
: Changes made via the zenon Startup Tool or the installation of a new zenon version do not lead
to any change to the registration of 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).
7. Settings in zenon
VBA has to be activated, so that the control system OPC Server can get data from the Runtime. Please
check, if the following entries in the zenon6.ini are set correctly:
[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.
11
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.
The additional program OPCEnum is not distributed. So it can happen that an OPC Client cannot find the
control system OPC Server, because it uses this browsing method. Read the documentation of the OPC
Client to find out whether the browsing method can be changed to reading out the registry. (For the
Matrikon OPC Explorer you find that under Options.) If this is not the case, you must install the program
OPCEnum.
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.
12
Logging
10. Logging
For monitoring and evaluating the activities of the <CD_PRODUCTNAM> OPC Server the Diagnosis
Viewer is used.
Attention
The OPC server is optimized for local use; use in a network is expressly not
recommended!
OPC uses DCOM technology for communication over the network, which is
considered prone to errors and unstable. Particular disconnections, such as unplugging a
network cable and very long timeout periods are problematic in industrial applications.
Recommended solutions:
Using an OPC_UA Servers
or
Local installation:
zenon Runtime is installed and works as a client for the desired projects on the same
computer on which the OPC client is running. zenon OPC Server is started for this client.
In this way, zenon OPC Server can be connected to the OPC client.
13