Introduction. Symbol Script Timeout Setting. Sample MES Custom Code in Symbol Script. Application Versions. Sample Code



Similar documents
Tech Note 743 Configuring Reporting Services 2008 Configuration for a New Host Name in Windows 2008 R2

This tech note will explain how to use the following parameters in Configurator General Parameters.

Tech Note 920 Resolving Disabled ActiveFactory Reporting Website for Wonderware System Platform R2

Tech Note 338 How to Change the ActiveFactory Reporting Website Default Install Location

Tech Note 1010 SQL Server Authentication and ArchestrA Network Account Restrictions When Installing Wonderware Historian

Introduction. Issues. Symptoms. Application Versions. Case 1: Deploy an ArchestrA Object - UDO4DevUsers_001_001 - Has Error Messages

Tech Note 782 Installing Remote Desktop Services on Windows 2008 Server R2 for Wonderware Products

Introduction. Notes. Important Considerations. Application Versions. Assumptions. 8/22/13 Setting Up Historian Servers for Tier-2 Summary Replication

Introduction. Application Versions. Assumptions. Delete $$ExportTempFolders. Tech Note 930 Wonderware System Platform Clean-up Guide

Tech Note 751 Installing InBatch Report Contents for Wonderware Information Server (WIS)

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

Tech Note 847 Installing Wonderware Information Server (WIS) on the Windows Server Window 7 64 and 32-bit Operating System

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.

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

1. Under Application Objects, open the $Tank object and then open the $TankDisplay as shown in Figure 1 (below).

Tech Note 663 HMI Reports: Creating Alarm Database (WWALMDB) Reports

Tech Note 1042 Solving Historian Memory Issue with SQL Server MemToLeave Configuration

Tech Note 782 Installing Remote Desktop Services on Windows 2008 Server R2 for Wonderware Products

Introduction. Tech Note 884 Setting Up Historian Servers for Tier-2 Summary Replication

Introduction. Application Versions. Installing Virtual SMTP Server. Tech Note 692 Using Virtual SMTP Server for SCADAlarm Notifications

Tech Note 868 Troubleshooting Wonderware Software Resource Issues with Performance Monitor

Note: This Tech Note was formerly titled Installing Microsoft SQL Server 2008 for Wonderware Historian v10.0.

Migrating QI 8.0 Admin and Process Databases from Microsoft Access to Microsoft SQL Server

Introduction. Configuration: Entity and OCO Modeling. Application Version: OCO General Configuration

Introduction. Back Up the Runtime Database. Application Versions

Tech Note 905 Troubleshooting Wonderware Information Server (WIS) Part Six: ArchestrA Graphics No Live-Data

8/22/13 Configuring Windows SharePoint Services for PEM v1.0 to Work with SuiteVoyager v2.6

Tech Note 612 Upgrading DLL Version Mismatches Between CBM Solution and System Platform

Part I: Setting up Bristol Babcock's OPC Server

This Tech Note provides detailed guidelines and options for defragmenting and maintaining your production databases.

Communication to End Device Going In and Out of Slow Poll Mode

Note: Not all messages in the log are indicative of a problem. Contact Technical Support if questions arise.

Using Network Application Development (NAD) with InTouch

This Tech Note describes working with Microsoft Reporting Services in order to publish InBatch Reports to Wonderware Information Server.

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.

Tech Note 551 Configuring SQLMail or Database Mail for the Historian Event

How To Write A Summary On A Historyorian Server

Industrial Application Server Redundancy: Troubleshooting Guidelines

Tech Note 1035 Moving the Historian Runtime Database to Another Machine Using SQL Server 2012

Tech Note 813 Troubleshooting Wonderware Information Server (WIS) Part Four: Client License Release

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.

This Tech Note provides step-by-step procedures to install Microsoft SQL Server 2012 on a 32- or 64-bit Operating System.

Tech Note 652 Changing an ArchestrA Symbol's Custom Property Expression or Reference in Runtime

Introduction. Application Versions. Compatibility and System Requirements. Firewall and DCOM Settings

Enabling Cross-Machine Distributed Transactions (via MSDTC)

Tech Note 912 Using Alternate TCP Port Numbers with Modbus Ethernet DAServer

Instead, use the following steps to update system metadata that is stored in sys.servers and reported by the system function

8/22/13 Configuring the SST5136SD PCI Card Using the New SSTDHP IO Server V8.1 or the DASDHPlus Server

Tech Note 400 Configuring Remote Connections for Windows 2000/2003/XP

How To Migrate Qi Analyst To A New Database On A Microsoft Access (Windows) From A New Version Of Qi.Io To A Newer Version Of A New Qi 8.0 (Windows 7.3

8/23/13 Configuring SIDirect DAServer to Communicate with S7 PLC Over TCP Connection

8/23/13 Configuring the Wonderware SECS-II/GEM Host Creator (SERIAL-RS232)

This Tech Note describes modem connections using DAServers and provides some guidelines on how to make the modem connection work.

To allow SQL Server Agent to trigger when a report is executed, we need to provide a set of report group types.

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.

Tech Note 957 Creating Custom Password Entry on Intermec-Supported Handhelds

ArchestrA Log Viewer User s Guide Invensys Systems, Inc.

InTouch HMI Scripting and Logic Guide

Security Settings for Wonderware Products

Implementing the system using these guidelines should improve your system performance for a large database while your database grows in size.

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.

Tech Note 53 Configuring the Siemens SINEC H1 CP1413 for Windows NT

How Wonderware Software Addresses the Top Challenges of the Municipal Water and Wastewater Business. Steve Garbrecht, Director of Product Marketing

Wonderware Historian Client Installation Guide. Invensys Systems, Inc.

Wonderware Information Server Installation Guide

Installing the TCP/IP Network Protocol

Tech Note 213 Finding Memory Leaks in Windows 95/98/98SE Using System Monitor

8/23/13 Configuring the S7 I/O Server for Windows 95 to Access S7 PLCs Via the Profibus Network

WebSphere Business Monitor

Intelligence Dashboard Licensing Guide

WebSphere Business Monitor

Tech Note 128 Configuring InBatch For Standalone PCs With SQL Server and IndustrialSQL Server

Kodak Asset Management Software Client Module

LPR for Windows 95 TCP/IP Printing User s Guide

SmartGlance Mobile Reporting Architecture and Data Security

A. BACK UP YOUR CURRENT DATA. QuickBooks Business Accounting Software for Windows Account Conversion Instructions

Wonderware MES 4.0/Operations and Performance Software

WebSphere Business Monitor

AvePoint SearchAll for Microsoft Dynamics CRM

ArchestrA Workflow 2012 R2

WW TSS-15 WW TSS-16 InTouch Advanced Troubleshooting and 2014 New Features

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

Wonderware Workflow ENABLE TRUE COLLABORATION

BusinessObjects Enterprise XI Release 2

CA VPN Client. User Guide for Windows

Wonderware Industry Solutions for Facilities Management

8/23/13 Configuring the S7 Server for Windows NT 4.0 to Access S7-400 PLCs via the Siemens CP1613 Card for ISO (Industrial Ethernet)

LOWER TOTAL COST OF OWNERSHIP & INCREASED PRODUCTIVITY

Federated Identity Service Certificate Download Requirements

Track and Trace. Administration Guide

HP LoadRunner. Software Version: Ajax TruClient Tips & Tricks

Setting Up Alarms in a HOBO ZW Wireless Network

Avigilon Control Center System Integration Guide

WhatsVirtual for WhatsUp Gold v16.0 User Guide

CA Nimsoft Monitor. Probe Guide for Cloud Monitoring Gateway. cuegtw v1.0 series

Wonderware InBatch. Flexible batch management

Sophos Anti-Virus standalone startup guide. For Windows and Mac OS X

Webmetrics Web Monitoring Getting Started Guide

CA ARCserve Replication and High Availability for Windows

Transcription:

Tech Note 1006 Managing Symbol Script Timeouts When Using WW MES API Pop-up Dialogs 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#: 002837 Created: January 2014 Introduction Wonderware MES provides many ways to customize script or code in order to meet variable production requirements. One solution is to take advantage of Wonderware Application Server to implement custom code in script, and show a user interface within an InTouch window. There are many concerns when utilizing ArchestrA or Symbol script for MES customization. This Tech Note addresses how the timeout setting affects the script behavior, and includes relevant recommendations to avoid such effect. Application Versions Wonderware Application Server 3.x or higher Wonderware InTouch 10.x or higher Wonderware MES 3.5 or 4.x Symbol Script Timeout Setting To avoid infinite loops in a Symbol script, set a timeout limit in which FOR loops must complete execution. If a script loop does not complete execution within the timeout limit, WindowViewer automatically terminates the loop and writes a message to the Logger. You can check or change timeout setting via WindowMaker > Special > Configure > WindowViewer > Managed Application tab (Figure 1 below). FIGURE 1: SYMBOL SCRIPT TIMEOUT SETTING IN INTOUCH By design, the timeout setting only affects the scripts including loop logic. In most cases, there's no concern as the script is supposed to be executed successfully in few seconds. However, when the script is also including any kind of user interaction, it is most likely the script will timeout, resulting in the script halting at the next Loop logic code. It will execute other code but still generate a timeout error message. Note: This Tech Note includes detailed Timeout setting information for ArchestrA Graphics. Detailed explanation of FOR loops will be added to ArchestrA Graphics User's Guide in a future release. Sample MES Custom Code in Symbol Script Wonderware MES provides flexible ways to customize production requirement via Stateful and Stateless APIs. Some of the popup methods for the UI are predefined for user interaction. The following list includes but is not limited to these methods: PopupEntitySelection() PopupItemReasonSelection() PopupUtilReasonSelection() PopupOperationSelection() PopUpAddConsDlg() And Others If the custom script includes at least one of above APIs with additional loop logic inside the same script, it is likely that some of the transactions can fail due to timing out. The sample MES custom code in a Symbol Script to verify this behavior. In this sample code, it is simple to allow user to select the entity and show all entity attributes in the list box: Call FactMES.Utility.PopupEntitySelection() to display the popup UI for entity selection. Call Entity.GetEntAttributes() to return all entity attributes in a dataset. Loop through the dataset and call ListBox.AddItem() to display all attributes. Sample Code

FIGURE 2: SAMPLE MES CUSTOM CODE ALL-IN-ONE When executing the whole script in WindowViewer within default 5 seconds, the complete list of entity attributes should be displayed successfully as below: FIGURE 3: UI FOR NORMAL OPERATION From the SMC log, we can observe all correct log lines without any error.

FIGURE 4: SMC LOG FOR NORMAL OPERATION When Timeout Triggered When the script does not execute within the (default) 5 seconds, the user cannot complete the action in Entity Selection popup UI in time. Nothing is displayed and no error message is displayed in the UI. FIGURE 5: UI FOR TIMEOUT OPERATION This is because the timeout limit is triggered. From the SMC we can observe uncompleted log lines with additional timeout warnings. FIGURE 6: SMC LOG FOR TIMEOUT OPERATION There's a big concern that not all of the MES transactions are completed, resulting in data inconsistence in MES database. However, it does not make sense to limit user to interact the popup UI (e.g. Entity Selection in this example) within this limited interval. Managing the Scripts It is possible to change the timeout setting for slow running scripts with no user interaction to a maximum of 360 seconds. The recommended strategy for the pop-up dialogs from WW MES is to split them into multiple scripts. Setting a long timeout interval results in potential performance issues or deadlocks if infinite loops are encountered. In this case, you can show the popup dialog in one script and then have it start a second script that contains the loop logic. The following procedure shows how to separate the scripts. 1. Create the necessary custom properties in ArchestrA Graphic as public variables, e.g. EntityID and FillLB.

FIGURE 7: CREATE CUSTOM PROPERTIES AS PUBLIC VARIABLES 2. Include the loop logic in another named script to fill in list box, e.g. FillListBox. FIGURE 8: INCLUDE LOOP LOGIC IN NAMED SCRIPT 3. Delete the loop logic from original script only to include popup dialog and necessary transactions. Call the named script FillListBox (triggered by FillLB) instead.

FIGURE 9: INCLUDE ONLY POPUP DIALOG IN ORIGINAL SCRIPT 4. Re-execute the graphic in WindowViewer even when exceeding the timeout interval. You would still be expected to see additional timeout warning in SMC log by design. However, the complete list of entity attributes should display successfully. FIGURE 10: SMC LOG FOR TIMEOUT OPERATION AFTER SEPARATING ORIGINAL SCRIPT

FIGURE 11: UI FOR TIMEOUT OPERATION AFTER SEPARATING ORIGINAL SCRIPT Click the following icon to view this file in.pdf format: S. Hong 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. For technical support questions, send an e-mail to wwsupport@invensys.com. Back to top 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.