Tech Note 364 - How To Configure The BatchGuiConfig ActiveX Control For Redundancy Client Switch-Over
Tech Note 364 - How To Configure The BatchGuiConfig ActiveX Control For Redundancy Client Switch-Over
How to Configure the BatchGuiConfig ActiveX® Control for Redundancy Client Switch-
Over
All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.
Topic#: 002016
Created: May 2004
Updated: August 2006
Introduction
When using the BatchGuiConfig ActiveX Control in a Redundancy application, the following configuration steps must be
completed in order for the InTouch client to automatically switch to the correct server in the case of a switchover. The objective
is to reinit the BatchGuiConfig control when a switchover occurs.
Procedure
This Memory Discrete tag (Example: ServerComm) will monitor the Batch Server connection in case of communication
loss:
Figure 1: ServerComm Tag
2. Add a Condition script using one from the ActiveX Control Browser.
In this example, the Condition script is called ServerComm, with a Condition type While False.
This script is set to run every 1000 msec. The rate can be set to how often you want the script to run.
This script monitors the connection of the BatchGuiConfig in the event of communication loss.
If the connection is lost the #BatchGuiConfigInit(); script will initialize the control when a switchover occurs to the
correct Batch server:
Figure 3: #BatchGuiConfig1.Init() Script
• The Range is False (so when the tag values changes to True, the control is initialized).
• The associated tag must point the ServerComm tag in the Tagname Dictionary that you created.
5. In the BatchGuiConfig control select the events tab and configure the following:
• Select the event LostServerConnection and enter ResetServerComm as the script name.
7. Return to the Event tab and highlight the Event SystemShuttingDown property.
8. Add the script name ClearServerComm (Figure 7 below).
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 www.wonderware.com/support/mmi
back to top
©2006 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 anyinformation storage and retrieval system, without permission in
writing from Invensys Systems, Inc. Terms of Use.