Wonderware: Factorysuite Gateway User'S Guide
Wonderware: Factorysuite Gateway User'S Guide
Wonderware: Factorysuite Gateway User'S Guide
Copyright 2010 Invensys Systems, Inc. All Rights Reserved. All rights reserved. No part of this documentation shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Invensys Systems, Inc. No copyright or patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this documentation, the publisher and the author assume no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. The information in this documentation is subject to change without notice and does not represent a commitment on the part of Invensys Systems, Inc. The software described in this documentation is furnished under a license or nondisclosure agreement. This software may be used or copied only in accordance with the terms of these agreements. Invensys Systems, Inc. 26561 Rancho Parkway South Lake Forest, CA 92630 U.S.A. (949) 727-3200 http://www.wonderware.com For comments or suggestions about the product documentation, send an e-mail message to [email protected]. Trademarks All terms mentioned in this documentation that are known to be trademarks or service marks have been appropriately capitalized. Invensys Systems, Inc. cannot attest to the accuracy of this information. Use of a term in this documentation should not be regarded as affecting the validity of any trademark or service mark. Alarm Logger, ActiveFactory, ArchestrA, Avantis, DBDump, DBLoad, DT Analyst, Factelligence, FactoryFocus, FactoryOffice, FactorySuite, FactorySuite A2, InBatch, InControl, IndustrialRAD, IndustrialSQL Server, InTouch, MaintenanceSuite, MuniSuite, QI Analyst, SCADAlarm, SCADASuite, SuiteLink, SuiteVoyager, WindowMaker, WindowViewer, Wonderware, Wonderware Factelligence, and Wonderware Logger are trademarks of Invensys plc, its subsidiaries and affiliates. All other brands may be trademarks of their respective owners.
iii
Contents
Welcome..............................................................7
FS Gateway Version 2.0 Features .......................................................... 7 Documentation Conventions .................................................................. 8 Technical Support................................................................................... 8
Configuration....................................................19
Configuring FS Gateway...................................................................... 19 FS Gateway Data Source Hierarchy ................................................. 22 Configuring Data Source Redundancy................................................. 23
iv
Configuring Device Items.....................................................................45 OPC Item Names ..................................................................................46 Example.............................................................................................46 OPC Data Conversion...........................................................................47 DDE/SuiteLink-OPC Mappings........................................................47
Troubleshooting ...............................................95
Monitoring Connectivity Status with a Data Source............................ 95 Monitoring the Status of Conversations with DDE/SuiteLink Clients 97 Using DDEStatus and IOStatus in Excel.......................................... 97 Reading Values from FS Gateway into Excel .................................. 98 Error Messages and Codes ................................................................... 98 DDE/SuiteLink Client to Any Data Source Write Errors.............. 98 OPC Client to ArchestrA Write Errors .......................................... 99 OPC Client to DDE/SuiteLink Data Source Write Errors............. 99 Runtime Diagnostics and Error Reporting ..................................... 100 Communication Failures .................................................................... 100
Reference ........................................................103
FS Gateway Architecture ................................................................... 103 FS Gateway..................................................................................... 104 Component Environments.................................................................. 105
vi
Welcome
FactorySuite Gateway (FS Gateway) is a Microsoft Windows application program that acts as a communications protocol converter. It was built with the ArchestrA DAS Toolkit. FS Gateway can be used to link clients and data sources that communicate using different data access protocols.
Data Source Redundancy The feature allows the FS Gateway to provide fail over support by providing one hierarchy node which switches between two device hierarchy object nodes. Support for out-of-proc activation only OPC connectivity has been modified to support only out-of-proc activation. Supported Operating Systems
Windows 2003 R2 Windows Vista SP2 64-bit Windows 2008 SP2 32-bit Windows 2008 SP2 64-bit Windows 2008 R2 64-bit Windows 7 32-bit/64-bit
Support User Account Control (UAC) enabled FS Gateway 2.0 supports run-time operations with UAC enabled on applicable operating systems without user privilege elevation. Configuration and installation operations in Windows Vista and Windows 2008 operating systems require either UAC disabled or elevated user privileges. New Location for Configuration Files All configuration files and Tag Database files will be moved to C:\Documents and Settings\All Users\Application Data\Wonderware\DAServer\FSGateway on Windows XP and Windows Server 2003 operating systems and to C:\Program Data\Wonderware\DAServer\FSGateway on Windows Vista and above operating systems. The rule file will provide the version information.
Welcome
Documentation Conventions
This documentation uses the following conventions: Convention Initial Capitals Bold
Monospace
Used for Paths and filenames. Menus, commands, dialog box names, and dialog box options. Code samples and display text.
Technical Support
Wonderware Technical Support offers a variety of support options to answer any questions on Wonderware products and their implementation. Before you contact Technical Support, refer to the relevant section(s) in this documentation for a possible solution to the problem. If you need to contact technical support for help, have the following information ready:
The type and version of the operating system you are using. Details of how to recreate the problem. The exact wording of the error messages you saw. Any relevant output listing from the Log Viewer or any other diagnostic applications. Details of what you did to try to solve the problem(s) and your results. If known, the Wonderware Technical Support case number assigned to your problem, if this is an ongoing problem.
C H A P T E R
Getting Started
This chapter provides you with an overview of the Wonderware FactorySuite Gateway (referred to as FS Gateway throughout the remainder of this document), the communication protocols used between data sources and clients, accessing items, and product features. FS Gateway is an application developed with the ArchestrA DAS Toolkit that acts as a communications protocol converter. FS Gateway can be used to link clients and data sources that communicate using different protocols. FS Gateway documentation covers only the information you need to configure and run the FS Gateway component. See the documentation that comes with the related components for details on their operation. You can find installation instructions in a help file on the distribution CD. You use the DAServer Manager to configure, activate, and troubleshoot FS Gateway. The DAServer Manager is located in the System Management Console (SMC). This documentation describes some of the features of the DAServer Manager. See the DAServer Manager Users Guide to find more information on:
Global parameters Configuration sets Time zone features Icon definitions Activation/deactivation Configuring as a service Importing/exporting device items Standard diagnostics
You can troubleshoot problems with FS Gateway using the ArchestrA Log Viewer, a snap-in to the SMC. See the Log Viewer help file to find information on:
Viewing error messages. Determining which messages are shown. Bookmarking error messages.
10
Getting Started
You may also be able to troubleshoot problems using your client application, such as the Wonderware InTouch HMI software. The client application can use system device items to determine the status of nodes and the values of some parameters. The basic rules for FS Gateway include:
One instance of FS Gateway can run per node. FS Gateway can be configured to run as a service (auto or manual) or not as a service. FS Gateway can be activated and deactivated using the DAServer Manager snap-in. FS Gateway can be activated as a COM Server (OPC Server) using standard COM activation mechanisms. FS Gateway can be run only out-of-proc within OPC clients. FS Gateway can communicate only with ArchestrA data source components delivered with Industrial Application Server v2.0 and later. Earlier versions of IAS are not supported.
FS Gateway allows Windows application programs access to data from a variety of data sources. The following matrix indicates supported source/client mappings. Clients are listed in the left column, data sources are displayed across the top row, and N/A means not supported.
OPC v2.05 Data Access SuiteLink Server I/O Server OPC Client SuiteLink Client DDE Client FastDDE v2 Client FastDDE v3 Client N/A Yes Yes N/A Yes Yes N/A Yes N/A N/A
DDE ArchestrA I/O Server Yes Yes Yes Yes Yes Yes Yes N/A N/A N/A
FastDDE FastDDE v2 I/O v3 I/O Server Server InTouch Yes Yes N/A N/A N/A Yes Yes N/A N/A N/A Yes Yes Yes N/A N/A
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). FS Gateway must be located on the same node as ArchestrA in order to use that data source. To access FS Gateway, the chosen client must also have a valid configuration, which is client specific.
11
A PC is set up with the necessary network cards, and is connected to the necessary networks. The Windows administration account is created or identified. The DAServer and any other Wonderware software such as the DAServer Manager is installed with the proper licenses. For more information, see the License Utility documentation on the distribution CD. The client software is installed. The device(s) is/are connected (networked) and, if necessary, programmed.
Before configuring FS Gateway, you should know: The device network configuration and addresses. Which data items are needed for the client application. The device name/topic name/group name. The desired update intervals.
OPC
OPC (OLE for Process Control) is a non-proprietary set of standard interfaces based on Microsofts 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.
12
Getting Started
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 NT and Windows NTtechnology-based operating systems (for example, Windows 2000, Windows XP and Windows 2003). 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 systems 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 Microsofts 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 DAServer is configured as "Not a Service" and activated from its executable file or launched from InTouch. Local DDE is not supported when the DAServer 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.
13
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.
14
Getting Started
15
C H A P T E R
Setting Up FS Gateway
This section describes the procedures required to set up FS Gateway for use with the supported devices and communication-interfaces. Many high-level functions and user-interface elements of the DAServer Manager are universal to all DAServers. These universal functions are described in detail in the DAServer Manager Users Guide. See the DAServer Manager Users Guide to find more information on:
Global parameters Configuration sets Time zone features Icon definitions Activation/deactivation Configuring as a service Importing/exporting device items Standard diagnostics
16
Setting Up FS Gateway
2. 3.
4.
17
5.
To view global parameter configuration and settings in detail, see the DAServer Manager Users Guide.
18
Setting Up FS Gateway
19
C H A P T E R
Configuration
Network Communication Bridge/Interface Modules are the communication links between FS Gateway and its supported Allen-Bradley controllers. You must create these links within the DAServer Manager hierarchy to bridge/route control and information data between different networks to target controllers. This is accomplished by creating Port Objects. These Port Objects simulate the physical hardware layout and must be built to establish communications to each of the controllers. Once you have built FS Gateway hierarchy, you can configure the respective devices for communications. Finally, you can create the desired Device Groups for each controller. Before you add these Ports in the SMC, you need to identify your hardware topology to the devices being connected. Important! To run FS Gateway as a service, right-click FS Gateway name (ArchestrA.FSGateway.2) under DAServer Manager and select Configure As Service from the shortcut menu. You can configure it as an auto service or manual service. (For more information about configuring as a service see the Activation/Deactivation/ Service Component of the DAServer Manager documentation.) FS Gateway must be run as a service if you are using a DDE/SuiteLink client.
Configuring FS Gateway
Important! FS Gateway is hosted by the DAServer 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 DAServer Manager are universal to numerous products created with the ArchestrA DAS Toolkit. Only the documentation for the DAServer Manager contains descriptions of those universal functions/UI elements. Therefore, reading the documentation for both the MMC and the DAServer Manager is critical to understanding this users guide. To read the documentation about the MMC and DAServer Manager, click the Help command on the SMCs Action menu. Both the MMCs help and the DAServer Managers help are displayed. An Adobe Acrobat version of the DAServer Manager documentation (filename: DAServerManager.pdf) is also available in the CD-ROM folder \User Docs\English.
20
Configuration
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 FS Gateway 1. Install FS Gateway by running the Setup.exe program. Note Installation instructions are included in the products Installation Guide (filename: Install-FSGateway.chm). 2. 3. Accept all the default settings during the installation. Start the System Management Console. by clicking Start, pointing to Programs and then Wonderware, and then clicking System Management Console. From the System Management Console, find the DAServer Manager utility and then FS Gateway below in the hierarchy tree. See image below.
4.
Click on Default Group, then the Local node. Under the Local node, find FS Gateway (named ArchestrA.FSGateway.2). See the DAServer Manager documentation for general information about working in this snap-in environment.
Configuring FS Gateway
21
Important! Selecting the Configuration object of the hierarchy tree displays the Global Parameters configuration view for FS Gateway. The default Poke Mode settings for FS Gateway is Optimization mode. If you intend to put more than 5,000 items on advise, we recommend that you set Transaction Message Timeout to 120 seconds. Configure all other global parameters as required. For more information about the Global Parameters configuration view, including descriptions of the different Poke Modes, see the DAServer Manager documentation. Global parameters that appear dimmed are either not supported or cannot be configured in FS Gateway. Simulation Mode is not supported. 5. Before activating FS 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 the section, "FS Gateway Data Source Hierarchy." 6. You may create desired groups and topics for each data source by:
7.
Navigating to a data source object in the DAServer Manager tree view. 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. Configure the group or topic.
Finally, you may create desired device items for each group or topic by:
Selecting the group or topic object. Clicking the Device Items tab. 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 the section, "Configuring Device Item Definitions." Note When you are viewing the configuration hierarchy of FS Gateway and someone views the same FS Gateway in another instance of the DAServer 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 DAServer Manager (or just remove focus from FS Gateway hierarchy) and then toggle focus away from and then on FS Gateway hierarchy of the second instance.
22
Configuration
FS 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, FS Gateway can be auto-started. If you are using DDE/SuiteLink, you must start FS Gateway either as a manual or automatic service. To activate FS Gateway, right-click on ArchestrA.FSGateway.2 and click Activate Server on the shortcut menu.
23
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. For information about configuring specific data sources, refer to the following sections:
Connecting to an ArchestrA Data Source Connecting to an OPC Data Source Connecting to a DDE/SuiteLink Data Source Connecting to an InTouch Data Source
24
Configuration
2.
Create at least one device item that can be shared between the primary and secondary devices to determine device status.
3.
Set up an secondary device on the same DAServer. Once again, create an identical device item within the secondary device so that device status can be determined.
25
4. 5.
Select and right-click on the configuration node . 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.
26
Configuration
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.
27
C H A P T E R
To connect to an ArchestrA data source, create and configure its hierarchy (data source and groups), and use the proper item naming conventions in its client(s). Refer to Configuration for a general overview about configuring data sources in FS Gateway.
Contents Configuring an ArchestrA Data Source Object Configuring an ArchestrA Group Object Configuring Device Items ArchestrA Item Names ArchestrA Data Conversion
28
A new object is created in the hierarchy tree and is named New_ArchestrA_000 by default (in "edit mode"). Rename it, if desired. You are allowed to add only one ArchestrA data source.
2.
Configure the new ArchestrA object according to the following option definitions:
Device Group Name Name of the topic to which DDE or SuiteLink clients of FS Gateway connect in order to access items in the ArchestrA data source. Default value is ArchestrA (this cannot be edited). Reconnect Attempts Number of times FS 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. Entry of a value that is excessively out of the allowed range will display an error message about illegal format.
29
Reconnect Period Delay (in ms) between reconnection 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. Entry of a value that is excessively out of the allowed range will display an error message about illegal format. Write Credentials User credentials created in ArchestrA for write qualifications. Read Only Check this box to make all items connected through the ArchestrA data source read only. This qualification is in addition to any read-only condition that ArchestrA imposes. Unchecking this box only removes FS Gateway-imposed read-only qualifications. In other words, items inherently read-only in the data source remain so. Default value is checked. Domain This option, User Name and Password are 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 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".
User Name This option, Domain and Password are 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. Password This option, Domain and User Name are 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. Password data is stored in the FSGateway.AAcfg configuration file, but in encrypted form. Default value is blank.
Note ArchestrA user login data is not hot-configurable. FS Gateway must be restarted for the new values to take affect.
30
A new object is created in the hierarchy tree and is named New_ArchestrAGroup_000 by default (in "edit mode"). Rename it, if desired. You are allowed to add up to 100 new group objects.
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 FS Gateway namespace. In other words, do not name an ArchestrA group "Float" if a "Float.PV.Value" item exists in the Galaxy. The New_ArchestrAGroup_000 Parameters configuration view (right pane) is displayed.
2.
Configure the new group object according to the following option definitions:
31
Device Group Name Name of the topic that DDE or SuiteLink clients of FS Gateway connect to in order to access items at the ArchestrA group. Default value is the concatenation of the ArchestrA objects name and the group objects name (this cannot be edited). ArchestrA Item ID Prefix A string prefixed to item names added through this ArchestrA group. For instance, a prefix of "Blower_" would be added to an item such as "001.Temp1" to create an item request of "Blower_001.Temp1". Default value is blank. Read Only Check this box to make all items connected through the ArchestrA group read only. This qualification is in addition to any read-only condition that ArchestrA imposes. Unchecking this box only removes FS Gateway-imposed read-only qualifications. In other words, items inherently read-only in the data source remain so. Default value is unchecked.
Example (see image below): An ArchestrA data source called "ArchestrA" A single ArchestrA group called "Blower"
Important! Each group or topic must be uniquely named for the data source associated with it.
32
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 FS Gateway, and their associated item name syntax:
To access an item in ArchestrA via FS Gateway through an OPC client, use the following syntax: Establish connection: "ArchestrA.FSGateway.2" Reference item: "ArchestrA.TIC101.PV"
To access an item in ArchestrA via FS Gateway through a DDE or SuiteLink client, use the following syntax: Establish connection: Application = FSGateway Topic (Device Group) = ArchestrA Reference item: "TIC101.PV"
Example #1
Assume that the ArchestrA data source is named "ArchestrA" and an attribute exists called "Blower_001.Temp1". OPC Client To access the item in an ArchestrA data source via FS Gateway through an OPC client, use the following syntax: Establish connection: "ArchestrA.FSGateway.2" Reference item: "ArchestrA.Blower_001.Temp1" DDE/SuiteLink Client DDE and SuiteLink clients add items to a Device Group associated with the ArchestrA data source. The topic the DDE/SuiteLink client needs to connect to FS Gateway is provided by this Device Group. The Device Group associated with the ArchestrA data source is created automatically and always named "ArchestrA". To access the item in an ArchestrA data source via FS Gateway through a DDE or SuiteLink client, use the following syntax: Application: FSGateway Topic (Device Group): ArchestrA Item: Blower_001.Temp1 Excel cell reference: =FSGateway|ArchestrA!Blower_001.Temp1
33
ArchestrA groups allow you to group related ArchestrA tagnames together. Items can be added to ArchestrA groups in the same way as they are added to the ArchestrA data source. The same ArchestrA attribute is referenced whether the items are added directly to the data source or to a group.
Example #2
Assume a configuration with an ArchestrA data source named "ArchestrA" and a single group called "Blower". OPC Client OPC clients may add items to either the data source or the group. Fully qualified OPC item names are created by concatenating the hierarchy tiers, separated by periods. Therefore, to access the item (attribute "Blower_001.Temp1") in an ArchestrA group via FS Gateway through an OPC client, use either of the following syntax formats, which are equivalent: ArchestrA.Blower_001.Temp1 ArchestrA.Blower.Blower_001.Temp1 DDE/SuiteLink Client DDE and SuiteLink clients add items to a Device Group associated with either the ArchestrA data source or a group. The topic the DDE/SuiteLink client needs to connect to FS Gateway is provided by this Device Group. The Device Group associated with the ArchestrA group is created automatically when you create the group in the hierarchy. Its name is generated automatically by concatenating the ArchestrA data source name with the group name, separated by an underscore ("_"). In the case above, the Device Group name would be "ArchestrA_Blower". Therefore, to access an item in ArchestrA via FS Gateway through DDE and SuiteLink clients, use either of the following syntax formats, which are equivalent: Examples: FSGateway|Archestra!Blower_001.Temp1 FSGateway|Archestra_Blower!Blower_001.Temp1
34
DDE/SuiteLink Client Syntax FSGateway|ArchestrA!Blower_001.Temp1 (at the data source level) FSGateway|ArchestrA_Blower!001.Temp1 (at the group level) 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.
ArchestrA-DDE/SuiteLink Mappings
The following sections describe ArchestrA to DDE/SuiteLink and DDE/SuiteLink to ArchestrA data conversions.
35
String Double Time ElapsedTime CustomEnum InternationalString BigString CustomStruct MxReference Datatype MxStatus
String Real String Real String String String Not supported String String String
If too long, truncated and marked Q=Uncertain. If overflows, marked Q=Bad and set value = NaN. Pass as float seconds; consistent with InTouch behavior. If too long, truncated and marked Q=Uncertain. If too long, truncated and marked Q=Uncertain. If too long, truncated and marked Q=Uncertain. If too long, truncated and marked Q=Uncertain. If too long, truncated and marked Q=Uncertain.
Comments False = 0, True = 1 FS Gateway does no clamping when writing an integer from a DDE/SuiteLink client to an ArchestrA data source. In the case of a client poking a number greater than 2147483647 or -2147483647, the target link changes the data to a 1 or -1, respectively.
String
String
36
ArchestrAOPC 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.
ArchestrA type Boolean Float Integer String Double Time ElapsedTime CustomEnum InternationalString BigString CustomStruct MxReference Datatype MxStatus
OPC Variant Canonical Mapping VT_BOOL VT_R4 VT_I4 VT_BSTR VT_R4 VT_BSTR VT_R4 VT_BSTR VT_BSTR VT_BSTR Not supported VT_BSTR VT_BSTR VT_BSTR
If too long, truncated and marked Q=Uncertain. If overflows, marked Q=Bad and set value = NaN. Pass as float seconds; consistent with InTouch behavior. If too long, truncated and marked Q=Uncertain. If too long, truncated and marked Q=Uncertain. If too long, truncated and marked Q=Uncertain. If too long, truncated and marked Q=Uncertain. If too long, truncated and marked Q=Uncertain.
37
VT_BSTR
Puts each element of the array into a comma separated string, such as: Value1, ,Value2,Value3. If truncated, then associated quality sent to OPC set to Uncertain. Cannot write to an entire array using this technique; therefore, entire arrays are read-only. Supports the subscription to a single element of an array. In that case, the conversions above apply. Otherwise, return empty string with Bad quality. Single elements of arrays are writable (attribute-category permitting).
38
OPC Variant Type VT_EMPTY VT_NULL VT_I2 VT_I4 VT_R4 VT_R8 VT_CY VT_DATE VT_BSTR VT_DISPATCH VT_ERROR VT_BOOL VT_VARIANT VT_DECIMAL FVT_RECORD VT_UNKNOWN VT_I1 VT_UI1 VT_UI2 VT_UI4 VT_INT VT_UINT VT_VOID VT_HRESULT VT_PTR VT_SAFEARRAY VT_CARRAY VT_USERDEFINED VT_LPSTR VT_LPWSTR VT_FILETIME VT_BLOB VT_STREAM VT_STORAGE VT_STREAMED_OBJECT VT_STORED_OBJECT
ArchestrA Type Not supported Not supported Integer Integer Float Float String String String Not supported Integer Boolean Not supported Float Not supported Not supported Integer Integer Integer Integer Integer Integer Not supported Integer Not supported Not supported Not supported Not supported String String String Not supported Not supported Not supported Not supported Not supported
Reject write if too large. Reject write if too large. Reject write.
Reject write. Reject write. Reject write. Reject write if too large. Reject write if too large. Reject write. Reject write. Reject write. Reject write. Reject write.
39
Not supported Not supported String Not supported Not supported Not supported Not supported
Reject write. Reject write. Reject write. Reject write. Reject write. Reject write.
40
41
C H A P T E R
To connect to an OPC data source, create and configure its hierarchy (data source and groups), and use the proper item naming conventions in its client(s). Refer to Configuration for a general overview about configuring data sources in FS Gateway.
Contents Configuring an OPC Data Source Object Configuring an OPC Group Object Configuring Device Items OPC Item Names OPC Data Conversion
42
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.
2.
Configure the new OPC object according to the following option definitions:
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. Server Name ProgID or ClassID of the OPC server (example of a ProgID: ArchestrA.DASFS Gateway.2, 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.
43
Reconnect Attempts Number of times FS 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. 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.
44
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 new group objects.
2.
Configure the new group object according to the following option definitions:
Device Group Name Name of the topic that DDE or SuiteLink clients of FS Gateway connect to in order to access items at the OPC group. Default value is the concatenation of the OPC data source objects name and the group objects name (this cannot be edited). Update Rate Value (in ms) used by FS 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. 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.
45
Use Group Name as Access Path Provides control over the OPC Access Path for items added to the OPC group. When checked, the name of the OPC group object is used as the OPC Access Path for all items. When unchecked, the default (blank) OPC Access Path is used. Default value is unchecked. Read Only Check this box to make all items connected through the OPC group read only. This qualification is in addition to any readonly condition that the OPC server imposes. Unchecking this box only removes FS Gateway-imposed read-only qualifications. In other words, items inherently read-only in the data source remain so. Default value is checked. Browse OPC Items button Opens the OPC browser, in which you can select items directly from the OPC server.
OPC groups are used to model the behavior of OPC servers. You cannot add items directly to an OPC data source, but must add them at the group level. Example (see image below): An OPC data source called "ModbusOverOPC" A single OPC group called "Group1"
Important! Each group or topic must be uniquely named for the data source associated with it.
46
To access an item in an OPC Server via FS Gateway through a SuiteLink client, use the following syntax: Establish connection: Application = FSGateway Topic = OPCServer1_OPCGroup1 Reference item: "R1"
Example
Assume a configuration with an OPC data source called "ModbusOverOPC" and a single group called "Group1". DDE/SuiteLink Client 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 FS 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: FSGateway|ModbusOverOPC_Group1!Modbus.QT.40010 Note Use the "Device Group Name" as on the faceplate of the OPC Group Node.
47
DDE/SuiteLink-OPC Mappings
The following sections describe OPC to DDE/SuiteLink and DDE/SuiteLink to OPC data conversions.
OPC Variant Type VT_EMPTY VT_NULL VT_I2 VT_I4 VT_R4 VT_R8 VT_CY VT_DATE VT_BSTR VT_DISPATCH VT_ERROR VT_BOOL VT_VARIANT
DDE/SuiteLink Type Comments Not supported Not supported Integer Integer Real Real String String String Not supported Integer Discrete Not supported Set Quality to bad. Set Quality to bad if out of range. Set Quality to bad. Set Quality to bad if out or range.
48
VT_DECIMAL VT_RECORD VT_UNKNOWN VT_I1 VT_UI1 VT_UI2 VT_UI4 VT_INT VT_UINT VT_VOID VT_HRESULT VT_PTR VT_SAFEARRAY VT_CARRAY VT_USERDEFINED VT_LPSTR VT_LPWSTR VT_FILETIME VT_BLOB VT_STREAM VT_STORAGE VT_STORED_OBJECT VT_BLOB_OBJECT VT_CF VT_CLSID VT_VECTOR VT_ARRAY VT_BYREF VT_RESERVED
Float Not supported Not supported Integer Integer Integer Integer Integer Integer Not supported Integer Not supported Not supported Not supported Not supported String String String Not supported Not supported Not supported Not supported Not supported Not supported String Not supported Not supported Not supported Not supported
Set Quality to bad if out of range. Set Quality to bad. Set Quality to bad.
Set Quality to bad if out of range. Set Quality to bad if out of range. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad. If too long, truncate and mark Q=Uncertain. If too long, truncate and mark Q=Uncertain. If too long, truncate and mark Q=Uncertain. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad. Set Quality to bad.
49
Comments
50
51
C H A P T E R
To connect to a DDE/SuiteLink data source, create and configure its hierarchy (data source and topics), and use the proper item naming conventions in its client(s). Refer to Configuration for a general overview about configuring data sources in FS Gateway.
Contents Configuring a DDE/SuiteLink Data Source Object Configuring a DDE/SuiteLink Topic Object Configuring Device Items DDE/SuiteLink Item Names DDE/SuiteLink Data Conversion
A new object is created in the hierarchy tree and is named New_DDE_000 or New_SuiteLink_000 by default. You are allowed to add an unlimited number of DDE and SuiteLink data sources.
52
In this step and succeeding steps, each hierarchy entry is added in "edit mode," providing a convenient place for you to appropriately name components of your specific environment. If you do not rename the object at this time, the numeric sequence system is applied. Any hierarchy entry can be renamed at a later time.
The New_DDE_000 Parameters or New_SuiteLink_000 Parameters configuration view (right pane) is displayed. See images below.
53
2.
Configure the new DDE or SuiteLink object according to the following option definitions:
Server Name Name of the DDE or SuiteLink server you want to use as a data source (for instance, ABTCP). Default value is MyServer. Server Name can be from 1 to 32 characters long (cannot be blank), and all printable characters are allowed except a space and > : " / \ | , . ; ? ' [ ] { } ` ~ ! @ # $ % ^ & * ( ) _ + - =. Server Node The computer node on which the specified data source can be found. This parameter is displayed for SuiteLink only because DDE servers must be located on the same node as FS Gateway. Default value is localhost. Use the browse button to select from a list of all nodes on your network.
54
Reconnect Attempts Number of times FS Gateway attempts to reconnect to the specified data source if a connection fails. The value minus one (-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. Entry of a value that is excessively out of the allowed range will display an error message about illegal format. Reconnect Period Delay (in ms) between reconnection 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. Entry of a value that is excessively out of the allowed range will display an error message about illegal format.
55
A new object is created in the hierarchy tree and is named New_Topic_000 by default (in "edit mode"). Rename it to match the Topic name as defined in your DDE or SuiteLink data source to be connected. You are allowed to add up to 100 new topic objects.
2.
Configure the new Topic object according to the following option definitions:
Device Group Name Name of the topic that DDE or SuiteLink clients of FS Gateway connect to in order to access items at this topic in the data source. Default value is the concatenation of the DDE or SuiteLink objects name and the Topic objects name (this cannot be edited). Read Only Check this box to make all items connected through this topic read only. This qualification is in addition to any read-only condition the DDE or SuiteLink data source imposes. Unchecking this box only removes FS Gateway-imposed read-only qualifications. In other words, items inherently read-only in the data source remain so. Default value is unchecked. FS Gateway Users Guide
56
Topic Name Name of the topic in the DDE/SuiteLink data source. Default value is the name of the topic node in the hierarchy. You can change this name by checking the Change Topic Name check box. Change Topic Name Check this box to enable the Topic Name box so as to change the topic name. Changing the text in the Topic Name box has no effect on the name of the topic node in the hierarchy. Default value is unchecked.
Topic objects, which are identical between DDE and SuiteLink data sources, model the behavior of DDE and SuiteLink servers. Example (see image below): A SuiteLink data source called "ModbusOverSL" A single SuiteLink topic called "FastTopic"
Important! Each group or topic must be uniquely named for the data source associated with it. That is, the topic object name or its Topic Name parameter should exactly match a topic defined in the DDE/SuiteLink server data source in a case-insensitive manner.
57
To access an item in a DDE/SuiteLink server via FS Gateway through an OPC client, use the following syntax: Establish connection: "ArchestrA.FSGateway.2" Reference item: "ABTCPDDE.FastTopic.N7:0"
Example #1
Assume an FS Gateway configuration with a SuiteLink data source object called "ModbusOverSL" and a single topic object called "FastTopic" that matches a topic name defined in the Modbus server. OPC Client OPC clients add items to the topic object, building the fully qualified OPC item name, by concatenating the hierarchy tiers, separated by periods. Establish connection: "ArchestrA.FSGateway.2" Reference item: ModbusOverSL.FastTopic.40010 DDE/SuiteLink Client DDE and SuiteLink clients add items to the Device Group associated with the given topic object. To access the item in a DDE/SuiteLink data source via FS Gateway through a DDE or SuiteLink client, use the following syntax: Application: FSGateway Topic (Device Group): ModbusOverSL_FastTopic Item: 40010 Excel cell reference: =FSGateway|ModbusOverSL_FastTopic!40010 Important! Do not confuse the topic (FS Gateway hierarchy object) used to model the DDE/SuiteLink data sources with the Device Group (Topic Objects parameter as shown in the "Device Group Name" field on the "Topic Object" configuration view) used to provide access to DDE/SuiteLink clients. FS Gateway hierarchy "Topic Object" node that is added to the DDE/SuiteLink Data Source node in the tree view on the left corresponds to a Topic that is configured in the DDE/SuiteLink Server (DataSource). Here, FS Gateway acts as a DDE/SuiteLink Client to the DDE/SuiteLink Server (Data Source). The "Device Group Name" field on the "Topic Objects" configuration view on the right is used by FS Gateways DDE/SuiteLink clients to connect to FS Gateway. Here, FS Gateway acts as a DDE/SuiteLink Server to the connected clients.
58
Example #2
To access an item "s:23" in a PLC from a SuiteLink server like ABTCP on remote node "Computer1" through FSGateway using a DDE Client. PLC -> ABTCP (server) -> FS Gateway -> DDE Client Data source (ABTCP Server) configuration: Add "Topic0" in the ABTCP server with the appropriate update interval and configured to communicate with a PLC. FS Gateway configuration: 1. 2. 3. Add the SuiteLink Object and name it "ABTCP_SuiteLink". Configure Server Name as "ABTCP" and Server Node as "Computer1". Add a Topic Object node that corresponds with the topic in the server. In this case, name the node "Topic0" to correspond with the topic name "Topic0" in the ABTCP Server. Optionally, check the Change Topic Name check box and override with an entry in the Topic Name box of this "Topic Object" configuration view.
DDE Client configuration: Advise the item using Application as "FSGateway", Topic as "ABTCP_SuiteLink_Topic0" (corresponding to the Device Group Name field on the Topic Object ), and Item as "s:23". To access the item in a DDE/SuiteLink data source via FS Gateway through a DDE or SuiteLink client, use the following syntax: Application: FSGateway Topic (Device Group): ABTCP_SuiteLink_Topic0 Item: s:23 Excel cell reference: =FSGateway|ABTCP_SuiteLink_Topic0!s:23
59
OPCDDE/SuiteLink Mappings
The following sections describe OPC to DDE/SuiteLink and DDE/SuiteLink to OPC data conversions.
Comments
60
OPC Variant Type VT_EMPTY VT_NULL VT_I2 VT_I4 VT_R4 VT_R8 VT_CY VT_DATE VT_BSTR VT_DISPATCH VT_ERROR VT_BOOL VT_VARIANT VT_DECIMAL VT_RECORD VT_UNKNOWN VT_I1 VT_UI1 VT_UI2 VT_UI4 VT_INT VT_UINT VT_VOID VT_HRESULT VT_PTR VT_SAFEARRAY VT_CARRAY VT_USERDEFINED VT_LPSTR VT_LPWSTR VT_FILETIME VT_BLOB
DDE/SuiteLink Type Comments Not supported Not supported Integer Integer Real Real String String String Not supported Integer Discrete Not supported Float Not supported Not supported Integer Integer Integer Integer Integer Integer Not supported Integer Not supported Not supported Not supported Not supported String String String Not supported On writes, rejected. Rejects write. On reads, sets quality to Bad. Rejects write. On writes, rejected. On writes, rejects if too long. On writes, rejects if too long. On writes, rejects if too long. On writes, rejected. On writes, rejected if out of range. On writes, rejected. On writes, rejected if out of range. On writes, rejected. On writes, rejected if out of range. On writes, rejected. On writes, rejected. On writes, rejected if out of range. On writes, rejected. On writes, rejected if out of range. Reject write. Reject write.
61
VT_STREAM VT_STORAGE VT_STORED_OBJECT VT_BLOB_OBJECT VT_CF VT_CLSID VT_VECTOR VT_ARRAY VT_BYREF VT_RESERVED
Not supported Not supported Not supported Not supported Not supported String Not supported Not supported Not supported Not supported
On writes, rejected. On writes, rejected. On writes, rejected. On writes, rejected. On writes, rejected. On writes, rejected. On writes, rejected. On writes, rejected. On writes, rejected. On writes, rejected.
62
63
C H A P T E R
To connect to an InTouch data source, create and configure its hierarchy (data source and topics), and use the proper item naming conventions in its client(s). Refer to Configuration for a general overview about configuring data sources in FS Gateway.
Contents Configuring an InTouch Data Source Object Configuring an InTouch Group Object Configuring Device Items InTouch Item Names InTouch Data Conversion
64
A new object is created in the hierarchy tree and is named New_InTouch_000 by default (in "edit mode"). Rename it, if desired. You are allowed to add an unlimited number of InTouch data sources.
2.
Configure the new InTouch object according to the following option definitions:
Device Group Name Name of the topic that DDE or SuiteLink clients of FS Gateway connect to in order to access items at the InTouch data source. Default value is the InTouch data source objects name (this cannot be edited). Read Only Check this box to make all items connected through the InTouch data source read only. This qualification is in addition to any read-only condition that InTouch imposes. Unchecking this box only removes FS Gateway-imposed read-only qualifications. In other words, items inherently read-only in the data source remain so.. Default value is unchecked.
65
InTouch Runtime Node The name of the node (computer) on which the InTouch application runs. If the InTouch data source is local, value is LocalHost. Click the ellipse button to browse nodes. Item Browse Path The full universal naming convention (UNC) directory path that contains the InTouch Tagname Dictionary file, Tagname.X, for the target InTouch application. The format is: \\Node\directory or Drive:\directory (local or mapped drive) The InTouch application directory must be a shared directory. Click the ellipse button to browse to the shared directory. Reconnect Attempts Number of times FS 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. 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. Connection Protocol The protocol FS Gateway should use to connect to InTouch. Default value is SuiteLink.
Note If the InTouch Runtime Node option is blank, then the InTouch data source would default to LocalHost.
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.
66
A new object is created in the hierarchy tree and is named New_InTouchGroup_000 by default (in "edit mode"). Rename it, if desired. You are allowed to add up to 100 new group objects.
67
2.
Configure the new group object according to the following option definitions:
Device Group Name Name of the topic that DDE or SuiteLink clients of FS Gateway connect to in order to access items at the InTouch group. Default value is the concatenation of the InTouch data source objects name and the group objects name (this cannot be edited). Read Only Check this box to make all items connected through the InTouch group read only. This qualification is in addition to any readonly condition that InTouch imposes. Unchecking this box only removes FS Gateway-imposed read-only qualifications. In other words, items inherently read-only in the data source remain so. Default value is unchecked. InTouch Runtime Node The name of the node (computer) on which the InTouch application runs. Default value is the same as the InTouch data source objects InTouch Runtime Node setting (this is not editable). Item Browse Path The path to the InTouch file, Tagname.X. It identifies the InTouch application whose tagname database is accessed by this InTouch group. Default value is the same as the InTouch data source objects Item Browse Path setting (this is not editable). 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. Example (see image below): An InTouch data source called "InTouch" A single InTouch group called "Cleaner"
Important! Each group or topic must be uniquely named for the data source associated with it.
68
69
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 <= FSGateway <= 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
To access an item in InTouch via FS Gateway through an OPC client, use the following syntax: Establish connection: "ArchestrA.FSGateway.2" Reference item: "InTouch1.Pump1"
An InTouch data source is a special case of DDE and SuiteLink data source. FS Gateway always communicates with InTouch using either DDE or SuiteLink. Items can be added either directly to the InTouch data source object or to its group object.
70
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 FS Gateway through a DDE or SuiteLink client, use the following syntax: Application: FSGateway Topic (Device Group): MyInTouch Item (Tagname): TankLevel Excel cell reference: =FSGateway|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 FS 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: FSGateway Topic (Device Group): MyInTouch or
71
72
73
C H A P T E R
Managing FS Gateway
After you configure FS Gateway, there are two steps to take before you can access data with your client application. The first step is to determine what kind of client applications are to be used with this FS Gateway. If any of your client applications use DDE/SuiteLink, you must configure FS Gateway as a service. If only OPC client applications will be used, you can configure FS Gateway as a service or as not a service. The last step is to activate FS Gateway. Some client applications can programatically activate FS Gateway. If you configure FS Gateway as an automatic service, FS Gateway is started and activated when the computer on which the DAServer is installed starts up. If you configure the DAServer as a manual service, the DAServer is not started when the computer starts up. Instead, it is started upon the first connection from an OPC client or when activated from the DAServer Manager. After a DAServer is running as an auto or manual service, it stays running until explicitly stopped in the DAServer Manager or the computer shuts down.
2. 3. 4.
Expand DAServer Manager, expand the node group, and then expand Local or the remote computer name.
Right-click ArchestrA.DASFSGateway.2 and then click Configure As Service. Click either Auto Service or Manual Service. Read the warning message and click Yes.
74
Managing FS Gateway
To configure the FS Gateway as not a service 1. In the DAServer Manager, navigate to the FS Gateway.
2. 3. 4.
Expand DAServer Manager, expand the node group, and then expand Local or the remote computer name.
Right-click ArchestrA.DASFSGateway.2 and then click Configure As Service. Click Not a Service. Read the warning message and click Yes.
Once you have archived at least one configuration set, you can select it for use. To use different configuration sets from the current one 1. 2. 3. Make sure FS Gateway is not running. In the DAServer Manager, right-click the Configuration node in the hierarchy below FS Gateway. Select Use Another Configuration Set from the shortcut menu and click on a configuration set in the sub-menu.
All parameters in FS Gateway configuration hierarchy change to the chosen configuration set.
In-Proc/Out-of-Proc
75
2.
Expand DAServer Manager, expand the node group, and then expand Local or the remote computer name.
Deactivating your FS Gateway stops it from communicating with client applications. A DAServer with active OPC clients does not stop until the last OPC client shuts down. To deactivate the FS Gateway 1. In the DAServer Manager, navigate to the FS Gateway.
2. 3.
Expand DAServer Manager, expand the node group, and then expand Local or the remote computer name.
Right-click ArchestrA.DASFSGateway.2 and then click Deactivate Server. Read the warning message and click Yes.
In-Proc/Out-of-Proc
The DAServer can run only as a stand-alone process (out-of-proc). If the CLXCTX_ALL option is the chosen, out-of-proc activation for the DAServer is triggered. Explicitly starting as part of the client process (in-proc) is not currently supported. Activation using the CLSCTX_ACTIVATE _64_BIT_SERVER flag is also not supported. When the DAServer is running out-of-proc, it supports requests from both DDE/SuiteLink and OPC client applications. If the DAServer is running as a service, the icon on the DAServer node in the SMC is yellow. If the DAServer is not running as a service, the icon is white. For more information, see the DAServer Manager Users Guide.
76
Managing FS Gateway
Hot Configuration
FS 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. FS Gateway must be restarted for the new values to take affect.
77
C H A P T E R
Client applications read and write to data items that are internal to the DAServer, as well as to the items located in the devices. Client application communication with the DAServer is done using either the OPC or DDE/SuiteLink protocols. The client application may or may not be on the same computer as the DAServer. You do not need to create device items in the DAServer for your OPC client application.
The node name (required for remote access) and device group are optional. A fully qualified OPC Item name (ItemID) is composed of the link name and item name. All other characteristics are specified through separate FS Gateway means.
To access an OPC item, the OPC client needs to connect to FS Gateway (only out-of-process) and create an OPC group defining the data-acquisition properties for the collection of items to be added. Although OPC groups can be either public or private, FS Gateway only supports private groups. Public OPC groups are shared across multiple clients, whereas private OPC groups are local to a single client. Optionally, a device group, which indicates the access path to the items for read/write, can be specified from FS Gateway.
78
node name: Computer (host) name identifying a specific node on the network (for Remote Access ONLY). program name: The registered OPC server name uniquely identifying a specific server (ProgID). For FS Gateway, the program name is ArchestrA.FSGateway.2. group name: The OPC group created from the client for organizing a collection of items logically with the same data acquisition properties between the client and the server, such as update rate. device group: Meaningful names configured in FS Gateway under a specific data source for the common custom attributes between FS 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 FS 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 FS Gateway under the DAServer Manager, separated by delimiters. item name: A specific data element, the leaf of the hierarchy tree of FS Gateway, within the specified group.
node name: Computer (host) name identifying a specific node on the network (for remote access only). application name: In the case of data going to clients via the DDE/SuiteLink PlugIn of FS Gateway, the application name portion of the address is FSGateway. topic name: Meaningful names are configured in FS Gateway to identify specific data sources. These names are then used as the topic names in all conversations with that source. Topic name maps to a device group defined in FS Gateway. Note You can define multiple device-group (topic) names for the same data source to poll different data at different rates.
For more information on item names, see the Item Names sections for the respective data sources as well as System Items.
79
C H A P T E R
1 0
Creating new device item definitions for data source items. Modifying existing device items. Deleting existing device items. Exporting the list of device items to a comma separated values (.csv) file. A .csv file can be opened with Microsoft Excel or any text editor. Importing device items from a .csv file into the Device Items tab.
Each device item definition should contain a unique name for the data source associated with it. For detailed information about item naming conventions in FS Gateway, see the Item Names sections for the respective data sources as well as System Items.
80
The Device Items configuration view has the following two columns:
Name: This column defines the alias names to actual data source items. Item Reference: The actual data source item names defined in this column.
Note When you create or add a new device item, a unique name needs to be entered for it.
81
To create or add device items 1. 2. To create or add device items, right-click anywhere in the Device Items configuration view. Select the Add command from the shortcut menu.
3.
A device item is created, and it is numerically named by default. For example, Item_0, Item_1, and so on.
Change the default name by double-clicking on it and entering the new name.
To add item references Item references for each of the device items that have been created can be added as follows: 1. 2. 3. In the Item Reference column, double-click on the area in the same horizontal line as the selected device item. Type in the actual data source item name in the frame that appears. Click anywhere in the configuration view or press the Enter key to have the change take effect.
To rename a device item from the list 1. 2. 3. Right-click on the device item to be renamed. Select the Rename command from the shortcut menu and enter the new device item name. Click anywhere in the configuration view or press the Enter key to apply the change.
To delete a device item from the list 1. 2. Right-click on the device item to be deleted. Select the Delete command from the shortcut menu.
The device item and its corresponding data source item name are deleted from the configuration view.
Note When you select another part of FS Gateway tree hierarchy, you are prompted to save the modifications to the configuration set. To clear all device items 1. 2. Right-click anywhere in the Device Items configuration view. Select the Clear All command from the shortcut menu.
All the device items listed in the configuration view, including their corresponding data source item names, are deleted.
82
Archive lists of device items. Bring an archived list of device items into the Device Items dialog box when you need to utilize or reconfigure any of the device items on the archived list. Perform an off-line, large-scale edit on the item data configured for a PLC.
Import what has been edited back into the PLC configuration.
To export device items When you want to archive a list of device items, use the Export feature in the Device Items configuration view. 1. 2. 3. 4. 5. To export the list, right-click anywhere in the Device Items configuration view. Select the Export command from the shortcut menu. Select the folder into which the list is to be saved. Name the list to be exported. Click the Save button.
To import device items The Import feature in the Device Items configuration view is used to import an archived list of device items into the configuration view. 1. 2. 3. To import the list, right-click anywhere in the Device Items configuration view. Select the Import command from the shortcut menu. Select the archived list (.csv file) to be imported.
83
4.
The whole list is imported into the Device Items configuration view.
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! FS 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)
84
85
C H A P T E R
1 1
FS Gateway Features
Runtime Behavior
The FS Gateway will start with the active data source. The DAS 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 DAS 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 DAS 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.
86
FS Gateway Features
When the DAS 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. 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 FS Gateway will log any failover activities. All other functionality such as diagnostics, enable/disable, and reset will be performed exactly same as it is performed for any other hierarchy node. Note Unsolicited message configuration is not supported in the Redundant data source Object itself. You can still receive unsolicited messages directly from data source groups defined in the regular server hierarchy. This feature allows the FS Gateway to provide fail over support by providing one node which switches between two other nodes. The Redundant data source 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 data source Object can be used to direct client requests to the redundant node, which switches between data source or communication pathway failure without intervention. Data Source Redundancy
87
C H A P T E R
1 2
System Items
This section describes standard system items, data quality and timestamping in FS Gateway.
Group (client group/OPC group): The arbitrary collection of items, not correlated. Hierarchical location (link name/OPC path, the hierarchical node section of the fully qualified OPC item ID): The device the item is attached to. Device group (OPC access path/topic, or a Scan Group on a hierarchical branch): A collection of items on the same physical location with the same protocol update rate.
Note For DDE/SuiteLink clients, $SYS$Status always comes from the leaf level of the 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. In the case of an ArchestrA data source, $SYS$Status is always good, even at the ArchestrA Group level.
88
System Items
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 DAS 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.
Values
89
Description Binary status indication of the connection state to the device (hierarchy level) the item is attached to. The device group (OPC access path/topic) does not affect the value. The status can be good even if individual items have errors. For DDE/SuiteLink clients, $SYS$Status always comes from the leaf level of a 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. Detailed error code of the communications state to the data source. The device group (OPC access path/topic) does not affect the value.
Values RANGE: 0, 1 1: Gateway connection to the data source is intact. 0: Error communicating with the data source.
$SYS$ErrorCo de
Longint/ Read
>= 0: Good status (0 is the default state connected. >0: is some state like: connecting, initializing, etc. <0: Error status (value indicates the error). Descriptive text for the communications state corresponding to the error code.
Detailed error string of the communications state of the data source. The device group (OPC access path/topic) does not affect the value.
Caution! For all three device-specific system items, status is always good for an ArchestrA data source.
90
System Items
Type/ Access System Item Name Rights $SYS$UpdateInterval $SYS$MaxInterval $SYS$WriteComplete Integer/ ReadWrite
Description Not used. Not used. Accesses the state of pending write activities on the corresponding device group. On device group creation (adding items to an OPC group), the value of this system item is initially 1, indicating all write activities are complete no pokes are pending. If values are poked into any items of the device group, the value of this item changes to 0, indicating write activity is currently in progress. If the server has completed all write activities, the value of this item changes to 1 if all pokes were successful or to -1 if at least one poke has failed. If the value of this item is not zero, the client can poke 1 or -1 to it (poke a 1 to clear errors, or a -1 to test a client reaction on write errors). If the value of this item is zero, it cannot be poked. Accesses the state of initial reads on all items in the corresponding device group. The value is 1 if all active items in a device group have been read at least once. If at least one item in the device group is activated, this item changes to 0. It changes to 1 if all items have been read successfully, or to -1 if at least one item has a non-good quality. Poking a 0 to this item resets the internal read states of all items in this device group. This resets this item to 0. If all items are read again after this poke, this item changes back to 1 or -1.
Values
RANGE: -1, 0, 1 1: Write complete (no writes are pending initial state). 0: Writes are pending. -1: Writes completed with errors.
RANGE: -1, 0, 1 1: Read complete (all values have been read). 0: Not all values have been read. -1: All values have been read but some have a non-good quality.
91
Description
Values
Accesses the number of items in the RANGE: corresponding device group. This item 02147483647 is read-only. >=0: Number of active items. Accesses the number of active items in RANGE: the corresponding device group. This 02147483647 item is read-only. >=0: Number of active items. Accesses the number of all items (active and inactive) that have errors (non-good OPC quality) in the corresponding topic. If the communications status of a device group is bad, all items have errors. This item is read-only. Not used. RANGE: 02147483647 >=0: Number of all items (active and inactive) with errors.
$SYS$ErrorCount
DWord/ Read
$SYS$PollNow
Type/ Access System Item Name Rights $SYS$GatewayConne Boolean/ ctionStatus Read-Only
Description
Values
RANGE: True, False Indicates whether FS Gateway has established a successful connection to the configured data source and topic (if True: When connected to the data any). source. False: When disconnected. Indicates whether FS Gateway has established a successful connection to the configured data source and topic (if any). "Connected": When successful connection to data source is achieved. "Disconnected": When otherwise.
92
System Items
Description
Values RANGE: True, False True: Triggers reconnect attempt. If data source is already connected, it is disconnected and then reconnected. False: Does nothing. Default value.
Boolean/ Triggers a reconnect attempt to the Read/Write configured data source. If you poke a value of 1 (True), this functionality is exercised even if the maximum number of reconnects is reached. By default, this item reads zero (0, False). Writing False does nothing.
$SYS$ForceFailover
Boolean/ ReadWrite
This is required to achieve the failover condition to be forced by client. Note: By poking a value of "1" (True) into the Force Failover item, a client can conveniently switch to the secondary device.
TRUE, FALSE
$SYS$ActiveDevice
String/Read
This system item will show the current runtime active device. This system item will show the time at which the switch occurred. This system item will show the current runtime standby device.
$SYS$FailoverTime
Time/Read
$SYS$StandbyDevice
String/Read
Data Quality
93
Description
Values
$SYS$Secondary DeviceStatus
Boolean/Read
This system item will show the status of the secondary device. This is the status of the second device defined in the configuration and is not changed with any failover. RANGE: 0, 1 This system item will show the status of the primary device. This is the status of the first device defined in the configuration and is not changed with any failover. RANGE: 0, 1
$SYS$PrimaryDevice Status
Boolean/Read
$SYS$FailoverReason
String/Read
This system item Descriptive text will show the reason ForceFailover or for the failover. the value of the system item $SYS$ErrorText.
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.
Data Quality
Data quality is supported in the following protocols:
94
System Items
For those protocols that support it, quality is consistent with OPC Quality. Therefore, data quality from a source that supports it is passed through FS 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 FS Gateway cannot communicate with the target data source).
95
C H A P T E R
1 3
Troubleshooting
This chapter describes troubleshooting tools that can be used to deal with FS Gateway problems you may encounter. The DAServer Manager provides access to diagnostics and other statistical data, and the Log Viewer provides access to event messages logged during the operation of FS Gateway. Also, your client (for example, InTouch) can monitor connectivity with your data source through the $SYS$Status item. Use these tools together with the information in this section to troubleshoot FS Gateway. Note In order to determine the version of your FS Gateway, perform the following steps. Search for FSGateway.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 FS Gateway is listed under File Version.
Contents Monitoring Connectivity Status with a Data Source Monitoring the Status of Conversations with DDE/SuiteLink Clients Error Messages and Codes Communication Failures
0 (zero) when communication with the data source fails. 1 (one) when communication is successful.
Note For DDE/SuiteLink clients, $SYS$Status always comes from the leaf level of FS 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.
96
Troubleshooting
Enter the following DDE reference formula in the appropriate place in your client: =FSGateway|<Device Group>!$SYS$Status where: FSGateway <Device Group> $SYS$Status Example: =FSGateway|ModbusOverSL_FastTopic!$SYS$Status is the name of FS Gateway application. is the exact device group defined in FS Gateway for the data source. is the discrete item used to monitor the status of connectivity with the data source.
Enter the following OPC item reference syntax when adding the item in your OPC client: <YourLinkName>.$SYS$Status where: <YourLinkName> $SYS$Status Example: ModbusOverSL.FastTopic.$SYS$Status is the assembly of hierarchy node names leading to a specific data source. is the discrete item used to monitor the status of connectivity with the data source.
Note In case of a data source disconnection, FS 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 reinitiate the connection via the system item $SYS$Reconnect.
97
0 (zero) when the conversation between FS Gateway and InTouch View fails. 1 (one) when the conversation between FS Gateway and InTouch View is successful.
Note These items represent the status of communication between the client and FS Gateway.
98
Troubleshooting
99
Description The corresponding item handle was valid. The write will be attempted and the results will be returned on OnWriteComplete. The function was unsuccessful. The item is not writeable. The passed item handle was invalid.
OPC_E_UNKNOWNITEMID The item is no longer available in the data sources address space. E_xxx S_xxx Vendor specific errors may also be returned. Descriptive information for such errors can be obtained from GetErrorString.
If ArchestrA responds with Nak, FS Gateway sends an E_FAIL error code to the OPC Client. If FS Gateway cannot successfully convert the requested OPC data, this maps to a new vendor specific error for OPC indicating Conversion Error (OPC_E_BADTYPE). If the item handle is unknown to FS Gateway or ArchestrA, the OPC_E_INVALIDHANDLE error code is sent. If the item name is not valid in FS Gateway or ArchestrA, the OPC_E_UNKNOWNITEMID error code is sent.
If the data source responds with Nak, FS Gateway sends an E_FAIL error code to the OPC Client. If FS Gateway cannot successfully convert the requested OPC data, this maps to a new vendor specific error for OPC indicating Conversion Error (OPC_E_BADTYPE). If the item handle is unknown to FS Gateway or the data source, the OPC_E_INVALIDHANDLE error code is sent. If the item name is not valid in FS Gateway or the data source, the OPC_E_UNKNOWNITEMID error code is sent.
100
Troubleshooting
To each client, this item functions like other items, just under the topic or device group level. It indicates whether the gateway has established a successful connection to the configured data source and topic (if any) as follows:
Connected "Disconnected
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
FS 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.
Communication Failures
101
FS 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 FS 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:
Communication Failure Break between PLC and DIObject DIObject node disconnected Node with ArchestrA UserDefined ApplicationObject disconnected ApplicationObject undeployed WinPlatform undeployed on FS Gateway node FS Gateway node disconnected (communicating with local OPC client)
102
Troubleshooting
103
C H A P T E R
1 4
Reference
FS Gateway Architecture
Note FS Gateway is supported on Microsoft Windows NT 4.0, Windows 2000, Windows XP and Windows 2003 only. NetDDE protocol is not supported. FS Gateway is a collection of components that work in concert to provide communications access with a variety of data sources and clients. These components include:
DAServer Manager: This is the Microsoft Management Console (MMC) snap-in, that is part of the ArchestrA System Management Console suite of utilities, supplied with FS Gateway. It provides the necessary userinterface for diagnostics, configuration, and activation. Client Plug-ins: These are the components that are added to FS Gateway to enable communications with clients. Examples are: OPC, DDE/Suitelink, and so on. DAS Engine: This is the library that contains all the common logic to drive data access. Device Protocol: This is the custom code provided by FS Gateway to define the communications between particular data sources and clients.
104
Reference
FS Gateway
FS Gateway is comprised of three physical parts (see the following figure). They are the following:
Plug-in Component(s): Responsible for communicating with clients. DAS Engine: This common component is used by FS Gateway as well as all Wonderware DAServers. Data Source Protocol Layer, Gateway-specific: This component is responsible for communicating with the data sources.
FS Gateway Architecture Each physical part of FS Gateway is comprised of a set of .exe and/or .dll modules. Wonderware provides the Plug-ins and the DAS Engine. The DAS Toolkit user creates the Data Source Protocol Layer (FS Gateway-specific) modules. All three sets of modules are required for a fully functioning gateway.
Component Environments
105
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 DAS 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.
DAS Engine
The DAS 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.
Component Environments
FS Gateway has the following characteristics:
The DAS Engine is dynamically linked to the other FS Gateway components. In other words, a new DAS 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 DAS 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 customerinstalled base. In fact, it is feasible to implement new functionality in a Plug-in to enhance FS Gateway without any involvement of the code of the other components. FS Gateway can be configured in one stand-alone configuration utility (DAServer Manager), and the DAServer Manager is capable of displaying specific configuration views for FS Gateway as well as other Wonderware DAServers. This utility allows the browsing and editing of Data Access products on different nodes. The DAServer Manager diagnostics tool displays generic diagnostic objects common to FS Gateway as well as all DAServers, in addition to FS Gateway-specific/FS Gateway-developer-defined diagnostic data.
FS Gateways data configuration format is XML. Any XML-enabled program (for example, XML Editor) can read this format.
106
Reference
107
Index
Symbols
$SYS$Status 87, 95 .csv file 79 .csv file in Excel 82 New_InTouchGroup_000 Parameters 66 New_OPC_000 Parameters 42 New_OPCGroup_000 Parameters 44 New_SuiteLink_000 Parameters 52 New_Topic_000 Parameters 55 configuring ArchestrA data source object 27 ArchestrA group object 29 DDE/SuiteLink data source object 51 DDE/SuiteLink topic object 54 InTouch data source object 63 InTouch group object 66 OPC data source object 41 OPC group object 43 Configuring Device Item Definitions 21 configuring device item definitions 21 configuring device items 31, 45, 56, 68 Configuring FS Gateway 19 connecting to ArchestrA data source 27 DDE/SuiteLink data source 51 InTouch data source 63 OPC data source 41 connecting to,InTouch data source 63 Connection Protocol 65 creating device items 81 credentials 29 CSV file 82
A
Activate Server 22 Active Device 85, 86, 92 actual PLC item names 80 Add command 81 adding DDE/SuiteLink data source object 51 adding device items 81 adding group to InTouch object 66 adding InTouch data source object 63 adding item references 81 adding topic to DDE/SuiteLink object 54 alias names 80 application name 78 ArchestrA data source 27 ArchestrA Item ID Prefix 31 ArchestrA Message Exchange 13 ArchestrA server 10 ArchestrA System Management Console 19 ArchestrA.DASFSGateway.2 16, 73, 74, 75 ArchestrA.FSGateway.2 20 ArchestrAGroup object 30 Archiving a Configuration Set 74 archiving configuration sets 74
D
DAServer Manager 19, 105 DAServer Manager documentation 19, 20 DAServer Manager tree 21 data conversion ArchestrA 34 DDE/SuiteLink 58 InTouch 71 OPC 47 data source hierarchy 22 data source redundancy 85 data source/client matrix 10 DCOM 11 DDE 12 DDE client 10 DDE communications protocol 78 DDE data source 51 DDE I/O server 10 DDE/SuiteLink 73, 75 DDE/SuiteLink topic 54 DDE/SuiteLink, Accessing Data Using 78 DDEStatus 97 Default Group 20 Delete command 81 deleting device items 81 device group 78, 87 device groups. 76 device items 21 Device Items configuration view 79, 80, 83 Device Items dialog box 82 Device Items tab 79
C
checklist setting up FS Gateway 15 Clear All command 81 clearing all device items 81 comma separated values file 79 command Add ArchestrA Object 27 Add ArchestrAGroup Object 29 Add DDE Object 51 Add InTouch Object 63 Add InTouchGroup Object 66 Add OPC Object 41 Add OPCGroup Object 43 Add SuiteLink Object 51 Add Topic Object 54 communication failures 100 Communication Protocols 11 Configuration 19, 27, 41, 51, 63 Configuration node 74 configuration set 81 Configuration Set Name 74 configuration view Device Items 80 Global Parameters 21 New_ArchestrA_000 Parameters 28 New_ArchestrAGroup_000 Parameters 30 New_DDE_000 Parameters 52 New_InTouch_000 Parameters 64
108
Index
diagnostics 12 Distributed COM 11 documentation conventions 8 Domain 29 duplicate items 83 Dynamic Data Exchange 13
E
error codes 98 error messages 98 error reporting 100 Export command 82 Export feature 82 Export FSGateway device item data 82 exporting device items 82
L
Large-scale edit on item data 82 link name 78 Local node 20 Log Flag data 98 Log Viewer 98
M
manual or automatic service 22 matrix 10 Microsoft Management Console 19 MMC 19
F
FastDDE 12, 13 FastDDE v2 client 10 FastDDE v2 I/O server 10 FastDDE v3 client 10 FastDDE v3 I/O server 10 features 12 FS Gateway activating/deactivating the FS Gateway 74 configuring as not a service 73 configuring as service 73 managing FS Gateway 73 setting up FS Gateway 15 FS Gateway hierarchy 21 FS Gateway version 95
N
Name column 80 network transport protocol 12 New_ArchestrA_000 Parameters configuration view 28 New_ArchestrAGroup_000 Parameters configuration view 30 New_DDE_000 28, 42, 51, 64 New_DDE_000 Parameters configuration view 52 New_InTouch_000 Parameters configuration view 64 New_InTouchGroup_000 Parameters configuration view 66 New_OPC_000 Parameters configuration view 42 New_OPCGroup_000 Parameters configuration view 44 New_SuiteLink_000 30, 44, 51, 55, 66 New_SuiteLink_000 Parameters configuration view 52 New_Topic_000 Parameters configuration view 55 node name 78
G
Global Parameters 21, 76 group 87 group name 78 groups 21
H
hierarchical location 87 hierarchy 22 HMI 11 hot configuration 76
O
Off-line edit on item data 82 OLE for Process Control 11 OLE/COM technology 11 OPC 11 OPC client 10 OPC communications protocol 77 OPC data source 41 OPC Item ID Prefix 44 OPC protocol 78 OPC v2.05 server 10 OPC, Accessing Data Using 77
I
import 82 Import command 82 Import feature 82 Import FS Gateway device item data 82 importing device items 82 in-proc/out-of-proc 75 InTouch data source 10 InTouch group object 66 InTouch Runtime Node 65 InTouch WindowViewer 97 IOStatus 97 Item Browse Path 65 item name 78 Item Names 87 item names
P
Ping item 23, 26, 86 PLC configuration 82 Plug-ins 105 Poke Mode settings 21 prepare the FS Gateway 20
Index
109
R
Read Only 45 Reconnect Attempts 43 Reconnect Period 43 Redundant 23, 25, 26, 85, 86, 92 Redundant data source 85 reference 103 renaming device items 81 runtime behavior 85 runtime diagnostics 100
S
SCADA 11 Secondary Device 24, 85, 92, 93 Server Name 42 Server Node 42 Service 19 setup.exe 20 SMC 19 finding FS Gateway 16 snap-in environment 20 standard system items 87 SuiteLink 12 SuiteLink client 10 SuiteLink communications protocol 78 SuiteLink I/O server 10 system items 87 $SYS$ActiveDevice 92 $SYS$ErrorText 93 $SYS$FailoverReason 93 $SYS$FailoverTime 92 $SYS$ForceFailover 92 $SYS$PrimaryDeviceStatus 93 $SYS$SecondaryDeviceStatus 93 $SYS$StandbyDevice 92 $SYS$Status 26, 85, 93
T
Time Zones, adjusting for 68 topic name 78 topic object 54 topics 21
U
Update Rate 44 Use Another Configuration Set 74 Use Group Name as Access Path 45 User Name 29 using different configuration sets 74
V
Value Time Quality (VTQ) 12
W
welcome 7
110
Index