OI Gateway User Guide
OI Gateway User Guide
OI Gateway User Guide
Contents
Chapter 1 Introduction to the OI Gateway .................................................................. 9
About the OI Gateway .........................................................................................................................9
Supported Data Sources and Clients ...............................................................................................10
Supported Client Protocols ...............................................................................................................10
OPC ............................................................................................................................................10
SuiteLink .....................................................................................................................................11
DDE/FastDDE .............................................................................................................................11
DDE ......................................................................................................................................11
FastDDE ...............................................................................................................................11
ArchestrA Message Exchange ...................................................................................................11
OPC UA ......................................................................................................................................11
MQTT ..........................................................................................................................................12
Chapter 2 Gateway Configuration ............................................................................ 13
Configuring the Gateway ..................................................................................................................13
Before Configuring the Gateway .......................................................................................................14
The Gateway Data Source Hierarchy ...............................................................................................15
Configuring Data Source Redundancy .............................................................................................16
Chapter 3 Connecting to Data Sources ................................................................... 19
Connecting to an ArchestrA Data Source .........................................................................................19
Configuring an ArchestrA Data Source Object ...........................................................................19
Configuring an ArchestrA Group Object .....................................................................................20
Configuring ArchestrA Device Items ...........................................................................................21
ArchestrA Item Names................................................................................................................21
Example #1 ...........................................................................................................................22
Example #2 ...........................................................................................................................22
Using Item Prefixes ..............................................................................................................23
ArchestrA Data Conversion ........................................................................................................23
ArchestrA-DDE/SuiteLink Mappings ....................................................................................23
ArchestrA–OPC Mappings ...................................................................................................25
Connecting to an OPC Data Source .................................................................................................28
Configuring an OPC Data Source Object ...................................................................................28
Configuring an OPC Group Object .............................................................................................30
Configuring OPC Device Items ...................................................................................................31
OPC Item Names ........................................................................................................................31
Using Item Suffixes...............................................................................................................31
OPC Data Conversion ................................................................................................................33
DDE/SuiteLink-OPC Mappings ............................................................................................33
Connecting to a DDE/SuiteLink Data Source ...................................................................................35
Configuring a DDE/SuiteLink Data Source Object .....................................................................36
Configuring a DDE/SuiteLink Topic Object.................................................................................36
5
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Contents
6
Contents Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
7
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Contents
8
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 1
Introduction to the OI Gateway
In This Chapter
About the OI Gateway ...............................................................................................................................9
Supported Data Sources and Clients ......................................................................................................10
Supported Client Protocols .....................................................................................................................10
9
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Introduction to the OI Gateway
Note: InTouch v7.11 and greater is supported. FastDDE v2 supports value data only. FastDDE v3
supports VTQ (value, time, quality). All versions of DDE must be local (NetDDE is not supported). OI
Gateway must be located on the same node as ArchestrA in order to use that data source.
To access OI Gateway, the chosen client must also have a valid configuration, which is client-specific.
OPC
OPC (originally OLE for Process Control, now Open Platform Communications) is a non-proprietary set
of standard interfaces based on Microsoft’s OLE/COM technology. This standard makes possible
interoperability between automation/control applications, field systems/ devices, and business/office
applications.
Avoiding the traditional requirement of software/application developers to write custom drivers to
exchange data with field devices, OPC defines a common, high-performance interface that permits this
work to be done once, and then easily reused by HMI, SCADA, control and custom applications.
Over a network, OPC uses DCOM (Distributed COM) for remote communications.
10
Introduction to the OI Gateway Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
SuiteLink
SuiteLink uses a TCP/IP-based protocol and is designed specifically to meet industrial needs such as
data integrity, high throughput, and easier diagnostics. This TCP/IP standard is supported on Windows
operating systems.
SuiteLink is not a replacement for DDE or FastDDE. The protocol used between a client and a server
depends on your network connections and configurations. SuiteLink provides the following features:
Value Time Quality (VTQ) places a time stamp and quality indicator on all data values delivered to
VTQ-aware clients.
Extensive diagnostics of the data throughput, server loading, computer resource consumption, and
network transport are made accessible through the operating system’s performance monitor. This
feature is critical for the operation and maintenance of distributed industrial networks.
Consistent high data volumes can be maintained between applications regardless if the
applications are on a single node or distributed over a large node count.
The network transport protocol is TCP/IP using Microsoft’s standard WinSock interface.
DDE/FastDDE
DDE/FastDDE communication protocols allow communication between a client and a server. DDE
protocol is developed by Microsoft whereas FastDDE protocol is proprietary to Wonderware.
Important: On Windows Vista and later operating systems, Local DDE is supported only when the OI
Server is configured as "Not a Service" and activated from its executable file or launched from
InTouch. Local DDE is not supported when the OI Server is activated from the System Management
Console (SMC).
DDE
DDE is a communications protocol to allow applications in the Windows environment to send/receive
data and instructions to/from each other. It implements a Client/Server relationship between two
concurrently running applications.
The server application provides the data and accepts requests from any other application interested in
its data. Requesting applications are called clients. Some applications such as InTouch and Microsoft
Excel can simultaneously be both a client and a server.
FastDDE
FastDDE provides a means of packing many proprietary Wonderware Dynamic Data Exchange
messages into a single Microsoft DDE message. This packing improves efficiency and performance by
reducing the total number of DDE transactions required between a client and a server.
Although Wonderware's FastDDE has extended the usefulness of DDE for our industry, this extension
is being pushed to its performance constraints in distributed environments.
OPC UA
OPC Unified Architecture (OPC UA) is an industrial machine-to-machine communication protocol for
interoperability. It provides process control with enhanced security, advanced communication, security,
and information models, and cross-platform connectivity.
11
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Introduction to the OI Gateway
MQTT
MQTT, formerly called Message Queuing Telemetry Transport, is a publish/subscribe messaging
protocol for use over TCP/IP. MQTT is designed to ensure that devices can communicate with each
other while minimizing power and bandwidth requirements. It is a simple messaging protocol that is
well-suited for use with devices that rely on slow or unreliable networks.
The MQTT protocol is an application layer specification, and has been published as standard ISO/IEC
PRF 20922. MQTT uses a Publish-Subscribe mechanism which requires a mediating broker. The
publishers send data to the broker, and subscribing clients receive data published to the broker. Only
clients that have subscribed to a particular topic receive messages about that topic. The protocol
supports bidirectional communication such that a device that is a publisher can also receive updates.
12
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 2
Gateway Configuration
In This Chapter
Configuring the Gateway .........................................................................................................................13
Before Configuring the Gateway .............................................................................................................14
The Gateway Data Source Hierarchy .....................................................................................................15
Configuring Data Source Redundancy....................................................................................................16
OI Gateway is hosted by the OI Server Manager, a Microsoft Management Console (MMC) snap-in,
which is part of the ArchestrA System Management Console (SMC) suite of utilities. Many high-level
functions and user-interface elements of the OI Server Manager are universal to numerous products
created with the ArchestrA DAS Toolkit. Only the documentation for the OI Server Manager contains
descriptions of those universal functions/UI elements. Therefore, reading the documentation for both
the MMC and the OI Server Manager is critical to understanding this user’s guide. To read the
documentation about the MMC and OI Server Manager, click the Help command on the SMC’s Action
menu. Both the MMC’s help and the OI Server Manager’s help are displayed. An Adobe Acrobat
version of the OI Server Manager documentation (filename: OIServerManager.pdf) is also
available in the CD-ROM folder \User Docs\English.
Note: The shortcut menu items described in this document typically represent only a subset of any
actual shortcut menu. Most items in each shortcut menu are standard Microsoft Windows or
MMC-specific commands. For more information about those commands, please see MMC help.
To prepare OI Gateway
1. Install OI Gateway by double-clicking the Setup-OI-Gateway.msi file.
2. Start the System Management Console. by clicking Start, pointing to Programs and then
Wonderware, and then clicking System Management Console.
3. From the System Management Console, find the Operations Integration Server Manager and then
OI Gateway below in the hierarchy tree.
13
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Gateway Configuration
4. Before activating OI Gateway for connection, you must first build and configure a hierarchy of one
or more data sources to establish communications between sources and clients.
Note: For step-by-step procedures on how to build and configure this hierarchy, please see OI
Gateway Data Source Hierarchy.
5. You may create desired groups and topics for each data source by:
o Navigating to a data source object in the OI Server Manager tree view.
o Right-clicking the object and selecting the group/topic object provided. Each data source has
only one type of group or topic object that can be added to the hierarchy.
o Configure the group or topic.
6. Finally, you may create desired device items for each group or topic by:
o Selecting the group or topic object.
o Clicking the Device Items tab.
o Right-clicking anywhere in the Device Items configuration view and clicking Add from the
shortcut menu.
Important: For step-by-step procedures on configuring Device Items, please see Configuring Device
Item Definitions.
Note: When you are viewing the configuration hierarchy of OI Gateway and someone views the same
OI Gateway in another instance of the OI Server Manager, the second instance is displayed in
read-only mode. To gain configuration access in this second instance, you must close the first instance
of the OI Server Manager (or just remove focus from OI Gateway hierarchy) and then toggle focus
away from and then on OI Gateway hierarchy of the second instance.
OI Gateway is now ready for use. In order to use it, you must activate it. The following rules apply:
If you are using an OPC Client, OI Gateway can be auto-started.
If you are using DDE/SuiteLink, you must start OI Gateway either as a manual or automatic
service.
To activate OI Gateway, right-click OI.Gateway.1 and click Activate Server on the shortcut menu.
14
Gateway Configuration Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Windows Server operating systems' ICMP(v4) Echo Request may be disabled. You must enable this
for an OPC client such as OI Gateway to connect to the server.
To determine the status of ICMP (v4) Echo on the server, open a command prompt on the OI Gateway
computer and type:
ping SERVER_COMPUTER
Where "SERVER_COMPUTER" is the name or IP address of the remote OPC computer.
If the remote computer does not respond to the ping command, enable ICMP(v4) Request on the
remote computer according to the procedure for the Microsoft Windows operating system in use on
that computer.
The data source configuration part of OI Gateway hierarchy begins under the Configuration branch.
Note: The default name created from adding a hierarchy object is in the format of
New_<ObjectName>_###, where <ObjectName> is the name of the object type and ### is a numeric
value starting from "000" enumerated sequentially per hierarchy object. The hierarchy object name can
contain up to 32 characters. The link name for the OPC items is constructed by assembling the
respective object names of the nodes along the hierarchy tree in the logical order, starting from the
data source root down to the leaf. Therefore, the link name is always unique.
15
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Gateway Configuration
3. Set up a secondary device on the same OI Server. Once again, create an identical device item
within the secondary device so that device status can be determined.
4. Select and right-click on the configuration node .
5. Select Add REDUNDANT_DEVICE Object. An object called New_REDUNDANT_DEVICE_000 is
created.
6. Rename the newly created object as appropriate. The New_REDUNDANT_DEVICE_000
configuration view is displayed in the Configuration branch of the hierarchy.
16
Gateway Configuration Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
7. Enter or use the device browser to select the primary and secondary devices. Save the hierarchy
node configuration by clicking on the save icon.
Note: Unsolicited message configuration is not supported from the device redundant hierarchy.
Important: A Ping item must be specified and be a valid tag in both the primary and secondary
controllers to determine the connection status for $SYS$Status. The Ping item can be a static item in
the device such as a firmware version or processor type. If the Ping item is invalid or does not exist in
the controller, the failover operation may not work correctly as the value of $SYS$Status may continue
to stay as FALSE in the standby device.
17
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 3
Connecting to Data Sources
In This Chapter
Connecting to an ArchestrA Data Source ...............................................................................................19
Connecting to an OPC Data Source .......................................................................................................28
Connecting to a DDE/SuiteLink Data Source .........................................................................................35
Connecting to an InTouch Data Source ..................................................................................................41
Connecting to an MQTT Data Source .....................................................................................................45
Connecting to an OPC UA Data Source .................................................................................................53
19
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
Note: The Domain option should have a valid domain name when the ArchestrA security
authentication mode is "OS Users" or "OS Groups". This option should be left empty when the
ArchestrA security authentication mode is "Galaxy".
o User Name – This option, along with Domain and Password, comprise the credentials used
to logon to ArchestrA if the Read Only box is unchecked and ArchestrA has security enabled.
In such a case, you must enter valid credentials as configured in ArchestrA. Default value is
blank.
o Password – This option, along with Domain and User Name comprise the credentials used to
logon to ArchestrA if the Read Only box is unchecked and ArchestrA has security enabled. In
such a case, you must enter valid credentials as configured in ArchestrA. Default value is
blank.
Note: ArchestrA user login data is not hot-configurable. OI Gateway must be restarted for the new
values to take affect.
20
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Note: Do not configure an ArchestrA group name to be identical with an item prefix. This name clash
could cause unexpected behavior. Identical means the same in a case-insensitive manner. For more
information, see Using Item Prefixes. Naming an ArchestrA group the same as an item (or the first part
of an item name) also causes an ambiguity in OI Gateway namespace. In other words, do not name an
ArchestrA group "Float" if a "Float.PV.Value" item exists in the Galaxy.
Important: Each group or topic must be uniquely named for the data source associated with it.
This section describes how a connected client requests access to items (or attributes) of a particular
ArchestrA data source.
The following are examples of pairs of client/data source connections via OI Gateway, and their
associated item name syntax:
To access an item in ArchestrA via OI Gateway through an OPC client, use the following syntax:
Establish connection:
"OI.Gateway.1"
Reference item:
"ArchestrA.TIC101.PV"
To access an item in ArchestrA via OI Gateway through a DDE or SuiteLink client, use the
following syntax:
Establish connection:
21
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
Application = Gateway
Topic (Device Group) = ArchestrA
Reference item:
"TIC101.PV"
Example #1
Assume the InTouch data source object is named "MyInTouch".
OPC Client
Access the same TankLevel item through an OPC client as follows:
MyInTouch.TankLevel
DDE/SuiteLink Client
DDE and SuiteLink clients add items to the Device Group associated with the given InTouch data
source object. To access the item in an InTouch data source via OI Gateway through a DDE or
SuiteLink client, use the following syntax:
Application: Gateway
Topic (Device Group): MyInTouch
Item (Tagname): TankLevel
Excel cell reference: =Gateway|MyInTouch!TankLevel
Example #2
An InTouch data source object allows you to group related InTouch tagnames together under the
InTouch group object. Items can be added to InTouch group objects in the same way as they are
added directly to the InTouch data source object. The same InTouch tagname is referenced whether
the item is added directly to the InTouch data source object or to an InTouch group object.
Assume a configuration with an InTouch data source object called "MyInTouch" and a single group
object called "Cleaner".
OPC Client
OPC clients can add items to either the InTouch data source object or to the group object. Fully
qualified OPC item names are created by concatenating the hierarchy tiers, separated by periods. The
following two examples are equivalent:
MyInTouch.TankLevel
MyInTouch.Cleaner.TankLevel
DDE/SuiteLink Client
DDE and SuiteLink clients add items to the Device Group associated with either the InTouch data
source object or its group object. The topic the DDE/SuiteLink client needs to connect to OI Gateway is
provided by this Device Group. The Device Group is created automatically when you create either the
InTouch data source object or the group object in the hierarchy.
The item name for a DDE or SuiteLink client would be as follows:
Application: Gateway
Topic (Device Group):
MyInTouch
or
22
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
MyInTouch_Cleaner
Item: TankLevel
Excel cell reference:
=Gateway|MyInTouch!TankLevel
or
=Gateway|MyInTouch_Cleaner!TankLevel
Each protocol has a set of supported data types for the values that can be accessed. The following
sections describe the data conversion mapping scheme applied by OI Gateway.
Note: If a client pokes an out-of-range value for any data type, OI Gateway does no clamping on the
value. OI Gateway passes the client request to the server.
Important: All pokes greater than 499 characters return Uncertain quality in the client and SMC. The
value is successfully poked to ArchestrA but it is truncated to 499 characters on the read-back.
Additionally, all data below +/-1.5e-45 is rounded to 0.0.
ArchestrA-DDE/SuiteLink Mappings
The following sections describe ArchestrA to DDE/SuiteLink and DDE/SuiteLink to ArchestrA data
conversions.
23
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
Float Real
Integer Integer
Time String
Datatype String
24
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Real Float
String String
ArchestrA–OPC Mappings
The following sections describe ArchestrA to OPC and OPC to ArchestrA data conversions. The
following rules follow the OPC Data Access (DA) Specification v2.05.
OPC Variant
Canonical
ArchestrA type Mapping Comments
Float VT_R4
Integer VT_I4
Time VT_BSTR
25
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
Datatype VT_BSTR
Note: Write failures can occur if the target ArchestrA attribute is a non-coercible type. In this case, the
gateway returns a failed write status to the client.
ArchestrA
OPC Variant Type Type Comments
VT_I2 Integer
VT_I4 Integer
VT_R4 Float
VT_CY String
VT_DATE String
VT_ERROR Integer
VT_BOOL Boolean
26
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
VT_DECIMAL Float
VT_I1 Integer
VT_UI1 Integer
VT_UI2 Integer
VT_INT Integer
VT_HRESULT Integer
VT_FILETIME String
27
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
VT_CLSID String
28
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
2. Configure the new OPC object according to the following option definitions:
o Server Node – The computer node on which the specified data source can be found. Default
value is localhost. Use the browse button to select from a list of all nodes on your network.
o Server Name – ProgID or ClassID of the OPC server (example of a ProgID: OI.Gateway.1,
ClassIDs are GUIDs). Use the browse button to select from a list of OPC server ProgIDs on
your network. Default value is blank.
Note: Use ClassID when referencing a server that does not use OPC enum to enumerate a
ProgID.
29
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
If selected and no VT suffix is appended to the item name, OI Gateway adds the item to the
OPC server with requested type = VT_EMPTY.
If not selected, the item name is passed to the OPC server with requested type = VT_EMPTY.
OI Gateway does not parse the item names looking for a VT suffix.
o Use Synchronous Reads and Writes – When selected, items advising reads and writes will
be using synchronous API for communication.
Important: Each group or topic must be uniquely named for the data source associated with it.
30
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Note: When using a VT suffix, the suffix must be specified in the Item Reference column in the Device
Items tab, not in the item name subscribed from a client.
VT Suffix Description
/VT_BOOL Boolean
/VT_I1 Char
31
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
VT Suffix Description
32
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Topic = OPCServer1_OPCGroup1
Reference item:
"R1"
DDE and SuiteLink clients add items to a Device Group associated with the OPC group. The topic the
DDE/SuiteLink client needs to connect to OI Gateway is provided by this Device Group. The Device
Group is created automatically when you create the group in the hierarchy. Its name is generated by
concatenating the OPC data source name with the group name, separated by an underscore ("_"). In
the example above, the Device Group would be named "ModbusOverOPC_Group1".
DDE and SuiteLink clients would access items as follows:
Gateway|ModbusOverOPC_Group1!Modbus.QT.R1
Using the VT syntax, you can specify the 4-byte Integer (/VT_I4) from the ModbusOverOPC data
source for item "R1" as follows:
Gateway|ModbusOverOPC_Group1!Modbus.QT.R1 /VTI4
Note: Use the "Device Group Name" as on the faceplate of the OPC Group Node.
InTouch HMI
Using InTouch as a data access client functions very much the same as the DDE/SuiteLink client.
Access an item "R1" in an OPC data source, "ModbusOverOPC", via OI Gateway through InTouch,
and specify a 4-byte signed Integer as follows:
Establish connection:
Application = Gateway
Topic = OPCServer1_OPCGroup1
Reference item:
"R1"
In InTouch, add tagnames in the Tagname Dictionary, configured for the defined Access Name, or for
"OPC",. the default Access Name. Typically, you will configure Access Names for read or read/write as
follows:
ModbusOverOPC.R1
You can specify the 4-byte Integer (/VT_I4) from the ModbusOverOPC data source for item "R1" as
follows:
ModbusOverOPC.R1 /VT_I4
Note: Since InTouch communicates through DDE or SuiteLink protocols, its data type conversions are
covered in the following sections that address DDE and SuiteLink conversion.
Each protocol has a set of supported data types for the values that can be accessed. The following
section describes the data conversion mapping scheme applied by OI Gateway.
Note: If a client pokes an out-of-range value for any data type, OI Gateway does no clamping on the
value. OI Gateway passes the client request to the server.
DDE/SuiteLink-OPC Mappings
The following sections describe OPC to DDE/SuiteLink and DDE/SuiteLink to OPC data conversions.
33
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
DDE/SuiteLink
OPC Variant Type Type Comments
34
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Note: Conversion failures can occur. In this case, the gateway returns Bad quality to the OPC client.
OPC Variant
DDE/SuiteLink Canonical
Type Mapping
Discrete VT_BOOL
Float VT_R4
Integer VT_I4
String VT_BSTR
35
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
36
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Example #1
Assume the InTouch data source object is named "MyInTouch".
37
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
OPC Client
Access the same TankLevel item through an OPC client as follows:
MyInTouch.TankLevel
DDE/SuiteLink Client
DDE and SuiteLink clients add items to the Device Group associated with the given InTouch data
source object. To access the item in an InTouch data source via OI Gateway through a DDE or
SuiteLink client, use the following syntax:
Application: Gateway
Topic (Device Group): MyInTouch
Item (Tagname): TankLevel
Excel cell reference: =Gateway|MyInTouch!TankLevel
Example #2
An InTouch data source object allows you to group related InTouch tagnames together under the
InTouch group object. Items can be added to InTouch group objects in the same way as they are
added directly to the InTouch data source object. The same InTouch tagname is referenced whether
the item is added directly to the InTouch data source object or to an InTouch group object.
Assume a configuration with an InTouch data source object called "MyInTouch" and a single group
object called "Cleaner".
OPC Client
OPC clients can add items to either the InTouch data source object or to the group object. Fully
qualified OPC item names are created by concatenating the hierarchy tiers, separated by periods. The
following two examples are equivalent:
MyInTouch.TankLevel
MyInTouch.Cleaner.TankLevel
DDE/SuiteLink Client
DDE and SuiteLink clients add items to the Device Group associated with either the InTouch data
source object or its group object. The topic the DDE/SuiteLink client needs to connect to OI Gateway is
provided by this Device Group. The Device Group is created automatically when you create either the
InTouch data source object or the group object in the hierarchy.
The item name for a DDE or SuiteLink client would be as follows:
Application: Gateway
Topic (Device Group):
MyInTouch
or
MyInTouch_Cleaner
Item: TankLevel
Excel cell reference:
=Gateway|MyInTouch!TankLevel
or
=Gateway|MyInTouch_Cleaner!TankLevel
38
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Each protocol has a set of supported data types for the values that can be accessed. The following
sections describe the data conversion mapping scheme applied by OI Gateway.
Note: If a client pokes an out-of-range value for any data type, OI Gateway does no clamping on the
value. OI Gateway passes the client request to the server.
OPC–DDE/SuiteLink Mappings
The following sections describe OPC to DDE/SuiteLink and DDE/SuiteLink to OPC data conversions.
Note: Conversion failures can occur. In this case, the gateway returns Bad quality to the OPC client.
OPC Variant
DDE/SuiteLink Canonical
Type Mapping
Discrete VT_BOOL
Float VT_R4
Integer VT_I4
String VT_BSTR
DDE/SuiteLink
OPC Variant Type Type Comments
39
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
VT_DATE String
VT_BSTR String On writes, rejected if out
of range.
VT_DISPATCH Not supported On writes, rejected.
VT_ERROR Integer
VT_BOOL Discrete
VT_VARIANT Not supported On writes, rejected.
VT_DECIMAL Float On writes, rejected if out
of range.
40
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
41
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
o Tag Browser button – Click to open the InTouch Tag Browser, in which you can select
InTouch tags for inclusion in the items list on the Device Items tab. See InTouch
documentation for information about how to use the Tag Browser. While using the Tag
Browser, note that you can use typical Windows operations such as Ctrl-Click to toggle
selections and Shift-Click to multi-select tagnames.
Note: When a DDE connection fails, the InTouch data source object automatically switches to
SuiteLink even though DDE has been configured as its Connection Protocol. This happens in
instances such as connecting to a remote InTouch node in which NetDDE is not supported.
42
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
o Tag Browser button – Click to open the InTouch Tag Browser, in which you can select
InTouch tags for inclusion in the items list on the Device Items tab of this group. See InTouch
documentation for information about how to use the Tag Browser. While using the Tag
Browser, note that you can use typical Windows operations such as Ctrl-Click to toggle
selections and Shift-Click to multi-select tagnames.
Note: Since an InTouch group always belongs to a given InTouch data source object, all of its
parameters (except the Read Only check box and the Tag Browser button) are implicitly inherited and
thus for reference only (non-configurable) from the InTouchGroup configuration view.
Although the InTouch tagname database is flat, InTouch groups provide an artificial grouping
hierarchy.
Important: Each group or topic must be uniquely named for the data source associated with it.
43
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
In this configuration, GalaxyB:Object1.TimeAttr shows the time adjusted to the local time zone of the
InTouch application and not the time zone of the PLC:
PLC.Item <= GalaxyA Object1.IntAttr.Time <= InTouch App I/O Message Tag <= GalaxyB
InTouchProxy <= Object1.TimeAttr
To avoid these problems, subscribe to the GalaxyA:Object1.IntAttr value property. This way, both the
value and time stamp propagate to GalaxyB:Object1.IntAttr. You can then use the
GalaxyB:Object1.IntAttr.Time. For example:
PLC.Item <= GalaxyA Object1.IntAttr <= Gateway <= GalaxyB OPCClient <= Object1.IntAttr
PLC.Item <= GalaxyA Object1.IntAttr <= InTouch App I/O Integer Tag <= GalaxyB InTouchProxy
<= Object1.IntAttr
In this configuration, the time property propagates from InTouch to Object.IntAttr.Time:
PLC.Item <= InTouch I/O Integer Tag <= Galaxy InTouchProxy <= Object.IntAttr
Example #1
Assume the InTouch data source object is named "MyInTouch".
OPC Client
Access the same TankLevel item through an OPC client as follows:
MyInTouch.TankLevel
DDE/SuiteLink Client
DDE and SuiteLink clients add items to the Device Group associated with the given InTouch data
source object. To access the item in an InTouch data source via OI Gateway through a DDE or
SuiteLink client, use the following syntax:
Application: Gateway
Topic (Device Group): MyInTouch
Item (Tagname): TankLevel
Excel cell reference: =Gateway|MyInTouch!TankLevel
44
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Example #2
An InTouch data source object allows you to group related InTouch tagnames together under the
InTouch group object. Items can be added to InTouch group objects in the same way as they are
added directly to the InTouch data source object. The same InTouch tagname is referenced whether
the item is added directly to the InTouch data source object or to an InTouch group object.
Assume a configuration with an InTouch data source object called "MyInTouch" and a single group
object called "Cleaner".
OPC Client
OPC clients can add items to either the InTouch data source object or to the group object. Fully
qualified OPC item names are created by concatenating the hierarchy tiers, separated by periods. The
following two examples are equivalent:
MyInTouch.TankLevel
MyInTouch.Cleaner.TankLevel
DDE/SuiteLink Client
DDE and SuiteLink clients add items to the Device Group associated with either the InTouch data
source object or its group object. The topic the DDE/SuiteLink client needs to connect to OI Gateway is
provided by this Device Group. The Device Group is created automatically when you create either the
InTouch data source object or the group object in the hierarchy.
The item name for a DDE or SuiteLink client would be as follows:
Application: Gateway
Topic (Device Group):
MyInTouch
or
MyInTouch_Cleaner
Item: TankLevel
Excel cell reference:
=Gateway|MyInTouch!TankLevel
or
=Gateway|MyInTouch_Cleaner!TankLevel
Refer to Configuration for a general overview about configuring data sources in OI Gateway. For more
information, refer to one of the following help topics:
Configuring an MQTT Data Source Connection on page 46
45
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
Note: An OI Server Professional level license is required to create multiple instances of the OI
Gateway.
46
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
A red security icon is displayed with the text, Connection to the broker is unsecured and
untrusted.
The red security icon indicates that the identity of the broker cannot be checked and the
connection is unencrypted. Since the broker's identity cannot be verified, it is considered
unknown and untrusted.
Note: Enabling a secured connection is separate from connecting to a broker. Once security has been
successfully enabled, it is possible to see a green security icon without being connected to the broker.
However, you must be connected to the broker to be able to validate security.
Note: If the MQTT publisher has a different QoS than the configured QoS, the configured QoS
is used.
Note: If you enable this option, it is highly recommended that you enable MQTT Connection
Security to protect the username and password.
OI Gateway uses the user name and password settings that you enter here to connect to the
configured MQTT broker. If the MQTT sources encrypt the payloads with different user names and
passwords, you must create additional groups to support them.
2. Enter the user credentials (user name and password) to be used for subscribing to MQTT
messages. This must match a valid MQTT user name at run time. However, the user name is not
validated during configuration. The password would be used by MQTT publisher to validate the
subscriber. Prior to saving user credentials, you can click Show Password to briefly display the
password in clear text for verification.
3. Click the Validate Identity button to verify that the MQTT Broker can be accessed on the
configured MQTT channel.
48
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Syntax Example
site/area1/mixer4/valve/input
Using JSON Strings
Data messages are expected to be in string format. The string can be formatted as a JSON key value
pair, which will be detected automatically. JSON messages are parsed by the driver to allow the
extraction of each key value pair as attributes of an object.
For example, the field device from a pump station transmits a message that includes location, pump
running status, oil pressure, and maintenance data. The MQTT topic for this message is
Field/FS785/Status. The payload for this message could use a JSON formatted message, such
as:
{"lat":32.95646, "lon":-96.82275, "Pump_running":1, “Oil_Press”:67.23, “Maintenance”:"Last
Maintenance Dec 14-2015"}
An application could subscribe to any of the following topics:
Field/FS785/Status
Field/FS785/Status.lat
Field/FS785/Status.lon
Field/FS785/Status.Pump_Running
Field/FS785/Status.Oil_Press
Field/FS785/Status.Maintenance
Note: We recommend you to set up an MQTT Broker connection before configuring the MQTT
Publisher. Refer Configuring an MQTT Data Source Connection on page 46 section for steps to
configure the MQTT Broker.
49
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
o A new object is created in the hierarchy tree and is named New_OPC_000 by default (in "edit
mode"). Rename it, if desired. You are allowed to add an unlimited number of OPC data
sources. The object is named as OPC_001 in this example.
2. Configure the new OPC object according to the following option definitions:
o Server Node – The computer node on which the specified data source can be found. Default
value is localhost. Use the browse button to select from a list of all nodes on your network.
o Server Name – ProgID or ClassID of the OPC server (example of a ProgID: OI.Gateway.1,
ClassIDs are GUIDs). Use the browse button to select from a list of OPC server ProgIDs on
your network. Default value is blank. We are using the OI.SIM.1 as the OPC server.
o Reconnect Attempts – Number of times OI Gateway attempts to reconnect to the specified
data source if a connection fails. The value (-1) means no limit to the number of attempts. The
value Zero (0) means no attempts. Minimum/maximum range is -1 to 1,000,000. Default value
is 3.
o Reconnect Period –Delay (in ms) between reconnect attempts if a connection fails.
Minimum/maximum range is 10,000 to 300,000 ms (corresponding to the range of 10 sec to 5
min). Default value is 30000 ms.
o Poke Retries – Number of times OI Gateway attempts to retry the write operation if a write
operation fails. The value zero (0) means no retry attempts. Minimum/maximum range is 0 to
100. Default value is zero (0).
Note: Currently, only an OPC Data Source can be configured to publish data to an MQTT Broker.
50
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
o A new object is created in the hierarchy tree and is named New_OPCGroup_000 by default
(in "edit mode").Rename it, if desired. You are allowed to add up to 100 negroup objects. We
have renamed the group object to OPCGroup_1 in this example.
2. Configure the new group object according to the following option definitions:
o Device Group Name – Name of the topic that DDE or SuiteLink clients of OI Gateway connect
to in order to access items at the OPC group. Default value is the concatenation of the OPC
data source object’s name and the group object’s name (this cannot be edited).
o Update Rate – Value (in ms) used by OI Gateway to update the OPC group.
Minimum/maximum range is 0 to 2147483646 ms. If the OPC server supports it, zero (0)
update rate means the data source sends data changes immediately. If the server does not
support zero update rate, it typically returns a message including information about its fastest
possible update rate. Default value is 1000 ms.
The update rate can also be adjusted at run time by setting the $SYS$OPCUpdateInterval
system item.
o OPC Item ID Prefix – String prefixed to all item names added to the OPC group. Default value
is blank.Example: Item Prefix=40, Item=001, Item requested from data source=40001. In this
instance, using the OI Sim server as the selected server, this value is entered as
<PORT.PLC.>.
51
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
o The Device Group Name field is automatically filled in and cannot be edited.The Device Group
Name is used for accessing MQTT data from a DDE/SuiteLink client.
2. Select a level of Quality of Service (QoS) from the drop down list box.The QoS level determines
message delivery parameters, with 0 as the lowest level of service, and 2 as the highest level.
o 0 - At Most Once: The message will be delivered no more than one time, meaning that it may
not be delivered. There is no backup of the message, and if the connection to the client is lost,
the message will not be delivered. No delivery acknowledgement is provided.
o 1 - At Least Once: The message will delivered at least one time, but it may be delivered more
than once if the sender does not receive an acknowledgement of a successful transmission.
The sender stores the message until a receipt acknowledgement is received.
o 2 - Exactly Once: The message is delivered one time only. The sender stores the message
until it receives confirmation of receipt. This is the safest, and slowest, message transfer mode.
3. Under Identity, select the Enable checkbox and enter the user credentials (user name and
password) for the group connection (optional)
4. Click the Validate Identity button to verify that the MQTT Broker can be accessed on the
configured MQTT channel.
Note: The characters + and # are considered invalid and cannot be used in the Unique Item ID
52
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
6. Multiple reference items can be added for the selected Publish User Group.
53
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
54
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Option Description
Important: If the Security Message Mode is not set to None, the OPC UA Server’s digital certificate
must be trusted and made available on the OPC UA Client computer. For more information on digital
certificates, see Managing Digital Certificates on page 103.
Security Policy
Security Policy is set to None by default.
Option Description
55
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
Important: If the Security Policy is not set to None, the OPC UA Server’s digital certificate must be
trusted and made available on the OPC UA Client computer. For more information on digital
certificates, see Managing Digital Certificates on page 103.
User Credentials
If the Anonymous User checkbox is selected, the OPC UA client is allowed to connect to the OPC UA
server without credentials. Clear the checkbox to provide a user name and password in their respective
text boxes.
You can create a secure connection with the OPC UA server depending on how the server accepts the
connection. For example, if your OPC UA client wants to connect to an OPC UA server that does not
support anonymous connections, the OPC UA client must provide a valid user name and password.
56
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
The OPC UA Namespace section of the OPC UA editor displays the Namespace alias table for the
Namespace URI’s present in the OPC UA Server to which the OPC UA Client is connected.
Index Displays the Namespace index for the Namespace URI present in
the OPC UA Server. The default Namespace is appended with *
after the Index.
The items configured in the default Namespace need not be
subscribed in the syntax using the alias or the Namespace name.
Alias Displays the alias name for the Namespace URI available in the
OPC UA Server.
You can change this name during configuration. The Alias box
cannot be blank. You can use the "_" and "#" special characters in
the alias name. You cannot create duplicate alias names.
Node ID Type Displays the Node Id type of the Namespace in the OPC UA Server.
Node Id type can be of String, or Integer data type. This information
is obtained from the OPC UA Server.
Namespace URI Displays the Namespace URI imported from the OPC UA Server.
This information cannot be edited.
Use the context menu in the Namespace Alias table to edit:
Default namespace
57
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
58
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
b. Update Rate: Expressed in milliseconds, this parameter controls the fastest rate at which
updates are sent from the Gateway to the client. The default value is 1000 ms. The minimum
value is 0 ms. The maximum value is 2147483646 ms. This parameter is hot configurable.
c. Read Only: When selected, all items connected through the OPC UA group are read only.
This parameter is hot configurable.
3. (Optional) Configure Device Items. Click the Device Items tab and add item names and
references. For more information, see Configuring Device Item Definitions.
59
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
60
Connecting to Data Sources Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
61
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Connecting to Data Sources
62
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 4
Device Groups and Device Items
In This Chapter
Configuring Device Item Definitions ........................................................................................................63
Exporting and Importing the Gateway Item Data ....................................................................................64
Note: When you create or add a new device item, a unique name needs to be entered for it.
63
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Device Groups and Device Items
64
Device Groups and Device Items Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Note: Duplicate items with the same Item References are ignored during import. Duplicate items with
different Item References cause a dialog box to be displayed, in which you must make a selection.
Important: OI Gateway resolves item names from its clients at runtime in the following order:
1. System items (those prefixed with $SYS$)
2. Device items (those defined in the Device Items configuration view)
3. All other items (validated directly from the PLC device)
65
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 5
Managing the Gateway
In This Chapter
Gateway Post-Configuration Steps .........................................................................................................67
Configuring the Gateway as Service .......................................................................................................67
Configuring the Gateway as Not a Service .............................................................................................68
Archiving Configuration Sets ...................................................................................................................68
Activating/Deactivating the Gateway.......................................................................................................68
In-Proc/Out-of-Proc .................................................................................................................................69
Hot Configuration ....................................................................................................................................69
67
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Managing the Gateway
68
Managing the Gateway Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
In-Proc/Out-of-Proc
The OI Server is triggered. Explicitly starting as part of the client process (in-proc) is not currently OI
Server supported. Activation using the CLSCTX_ACTIVATE _64_BIT_SERVER flag is also not
supported.
Note: The exception to this behavior is OPC UA, which is a service and runs in-proc.
When the OI Server is running out-of-proc, it supports requests from both DDE/SuiteLink and OPC
client applications.
If the OI Server is running as a service, the icon on the OI Server node in the SMC is yellow. If the OI
Server is not running as a service, the icon is white. For more information, see the Wonderware
Operations Integration- Supervisory Server Manager Help.
Hot Configuration
OI Gateway is mostly hot-configurable. For instance, you can do the following while the gateway is
activated:
Modify Global Parameters
Add, delete, or modify data source nodes
Add, delete, or modify device groups or topics
Add, delete, or modify device items
Modify data source and group/topic configuration
ArchestrA user login data is not hot-configurable. OI Gateway must be restarted for the new values to
take effect.
69
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 6
Accessing the Data in the Gateway
In This Chapter
About Accessing Data in the Gateway ....................................................................................................71
Accessing Data Using OPC ....................................................................................................................71
Accessing Data Using DDE/SuiteLink .....................................................................................................72
Accessing Data Using MQTT ..................................................................................................................72
Accessing Data Using OPC UA ..............................................................................................................72
71
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Accessing the Data in the Gateway
device group: Meaningful names configured in OI Gateway under a specific data source for the
common custom attributes between OI Gateway and the source, such as update interval. If not
specified from the client, the default device group using the global configuration attribute values
from OI Gateway is assumed. Functionally, a device group is equivalent to an access path
(optional).
link name: The set of hierarchy node names, representing the specific data source on a
communications path link from the hierarchy root to a specific source as configured for OI Gateway
under the OI Server Manager, separated by delimiters.
item name: A specific data element, the leaf of the hierarchy tree of OI Gateway, within the
specified group.
item suffix: Optionally configure OPC data sources to use the /VT item suffix to tell the underlying
OPC server the type of data you want the underlying OPC server to report to OI Gateway. For
more information, see Connecting to an OPC Data Source on page 28.
Note: You can define multiple device-group (topic) names for the same data source to poll different
data at different rates.
72
Accessing the Data in the Gateway Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
i. Application: OI.Gateway
ii. Topic: OPCUA1_Topic1
b. Item Reference : Device1.TankLevel
73
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 7
The Gateway Features
In This Chapter
Data Source Redundancy .......................................................................................................................75
Instantiating the Gateway ........................................................................................................................76
Licensing for Gateway Features .............................................................................................................77
Note: Items can not be added for updates through the Redundant Device Object if the items do not
exist in both controllers.
If the Primary data source fails, the OI Gateway will automatically switch over to the Secondary data
source. The Secondary data source then becomes the active data source with the failed Primary data
source reverting to the backup role. If the failed data source recovers to good status, it will remain in
the standby mode.
Note: Redundant Device Object does not support the ArchestrA object. There can only be one
ArchestrA object per hierarchy.
Runtime Behavior
The OI Gateway will start with the active data source. The OI Server Engine will switch to the standby
data source when the active data source fails to communicate. The value of the $SYS$Status will
determine the communication failure.
Note: The value of the $SYS$Status of the standby data source must be TRUE in order to switch over
to the standby data source. Otherwise, there will not be any failover.
When $SYS$Status shows a FALSE value at both active and standby data sources, the OI Server
Engine will consider a complete communication failure and mark all the items subscribed to the
redundancy data source hierarchy with the current time and the appropriate OPC quality. The OI
Server Engine will activate the slow-poll mechanism to retry the communication to both data sources
until either one of the Ping Items returns to a good quality and update its $SYS$Status item to TRUE.
When the OI Server Engine switches to the standby data source, the standby data source becomes
active and the originally active data source becomes the standby.
When the active data source becomes the standby data source the Ping Item will not be deleted from
that the standby data source. This will ensure the standby will be able to recover the communication
again.
75
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide The Gateway Features
Note: The Ping Item must be a valid item from the controller that has not been rejected by the server
for the failover to function properly.
The OI Gateway will log any failover activities. All other functionality such as diagnostics,
enable/disable, and reset will be performed exactly the same as it is performed for any other hierarchy
node.
Note: Unsolicited message configuration is not supported in the Redundant Device Object (RDO)
itself. You can still receive unsolicited messages directly from data source groups defined in the regular
server hierarchy.
This feature allows the OI Gateway to provide fail over support by providing one node which switches
between two other nodes. The Redundant Device Object is configured with a redundancy node which
directs itself to one of the two nodes and switches to the other based on lack of communications to a
common user-configured controller item. In this manner the Redundant Device Object can be used to
direct client requests to the redundant node, which switches between data source or communication
pathway failure without intervention.
Note: Creating multiple instances of the Gateway or OI Servers requires a Professional level license.
For more information, see Licensing for Gateway Features on page 77.
76
The Gateway Features Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Demo Mode
You can install the OI Gateway without a license. The OI Gateway runs without a license in Demo
mode for 120 minutes. When the 120 minutes expire:
The OI Server stops updating items.
All non-system items have a Bad quality status.
New items are rejected.
While in demo mode the OI Gateway checks for a license every 30 seconds. If a license is not found,
the OI Server logs a warning.
Use the $SYS$Licensed system item to check the status of your license. This item returns true if the
proper license is found or the OI Server is in demo mode (the 120 minutes). Otherwise, it returns false.
After the OI Server finds a valid license, it logs a message, stops looking for a license, and begins
running normally. For more information, see the License Utility Documentation.
77
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 8
System Items
In This Chapter
Standard System Items ...........................................................................................................................79
OPC UA Diagnostic Items .......................................................................................................................86
Data Quality.............................................................................................................................................92
In the ArchestrA context, the device group plays the most important role of identifying the scope of any
item. The device group defines the hierarchical location implicitly when using globally unique
device-group names, which is required for DDE/SuiteLink compatibility.
All system items follow the same naming convention:
All system items start with $SYS$.
The OI Server Engine scans and parses the name for system items. Parsing of the name is
case-insensitive.
All system items can be accessed through subscriptions to a Device Group. However, while some
system items return data for that Device Group, others are gateway-wide.
79
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide System Items
Type/
Access
System Item Name Rights Description Values
Type/
Access
System Item Name Rights Description Values
80
System Items Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Type/
Access
System Item Name Rights Description Values
Caution: For all three device-specific system items, status is always good for an ArchestrA data
source.
Type/
Access
System Item Name Rights Description Values
81
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide System Items
Type/
Access
System Item Name Rights Description Values
82
System Items Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Type/
Access
System Item Name Rights Description Values
>=0: Number of
active items.
>=0: Number of
active items.
83
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide System Items
Type/
Access
System Item Name Rights Description Values
Important: OI Gateway-specific systems items are available only at the following hierarchy levels:
ArchestrA data source, OPC groups, DDE/SL topics, and InTouch data source.
Type/
Access
System Item Name Rights Description Values
84
System Items Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Type/
Access
System Item Name Rights Description Values
Type/ Access
System Item Name Rights Description Values
85
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide System Items
Type/ Access
System Item Name Rights Description Values
Important: The Redundant Hierarchy, including the Device Group, is not hot-configurable, and
requires a Reset on the Redundant Hierarchy to effect a configuration change.
86
System Items Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Global Diagnostic Items on page 87: diagnostic items for the entire OPC UA hierarchy.
Connection Diagnostic Items on page 89: diagnostic items for a specific connection.
Subscription Diagnostic Items on page 90: diagnostic information for a specific subscription.
OPC UA Client Diagnostic Items on page 91: diagnostic items for the entire OPC UA hierarchy.
The OPC UA diagnostic items follow a specific syntax. See Diagnostic Item Syntax on page 87 for
syntax information.
$SYS$DIAG/<Object Path>/<Item>
Where:
$SYS$DIAG – is a special namespace containing diagnostic items in the service.
<Object Path> - is substituted with a one or more object qualifiers, each separated by ‘/’.
<Item> - is substituted with the name of a specific diagnostic item.
$SYS$DIAG/Global/<Item>
Where:
<Item> is one of the diagnostic item names from the following table.
87
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide System Items
88
System Items Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
$SYS$DIAG/Conn=<ConnIndex>/<Item>
Where:
<ConnIndex> is a connection index in the range of 0 to n and always 0 in case of OI Gateway as it
supports 1 connection for 1 hierarchy.
<Item> is one of the diagnostic item names from the following table.
If the <ConnIndex> does not exists, then 0 will be updated for item of type Integer/Float and "" (blank)
will updated for item of type string. Quality of these items will stay as Good.
89
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide System Items
reset
$SYS$DIAG/Conn=<ConnIndex>:<SubIndex>/<Item>
Where:
<ConnIndex> is a connection index in the range 0 to n. ConnIndex is always 0 in case of OI
Gateway
<SubIndex> is a subscription index in the range of 0 to n
<Item> is one of the diagnostic item names from the following table.
If the <ConnIndex> or <SubIndex> does not exists, then 0 will be updated for item of type Integer/Float
and "" (blank) will updated for item of type string. Quality of these items will stay as Good.
90
System Items Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
$SYS$DIAG/UAClient/<Item>
Where:
<Item> is one of the diagnostic item names from the following table.
91
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide System Items
Data Quality
Data quality is supported in the following protocols:
ArchestrA Message Exchange
OPC
SuiteLink
FastDDE v3
OPC UA
Data quality is not supported in the following protocols:
DDE
FastDDE v2
92
System Items Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
For those protocols that support it, quality is consistent with OPC Quality. Therefore, data quality from
a source that supports it is passed through OI Gateway unmodified if the client also supports it. In the
case of a client that does not support it, the quality is dropped. In the case of a data source that does
not support quality, if the client supports it, the quality is fabricated and is always Good (exception:
when OI Gateway cannot communicate with the target data source).
93
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 9
Troubleshooting
In This Chapter
Using Troubleshooting Tools ..................................................................................................................95
Monitoring Connectivity Status with a Data Source ................................................................................95
Monitoring the Status of Conversations with DDE/SuiteLink Clients ......................................................96
Error Messages and Codes ....................................................................................................................97
Communication Failures .........................................................................................................................99
Note: In order to determine the version of your Gateway, perform the following steps. Search for the
Gateway DLL (Gateway.dll), right-click on the File Name, select Properties on the context menu, and
select the Version tab on the Properties dialog box. The version of your Gateway is listed under File
Version.
95
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Troubleshooting
Note: For DDE/SuiteLink clients, $SYS$Status always comes from the leaf level of OI Gateway
hierarchy branch, which is the destination data source. For OPC clients, $SYS$Status can be
accessed at all hierarchy levels. $SYS$Status at the root level of the whole hierarchy tree is always
good, as it represents the quality status of the local computer itself. Hence, for practical application,
OPC clients should reference $SYS$Status at any hierarchy levels other than the root.
Enter the following DDE reference formula in the appropriate place in your client:
=Gateway|<Device Group>!$SYS$Status
where:
Gateway = the name of OI Gateway application.
<Device Group> = the exact device group defined in OI Gateway for the data source.
$SYS$Status = the discrete item used to monitor the status of connectivity with the data source.
Example:
=Gateway|ModbusOverSL_FastTopic!$SYS$Status
Enter the following OPC item reference syntax when adding the item in your OPC client:
<YourLinkName>.$SYS$Status
where:
<YourLinkName> is the assembly of hierarchy node names leading to a specific data source.
$SYS$Status is the discrete item used to monitor the status of connectivity with the data
source.
Example:
ModbusOverSL.FastTopic.$SYS$Status
Note: In case of a data source disconnection, OI Gateway attempts the number of connection retries
as configured for the given data source object, and makes no more attempts afterward. Subsequently,
it is up to the client to re-initiate the connection via the system item $SYS$Reconnect.
96
Troubleshooting Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Note: Refer to the Microsoft Excel manual for complete details on entering Remote Reference
formulas for cells.
97
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Troubleshooting
S_OK The corresponding item handle was valid. The write will
be attempted and the results will be returned on
OnWriteComplete.
98
Troubleshooting Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Another item, called $SYS$GatewayConnectionStatus, is a Boolean that reads True when connected
and False when disconnected. Note in the case of a DDE/SuiteLink data source, the connection is to
an application and a topic. Also, in the case of an ArchestrA data source, the connection is to a
Platform through Message Exchange. And in the case of an OPC data source, the connection is to an
OPC Server through COM/DCOM object creation.
Communication Failures
OI Gateway behaves in the following manner in the case of failed communication with a data source:
The gateway attempts to periodically reestablish a connection with the data source up to the
maxmium number of retry attempts as specified in its Reconnect Attempts parameter.
Note: The gateway is not responsible for starting the data source server, unless the source protocol
supports it. OPC has this capability.
The gateway marks all items being read from the data source with Bad quality. OPC carries a
sub-status of Comm Failure.
Write attempts to the data source are rejected with an appropriate error code.
OI Gateway behaves in the following manner in the case of failed communication with a client:
The gateway unsubscribes (deactivates) all items on the data source that were previously
subscribed to by the failed client. (Exceptions: Those items required by other, still connected,
clients remain subscribed. Also, in the case of an OPC client, FS Gateway maintains subscriptions
to all items on the data source previously subscribed to by the failed client.)
The gateway accepts future attempts to reconnect from the client. Reconnection is the
responsibility of the client.
Important: If OI Gateway fails to connect to a remote OPC server through both its ProgID and
ClassID, then lower the DCOM Authentication Level of the OPC server to None. Do this by opening
Control Panel on the remote computer, double-clicking Administrative Tools, double-clicking
Component Services, and then expanding the hierarchy tree under the Console Root as follows:
Component Services, Computers, My Computer and DCOM Config. Click DCOM Config. In the
right pane, right-click on the OPC server you cannot connect to, and then click Properties on the
shortcut menu. On the General page of the properties dialog box, select None for Authentication
Level. Click OK.
Communications failures with an ArchestrA data source behave in the following manner:
OPC Data
Communication Failure Quality
99
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
C HAPTER 10
Reference
In This Chapter
The Gateway Architecture .....................................................................................................................101
Component Environments .....................................................................................................................103
Managing Digital Certificates ................................................................................................................103
OI Gateway
OI Gateway is comprised of three physical parts (see the following figure). They are the following:
Plug-in Component(s): Responsible for communicating with clients.
OI Server Engine: This common component is used by OI Gateway as well as all Wonderware OI
Server.
Data Source Protocol Layer, Gateway-specific: This component is responsible for communicating
with the data sources.
101
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Reference
Each physical part of FS Gateway is comprised of a set of .exe and/or .dll modules. Wonderware
provides the Plug-ins and the OI Server Engine. The DAS Toolkit user creates the Data Source
Protocol Layer (OI Gateway-specific) modules. All three sets of modules are required for a fully
functioning gateway.
Plug-ins
Plug-ins provide a protocol-translation function for device integration clients. Typical Plug-ins
communicate in DDE, SuiteLink, or OPC protocol, and serve as interfaces between their clients and
the OI Server Engine.
Note: OPC-specific array data type (VT_ARRAY) is not supported in the DDE/SL plug-in. These arrays
are converted to HEX strings, which provide legacy behavior.
OI Server Engine
The OI Server Engine is a middleware component that exposes two sets of unique interfaces, one for
communicating with the Plug-ins and the other one for communicating with the Data Source Protocol
Layer components.
102
Reference Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Component Environments
OI Gateway has the following characteristics:
The OI Server Engine is dynamically linked to the other OI Gateway components. In other words, a
new OI Server Engine (feature enhancement or bug fix) would not require relinking to the other
components nor re-QA of those other components. When deployed to the system, the new OI
Server Engine would attach to all existing FS Gateway components.
Newly deployed Plug-ins (feature enhancements or bug fixes) do not require relinking nor re-QA of
associated components. Even new Plug-ins (for example, OPC Alarm & Events) would not require
any development changes to the other components, and therefore no relinking in a customer-
installed base. In fact, it is feasible to implement new functionality in a Plug-in to enhance OI
Gateway without any involvement of the code of the other components.
OI Gateway can be configured in one stand-alone configuration utility (OI Server Manager), and
the OI Server Manager is capable of displaying specific configuration views for OI Gateway as well
as other Wonderware OI Servers. This utility allows the browsing and editing of Data Access
products on different nodes.
The OI Server Manager diagnostics tool displays generic diagnostic objects common to OI
Gateway as well as all OI Server, in addition to OI Gateway-specific/OI Gateway-developer-defined
diagnostic data.
OI Gateway’s data configuration format is XML. Any XML-enabled program (for example, XML Editor)
can read this format.
Note: In a secured environment where the digital certificate is required to be signed by a Certificate
Authority, please consult your IT department for the procedure.
For a complete example and detailed instructions, see the list of related topics.
103
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Reference
Note: You will need to register for an account to download the package.
2. Unzip the download archive to extract the "OPC UA Sample Applications 1.02.msi", then right-click
the file name, and click Install on the context menu.
3. Accept the default settings. The OPC UA sample applications typically install to the following
directory:
C:\Program Files (x86)\OPC Foundation\UA 1.02\Sample Applications
The sample applications include sample servers, sample clients, and a certificate generator.
104
Reference Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
3. Click the Manage Application tab, and then click Create Application Certificate. The Create
Certificate dialog box appears. Enter information in the appropriate text and list boxes.
a. Store Type: From the Store Type drop-down list, select "Directory" if your OPC UA client is
running on the local computer.
b. Store Path: We recommend that you create a temporary directory to store and copy the
certificate and the private key. For example, C:\Tmp\TestUACert. Otherwise, accept the default
path or select another on your computer. In this example, we accept the default path.
c. CA Key File: Optional if you are creating a self-signed certificate.
d. CA Password: Optional if you are creating a self-signed certificate.
e. Application Name: The name of your OPC UA server.
f. Organization: Optional.
g. Application URI: The text box will be pre-filled with your OPC UA server. You can specify
another using this format:
urn:<computer name>:<OPC UA server name>
105
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Reference
h. Subject Name: The text box will be pre-filled with your OPC UA server name. You can specify
another using this format:
CN=<OPC UA server name>/DC=<computer name>
i. Domains: Enter the computer/node name. You can use "localhost" if on the local computer.
j. Key Size: Select a key size from the list box.
k. Lifetime: Select a key lifetime in number of months.
l. Key Format: Select "PFX" from the list box.
4. Click OK. The certificate and keys are created in \certs and \private subdirectories under the Store
Path you specified in step 3b.
2. Copy the private key file, UAClient.pfx in this example, from your C:\...\private directory into the
path %CommonApplicationData%\ <Application Name>\CertificateStores\OPCUAClient
\private on every computer on which you want to deploy the OPC UA Client service instance.
For example, the application name might be ArchestrA in the file path.
By doing this, you have replaced the file with the same name in that directory
Note: The path to store program data is %CommonApplicationData%. By default this location is
C:\ProgramData\.
3. On the computer where the targeted OPC UA Server may be running, copy the certificate file
UAClient.der from your C:\...\certs directory into the directory where you want to add the trusted
cert for the OPC UA Server.
4. Deploy the UA Client service instance to the node.
106
Reference Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Note: If you are adding a certificate to a UA server trusted list, point to the server executable file
and application name.
107
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Reference
4. On the UA Configuration Tool, click Select Certificate to Trust. The Manage Certificates in
Certificate Store dialog appears.
5. Select the server certificate you want to trust, then click OK.
108
Reference Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
6. Confirm the certificate has been added to the trust list. On the UA Configuration Tool dialog, click
View Trusted Certificates. The Manage Certificates in Certificate Store dialog appears, and
displays a list of trusted certificates.
109
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
Index
ArchestrA.DASFSGateway.2 • 67, 68
ArchestrA.FSGateway.2 • 13
$ ArchestrA-DDE/SuiteLink Mappings • 23
$SYS$Status • 79, 95
ArchestrAGroup object • 20
ArchestrA–OPC Mappings • 25
. archiving configuration sets • 68
.csv file • 63 Archiving Configuration Sets • 68
.csv file in Excel • 64
B
A Before Configuring the Gateway • 14
About Accessing Data in the Gateway • 71
About the OI Gateway • 9 C
Accessing Data Using DDE/SuiteLink • 72
Clear All command • 63
Accessing Data Using MQTT • 72
clearing all device items • 63
Accessing Data Using OPC • 71
comma separated values file • 63
Accessing Data Using OPC UA • 72
command
Accessing the Data in the Gateway • 71
Activate Server • 13 Add ArchestrA Object • 19
Activating/Deactivating the Gateway • 68 Add ArchestrAGroup Object • 20
Active Device • 75, 85 Add DDE Object • 36
actual PLC item names • 63 Add InTouch Object • 41
Add command • 63
Add InTouchGroup Object • 42
Adding a Certificate to the Trusted List • 107
adding DDE/SuiteLink data source object • 36 Add OPC Object • 28
adding device items • 63 Add OPCGroup Object • 30
adding group to InTouch object • 42 Add SuiteLink Object • 36
adding InTouch data source object • 41
Add Topic Object • 36
adding item references • 63
Communication Failures • 99
adding topic to DDE/SuiteLink object • 36 Component Environments • 103
Adjusting for Time Zones • 43
Configuration node • 68
alias names • 63
configuration set • 63
application name • 72 Configuration Set Name • 68
ArchestrA Data Conversion • 23
configuration view
ArchestrA Item ID Prefix • 20
Device Items • 63
ArchestrA Item Names • 21
ArchestrA Message Exchange • 11 Global Parameters • 13
ArchestrA System Management Console • 13 New_ArchestrA_000 Parameters • 19
ArchestrA to DDE/SuiteLink Conversions • 24 New_ArchestrAGroup_000 Parameters •
ArchestrA to OPC Conversions • 25 20
111
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Index
112
Index Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
F
FastDDE • 11 L
features • 11 Large-scale edit on item data • 64
FS Gateway hierarchy • 13 Licensing for Gateway Features • 77
FS Gateway version • 95 link name • 71
Local node • 13
Log Flag data • 97
G
Log Viewer • 97
Gateway Configuration • 13
Gateway Post-Configuration Steps • 67
Global Diagnostic Items • 87 M
Global Parameters • 13, 69 Managing Digital Certificates • 103
Global System Item • 79 Managing the Gateway • 67
group • 79 manual or automatic service • 13
group name • 71 Microsoft Management Console • 13
groups • 13 MMC • 13
Monitoring Connectivity Status with a Data
Source • 95
H Monitoring the Status of Conversations with
Handling Time Zones with the Time Property •
DDE/SuiteLink Clients • 96
43
MQTT • 12
hierarchical location • 79
MQTT Topic Names • 48
HMI • 10
Hot Configuration • 69
N
Name column • 63
113
Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide Index
114
Index Wonderware Operations Integration - Supervisory Gateway (G-1.2 Series) User Guide
T
The Gateway Architecture • 101
The Gateway Data Source Hierarchy • 15
The Gateway Features • 75
The Gateway Redundant Device-Specific
System Items • 85
The Gateway-Specific System Items • 84
topic name • 72
topics • 13
Troubleshooting • 95
U
Update Rate • 30
Use Another Configuration Set • 68
Use Group Name as Access Path • 30
User Name • 19
Using DDEStatus and IOStatus in Excel • 96
using different configuration sets • 68
Using Item Prefixes • 23
Using Item Suffixes • 31
Using the Self-Signed Certificate and Key Pair
• 106
Using Troubleshooting Tools • 95
V
Value Time Quality (VTQ) • 11
Verifying a Self-Signed Certificate from an
Untrusted MQTT Data Source • 47
W
WinSock • 11
115