Professional Documents
Culture Documents
OPC Server Profile 2
OPC Server Profile 2
12/11/13
[Document Title] 1
NOTICE OF COPYRIGHT & PROPRIETARY RIGHTS
This document contains the confidential information of, and is the sole property of, SUBNET Solutions Inc. and its
licensors and shall not be used, reproduced, copied, disclosed, published, distributed, sold, leased, lent, altered,
transmitted in any form or by any means, or otherwise exploited (collectively "Used") for any
purpose other than the limited purpose(s) for which it is furnished except with the written permission of SUBNET
Solutions Inc.
For greater certainty, any attached hardware schematics and technical descriptions, or software listings that
disclose source code, are for information purposes only and may not be Used for any other purpose (for example,
they may not be used to create working hardware or software for anyone other than SUBNET Solutions Inc.).
While reasonable efforts were made to ensure that the information contained in this document was complete and
accurate at the time of printing, SUBNET Solutions Inc. assumes no liability for errors or omissions. Changes and
corrections to the information in this document may be incorporated in future releases. The information contained
in this document is provided without any express, statutory, or implied warranties and none of the authors,
SUBNET Solutions Inc., or its licensors, resellers or distributors will be liable for any damages or liability arising
from or caused by any use or reliance upon this documentation.
SUBNET Solutions Inc. is not responsible for any modifications, additions or deletions to the original published
version of this documentation unless such modifications, additions, or deletions were performed by SUBNET
Solutions Inc.
TRADEMARK NOTICES
All brand and product names mentioned in this document are trademarks or registered trademarks of their
respective companies.
Microsoft® is a registered trademark of Microsoft Corporation. Microsoft Excel and Microsoft Office are
trademarks of Microsoft Corporation.
DOCUMENT VERSION CONTROL
The SubSTATION Server OPC Server is designed to provide OPC Clients read access to the data in SubSTATION
Server. It also allows OPC Clients to store data and to trigger controls inside SubSTATION Server.
The OPC Server supports the OPC Custom Data Access 1.0a, Data Access 2.05A, and Data Access 3.0 standards.
SUPPORTED INTERFACE
PASS-THROUGH CONTROLS
The Control Pass-through feature allows incoming control commands to be passed directly through Master
reference points to a downstream device. These Master points can be referenced in various Master protocols. A
popup Pass-through options window allows the selection of any control command parameters that cannot be
derived from the incoming control command. More information on this topic can be found in the SubSTATION
Server 2 Installation and User Guide document.
SubSTATION Server protocol drivers are designed to support a hierarchical configuration. The hierarchy for OPC
Server configurations is:
OPC Server
Points
COMMON PROPERTIES
All SubSTATION Server objects support storing a user-specified name and description. Each object records the
date and time that the object was created, and the date and time of the last user modification to the object.
Event Log Table A time-stamped log of all messages generated by the Read-only
protocol driver.
ProgID: The ProgID for the SubSTATION Server OPC Server is SSNET.OPC.1
By default, the OPC Server is installed to run using the LOCALSYSTEM account. The LOCALSYSTEM account
is a built-in internal account inside a Windows computer. This account has no network privileges. This
means that the OPC Server, as it is installed by default, will be unable to properly receive connections
from remote OPC Clients because it does not have permission to make network function calls back to the
client.
To configure the OPC Server to permit connections from OPC Clients on remote computers, a user needs
to go to the Services management console, select the SubSTATION Server OPC Server, and configure the
“Log On” settings to use an account that is allowed to access the network and is also allowed to access the
remote computer.
SubSTATION Server contains an installation package which will install the SubSTATION Server OPC Server
registry keys on a client computer. This allows a user to setup a client computer without having to install
the full SubSTATION Server package. The installation setup is located at:
Variant Type Specifies the VARIANT type that will be used to Dropdown list:
report the data point. This type dictates the VT_I1,
maximum positive and negative values which can be VTI2,
reported by the point. VTI4,
VT_I8,
VT_UI1,
VT_UI2,
VT_UI4,
VT_UI8,
VT_R4,
VT_R8,
VT_CY,
VT_DECIMAL
Number of events Specifies the maximum number of events stored for 0 to 1000
allowed this point, before the oldest event is overwritten.
Analog Action Specifies the Action to be initiated when a control Dropdown list:
request is received for this point. <no reference>,
valid Actions…
Variant Type Specifies the VARIANT type that will be used to Dropdown list:
report this data point. This type dictates the VT_I1,
maximum positive and negative values which can be VTI2,
reported for the point. VTI4,
VT_I8,
VT_UI1,
VT_UI2,
VT_UI4,
VT_UI8,
VT_R4,
VT_R8,
VT_CY,
VT_DECIMAL
Number of events Specifies the maximum number of events stored for 0 to 1000
allowed this point, before the oldest event is overwritten.
Variant Type Specifies the VARIANT type (VT_BOOL) that will be Read-only
used to report the data point.
Variant Type Specifies the VARIANT type (VT_BOOL) that will be Read-only
used to report this data point.
Number of events Specifies the maximum number of events stored for 0 to 1000
allowed this point, before the oldest event is overwritten.
Variant Type Specifies the VARIANT type (VT_BSTR) that will be Read-only
used to report this data point.
Number of events Specifies the maximum number of events stored for 0 to 1000
allowed this point, before the oldest event is overwritten.
OPC Clients can store data in the SubSTATION Server database through the OPC Server by using the Analog Master
Item and the Digital Master Item.
The primary purpose of Analog Items and Digital Items is to map data from other protocols to the OPC Server so
that OPC Clients can read it. These points have a secondary function which is to allow an OPC Client to trigger
controls by writing data to these points.
Data written to an Analog Item is converted to VT_R8 and used to trigger the mapped Analog action. Data written
to a Digital Item is converted to VT_BOOL and then used to trigger either the TRUE or FALSE action.
The OPC Server will queue events for Digital Input points and report them to connected OPC Clients through
asynchronous I/O. If synchronous I/O is used to connect to OPC Server, the events are cleared to prevent memory
usage increasing.
Since the definition of SSNET quality bits does not exactly match the definition of OPC quality codes, there must be
some conversion of the SSNET quality of a reference point to an OPC quality code. Below is a table of how quality is
converted.
The following is a simplified description of the connections involved in Synchronous and Asynchronous Data
Exchange.
The SubSTATION Server OPC Server supports the OPC Data Access 2.0 Synchronous Data Exchange. When making a
synchronous read, the OPC Client makes a DCOM connection to the SubSTATION Server OPC Server. In order for
this DCOM connection to be successful, the OPC Client process must be running under a user account that has
permission to access the SubSTATION Server OPC Server process. A user will typically use DCOMCNFG on the
SubSTATION Server OPC Server computer to specify DCOM access permissions for the SubSTATION Server OPC
Server process.
Request initiated
by OPC Client
Computer SubSTATION Server Computer
(eg. Laptop) 3rd Party OPC Client OPC Server (eg. SEL-3332)
(subopcserver.exe)
For additional help using the DCOMCNFG utility, please refer to the OPC Troubleshooting Section in your
SubSTATION Server Reference Guide, or consult with your Windows network administrator.
The SubSTATION Server OPC Server also supports OPC Data Access 2.0 Asynchronous Data Exchange. When
performing an asynchronous read, the OPC Client makes a DCOM connection to the SubSTATION Server OPC
Server. Some period of time later when the SubSTATION Server OPC Server has the requested data available, it
will make a DCOM connection back to the OPC Client to deliver the data.
In order for Asynchronous Data Exchange to work, the OPC Client process must be running under a user account
that has permission to make a DCOM connection to the SubSTATION Server OPC Server process. In addition, the
SubSTATION Server OPC Server must be configured to run under a user account that has permission to make a
DCOM connection back to the OPC Client. Users will typically use DCOMCNFG on both the OPC Server and OPC
Client computers to configure DCOM access permissions and to setup the SubSTATION Server OPC Server service
to run under a user account with network permissions.
Read request
initiated by OPC
Client
OPC Server
connects back to
OPC Client with
data
For additional help using the DCOMCNFG utility, please refer to the OPC Troubleshooting Section in your
SubSTATION Server Reference Guide, or consult with your Windows network administrator.
This table contains a list of errors that are unique to the OPC Server v2.12service. If the error is reported as coming
from subopcserver, it is generated by the OPC Server v2.12service. Common errors are listed in the General and
Executive Troubleshooting document.
1002 Configuration Empty ItemID is not allowed Ensure that all OPC Server items have ItemIDs.
Error for OPC Server Service