Tech Note 1006 Managing Symbol Script Timeouts When Using WW MES API Pop-up Dialogs

Similar documents
Introduction. Application Versions. Utilization Control Buttons and Configuration Options

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

Introduction. Application Versions. How Supply Chain Connector Works. Tech Note 959 Planning for Supply Chain Connector Import Efficiency

Tech Note 892 Configuring Microsoft SQL Server 2008 Express Server Authentication for Use with InTouch Alarm DB Logger

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

Tech Note 715 Resolving Issues with DAServer Diagnostic Node on the Windows 2008 Operating System

Introduction. Application Versions. Issues. Symptoms

Tech Note 784 Installing and Enabling the WebDAV Extension Module for Wonderware Information Server (WIS)

Introduction. Application Versions. Configuration Details. Tech Note 685 Using FSGateway to Communicate between Two Different Galaxies

Introduction. Application Versions. Table of Contents. $PingNode Object Template Configuration

Tech Note 812 Creating a Custom.NET Control in C# for Use in an Application Server Graphic

Tech Note 840 Configuring and Using Secured\Verified Write With the SignedWrite() Function

Tech Note 901 Configuring Smart Card Authentication for ArchestrA System Platform 2012

Tech Note 710 Wonderware MES Operations Capability Object: Configuring Rolling Counter Reset

Introduction. Application Versions. Important. Tech Note 987 Configuring AppServer to Store Data in Primary and Partner Historians

Tech Note 997 Setting up the InBatch 2012 R2 Batch Events Feature on a 2-Node System

Tech Note 936 Troubleshooting and Resolving the Web access of Microsoft Reporting Services Reports application failed Issue

Tech Note 716 Viewing, Creating and Modifying Service Dependencies in Windows Server 2003

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

This Tech Note explains resolving a known issue that occurs when the MES Database (MESDB) is moved to a different time zone.

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

Introduction. Application Version. Overall Process Tasks. Import the System.Speech.dll

Wonderware Support has discovered a problem with some machines using IIS 7.x: There are some missing Handler Mappings to.net Framework 4.0.

Application Versions. Functions List. GetAlarmLogConnStatus( ) Tech Note 506 Alarm DB Logger Status Functions

Introduction. Tech Note 941 Resetting a Non-Responsive Intermec CK61 Device. At times your Intermec CK61 handheld computer can become non-responsive.

Tech Note 1068 Moving Recipe Manager 2014 from a Standalone Configuration to the Domain

Tech Note 868 Troubleshooting Wonderware Software Resource Issues with Performance Monitor

Tech Note 811 InTouch MultiMonitor Support on Windows Vista, Windows 7 and Windows 2008 Server

Tech Note 969 Port Configuration List for System Platform 2012 R2 Multi-Galaxy Environment

Tech Note 989 Historizing AppServer Objects to Partner Historians and Retrieving Data Using HistClient Trend

Tech Note 1004 Accessing InBatch Materials Inside of System Platform using Material Automation Server (Object Hosted to Remote Node)

Tech Note 988 Wonderware System Platform 2014 AlarmMgr Support for InTouch and AppServer on Windows Vista and Later Operating Systems

Tech Note 962 Automating Object Configuration Tasks in the GRAccess Toolkit: Configuring UDA Array

Introduction. Tech Note 1051 Solving HTTP 404 Error for aaflexlicwebservice

WWCdi Error 80040E14: Description 'Warning: The join order has been enforced because a local join hint is used'

Network Setup for AppEngine Redundancy

Tech Note 680 Configuring ActiveFactory for ArchestrA License Server Communication Across a Firewall

Tech Note 726 Capturing a Memory Dump File Using the Microsoft Debug Diagnostic Tool (32bit)

Introduction. Application Versions. Examples. Examples. Show/Hide Graphic. Tech Note 815 Using the ShowGraphic() Function with ArchestrA Graphics

Tech Note 937 Using the Wonderware Installation Wizard for Wonderware Industrial Computers

Introduction. Application Versions. Installation Overview. Preparation. Ensure IIS is Installed on the Default Drive

Introduction. Application Versions. AppEngine Automatically Fails Over on Reboot of One of the Redundant Pair. Issue. Resolution.

Introduction. Application Versions. For the Customer Machine. Tech Note 919 Using the ProcDump Utility to Capture a Wonderware Process Dump

Tech Note 999 Wonderware Application Server Security Troubleshooting Essentials Part 2: Security Classification & Operational Permissions

This Tech Note outlines configuring the Wonderware Modbus Ethernet DAServer (DASMBTCP) to use TCP Ports other than the default port number TCP 502.

Introduction. Upgrading from Previous InTouch Versions. Upgrading from InTouch Version 7.11

Tech Note 754 Solving Historian Client Report Publishing Problems on Windows 2008 O/S

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.

Introduction. Application Versions. Device Integration Objects. Tech Note 879 Redundant Device Integration Object Scan Mode Behaviors

Tech Note 1007 Wonderware Application Server Scripting Implementations Part 1: Inserting a DB Row During Each Scan Cycle

Tech Note 908 Troubleshooting Wonderware Information Server (WIS) Part Eight: ActiveFactory Reports

Logix arrays are base-0, but UDA Array are base-1, so you will need to remember that there is an offset that will occur.

Introduction. Supported aatrendcontrol Class Methods and Properties. Tech Note 661 ActiveFactory 9.2 Undocumented.NET Methods and Properties

Before You Get Started

Introduction. Application Versions. Real-World Examples and Scenarios

Tech Note 1000 Wonderware Application Server Security Troubleshooting Essentials Part 3: Attribute Category

Tech Note 524 Resolving the "URL cannot be resolved or accessed or does not reference an XML document" Error in 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.

Introduction. Application Versions. Back Up the Runtime Database. Tech Note 817 Moving the Historian Runtime Database from One Machine to Another

Introduction. Application Versions. Configuring DASABCIP. Tech Note 600 Using Online OPC Item Browsing in DASABCIP 4.0

Tech Note 640 Troubleshooting Process Graphics Client Live Data Delivery in Wonderware Information Server (WIS)

Tech Note 448 Configuring the SST5136SD PCI Card Using the New SSTDHP I/O Server or the DASDHPlus Server

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

Tech Note 256 Using Network Application Development (NAD) with InTouch

Introduction. InTouch Files. General Files. Security Files. Tech Note 145 FactorySuite and ArchestrA InTouch Application File List

This Tech Note shows how to use the URL parameters to control the Historian Client Trend user interface and behaviors in a browser window.

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.

Introduction. Application Versions. Scenario 1: Importing All Dependent Files

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.

Introduction. HMI Reports Driver Overview. Application Versions. Creating a CSV/Text Data Access Client Driver

Operator actions are initiated in visualization nodes, processed in dedicated server nodes, and propagated to other nodes requiring it.

Wonderware ActiveFactory allows you to publish reports using Microsoft Excel, Word, and Trend to the ActiveFactory Reporting Website (AFRWS).

ArchestrA Log Flag Editor User s Guide Invensys Systems, Inc.

Introduction. Application Versions. OEE Requirements and Calculations. Tech Note 657 Wonderware Performance 3.5 Software: Performance Tips

Introduction. Tech Note 690 How to Hide the Public NameSpace and Tags in ActiveFactory v9.2

ArchestrA Web Exporter Guide

Introduction. Tech Note 910 Using the MatrikonOPC Sniffer to Trace OPC Communication

Tech Note 526 Automating Object Configuration Tasks Using GRAccess: Configuring the OPCClient DIObject

Wonderware Wonderware ArchestrA License Manager Guide

Introduction. Application Versions. Tech Note 618 Restoring AFWeb Database Configuration to Publish Reports and Trends

Course Description. InBatch Software

Object Viewer User s Guide

Wonderware DAServer for Omron FINS Ethernet User s Guide

Wonderware DAServer 1.0 for Mitsubishi Ethernet User s Guide

Wonderware DAServer 1.0 for Omron FINS Ethernet User s Guide

Historian Administration Guide

Wonderware Information Server Win-XML Exporter User s Guide. Invensys Systems, Inc.

Wonderware FactorySuite

Recovering a Corrupted InTouch Application

Wonderware DAServer for Omron FINS Serial User s Guide

Comprehensive Training for Wonderware System Platform

Wonderware Operations Integration - Supervisory Server Manager (G-1.2 Series) User Guide

II Export Components of Existing Managed Application

Tech Note 528 Automating Object Configuration Tasks Using GRAccess: Creating and Configuring Field Attributes

IntelaTrac 2017 SP1 Release Notes. January 2018

Wonderware Operations Integration Supervisory Beckhoff TWINCAT Server (G-1.2 Series)

Wonderware Operations Integration Supervisory AutomationDirect ADPRO Server (G-1.2 Series)

WW TSS 20 MES 4.5 Advanced Use (API Stateless)

The standard InTouch keyboard or keypad. This is the default keyboard.

file:///media/rhandsome/toshiba/wonderware/do... Wonderware InTouch HMI Version 10.1 Readme

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 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.