Tech Note 1036 - Implementing The FSGateway Redundant Object With InTouch As The Data Source
Tech Note 1036 - Implementing The FSGateway Redundant Object With InTouch As The Data Source
All Tech Notes, Tech Alerts and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.
Topic#: 002874
Created: April 2014
Introduction
This Tech Note explains configuring FSGateway as a Redundant OPC server, using the FSGateway Redundant Object. The FSGateway
reduntant object is configured with InTouch objects as the primary and backup data sources. This Tech Note is derived from a service
request from a Wonderware distributor.
Application Versions
InTouch (all versions)
Matrikon
Preparation:
Assuming the readers already have InTouch applications running in at least two separate network nodes, in our demonstration we are
using two nodes with the ip address of 10.2.81.29 (remote InTouch app node) and 10.2.81.116 (happen to be in the local node -
Localhost, local InTouch app node, notice the InTouch does not have to be running in local node at all)
An identical item named Tag1 which is tied to the $Second attribute so we can display the running data update.
Setting up the FSGateway Primary and Backup InTouch Data Source Objects
1. From Wonderware System Management Console (SMC) under DAServer Manager/Default Group/Local, navigate to
FSGateway/Configuration.
2. Highlight the Configuration item and right-click/select Add InTouch Object (Figure 1 below). This is the Primary InTouch node.
2. Type the path of the InTouch application's Tag Dictionary (DB) (Figure 3 below).
Note: The InTouch application tag DB folder must be properly shared in the network environment, otherwise you will not be able to
browse the path. When you provide the path manually without the folder being shared, you will get an invalid configuration (Figure 4
below).
Figure 5 (below) shows the path of the InTouch application DB is successfully browsed in.
3. Next, add the group object under the InTouch object (Figure 6 below).
Once the group object is added, you can use the tag browser to verify if the connection to the InTouch app DB is good. You
should be able to browse all the items in the InTouch app’s tag dictionary. Figure 7.
4. Repeat the same steps to add the backup InTouch object and group object (Figures 8 and 9 below). Notice this object will use a
different InTouch application in a different network node. In our demo, the first InTouch app is located at IP address 10.2.81.29,
and the backup InTouch app is located in the local node (Loacalhost).
2. From the Redundant Device Object configuration window, browse the InTouch objects you have created as primary and backup,
then add them respectively (Figure 11 below).
In this example, the Primary Device is called New_InTouch_000.New_InTouchGourp_000. The Secondary (Backup) Device is
called New_InTouch_001.New_InTouchGourp_000. Later we will observe from these device names to identify which device is
active and which is inactive (in backup mode).
3. Last, select a Ping Item for the Redundant Device Object (Figure 12 below).
The Ping Item keeps both primary and backup input source alive, even when the data is not pulled from that side. For example, if
the redundant object pulls the data from primary side, no items pulled from the backup side. Without the ping item, the Redundant
object does not know if the backup object is available or not, in order to failover.
1. Download the Matrikon Explorer free from the Matrikon website. It is located in OPC Tools.
2. Install it on the FSGateway node, then start it up, click Server, and choose one of the available OPC servers on that node.
In this example, pick FSGateway and then click Connect (Figure 14 below).
Once connected, the Connect option is disabled, and at the bottom of the Matrikon Explorer window you will see the
Connected OPC Server name, status (Connected) and state (Running).
4. Add an item from the OPC server (Figure 16 below) by clicking Add Item, and then browsing to available item from the OPC
5. Browse to an item in the FSGateway tree and add the item to the advice list (Figure 17 below).
FiguRE 17: BRoWsE aNd Add Tag1 fRom tHE OPC SERvER (FSGatEWaY REd ObJEct)
You may add additional items from the FSGateway redundant object for monitoring and testing purposes, for example adding the
$sys$ActiveDevice to show which input source is currently active.
7. Next, shutdown the InTouch application in the Primary node. Observe that the $sys$ActiveDevice has now updated to the backup
input source: New_InTouch_001 is now the active device (Figure 21 below).
Troubleshooting Tips
One of the common mistakes that the user may encounter is missing the Device Groups under the FSGateway InTouch object, if no
custom Device Group is create, the InTouch object will use default device group name Default, however as you can see in Figure 22,
that the Redundant object will not recognize InTouch object without group as supported device.
Issue
After the InTouch source fails and recovers, the ping item to the remote InTouch object in the Redundant Device quality status stays
BAD.
Wonderware tests show that when you force the InTouch application shutdown in the Remote node, the redundant device object fails
over to the backup InTouch source. Then, after restarting the InTouch app in the Remote node, the ping item quality stays BAD even
though the InTouch in the Remote node is running again.
This symptom is due to the parameter setting in the Redundant Device object called Reconnect Attempt, was by default set at 3,
meaning the redundant object will only try to reconnect to a data source 3 times then give up. So by the time the InTouch is recovered,
the Red has given up and no longer try to reconnect any more.
Resolution
To resolve this issue, all you have to do is modify the Reconnect Attempt setting to a -1. This means the Redundant object will keep
trying (unlimited times) until reconnection is accomplished (Figure 23 below).
A. Chaque
Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, CA 92630. There is also
technical information on our software products at Wonderware Technical Support.
©2014 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or
mechanical, including photocopying, recording, broadcasting, or by any information storage and retrieval system, without permission in writing from Invensys Systems, Inc.
Terms of Use.