Application Server User Guide
Application Server User Guide
© 2019 AVEVA Group plc and its subsidiaries. All rights reserved.
No part of this documentation shall be reproduced, stored in a ret rieval system, or transmitted by any
means, electronic, mechanical, photocopying, rec ording, or otherwise, without the prior written
permission of AVEVA. No liability is assumed with respect to the use of the information contained herein.
Although precaution has been taken in the preparation of this documentation, AVEVA assumes no
responsibility for errors or omissions. The information in this documentation is subject to change without
notice and does not represent a commitment on the part of AVEVA. The soft ware described in this
documentation is furnished under a license agreement. This soft ware may be used or copied only in
accordance with the terms of such license agreement.
ArchestrA, Aquis, Avantis, Citect, DYNSIM, eDNA, EYESIM, InBatch, InduSoft, InStep, Int elaTrac,
InTouch, OASyS, PIPEPHASE, PRiSM, PRO/II, PROV ISION, ROMeo, SIM4ME, Si mCentral, SimSci,
Skelta, SmartGlance, Spiral Software, Termis, WindowMaker, WindowViewer, and Wonderware are
trademarks of AVEVA and/or its subsidiaries. An extensive listing of AVEVA trademarks can be found at:
https://sw.aveva.com/legal. All other brands may be trademarks of their respective owners.
Publication date: Saturday, May 25, 2019
Contact Information
AVEVA Group plc
High Cross
Madingley Road
Cambridge
CB3 0HB. UK
https://sw.aveva.com/
For information on how to cont act sales, customer training, and technical support, see
https://sw.aveva.com/contact.
                                                                                                            Application Server User Guide
Contents
   Chapter 1 IDE Overview ..................................................................................................... 17
        What’s a Galaxy?.................................................................................................................... 17
        Start the ArchestrA IDE ........................................................................................................... 18
            Install and Activate Your Licens e ........................................................................................ 18
            Manage Security Certificate Verification .............................................................................. 18
        Create a Galaxy ...................................................................................................................... 18
        Connect to a Galaxy................................................................................................................ 21
        IDE Views and Toolboxes ........................................................................................................ 22
            Templat e Toolbox ............................................................................................................. 23
            Graphics Toolbox .............................................................................................................. 25
            IDE Application Views........................................................................................................ 27
                Object Icons ................................................................................................................ 28
                Model View ................................................................................................................. 29
                Deployment View ........................................................................................................ 31
                Derivation View ........................................................................................................... 32
                IO Devic es View .......................................................................................................... 33
                IO Devic e Mapping View .............................................................................................. 34
                Operations View .......................................................................................................... 34
        Customizing Your Workspace .................................................................................................. 35
             Dock Views ....................................................................................................................... 35
             Float Views ....................................................................................................................... 35
             Hide Views ....................................................................................................................... 36
             Reset the Workspac e ........................................................................................................ 36
             Synchronize Views ............................................................................................................ 36
             Configure User Information ................................................................................................ 37
             Log on with Security Enabled ............................................................................................. 38
             Change Users ................................................................................................................... 39
                                                                                                                                                 3
Application Server User Guide                                                                                                                   Contents
4
Contents                                                                                                            Application Server User Guide
                                                                                                                                                         5
Application Server User Guide                                                                                                                  Contents
                                                                                                                                                     7
Application Server User Guide                                                                                                                 Contents
8
Contents                                                                                                          Application Server User Guide
                                                                                                                                                       9
Application Server User Guide                                                                                                            Contents
10
Contents                                                                                                         Application Server User Guide
                                                                                                                                                   11
Application Server User Guide                                                                                                                   Contents
12
Contents                                                                                                            Application Server User Guide
                                                                                                                                                       13
Application Server User Guide                                                                                                                 Contents
14
Contents                                                                                                             Application Server User Guide
                                                                                                                                                         15
                                                                                                            Application Server User Guide
                                                                                          C HAPTER 1
IDE Overview
                                                                                                                                    ®
    This section explains how to creat e and open a Galaxy. It also briefly describes the ArchestrA
    Integrated Development Environment (IDE ).
    The IDE is the integrated design and development tool from which all ArchestrA objects are configured
    and deploy ed to target computers. You work from the IDE to create, configure, and maintain the objects
    that comprise your application and the underlying infrastructure that supports your application.
    Using the ArchestrA IDE, you can import new types of objects in to the Galaxy Repository, configure new
    ones, and deploy them to computers in your network. Multiple us ers can work concurrently on different
    sets of objects from different ArchestrA IDEs.
    In This Chapter
    What’s a Galaxy? ......................................................................................................................... 17
    Start the ArchestrA IDE ................................................................................................................. 18
    Create a Galaxy............................................................................................................................ 18
    Connect to a Galaxy ..................................................................................................................... 21
    IDE Views and Toolboxes ............................................................................................................. 22
    Customizing Your Workspace........................................................................................................ 35
What’s a Galaxy?
    A Galaxy represents your entire production environment, including all computers and components that
    run your application. A Galaxy is a collection of platforms, engines, templates, instances , and attributes
    you define as the parts of you r specific application. Persistent information about this collection of objects
    is stored in a Galaxy database.
                                                                                                                                               17
Application Server User Guide                                                                             IDE Overview
          A Galaxy database resides on a single net work computer. A Galaxy databas e can reside on any
          computer on your net work with the SQL Server, Bootstrap, and Galaxy Repository software ins talled.
          But, you cannot store parts of a Galaxy database on several computers.
          A Galaxy Repository (GR) is the name of the single computer where the Galaxy database is located.
          You can deploy Galaxy components, such as platforms and engines, on multiple computers to share the
          work load while applications are running. For more information, see Deploying and Running an
          Application on page 253.
          A Galaxy's names pace is the set of unique object and attribute identifiers. The namesp ace and the
          values of each of its identifiers define an Application Server application, and can be accessed by clients
          of the configuration system as well as the Application Server Message Exchange in a deployed system.
          A key benefit of the Application Server namespace is that it allows Application Server objects and
          process data to be referenced by scripts and animation links from any comput er in t he Galaxy without the
          reference needing to specify the object's location.
          Galaxies also include security, which is turned off by default. Using security allows you to limit what users
          can do. You can add more users, security roles, and security groups later if you want. For more
          information, see Configure Sec urity on page 409.
Create a Galaxy
          Each time you start the ArchestrA IDE, you must connect to a Galaxy. You can either create a new
          Galaxy or select an existing Galaxy before opening the IDE. You must have activated a valid license
          before opening the IDE.
          Creating a new Galaxy requires you t o specify a Galaxy Repository (GR) node name and the name of the
          Galaxy. The Galaxy database is created and is ready for you to connect to and use.
          Guidelines for Creating a New Galaxy
             Activate a valid license before opening the IDE.
             You can only create a new Galaxy on a computer with the Bootstrap and the Galaxy Repository
              software installed.
18
IDE Overview                                                                             Application Server User Guide
              To be able to create a new Galaxy, TCP/ IP must be enabled on the comput er hosting the SQL
               Server database.
               The TCP/ IP protocol setting can be verified with SQL Server Configuration Manager. See the
               System Platform Installation Guide for instructions on enabling the TCP/IP protocol for SQL Server.
              New Galaxies are c reated without security. To learn more about setting security for your Galaxy, see
               Configure Securit y on page 409.
              A computer name, as well as the name of the domain on which the comput er exists, should include
               only English language characters, alphabetic and numeric. Use of characters from other language
               character sets that are not also included in the English language character set can result in a failure
               to create the new Galaxy.
         To create a new Galaxy
         1.    From the Start menu, go to the Wonderware System Platform folder, and then select System
               Platform IDE. The Connect to Galaxy dialog box appears.
                   Note: You cannot use the following reserved names as Galaxy names: Me, MyContainer,
                   MyArea, MyHost, MyPlatform, MyEngine and System. You cannot use a name that conflicts with
                   an existing object in the backup Galaxy file.
               o   In the Galaxy Type list, select the galaxy type from the available standard galaxy cab files,
                   which are located in the BackupGalaxies folder. The following cab files are included with
                   Application Server:
                                                                                                                    19
Application Server User Guide                                                                            IDE Overview
                   Base_InTouch.cab: Use the Base_InTouch cab file to creat e InTouch HMI Galaxies. This is
                   mainly for use if you are already using InTouc h HMI applications, and can be us ed to convert
                   legacy InTouch applications to managed applications.
                   Default.cab: The Default cab file is the recommended starting point for creating a new Galaxy.
                   The Default.cab file contains default screen profiles, templates, a basic equipment model, and
                   an example InTouch OMI ViewA pp that provides an introduction to key features.
                   Default_EMPTY.cab: Use the Default_EMP TY.cab file to create a baseline Galaxy that contains
                   only base template objects. It is intended primarily as a recovery mechanism for recreating a
                   damaged galaxy. After creating the bas eline galaxy, you can import existing objects into it from
                   aaPKG files.
                   Reactor_Demo_InTouch. cab: This is the same as the Base_InTouch.cab file, but includes a
                   demonstration run-time application, "$ReactDemo," and all the configuration objects and graphic
                   files used to create the demo. $ReactDemo is derived from the InTouchViewApp object.
               o   If you have created Galaxy backups, your cab files will also appear, in addition to the cab files
                   included with Application Server.
                   The selected backup file is used as a template to create a new Galaxy. The system restores the
                   selected backup Galaxy and renames it to the Galaxy name that you provided in the Galaxy
                   Name box.
          4.   Click Create. The Create Galaxy dialog box opens, showing the Galaxy database being created.
               Note: If you use a backup cab file that was created in a previous version of Application Server, and if
               Enhanced Security mode is in effect, you will be prompt ed to enter S QL SysAdmin credentials before
               proceeding.
          5.   After the Galaxy database is created, click Close. You are ready to open the Galaxy and begin
               creating your application. You must be a member of the aaConfigTools OS group to connect to a
               Galaxy, or you must be running the IDE as administrator. For more information about opening a
               Galaxy, see Connect to a Galaxy on page 21.
20
IDE Overview                                                                            Application Server User Guide
Connect to a Galaxy
         You must connect to a Galaxy before you can perform work in it. To connect to a Galaxy, you must be a
         member of the aaConfigTool s OS group on the GR node. To add a user to the aaConfigTools group,
         use the Windows Control Panel. If you are not a member of aaConfigTools, you can instead start the IDE
         as administrator and then connect to the Galaxy.
         Important: In a domain-based network, the aaConfigTool s OS group must exist on the GR node. You
         will not be able to connect to the Galaxy if you are not a member of the aaConfigTools group on the GR
         node.
         If security is enabled for an existing Galaxy, you cannot open it without logging in, even if you are a
         system administrator or member of t he aaConfigTools group. If you do not have log on rights to a Galaxy,
         you cannot log in to that Galaxy. For more information about Galaxy security, see
         01Standardize_S ecurity_Configure Security.
         To connect to a Galaxy
         1.    On the Start menu, point to Programs, Wonderware and click ArchestrA IDE. The Connect to
               Galaxy dialog box appears.
         2.    Do the following:
               a.   In the GR node name list, select the name of a computer you previously connected to. Click the
                    Brow se button    to browse and select from the availa ble domains and nodes on your
                    network.
               b.   In the Galaxy name list, select the name of the Galaxy on that GR node.
               c.   Click Connect.
                    –   If you are a member of the aaConfigTool s OS group on the GR node or running the IDE as
                        administrator, AND the Galaxy you select does NOT have security enable, you are
                        connected to the Galaxy.
                    –   If you are a member of the aaConfigTool s OS group or running the IDE as administrator,
                        AND the Galaxy you select has security enabled, the Login dialog box appears. Ty pe your
                        user name and password and click OK.
                    –   If you are not a member of the aaConfigTool s OS group or running the IDE as
                        administrator, you are blocked from connecting to the Galaxy and a message about
                        insufficient permissions is displayed. Take the corrective action described in the message
                        and relaunch the IDE.
               Once the Galaxy opens in the IDE you can start working with your Galaxy.
                                                                                                                  21
Application Server User Guide                                                                          IDE Overview
          For a complete discussion of items such as templates and instances, see About Templates and
          Instances on page 41.
          Views in the IDE include:
          Templat e Toolbox       Expand the top level folders to see the different templates in the
                                  toolboxes.
          Graphic Toolbox         Cont ains ArchestrA graphics and Situational Awareness Library symbols
                                  that can be used in the Galaxy. For more information, see the Creating
                                  and Managing ArchestrA Graphics User Guide.
22
IDE Overview                                                                             Application Server User Guide
         Application views          Click the tabs at the bottom or icons at the top to open:
                                       Model view - the object relationship to the aut omation scheme
                                        layout. The objects are organized into A reas that typically represent
                                        the physical plant layout.
                                       Deployment view - the object relationship to the comput ers that
                                        comprise the deployed system that the objects run on.
                                       Derivation view - the derivation path from base template to the
                                        instances. This view allows a user to see all object instances that
                                        were based on a given template. All templates and instances appear
                                        in this view.
                                       IO Devices view - the object relationship to scan groups and DI
                                        objects. This view lets you assign objects that were configured for
                                        I/O automatic assignment in the Object Editor to scan groups, and
                                        assign scan groups to Device Integration (DI) objects. The IDE then
                                        builds the I/O references for each object.
                                       IO Device Mapping view - shows the relationships of objects and
                                        attributes to scan groups and DI objects. This view lets you see,
                                        validate, and edit the I/O references of object attributes that have
                                        been automatically configured.
                                       Operations view - shows the results of validating the configuration
                                        of objects.
         Status bar                 Shows messages, user name, Galaxy name and node, and license
                                    information. Turn off the Status bar by clicking Status bar on the View
                                    menu.
Template Toolbox
         The Template Toolbox lists template toolsets, which contain object templates. The Template Toolbox
         shows a tree view of template categories in the Galaxy. Expand the toolsets to see their contents.
         A new Galaxy is automatically populated with the content defined by the cab file that was used to create
         it. At a minimum, the newly-created Galaxy will include base templates.
              The Default.cab includes first level derived templates in addition to base templates, to simplify the
               process of building your Galaxy and a sample InTouch OMI ViewA pp.
              The Default_EMP TY.cab includes only base templates. See About Base Templates on page 43 for
               additional information.
              The Base_InTouch.cab and the Reactor_Demo_InTouch.cab files include only the base templates
               needed to support an InTouch HMI application.
                                                                                                                       23
Application Server User Guide                                                    IDE Overview
24
IDE Overview                                                                             Application Server User Guide
Graphics Toolbox
         The Graphic Toolbox lists symbols and other graphic-related content. The Graphic Toolbox shows a tree
         view of the symbol/graphic toolsets. As with the Template Toolbox, new Galaxies are populated with the
         content defined by the cab file used to create it. Expand the toolsets to see their contents.
              The Default.cab includes several symbol and graphic libraries, including the ArchestrA Symbol
               Library, the Situational Awareness Library, and an icon library. The Default.cab also includes various
               Screen Profiles, Layouts, Apps and Controls.
              The Default_EMP TY.cab includes only a basic set of Apps and Controls.
              The Base_InTouch.cab and the Reactor_Demo_InTouch.cab include the ArchestrA Symbol and
               Situational A wareness Libraries. The Reactor_Demo-InTouch.cab also includes additional symbols
               used for the InTouch HMI reactor demo app.
                                                                                                                   25
Application Server User Guide                                              IDE Overview
26
IDE Overview                                                                         Application Server User Guide
                                                                                                               27
Application Server User Guide                                                                          IDE Overview
Object Icons
          In the Model, Deployment, Derivation, and IO Devices views, objects are listed in a tree structure that
          functions like a standard Microsoft Windows Explorer tree. Under each branch of the tree, objects are
          listed in alphabetical order. Default objects are shown in bold.
          For objects shown in any view, icons to the left of the object name are used to show:
             Object deployment status
             Error and warning conditions
             If the object is checked out
             If a template contains an Object Wizard
Not deployed
Deployed
Deployed, but pending configuration changes exist that have not been deploy ed.
Deployed, but software modifications exist that have not been deployed.
                   Applies only to redundant AppEngines. An AppEngine is undeploy ed, but its redundant
                   pair is deployed.
                   Applies only to redundant AppEngines. An AppEngine is deployed, but its redundant pair
                   is not deployed.
                   Applies only to redundant AppEngines. An AppEngine is deployed, its redundant pair is
                   not deployed, and pending configuration changes exist that have not been deployed.
28
IDE Overview                                                                            Application Server User Guide
         [No     Good. No additional icon is displayed for deployed objects running on -scan or off-scan
         icon]   with a good status.
                 Warning
                 The process of asynchronously trans ferring files to the target node is not yet complete.
                 This icon is normally visible for only a few moments at the end of an deployment
                 operation, unless the object is deployed on a slow network. If the icon remains for more
                 than a few moments, check if the application is OnScan, as the files will not transfer if the
                 application is OffScan. This icon completely replaces the original while it is shown.
                 The object is a base template (read -only).
                 To assign an object to anot her, drag it onto the host object. If that object is an
                 inappropriate assignment match, the international Not symbol appears. To unassign an
                 object, drag it to the Unassigned Host folder.
         Note: You must undeploy an object that is currently deployed before reassigning it from one object to
         another.
Model View
         The Model view shows objects in terms of their physical or containment relationships, whic h can be
         organized through a folder structure. This Model view most accurately represents an application
         perspective of the processes that users are emulating: for instance, specific process areas, tanks,
         valves, pumps and their relationships based on containment.
         For more information about containment, see Create Contained Templates on page 54.
                                                                                                                  29
Application Server User Guide                                                                              IDE Overview
          The tree structure acts like a standard Microsoft Windows Explorer tree. Initially, it shows a simple
          hierarchy: <Galaxy name> and the Unassigned Area folder.
          In the Model view, all objects are grouped by areas and by containment relationship. The Model view
          shows these relationships in the following ways:
             The top of the tree is the Galaxy.
             Top-level Areas are shown under the Galaxy.
             Within each Area, contained Areas are listed. Areas support hierarchical composition; that is, they
              support sub-Area construction. Areas can be nested only 10 le vels (after the sub-area is 10-levels
              deep, you cannot add another sub-level).
             Objects that belong to an Area are listed under the Area.
             Objects contained by other objects are listed under their respective containers. Multiple levels are
              allowed. For more information about containment, see Creat e Contained Templates on page 54.
Note: Contained objects belong to the same Area as the object that contains them.
              Some object’s hierarchical, or cont ained, names are truncated if you have multiple levels shown. To
              view the entire hierarchical name, select the object and click Properties on the Galaxy menu. The
              entire hierarchical name is shown in the Propertie s dialog box. For more information about
              hierarchical names, see Using Contained Names on page 59.
             Objects that currently do not belong to an Area are listed under Unassigned Area. Cont ainment
              relationships bet ween parent and child objects are shown there.
          In each branch of the tree, objects are listed in alphabetical order. Default objects are shown in bold.
                 To assign an object to another, drag it onto the host object. If the object is an inappropriat e
                 assignment match, the international Not symbol appears. To unassign an object, drag it to
                 the Una ssigned Host folder.
30
IDE Overview                                                                             Application Server User Guide
Deployment View
         The Deployment view shows instanc es only in terms of their assignment relationships. This view enables
         you to organize thos e objects through a folder structure.
         This view shows which objects instances reside on which comput ers. In the ArchestrA environment, the
         physical location of object instances is not required to approximate the real-world environment it models.
         The Deployment view does not need to reflect your physical plant environment.
         The tree structure acts like a standard Windows Explorer tree. It is initially divided into two hierarchical
         levels: <Galaxy Name> and the Unassigned Host folder.
         In the Deployment view, objects appear in a tree according to their distribution relationships in a
         multi-node system in the following ways:
              The top of the tree is the Galaxy.
              WinPlatforms are shown under the Galaxy.
              Under each WinPlatform, assigned AppEngines are listed.
              Under each AppE ngine, assigned Areas and DIObjects, such as DINetwork Objects, are listed.
              Under each Area, assigned ApplicationObjects are listed.
              Under each ApplicationObject, contained ApplicationObjects are listed. Multiple levels are allowed.
              Under each DINetwork Object, assigned DIDevice Objects are listed.
                                                                                                                    31
Application Server User Guide                                                                            IDE Overview
             Unassigned objects are grouped together in the Unassigned Host folder. Area and containment
              relationships are maint ained in this view.
          Important: DINet work objects have specific configuration limits such as whether more than one object
          can be deployed to a single WinPlatform. The IDE does not check for these limits. For more information
          about configuration limits, see the online help for the DINetwork object.
Derivation View
          The Derivation view shows objects and templates in terms of their parent/child relationship. An object
          derived from another object appears in a hierarchy level under it.
          The tree structure acts like a standard Windows Explorer tree, and initially is divided into three
          hierarchical levels: <Galaxy Name>, <Used Base Templat es>, and the Unused Base Templates folder.
          In the Derivation view, objects appear according to their parent-c hild relationship in the following ways:
             The top of the tree is the Galaxy.
             Base templates with associated child objects, either derived templates or instances, are shown
              under the Galaxy.
             Under each base template, derived templat es and instanc es created from the base templat e are
              listed. Multiple levels are allowed. Instances creat ed from derived templates are listed under their
              parents.
             Templat es with no associated derived templates or instances are grouped together in the Unused
              Base Templates folder.
          Objects with names that start with a "$" are templates, either base or derived. Under each branc h of the
          tree, child objects are listed in alphabetical order.
32
IDE Overview                                                                           Application Server User Guide
         As in other views, dragging one object onto another in the Derivation view associates the two objects
         based on the predefined rules of the object types. For example, you can drag ApplicationObj ects onto
         other ApplicationObjects but you cannot drag ApplicationObjects to an Engine.
IO Devices View
         The IO Device s view is used for I/O auto assignment and shows the relationship of system objects and
         application objects to scan groups and Device Integration (DI) objects. Before using this view, system
         and application objects must be configured to use I/O auto assignm ent by adding one or more attributes
         to the object and activating the I/O feature. See Edit Objects on page 63 and Using I/O Auto Assignment
         on page 140 for additional information.
         You will also use the Object Editor to add scan groups to DI objects (OPCClient, DDESuiteLinkClient, or
         RedundantDIObject) before using the IO Device s view.
         Once you have configured system and application objects for I/O aut o assignment, and added scan
         groups to at least one DI object, you will assign the system and application objects to scan groups in the
         IO Devices view. This links (auto-binds ) the system and application objects to PLCs, through the DI
         objects.
         To open IO Device s view, click IO Devices on the View menu. You can also open the IO Device s view
         by pressing Ctrl+ Shift+I, or click the IO Devices icon in the main toolbar of the IDE.
         System and application objects appear as child objects to scan groups, and scan groups appear as child
         objects to DI objects.
                                                                                                                 33
Application Server User Guide                                                                           IDE Overview
Note: Only instances, and not templates, appear in the IO Device s view.
          Device linkage, which is established by assigning a system or application object to a scan group,
          ensures that all of the object’s attributes that have been prepared for automatic I/O assignment will
          match up with a corresponding input source or output des tination in the scan group. The I/O references
          are then referred to as auto-bound.
Important: Objects must be undeploy ed before they can be assigned to a scan group.
          System and application objects that are not yet assigned to a scan group are placed under the folder
          "Unassigned IO Devices." To assign objects to a scan group, and t hus allow I/O automatic assignment to
          occur, simply select objects in the Unassigned area, and drag and drop them to the applicable scan
          group. Once an object has been assigned to a scan group, the I/O reference for each I/ O attribute is
          automatically configured.
          The IO Device Mapping view shows I/O auto assigned attributes with resolved I/O references for
          objects that have been assigned to scan groups. The IO Device Mapping view lets you enter override
          values to change the I/O reference. You can also validate the I/O references.
          You select the references that are displayed in the IO Device Mapping view by selecting objects in the
          IO Devices view. Manually configured referenc es are not displayed in the IO Device Mapping view, nor
          are attributes associated with objects that are not assigned to a scan group. Only I/O references for the
          object or group of objects currently selected in the IO Devices view are displayed. You can select DI
          objects, scan groups, and application and system objects in the IO Device s view. If only the top level
          item in a device hierarc hy is selected, all subordinate items are automatically selected. If, however, you
          select a subordinate item along with the top level item, only I/O references for the selec ted items are
          displayed. You can select multiple items at different hierarchical levels.
          Note: Selecting a subordinate object will exclude non -selected objects within the device hierarchy, even
          if the parent object is selected.
Operations View
          The Operations view shows the results of validating the configuration of objects. You may need to open
          it before you see it. On the View menu, click Operations.
During the validation of an object, its icon and name appear with the status of t he operation.
34
IDE Overview                                                                             Application Server User Guide
Important: You can validat e both templates and instances if they are checked in.
         The status of the object (Status column) is shown with an icon and a descriptive word or phrase.
         When validation is complete, the Command Result column shows a "Succeeded" or "Failed" message
         and additional information about the validation results. For more information about validating objects,
         see Validate Objects on page 94.
         Note: You can validat e all objects in the Galaxy by running the Validate operation on the Galaxy object.
         In that case, Command Result messages are shown after all objects in the Galaxy are validated.
         The Operations view, like the Template Toolbox and Applications views, is also updated as the
         status and conditions of objects in the Galaxy change.
Dock Views
         To dock a view, drag the view to the location you want it. For example, drag the title bar of the Template
         Toolbox and dock it under the Application views. You can also undock it by dropping it anywhere on your
         desktop. Drag it back to dock it again.
Float Views
        You can also float a view. With your cursor over the view you want to float, click the arrow. On
        the menu that appears, click Floating.
                                                                                                                   35
Application Server User Guide                                                                           IDE Overview
         You can also float just one view. To float the Derivation view, click the arrow. On the menu
         that appears, click Floating. The view floats on your desktop. You can move it to another
         location or dock it.
Hide Views
         To hide a view, click the Pin icon. The views "hide" as tabs on the side of the window. The
         Operations and IO Device Mapping views hide at the bottom of the window, and the IO
         Devices view hides at the right side. The Graphic and Template Toolboxes, and Model,
         Derivation, and Deployment views are at the left side of the window.
When you move the mouse over the tab, the view expands into the workspace.
Synchronize Views
          You can specify that a selected object stay selected as you move through the views. In any of the views,
          select the object you want to synchronize. On the View menu, click Synchronize Views. Now as you
          move from one view to another, that object stays selected.
36
IDE Overview                                                                          Application Server User Guide
                                                                                                                37
Application Server User Guide                                                                            IDE Overview
               o   Select the Warn before launching an InTouchViewApp editor check box if you want to see a
                   prompt each time you attempt to edit an InTouchView application instance. You can edit the
                   associated template or canc el the operation. If you do not select this check box, the request to
                   edit the InTouchViewApp instance is automatically redirected to the associated template.
               o   Select the Warn before launching a Linked Symbol editor check box if you want to see a
                   prompt each time you attempt to edit a Graphic Toolbox symbol linked to an object. You can edit
                   the linked symbol or cancel the operation. If you do not select this check box, the linked symbol
                   opens in the Symbol Editor without a warning, and you will be able to edit the sym bol. After you
                   save the symbol, any edits you have made will propagate to all objects that link to the symbol.
               o   Select the Warn before launching ViewApp in Preview Mode check box to restore the first
                   warning message that appears after requesting a preview of a ViewApp. You need to select this
                   prompt to display the message again after the user selected the check box on the warning
                   message to hide the message.
               o   Select the Warn for Platform issue s in Preview Mode check box to restore the warning
                   message that appears after requesting a preview without the WinPlat form deployed. You need
                   to select this prompt to display the message again after the user selected the check box on the
                   warning message to hide the message.
          3.   Select the Initial scan state for deployed obje cts. You can select On Scan or Off Scan. You can
               change this setting on an individual basis in the Deploy dialog box when you deploy.
          4.   Select the Scan state defaults when undeploying or redeploying instanc es. Force Off Scan will
               attempt to take the target object offscan when an already deployed object is redeployed. Don’ t
               Force Off Scan does not force the target to go off scan when you deploy.
               Note: Redeployment of objects that are currently deployed on -scan will be canceled unless this
               option is selected.
Note: If you do not have logon rights, you cannot open a Galaxy.
For information about setting up security in the ArchestrA environment, see Configure Security.
38
IDE Overview                                                                          Application Server User Guide
         To log on to a Galaxy
         1.    When you open a Galaxy that has security enabled, the Change User dialog box appears.
         2.    Type your user name and password. If OS authentication security is enabled for the Galaxy, select
               the Domain that contains your user account from the dropdown list. If the list is unavailable, the
               selected Galaxy is on your local computer.
               You can change your password after you type your user name and password. Click Change
               Password. Type the new password and then retype it.
         3.    Click OK. Your logon data is validated by the Galaxy Repository being accessed. Depending on
               operating system security, the IDE opens. If the GR does not rec ognize your user name or
               password, you are prompted to ent er them.
Change Users
         You can change users in a Galaxy at any time. Any security restrictions associated with a user change
         when the user logs on or logs off from the Galaxy. For more information about users and security, see
         Configure Securit y on page 409.
         If the Galaxy has not been configured to enable security, you see a message. All users in an
         open-security environment are treated as the DefaultUser by the Galaxy. In an open -security
         environment, all users have full access to everything.
         To change users
         1.    On the Galaxy menu, click Change User.
               If security is enabled on the Galaxy, the Change User dialog box appears.
         2.    Enter your logon information and click OK.
               o   If needed, click Change Password to change the password for the new user.
               o   Type the new password and then retype it.
         3.    Click OK.
                                                                                                                39
                                                                                                           Application Server User Guide
                                                                                         C HAPTER 2
Introduction to Objects
    In This Chapter
    About Templates and Instances ..................................................................................................... 41
    View Object Properties .................................................................................................................. 47
                                                                                                                                             41
Application Server User Guide                                                                                       Introduction to Objects
          Collectively, templates and instances are called objects. The following graphic shows the di fferent kinds
          of objects and how they are organized.
Galaxy Objects
AutomationObjects
                                                                                              Device Integration
             EngineObjects      PlatformObjects   AreaObjects         Application Objects
                                                                                              Objects (DIObjects)
Switch AB PLC5
User-Defined and so on
          If you are new to this kind of programming, the next section explains the basic concepts you need to
          know before you start. If you are familiar with object-oriented programming, the concepts in the next
          section may be familiar to you, but notice the important differenc es between object -oriented
          programming and Application Server.
Instances
          Instances are the run-time objects created from templates in Application Server. Instances are the
          specific things in your environment like processes, valves, conveyor belts, holding tanks, and sens ors.
          Instances can get information from sensors on the real-world device or from application logic in
          Application Server. Instances exist during run time.
          In your environment, you may have a few instances or s everal thousand. Many of these instances may
          be similar or identical, such as valves or holding tanks. Creating a new valve object from scratch when
          you have several thousand identical valves is time-consuming. That’s where templates come in.
Templates
          Templat es are high-level definitions of the devices in your environment. Templates are like a cookie
          cutter from which you can make many identical cookies.
          You define a templat e for an object, like a valve, one time and then use that template when you need to
          define another instance of that item. Template names have a dollar sign ($) as the first character of their
          name.
          A template can specify application logic, alarms, security, and historical data for an object.
          A template can also define an area of your environment. You can extend and customize a templat e by
          adding attributes, scripts, or features to meet the specific needs of your environment. Objects inherit
          attributes, scripts and features from their parents.
          Application Server comes with predefined templates, called base templates. You cannot modify base
          templates. All templates you creat e are derived from base templates.
          You can also nest templates, or contain them. Contained templates consist of nested object templates
          that represent complex devices consisting of smaller, simpler devices, including valves. A reactor is a
          good candidate for containment.
42
Introduction to Objects                                                                  Application Server User Guide
Parent Template
Derived Template
Derived Template
Propagation
           If you need to change something about all diaphragm valves, you can change the template for the
           Diaphragm valve and all diaphragm valves in your application inherit the changes, assuming the
           attributes are locked in the parent template. This makes it easy to maintain and update your application.
                                                                                                                      43
Application Server User Guide                                                              Introduction to Objects
          You cannot modify base templates, but you can use them to create derived templates, which are copies
          of the base templates. We recommend that you use the first -level derived templates that are provided
          under the _Default Templates folder to create additional templates. Most of these first-level derived
          templates have the prefix Master_. You can modify derived templates and use them to creat e instances
          of them for your applications.
44
Introduction to Objects                                                                       Application Server User Guide
Application Templates
           These base templates let you easily create devices in your Galaxy. They contain the properties you need
           to set for each kind of device. For example, a DiscreteDevice device c ontains all the settings you need to
           specify for an on/off device. Of course, you can extend and customize any device by using attributes,
           scripts, and feat ures.
System Templates
           These objects represent the parts of a Galaxy and not the domain they are monitoring/controlling. These
           base templates let you create more system level grouping and computers, such as areas you add
           objects to or another host AppEngine.
           WinPlatform Object
           The WinPlatform platform object is a key base object becaus e you need a platform to host the objects
           you are modeling. This object:
              Calculat es various statistics for the node it is deployed to. These st atistics are published in attributes.
              Monitors various statistics related to the node it is deployed to. Thes e monitored attributes can be
               alarmed and historiz ed.
              Start and stop engines, based on the engines startup type which are deployed to it.
              Monitor the running state of engines deployed to it. If the plat form det ects an engine failed, it can,
               optionally based on the value of the engine’s restart attribute, restart the engine.
           AppEngine Object
           The AppE ngine object must have a Platform on which to run. This object:
              Hosts ApplicationObjects, device integration objects and areas.
              Cont ains the logic to set up and initialize objects when they are deployed.
              Cont ains the logic to remove objects from the engine when they are undeployed.
              Determines the scan time which all objects within that particular engine run.
           Area Object
           All application objects belong to an area. Areas can contain sub -Areas. Areas provide a key
           organizational role in grouping alarm information and providing that information to those who us e
           alarm/event clients to monitor their areas of responsibility.
           The values of three Area object alarm attributes can be saved to the historian:
              Active alarm counter
              Unacknowledged alarm counter
                                                                                                                          45
Application Server User Guide                                                                      Introduction to Objects
          ViewEngine Object
          The ViewEngine object must have a Platform on whic h to run. This object:
             Hosts InTouchViewApp and ViewA pp objects.
             Cont ains the logic to set up and initialize objects when they are deployed.
             Cont ains the logic to remove objects when they are undeployed.
             Determines the scan time which all objects within that particular engine run.
             Determines if the ViewA pp objects that it hosts will be read/ write or read-only.
              Note: InTouch applications are not affected by the "ViewApps are Read Only" setting of the
              ViewEngine. This setting is used for the ViewA pp object only.
          InTouchViewApp Object
          The InTouchViewApp object must have a ViewEngine on which to run. This object:
                                                                                                          ®
             Manages the synchronization and delivery of files required by the associated InTouc h application.
             Provides run-time access to tags on the associated InTouch application.
             Starts WindowMaker for the associated InTouch application when edited.
          Note: InTouch applications are not affected by the "ViewApps are Read Only" setting of the ViewEngine
          that hosts the InTouchViewApp object. This setting is used for the ViewApp object only.
          ViewApp Object
          The ViewApp object must have a ViewEngine on whic h to run. This object:
             Provides visualization at run time for an InTouch OMI application.
             Incorporates a Screen Profile and the content defined in an associated Layout.
             Provides run-time access to your production environment.
             The deployed ViewA pp can be read/ write or read -only, depending on whether the ViewE ngine
              hosting the ViewApp object has its "ViewApp are Read Only" setting enabled (ViewAppsReadOnly
              attribute set to true).
46
Introduction to Objects                                                                   Application Server User Guide
           The Properties window contains the tabs that allow you to examine different object properties. Only tabs
           applicable to the object are displayed.
           The General tab contains basic information for the object, such as the codebas e (major version), what
           template it is derived from, and any current errors and warnings.
           The Attributes tab lists the object’s attributes and values. In addition to attributes t hat have been added
           to the object, attributes for Errors and InAlarm are also listed, as are attributes for CodeBase (major
           version of the object), MinorVersion ("dot" version), and ConfigVersion. The ConfigVersion will increment
           each time the object has been checked in after an edit.
                                                                                                                     47
Application Server User Guide                                                                 Introduction to Objects
48
                                                                                                              Application Server User Guide
                                                                                            C HAPTER 3
Work with Objects
    You can work with objects using the Application Server development environment. Both templates and
    instances are collectively referred to as objects. For more information about what templat es and
    instances are, see About Templates and Instances on page 41.
    In This Chapter
    Manage Toolsets .......................................................................................................................... 49
    Manage Galaxy Style Libraries ...................................................................................................... 51
    Create Derived Templates ............................................................................................................. 52
    Create Contained Templates ......................................................................................................... 54
    Edit Objects.................................................................................................................................. 63
    Browse for Attributes ..................................................................................................................... 83
    Browse for Graphics ..................................................................................................................... 87
    Browse for Element Properties ...................................................................................................... 88
    Create a Filter for the Galaxy Browser............................................................................................ 89
    Change How Information is Shown in the Galaxy Browser ............................................................... 91
Manage Toolsets
    Toolsets are high-level folders shown in the Template Toolbox and Graphic Toolbox. You can create a
    toolset to store the templat es and graphics used in your application. You can also creat e toolsets within
    toolsets.
    Use the Template Toolbox to view and organiz e object templates.
                                                                                                                                                  49
Application Server User Guide                                                                       Work with Objects
          Use the Graphic Toolbox to view and organize ArchestrA Symbols, ViewApp Layouts, Screen Profiles,
          and cont rols and apps.
          You can move content bet ween their respective toolsets (folders). You can also show or hide toolsets to
          make the workspace less cluttered.
Create Toolsets
          When you create your own toolset, it must have a unique name. Toolset names are not case sensitive, so
          Valves is the same name as valves. A toolset name can be up to a maximum of 64 alphanumeric and
          special characters, including spaces, except $.
          To create a new toolset in the Toolbox
          1.   On the Galaxy menu, point to New and click either Template Toolset or Graphic Tool set.
          2.   Type a name for the new toolset.
               A new toolset appears and is in focus. Now, you can drag templates into the new Template toolset,
               or you can drag graphics into the Graphics toolset.
50
Work with Objects                                                                         Application Server User Guide
          4.   Drag templates into the new child Templat e toolset, or you can drag graphics into the Graphics
               toolset.
Deleting Toolsets
          You can delete toolsets you no longer want or need. Before you start, make sure you move or delete all
          content from the toolset.
          The toolset you want to delete must be empty, or it cannot deleted.
          To delete a toolset
          1.   Select the toolset you want to delete.
          2.   On the Edit menu, click Delete.
          3.   Click Yes to delete the toolset.
Note: Only one Galaxy Style library can be loaded and used in a Galaxy at a time.
                                                                                                                      51
Application Server User Guide                                                                       Work with Objects
          Note: If a Galaxy Style Library is imported to the IDE while a ViewApp is running, application graphics are
          refres hed with new Element Styles. The ViewApp refreshes automatically. A restart is not required.
Base Template
Derived Template
          After you create derived templates, you can customize them, and you can create instances of the
          templates. You c an change and modify unlocked attributes in the instances, making adjustments to meet
          the needs of the specific object you are modeling.
          For example, your plant processes can use several models of a pump made by a single vendor. Each
          model has unique characteristics that map to different attribut e values of the Discret eDevice base
          template.
          To derive a template from another template
          1.   Select the base template to use as the parent template in the Template Toolbox or Derivation
               views pane.
52
Work with Objects                                                                       Application Server User Guide
          2.   On the Galaxy menu, click New and click Derived Template. A derived template is created in the
               same toolset as its parent and plac ed in name edit mode. The default name is the same as the
               parent template followed by a numeric sequence.
          3.   Rename the derived template, if needed. Template names can be up to 32 alpha numeric or special
               characters, including the required $ as the first character. The second character cannot be $ and the
               name must include at least one letter. Template names cannot contain spac es.
          Note: The following reserved names cannot be us ed as templat e names: Me, MyContainer, MyArea,
          MyHost, MyPlatform, MyEngine and System.
4. You are ready to customize your new template. For more information, see Edit Objects on page 63.
Derived Template
Derived Template
          A derived template is an exact copy of its parent with the exceptions of locking, security, and the
          unlocked attributes that have been edit ed. If you create a new derived template from an existing
          container template, the new derived template has the same contained templates.
          A good practice is to create a hierarchy of derived templat es until you reach logical endpoints. Then
          create instances from each unique derived template.
          To create a derived template from a derived template
          1.   In the Template Toolbox or Derivation view, select the derived template you want to use as the
               parent template.
          2.   On the Galaxy menu, click New and click Derived Template. A derived template is created in the
               same toolset as its parent. You can edit the name of the ne w derived template. The default name is
               the same as the parent template followed by a numeric sequence.
               Templat e names can be up to 32 alphanumeric or special characters, including the required $ as the
               first character. The second character cannot be $ an d the name must include at least one letter.
               Templat e names cannot contain spaces.
               Note: The following reserved names cannot be used as template names: Me, MyContainer, MyArea,
               MyHost, MyPlatform, MyEngine and System.
                                                                                                                   53
Application Server User Guide                                                                      Work with Objects
          3.   You can c reat e another derived template by repeating the previous steps, or you can customize y our
               new derived template. For more information about customizing your template, see Edit Objects on
               page 63.
Name Description
Tag Name The unique name of the individual object. For example, Valve1.
          Cont ained      The name of the object within the context of its container object. For example, the
          Name            object whose Tag name is Valve1 may also be referred to as Tank1.Outlet, if
                          Tank1 contains it and it has the contained name "Outlet".
          Hierarchical    Hierarchical names that are fully-qualified names of a contained object include the
          Name            name of the objects that contain it.
                          Because the object that contains it may also be contained, there are potentially
                          multiple hierarchical names that refer to the same object.
                          For example, if:
                          "Reactor1" contains Tank1 (also known within Reactor1 by its contained name
                          "SurgeTank").
                          "Tank1" contains Valve1 (also known wit hin Tank1 by its contained name "Outlet").
                          Valve1 could be referred to as:
                          "Valve1"
                          "Tank1.Outlet"
                          "Reactor1.SurgeTank.Outlet".
          Note: Base templates cannot be contained by another template, either as the container or as the
          template being contained. You can only use containment with derived templates.
54
Work with Objects                                                                     Application Server User Guide
          Higher level objects contain lower level objects. This allows you to more closely model complex plant
          equipment, like tank systems. You can nest templates to 10 levels.
180
Inlet Valve
180
Outlet Valve
Level
Agitator
          Note: Objects can only contain objects like themselves. For example, ApplicationObjects can only be
          contained by other ApplicationObjects. Areas can only contain ot her Areas .
ApplicationObject Containment
          ApplicationObjects can be cont ained by other ApplicationObjects. This provides context for the
          contained object and a naming hierarchy that provides a powerful tool for referencing objects.
          Note: Base templates cannot be contained by another template, either as the container or as the
          template being contained. You can only use containment with derived templates.
                                                                                                                  55
Application Server User Guide                                                                        Work with Objects
Tank Template
Tank
180
InletValve
Agitator
180
OutletValve
Level
          To enable referencing and flexibility within scripting, these objects can be referenced in several different
          ways. Each object has a unique tag name, such as:
             Inlet Valve = InletValve01
             Agitator = Agitator01
             Outlet Valve = OutletValve01
             Level = Level01
56
Work with Objects                                                                        Application Server User Guide
Tank = Tank01
180
InletValve = InletValve01
Agitator = Agitator01
180
OutletValve = OutletValve01
Level = Level01
          Within the cont ext of each hierarchy, the contained names are unique, in that the names only refer t o this
          tank system and the contained objects.
          So if the tank is named Tank01, the contained names are:
             Tank01.Inlet
             Tank01.Agitator
             Tank01.Outlet
             Tank01.Level
                                                                                                                    57
Application Server User Guide                                      Work with Objects
Tank = Tank01
180
Agitator = Tank01.Agitator01
180
Level = Tank01.Level01
58
Work with Objects                                                                       Application Server User Guide
Name Description
Tag name The unique name of the individual object. For example, Valve1.
          Cont ained name     The name of the object within the context of its container object. For
                              example, the object whose tag name is Valve1 may also be referred to as
                              Tank1.Outlet, if Tank1 contains it and it has the contained name "Outlet".
                                                                                                                   59
Application Server User Guide                                                                       Work with Objects
Name Description
          Hierarchical name     Hierarchical names that are fully-qualified names of a contained object
                                include the name of the objects that contain it.
                                Because the object that contains it may also be contained, there are
                                potentially multiple hierarchical names that refer to the same object.
                                For example, if:
                                "Reactor1" contains Tank1 (also known within Reactor1 by its contained
                                name "SurgeTank").
                                "Tank1" contains Valve1 (also known within Tank1 by its contained name
                                "Outlet").
                                Valve1 could be referred to as:
                                "Valve1"
                                "Tank1.Outlet"
                                "Reactor1.SurgeTank.Outlet".
          For example, an instance of a $Tank is named Tank01. An instance of $Valve called Valve01 is
          contained within the instance of $Tank.
          Change the contained name of Valve01 to InletValve. Now Valve01 can also be referred to by its
          hierarchical name Reactor1. InletValve. The name of the contained object can be changed, though,
          within the scope of the hierarchy.
          Cont ained names can be up to 32 alphanumeric or special characters. The second character cannot be
          $ and the name must include at least one letter. You cannot use spaces.
Containment Examples
          You can have a Tank object that contains two DiscreteDevice objects that represent its inlet and outlet
          valves.
          Note: Base templates cannot be contained by another template, either as the container or as the
          template being contained. You can only use containment with derived templates.
          To implement containment
          1.   Create the following instances: Tank1 from $UserDefined and Valve from $DiscreteDevice. Valve
               has only one name, Valve.
          2.   In the Model or Deployment view, drag Valve on to Tank.
               Note: If Tank1 already contains an object with a contained name of Valve, the Galaxy generates a
               unique contained name for the newly contained object, such as Valve_001.
          3.   Change the contained name of Valve within Tank1 to Outlet. Valve can now be referred to by its
               tagname, Valve, as well as its hierarchical name, Tank1.Outlet.
          4.   Create an instance called Reactor1 from $Us erDefined.
60
Work with Objects                                                                     Application Server User Guide
          6.   Change the contained name of Tank1 to Holding. Tank1 now has two names, Tank1 and
               Reactor1.Tank. Also, Valve1 has a three-part hierarchical name: Reactor1.Tank.Outlet.
               For the three objects in this example (Reactor1 cont aining Tank1 containing Valve1), the
               following naming hierarchy exists:
          1.   Create the following derived templates: $Tank from $UserDefined and $Valve from
               $DiscreteDevice.
          2.   Derive $Inlet from $Valve.
          3.   In the Template Toolbox, drag $Inlet on to $Tank. If $Tank already contains a templat e named
               Inlet, the Galaxy generat es a unique tagname for the new contained template, such as
               Inlet_001.
               The contained template now has a hierarchical name $Tank.Inlet.
          4.   Create an instance (Tank001) of $Tank.
                                                                                                                  61
Application Server User Guide                                                                      Work with Objects
          5.   The Model and Deployment views show an instance Tank001 that contains an instance called
               Inlet.
          The Derivation view shows templates and instances with regard to cont ainment in the following ways:
              Non-cont ained instances show their tagnames.
              Cont ained instances show their tagnames and hierarc hical names.
              Non-cont ained templates show their template name.
              Cont ained templates show their hierarchical name.
          WARNI NG! Be careful when renaming contained objects. References from other objects to the
          object being renamed are not automatically updated with the new name. You must update the
          references. Objects with broken references receive bad quality data at run-time.
62
Work with Objects                                                                          Application Server User Guide
Edit Objects
          With the Object Editor, you define attribut es specific to an object. When you open the Object Editor in
          non-ReadOnly mode, the object is checked out. No one else can edit an object while you are working
          with it. If someone else is already working on the object, you can open it to view but you cannot make
          changes.
          The Object Editor contains pages that can be used to modify objects. To view a page in the editor, click
          its tab. Three pages – Attribute s, Scripts, and Object Information – are common to all objects, while
          other pages are unique to certain object types. If you import a Galaxy or objects with field attributes, the
          Field Attribute s page will be present for those objects; the Field Attributes page can also be enabled
          through a Galaxy user configuration option. See Configure Us er Information on page 37 for more
          information.
          The Attributes page divides into two or more panes when you initially open it. The number of panes the
          Attributes page divides in depends on whether or not attributes or symbols have been defined for the
          object, whether the object is an instance or a template, and if it is an instance, whether or not it is derived
          from a template that includes an Object Wizard.
          When editing an object, you may see attribute text boxes showing a --- (dash dash dash). The --- is a
          placeholder reference that does not cause the associated object to be placed in a warning configuration
          status when it is validat ed. You may also see attribute text boxes showing a
          ---.--- (dash dash dash dot das h dash dash). You need to provide a valid reference in the text box. The
          ---.--- placeholder causes the associated object to be placed in a warning configuration status when the
          associated object is validated.
                                                                                                                       63
Application Server User Guide                                                                         Work with Objects
          Important: Edit the I/O auto assignment placeholder in the Object Editor ONLY if you do NOT want to
          use I/O auto assignment for the object. In most cases, I/O auto assignment is the preferred method.
          When you save an object, the configuration dat a fo r the object is validated. If errors or warnings are
          identified during validation, a message appears. You can cancel the save or save the object
          configuration as it is.
              If you cancel, the Object Editor remains open so you can correct the problems.
              If you save the configuration as it is, the object is placed into a bad or warning state. The object’s
               status is marked in the Galaxy database as Good, Warning or Error. Error means the object is
               undeploy able.
          To edit an object in the Object Editor
          1.   Select the object.
          2.   On the Galaxy menu, click Open. A red check mark appears next to the object’s icon indicating it is
               checked out and the Object Editor opens.
               Note: If you are adding I/O attributes to an application object or system object, such as an area
               object, the preferred method of adding and editing I/O references is through the IO Device s view
               and IO Device Mapping view. Editing I/O references set for aut omatic assignment in the Object
               Editor disables automatic assignment. For more information about I/O auto assignment, see Using
               I/O Auto Assignment on page 140.
          3.   Make your changes. For more information about locking attributes, see About the Attributes Page on
               page 69. For more information about setting security, see Set Object Security on page 68.
          4.   When you finish configuring the object, click Save or Close on the Galaxy menu.
                  Save keeps the editor open and saves all configuration changes to the Galaxy database.
                  Close closes the editor.
                  To keep the object checked out, select the Keep Checked Out check box before closing.
              Cont ained Name           The object’s contained name. For more information, see Create
                                         Cont ained Templates on page 54.
64
Work with Objects                                                                        Application Server User Guide
 Relative Object The object that runs before or after in the Proce ss Order.
The rest of the help file shows general information about the object.
          When you open the Obj ect Editor, the object is automatically checked out so no other user can work on it.
          When you close the Object Editor, the object is checked in to the Galaxy database, if it was aut omatically
          checked out when the editor was opened.
                       To keep the object checked out, click Keep Checked Out before closing.
                       To save configuration changes you made, close the editor, and check the object back in
                        About the Object Information Page on page 75, click the Close icon.
          After the object is checked in, other us ers can edit it.
                                                                                                                   65
Application Server User Guide                                                                             Work with Objects
          Locking an attribute in a templat e specifies that its value or s etting is inherited by all derived objects, both
          templates and instances. Locking an attribute also makes the attribute act as a constant during run time.
          Note: When you lock values and settings for an attribute, they are not visible when you us e Object
          Wizards, and thus the locked values and settings will be inherited by all derived objects.
                 In the Attribute s page, you must enable locking before an attribute or any of its features can
                 be locked in a template. To enable locking, click the Show/Hide Lock icon to the right of the
                 attribute name. When locking is enabled, lock symbols will appear next to values that can be
                 locked. Lock symbols are not visible in the template or its derived instances unless locking is
                 enabled.
             Attributes that are locked in a parent template are referred to as "locked in parent." This parent can
              be at any parent level above the selected object.
             Attributes that are locked in a template are referred to as "locked in me."
          Caution: When using I/O auto assignment, do not lock the "Read from" field (input source) or "Write to"
          field (output destination). If you lock these fields in the parent templat e, they cannot be updat ed with the
          resolved reference when the object is deployed and the runtime value will be " ---A uto---".
          See Group Lock ing/Security on page 69 for information about locking or unlocking all of a feature’s
          attributes with a single click.
          Lock controls and status are shown with an icon. If the option is enabled, click the lock control to switch it
          between locked and unlocked. These icons mean:
66
Work with Objects                                                                          Application Server User Guide
                    Locked           The associated attribute is locked (in me) and enabled. Only templates
                    (in me)          can have this kind of lock. The attribute value is read/writ e.
                                     Derived templates and instances do not have a unique copy of this
                                     attribute. Child objects share the locked attribute of the parent.
                                     Changing the value of a locked attribute in the parent template updates the
                                     value of that attribut e in all derived templates and instances.
                    Locked           The associated attribute is locked in the parent object and cannot be
                    (in parent)      unlocked or modified by the child object. Both templates and instances can
                                     have these. The attribut e is read-only.
                                     The templates and objects do not have a unique copy of this attribut e, but
                                     instead use the attribute value in the parent where the attribute is locked.
                    Unlocked         The associated attribute is unlocked and enabled. Both templates and
                                     instances can have this kind of lock. The attribute is read/write.
                                     The object has its own copy of the attribut e value and the value is not
                                     shared by derived objects.
                    Undefined        The associated attribute doesn't exist. This indicates that another attribut e
                                     be enabled before the associated attribute is created and before its lock
                                     status can be determined.
          Note: Locking an attribute during configuration makes its value a constant. You cannot write to locked
          attributes during run time.
                                                                                                                         67
Application Server User Guide                                                                             Work with Objects
                                Lets you change this value without restriction even if you have no defined
                                permissions on the object. Anyone can write to these attributes to perform safety
                                or time critical tasks that can be hampered by an untimely logon request, such as
                                halting a failing process.
                                Lets you work with Operate permissions to do certain normal day -to-day tasks.
                                These include writing to attributes like Setpoint or Command for a Discrete
                                Device object. This level of security requires you to have Operat e permission for
                                the security group for the object.
                                Requires you to authenticate using your user name and password each time you
                                want to write to the attribute. You also need to have Operate permissions for the
                                object.
                                Allows end users with Tune Operational permissions to tune the attribut e in the
                                run-time environment. Examples of tuning are attributes that adjust alarm
                                setpoints and P ID sensitivity.
68
Work with Objects                                                                               Application Server User Guide
                                Only allows users to read this attribute’s value in the run-time environment. This
                                attribute is never written to at run time, regardless of the user's permissions.
          If an attribute’s security is shown in gray, its security classification is locked in its parent object and
          cannot be changed or it requires the enabling of a group attribute.
Group Locking/Security
          The lock and security controls associated with option groups and features quickly set those conditions for
          all options in the group.
                    The group control typically reflects the setting for all options in the group or feature set. But, if
                    at least one option in the group has a lock or security control that is different from the other
                    options, the group control shows an indeterminate icon.
          In addition to the undefined controls, the group c ontrols for locking and security are the s ame as those for
          individual options.
          You can lock or unlock all of the attributes associated with a feature by selecting the lock icon next to the
          feature name, after you activat e the feature. This will lock or unlock all of the attributes for the feature,
          unless an attribute was locked at a higher level. For example, if you locked an attribute in a template, and
          then created another derived template, the attribute that was locked in the original template cannot be
          unlocked (locked in parent).
          If an attribut e is locked in the template, you can change the value in that template, but not in the derived
          children. If you change the value in the parent template, the change propagates to all child objects. For
          more information, see Configure Objects on page 115.
                                                                                                                            69
Application Server User Guide                                                                           Work with Objects
          You can activate various features, such as I/O, History, State Alarm and Statistics. See Configure
          Objects on page 115 for more information about attributes and features. When you add an attribute to an
          object, information about the attribute is shown.
                 To filter attributes, click the Filter button. You can then select filtering criteria by checking
                 source type, enabled feature type, writ eability type, lock status, data type, visibility type
                 (hidden or not hidden), and diagnostic type (configuration, run time, or both).
                 Adds a new attribut e.
                 To display the Scripts pane us ed to associate scripts with an Object Wizard, click the
                 Scripts button.
                 Shows Details about an attribute. The name, description, and icons representing activated
                 features for the object’s attributes will be shown.
          When you add an attribute to an object, the Attributes page divides into three sections. The left side of the
          page lists attributes, the top right shows information about the currently selected attribut e, and the
          bottom of the right side contains fields for configuring feat ures.
          You can search attribut es by entering the characters you are trying to find in the Search Current
          Attributes text box. This will display attributes that contain the characters you enter.
          Note: The search function finds attributes that contain the search term any where within the attribute
          name. For example, if you want to locat e all attributes associated with P ump125, you could enter "125" in
          the text box. All attributes with 125 anywhere in their names will be shown.
          You can also search for attributes by typing the character you are searching for when the curs or is
          pointed at the attribute list. The first attribute that contains the character, any where within its name, will
          be highlighted.
70
Work with Objects                                                                           Application Server User Guide
          Note: The search begins at the attribute that is currently selected. Selection will move to the next
          attribute that contains the character entered.
             On the left side of the page, all attribute names for the object are listed. Pressing the Show Details
              button reveals additional information about the listed attributes. Check boxes are provided for
              Inherited and User extended.
              o     Inherited: Checking this displays attributes that were added in the parent template used to
                    create the object.
              o     User extended: Checking this displays details about any features you added to the attribute, for
                    example, for I/O.
             At the top of the right side, information for the current attribute is listed. Additional fields may be
              listed, depending on the data type of the attribute. H owever, all data types include the following
              properties:
Property Description
          Data type            Can be set to Boolean, Integer, Float, Double, String, Time, ElapsedTime, or
                               InternationalizedString.
                               The data type determines which features can be added to an attribute. For
                               example, when configuring a Boolean data type, only two alarm features are
                               available: State Alarm and Bad Value Alarm. When configuring an Int eger
                               data type, there are four available alarm features: Limit Alarms, ROC Alarm s,
                               Deviation Alarms and Bad Value Alarms.
                               To create an array, check the Array option and specify the array's length in the
                               # of elements box. You can creat e an array for each data type except
                               InternationalizedString.
                                                                                                                        71
Application Server User Guide                                                                           Work with Objects
Property Description
          Initial value         Specifies the initial value for the attribut e when the object is deployed. Enter
                                value dat a for each data type. In the case of a non-arrayed Boolean, select
                                True or False in the list box. For an arrayed Boolean, select the appropriate
                                checkbox.
             At the bottom of the right side, fields for configuring activated feat ures are displayed. A vailable
              features include:
Feature Description
                                    The I/O feature is used to activate the attribute for I/O. You can select Read
                                    (input), Read/Write (input and out put), or Write (out put).
                                    When you select the I/O feature for application objects and system objects,
                                    such as areas, the "Read from / Write to attribute text box contains the
                                    placeholder reference <IODevice>.
                                    [HierarchicalName].[AttributeName].InputSource or
                                    <IODevice>.[HierarchicalName].[AttributeName]. OutputDest.
                                    You should not edit these placeholders in the Object Editor, but instead use the
                                    IO Devices view to assign the object to a scan group. This will allow the
                                    placeholder to automatically resolve to the correct I/O reference. See Using I/O
                                    Auto Assignment on page 140 for additional information.
Note: The AppE ngine hosting the object must be configured for historization.
                                    The State Alarm feat ure is available for Boolean data types. You can set alarm
                                    priorities, the alarm state, an alarm message, and time deadband.
72
Work with Objects                                                                Application Server User Guide
Feature Description
                        The Limit Alarms feature is available for integer, float, and double dat e types.
                        With it, you can set value alarms (Hi, HiHi, Lo, LoLo), and the limits, priority, and
                        messages to apply to each alarm limit.
                        The Rate of Change (ROC) Alarm feature is available for integer, float, and
                        double date types. With it, you can set alarms if changes within a time period
                        exceed specified values, and the limits, priority, messages, and time period to
                        apply to each ROC alarm.
                        The Deviation Alarm feature is available for integer, float, and double date
                        types. With it, you can set deviation alarms (major and minor), and the
                        tolerance, priority, messages, target value, deadband, and settling period.
                        The Bad Value Alarm feature adds an alarm if the value returned from the
                        attribute is determined to be bad quality.
                        The Log Change feature will cause the attribute to generate an event each time
                        the attribute value changes.
                                                                                                            73
Application Server User Guide                                                                      Work with Objects
74
Work with Objects                                                                        Application Server User Guide
                                                                                                                    75
Application Server User Guide                                                                      Work with Objects
Customize Help
          Do not use Microsoft Word as an editor to create downstre am object HTML help pages. Use an HTML or
          plain text editor instead.
          If clicking Add Object Help opens Word on your computer, change the program associated with editing
          HTM files. Open the Windows Explorer's Folder Options dialog box and go to the File Types page to
          make this change. For more information about associating programs with files, see your Windows help.
          The UDAs and Extensions pages are no longer present in Application Server 2014 R2 and subsequent
          versions. By default, the Field Attributes page does not normally appear in Application Server 2014 R2
          and later versions, but will under the circumstances detailed in the next section.
76
Work with Objects                                                                          Application Server User Guide
                                                                                                                     77
Application Server User Guide                                                                         Work with Objects
              The objects are working well using Field Attributes, and there is no active development on these
               objects. Additional effort will be required for converting, testing, and redeploying objects.
          Note: Objects will be unavailable for selection (grayed out ) if the object or any of its derived objects are
          deployed, checked out, or protected. See Protecting Objects on Export on page 98 for more information
          about protecting objects.
78
Work with Objects                                                                        Application Server User Guide
3. From the Galaxy menu, select Configure, then Convert Legacy UserDefined Object(s)...
          4.   When you select Convert Legacy UserDefined Object(s)... from the menu, a list of all first-level
               objects with Field Attributes is displayed. First-level templates that do not themselves include Field
               Attributes, but have child objects with Field Attributes, are also listed.
                                                                                                                    79
Application Server User Guide                                                                           Work with Objects
               Note: Objects will be grayed out and unavailable for selection if the object or any of its derived
               objects are deployed, checked out, or protected.
          6.   The next screen is informational, and shows that Field Attributes will be consolidated onto the
               Attributes page. Click next to proceed.
          7.   The screen that follows is informational as well, and lists the limitations that apply to script
               conversion. These are:
                  Only field references that begin with "me." are converted.
                  Field references outside the selected objects are not converted.
                  Field references in scripts that use indirect functions or string manipulations are not converted.
                  Field references within A rchestrA graphics are not converted.
          8.   Click next to proceed.
          9.   To begin converting Field Attributes for the selected first-level objects and their child objects, click
               the Convert button (        ).
               WARNI NG! Once you start the conversion process, it cannot be cancelled. The time needed to
               convert Field Attributes depends on the number of objects with Field Attributes, the number of Field
               Attributes, and the depth and complexity of the object hierarchy. Field Attribute conversion requires
               at least as much time as Galaxy migration.
80
Work with Objects                                                                         Application Server User Guide
WARNI NG! While the conversion process is active, you cannot deploy or edit objects.
          10. Each object is listed as its Field Attributes are converted. The status of the conversion process is
              also reported to the SMC Logger.
              Important: In the event that Field Attribut e conversion fails for an individual template, the template
              will remain checked out after the conversion process stops. Undo the checkout for the template, and
              then you can resume attribute conversion for any remaining objects. To find which template did not
              convert, check the SMC Logger.
11. When all objects containing Field Attributes have been converted, click Close.
                                                                                                                     81
Application Server User Guide                                                                           Work with Objects
             If a Field Attribut e has "Generate event upon change" enabled, then the Log change feature
              (LogDataChangeEvent) will be added to the convert ed attribute.
             When the Field Attribute I/O option, "Output destination differs from input source," is selected and left
              unlocked, but Output destination is locked, the converted Attribute will have the following locking
              properties:
              o    "Write to" will be locked. This is the same as the original Field Attribute property.
              o    "Output destination differs from source" will be locked. This differs from the original Field
                   Attribute property.
          Note: Default names for Field Attributes begin with either " Discrete" or "Analog." The conversion process
          preserves this part of the Field Attribute name, even though this division does not apply to the converted
          Attributes.
Description Description
          Note: Only Field Attributes that begin with "me." are converted. No other changes are made to scripts.
          Scripts within graphics are not converted.
          While Field Attribute conversion updates I/O references within scripts, other attribut e referenc es are not
          updated. For example, while a Field Attribute description is truncated to "Desc," the description is not
          truncated for Attributes. Therefore, you will have to do some manual updating.
82
Work with Objects                                                                         Application Server User Guide
                                                                                                                     83
Application Server User Guide                                                                             Work with Objects
opens.
                             If you are browsing for attributes to use with an ArchestrA Symbol, such as for an
                             animation or script, the Galaxy Browser shows the attributes in an Attribute
                             Brow ser tab.
                        2.   By default, the browser shows only those attributes that are frequently accessed.
                             If you are viewing t he attributes of an object for the first time, the right pane can be
                             blank. Select the Show all attributes check box to show all of the object’s
                             attributes.
84
Work with Objects                                                                           Application Server User Guide
                       3.   To filter the list of tagnames, click the Filter button. For information about
                            configuring a filter, see Create a Filter for the Galaxy Browser on page 89. To
                            switch the content of the left pane bet ween a Tagname and Hierarchical Name
                            list of objects, click the Show Tag name or Show Hierarchical name buttons.
                       4.   You do not have to explicitly make a selection in the Property list. If you only
                            select an attribute (leaving Property set to <none>), the property of the attribut e
                            defaults to Value.
                            If the option in the Object Editor is already configured with an object reference, the
                            Attribute Brow ser shows it or expands to the nearest matching
                            object/attribut e/property currently configured in the Galaxy.
                            If you selected text in the script editor, that text is used as the initial reference
                            string and the brows er finds the nearest attribute reference to the selected text
                       5.   When you are done selecting the attribute/property, click OK to place the
                            reference int o the Object Editor and close the Galaxy Browser.
                               The fully-qualified reference string appears in the editor option.
                               If you are working in the script editor, the selected reference appears in the
                                script at the current curs or position and replaces text that was selected.
          Important: The Galaxy Browser shows only the Primary AppEngine and its attributes of a redundant
          pair. Any Backup AppE ngine is not shown.
          The right area shows the attributes of the object selected in the left pane. Depending on the attribute
          selected, you can see these properties:
                                                                                                                      85
Application Server User Guide                                                                     Work with Objects
          Category                 Determines when and where the attribute’s data exists (for example,
                                   configuration or run time), which users can write to it, and whether the
                                   attribute is lockable or unlockable.
          Quality                  The quality of the attribute as defined in the OPC Draft 3.0 quality
                                   definition. ArchestrA stores and transports OPC quality as a 16-bit value.
                                   OPC quality is stored for an attribute as a current quality, and it can be
                                   historized and sent to clients.
          SecurityClassification   Determines which permissions a user has with respect to the attribute
                                   when using an ArchestrA application in the run -time environment.
                                   Relevant only for attributes that can be written to by users in the run-time
                                   environment. If an attribute has no security, this column is blank.
86
Work with Objects                                                                          Application Server User Guide
          Important: Bit field specifiers are not allowed for integer arrays. Although bit field access is only
          supported in integers, they appear to be allowed for data types besides integer because they do not
          cause a warning during configuration. They cause errors in the run -time environment.
                    The Graphic Toolbox. The browser shows the Graphics Toolbox toolset organization on the
                    tree in the left pane and a list of the graphics contained in the currently selected node
                    (Galaxy node or toolset node) in the right pane.
                    AutomationObject templates. The browser shows the Template Toolbox in the left pane
                    and the right pane shows the graphics associated with the currently selected template in
                    the right pane.
                    AutomationObject instances. The browser shows a flat list of existing instances of objects
                    in the left pane. The right pane shows the graphics associated with the currently selected
                    instance. You creat e or apply filters to reduce the scope of the instances shown i n the left
                    pane.
                    Relative references. This is possible only when you edit a graphic belonging to an object
                    and browse for graphics from that specific object.
                                                                                                                     87
Application Server User Guide                                                                      Work with Objects
                        showing the location of the graphics on the left pane and the graphics associated with
                        the current selection on the right pane.
88
Work with Objects                                                                              Application Server User Guide
          For more information, see "Working wit h Element Styles" in the Creating and Managing ArchestrA
          Graphics User’s Guide.
                                                                                                                           89
Application Server User Guide                                                                   Work with Objects
          To create a filter
                   1.   Click the Filter icon. The Edit Filter dialog box appears.
                   2.   Click the Plus button and type a name for your new filter.
                   3.   Click the Filter tab.
                   4.   Configure the filter details.
                   5.   Click the Di splay tab.
                   6.   Configure the columns to show in the right pane of the Galaxy Browser. Use the up
                        and down arrows to set the order for the columns.
                   7.   Click OK. The new filter appears in the Filter list.
90
Work with Objects                                                                 Application Server User Guide
                                                                                                            91
                                                                                                              Application Server User Guide
                                                                                           C HAPTER 4
Manage Objects
    After you create several objects, like templates, you need to manage them. For example, you need to
    check objects in and out, you need to validate objects, and you may need to rename objects. You can
    also export and import objects, allowing you to reuse objects created in one Galaxy in another Galaxy.
    In This Chapter
    Check Out Objects........................................................................................................................ 93
    Check In Objects .......................................................................................................................... 93
    Validate Objects ........................................................................................................................... 94
    Create an Instance ....................................................................................................................... 95
    Rename an Object ........................................................................................................................ 96
    Delet e an Object ........................................................................................................................... 97
    Export Objects .............................................................................................................................. 98
    Importing Objects ....................................................................................................................... 101
Check In Objects
    After you finish making your changes, you check the object back into the Galaxy. When you check the
    object back in, a dialog box prompts you to ent er comments about changes you made.
    You can turn this dialog box off if you do not want to enter information about your changes. For more
    information, see Customizing Your Work space on page 35.
    Note: If the object was automatically checked out when the editor was started and you close the editor
    without making any changes to the object’s configuration, an undo -checkout is automatically performed.
                                                                                                                                                 93
Application Server User Guide                                                                         Manage Objects
2. On the Object menu, click Check In. The Check In dialog box appears.
Validate Objects
          Objects need to be validated before they can be deployed. An object validates it’ s configuration either
          when you are configuring it, or typically when you save that configuration to the Galaxy databas e.
          Validating an object’s configuration includes:
              Checking allowable attribute value ranges.
              Compiling its scripts.
              Verifying its attribute references.
              Validating its extensions.
              Validating other configuration parameters that are unique to the object.
          Important: Script validation on a template does not resolve references used in the script. For example,
          references to attributes that do not exist will not be discovered.
          Typically, each option on the Object Editor that requires a string or numeric input has an allowable range
          of inputs. If you type an input outside the allowable range and then try to change the Object Edi tor page,
          close the Object Editor or save the object’s configuration, a message appears about the input error,
          showing the allowable range.
          To open the Validation area
              On the View menu, click Operations. The Validation area opens.
94
Manage Objects                                                                             Application Server User Guide
         In each of these situations, the object may incorrectly have a status of either Bad or Warning. In this
         case, you may want to manually validate the object to update its status, especially if the status is
         preventing the object from being deployed. For more information, see Validate an Object Manually on
         page 95.
         Two kinds of indicat ors are shown in the object icons:
             Deployment status for instances only.
             Configuration status for templates and instances.
         Note: For a large Galaxy this is potentially a time consuming operation, and should be used only when
         necessary.
         3.   Continue using the IDE to perform other operations, if needed, while validation is going on, including
              work on other objects in the Galaxy. If you are validating a Galaxy, then you must leave the Galaxy
              alone until the validation process is complete.
         4.   When the validation process is complete, you see the results of the validation in the Operations
              View. If the validation failed on an object, you see a message. Correct the problem and validate
              again.
         Note: You can also see the errors or warnings that led to an object having a status that is not Good by
         looking at the Error/Warnings tab within the object's Properties.
Create an Instance
         After you create templates, you can create instances. Creating instances makes a specific object from a
         template, with all the characteristics and attributes of the template.
                                                                                                                      95
Application Server User Guide                                                                             Manage Objects
Parent Template
          You can also customize an instance, if needed. For example, you can have a valve template. When you
          create an instance of that valve, you can specify the inputs and outputs for that specific valve on your
          factory floor.
          To create an instance
          1.   Select the template you want to use for the instance. For example, to create a valve instance, select
               a valve template.
          2.   On the Galaxy menu, click New and then click Instance. An instance is created.
          3.   Rename the instance. Select the instance. On the Edi t menu, click Rename. Type the new name.
               Instance names can be up to 32 alphanumeric characters. You cannot use $ as the first character.
               The name must include at least one letter. Instanc e names cannot include spaces.
          4.   To move the new instance in the Deployment view or Model view, drag the instance to the new
               location.
               You are ready to configure the instance, if needed. For more information, see Edit Objects on page
               63.
Rename an Object
          You can rename an object. Although you can change an object’s containment relationship with another
          object, you cannot directly rename an object’s hierarc hical name. You can rename its tagname and
          contained name, and its hierarc hical name will change automatically. See Rename Contained Objects
          on page 62 for more information about renaming cont ained objects.
          Object names must be unique within each namespace, not within the Galaxy.
              Templat e names can be up to 32 alphanumeric characters, including the required $ as the first
               character. The second character cannot be $ and the name must include at least one letter. You
               cannot use spac es in an object name.
              Instance names can be up to 32 alphanumeric characters. You cannot use $ as the first character.
               The name must include at least one letter. You cannot use spaces.
          Note: You cannot use the following reserved names for objects: Me, MyContainer, MyArea, MyHost,
          MyPlatform, MyEngine and System.
An object can have three kinds of names if it is contained by anot her object. The three names include:
Name Description
Tagname The unique name of the individual object. For example, Valve1.
          Cont ained             The name of the object within the context of its container object. For example, the
          name                   object whose Tagname is Valve1 may also be referred to as Tank1.Outlet, if
                                 Tank1 contains it and it has the contained name "Outlet".
96
Manage Objects                                                                         Application Server User Guide
Name Description
         Hierarchical      Hierarchical names are fully-qualified names of contained objects that include the
         Name              name of the objects that contain it.
                           Because the object that contains it may also be contained, there are potentially
                           multiple hierarchical names that refer to the same object.
                           For example, if:
                           "Reactor1" contains Tank1 (also known within Reactor1 by its contained name
                           "SurgeTank").
                           "Tank1" contains Valve1 (also known within Tank1 by its contained name "Outlet").
                           Valve1 could be referred to as:
                           "Valve1"
                           "Tank1.Outlet"
                           "Reactor1.SurgeTank.Outlet".
         When you rename an object, references from other objects to the object being renamed can be broken.
         Objects deployed wit h brok en references receive bad quality data during run time.
         Note: Some objects may refer to themselves or to parent/host objects up in the parent/child hierarchy.
         Referenc es that go up or down the hierarc hy to refer to other objects are called relative references.
         Objects with relative referencing are updated automatically if you rename them.
         After renaming, all IDEs connected to the Galaxy show the new object name.
         To rename an object’s tagname
         1.   Select the object you want to rename.
         2.   On the Edit menu, click Rename.
         3.   Type the new name for the object.
         4.   When you are done, press Enter.
Delete an Object
         You can delete both templat es and instanc es with the following exceptions. You cannot delete:
             Deployed instances
             Cont ainers for other objects
             Objects checked out by other users
             Templat es that have children (derived templates or instances)
         Note: Make sure you correctly select the objects you want to delete. Aft er you delete an object, you
         cannot undelete it. You must recreate it.
                                                                                                                 97
Application Server User Guide                                                                         Manage Objects
Export Objects
          You can export some or all of your Galaxy objects. When you export, you are exporting the objects’
          associated templates, configuration state, and containment state of thos e objects. The information is
          saved in an .aaPK G file.
          After the Galaxy objects are exported, you can import them into the same or another Galaxy.
          If your objects have scripts associated with them, you need to ex port the script library separat ely. For
          more information about exporting script libraries, see Exporting Script Function Libraries on page 100.
          For more information about scripts and script libraries, see the Application Server Scripting Guide.
          If you are exporting an InTouchViewApp object and want to include graphics that are not embedded in
          the application, such as graphics called from a script, you need to embed the specific desired graphics in
          the InTouchViewA pp.
          Note: You can associate all Galaxy graphics with an InTouchViewApp for backup, restore, and
          deployment operations, but not for import and export operations.
          Before you start, make sure all objects you want to export are checked in. If an object selected for export
          is checked out, the checked in version of that object is exported instead. This can lead to old versions of
          objects being exported.
          Exporting an entire Galaxy is different than backing up the database. Unlike the case with backups,
          change logs for the objects are not exported. When you export objects, only the related security
          information for the specific object is exported.
          To export an object
          1.   In the Template Toolbox or Application Views, select one or more objects to export.
          2.   On the Galaxy menu, click Export and then click Automation Object(s). The Export Automation
               Object(s) dialog box appears.
               To export all of the objects in the Galaxy, on the Galaxy menu, click Export and then click All
               AutomationObjects.
          3.   In the Export dialog box, browse to a path and type a name for the exported file.
          4.   Click Save. The file is saved with the specified name and an .aaPK G extension.
          5.   When the export is complete, click Close. Now you can import the .aaPKG file into another existing
               Galaxy.
98
Manage Objects                                                                          Application Server User Guide
         Base Templates              Are protected by default and cannot be checked out, edited or
                                     renamed.
         Protected templates and     Cannot be checked out, edit ed, or renamed, but can be deleted. A
         symbols                     template derived from a protected template is unprot ected.
                                     Protected templates and symbols are marked with a lock icon.
         Ancestor objects            Are protected in the export ed .aaPKG file when a child object is
                                     protected.
         Select both templat e and   The option to export objects as protected is disabled. Only templat es
         instance for export         and symbols can be protected.
         Export workflow             The export workflow is the same as for all objects except that you
                                     can select the option to export As P rotected Object(s).
         Graphics                    Symbols and client controls directly or indirectly embedded in a
                                     protected graphic are also protected.
                                     Protected symbols can be opened in the Graphic Editor as
                                     read-only.
         Scripts                     If the Execution type of a script is locked, the script and its attributes
                                     will not be visible in the Object Edi tor or Properties window. This
                                     also applies to all child objects.
         Protected objects are mark ed in the Template Toolbox, Graphic Toolbox , or Application views (Model,
         Deployment, or Derivation View) with a gold-colored padlock icon.
                                                                                                                  99
Application Server User Guide                                                                           Manage Objects
               Note: The I/ O mapping references are permanently deleted if matching DI objects and scan groups
               are not found. The I/ O referenc es will not reconstitute, even if you lat er add the scan groups and DI
               objects to which the application objects were formerly mapped.
              When exporting DI objects, there are no special considerations related to I/ O assignments. I/O
               references for application objects will not change when the DI objects are imported into another
               Galaxy.
               Note: When importing a DI object into a different Galaxy, an existing DI object with the same name
               as the import ed DI object may be overwritten. This can break device linkages to application objects
               previously configured within the Galaxy.
100
Manage Objects                                                                            Application Server User Guide
         2.   In the Script Function Library list, select the library or libraries you want to export. If needed,
              browse to folder where you keep your script libraries.
         3.   Click OK. The selected script library is exported. Each script is named with the name of the script and
              an .aaSLIB file name extension.
         4.   When the export is complete, click Close. Now you can import the .aaSLIB file int o another existing
              Galaxy.
Importing Objects
         You can reuse objects from anot her Galaxy in your Galaxy. This saves you a lot of time if the objects are
         already set up in another Galaxy.
         Importing instances previously exported from a Galaxy retains previous associations, when possible,
         such as assignment, containment, derivation, and area.
         You can import objects from exported .aaPKG files or from an .aaP DF file. An .aaPDF file contains the
         configuration dat a and implementation code for one or more base templates. It is created by a developer
         using the ArchestrA Object Toolkit.
         You cannot have two objects with the same name or more than one copy of the same version of an object
         in the same Galaxy. When you import an object, you can choose how you want naming and version
         conflicts handled.
         You should perform an "Upload Runtime Changes" before importi ng a new version base templat e if
         instances of the template are deployed. This saves changes made at Runtime to the Galaxy database.
         Objects that were creat ed in Application Server 2014 R2 or later cannot be imported int o a Galaxy
         running an older version. For example, you cannot import an object created in Application Server 2017
         into a Galaxy running Application Server 2012.
         Note: The Applic ation Server version is not the same as the Codebase version. Objects with newer
         Codebases can be imported.
         To import objects
         1.   On the Galaxy menu, click Import and click Object(s). The Import AutomationObject(s) dialog
              box appears.
                                                                                                                    101
Application Server User Guide                                                                            Manage Objects
          2.   Browse for the file with either an .aaPKG or an .aaPDF extension. You can select more than one file.
               Click Open. The Import Preferences dialog box appears.
          3.   In the Objects with same Tagname and Codebase as an existing object area, select one of the
               following:
                  Skip: Do not import leaves the existing object unchanged.
                  Overwrite objects if the imported configuration version i s higher replaces the existing
                   object wit h the object being import ed if the imported object has a newer configuration. This is the
                   default.
                  Overwrite objects regardless of configuration version replaces the existing object
                   regardless of whether the existing object has an older configuration or the same configuration.
          4.   In the Ba se Templates with a different revision number in the Codebase or a different minor
               version area, select one of the following:
                  Skip: Do not migrate - objects with an older codebase are not migrated when a newer
                   codebase exists in the Galaxy.
                  Migrate - objects with an older codebase are migrated when a newer the replac ement object.
                   For more information about migrating, see After You Import on page 112.
          5.   In the Objects with same Tagname but with a different Codebase area, select one of the
               following:
                  Skip: Do not import leaves the existing object unchanged.
                  Rename object in Galaxy imports an object with a matching tagname but a different codebase
                   from the existing one. The existing object is not overwritten but is renamed.
                  Rename importing object imports an object with a matching tagname but a different codebase
                   from the existing one. The existing object is not overwritten. The import ed object is renamed.
          6.   In the Template Protection Change Management area, click the checkbox to prohibit overwriting
               an unprotected object with a protected object (default). Clear the checkbox to allow overwrites.
          7.   Click OK. The import process starts.
          8.   When the import process is complete, you can start using the objects you imported.
102
Manage Objects                                                                          Application Server User Guide
         Objects with same Tagname Overwrite preferenc es are governed by the Template
         and Codebase as an existing Protection Change Management option, "Never overwrite an
         object:                     unprotected object with a protected object" (default).
            Skip: Do not import
            Overwrite objects if the
             imported configuration
             version i s higher
             (default)
            Overwrite objects
             regardless of
             configuration version
                                                                                                                 103
Application Server User Guide                                                                          Manage Objects
          Objects with same Tagname         Object renaming on import can occur only if the object to be
          but with a different              renamed is not protected.
          Codebase:
                                               If the object in the Galaxy is protected, and the importing
             Skip: Do not import               object is not, and Rename importing object is selected, the
                                                importing object is renamed to have the suffix "_new".
             Rename object in Galaxy
                                               If the object in the Galaxy is unprotected, and the importing
             Rename importing object
                                                object is protected, and Rename object in Galaxy is
                                                selected, and the Never overwrite an unprotected object
                                                with a protected object option is not selected, the object in
                                                the Galaxy is renamed with the suffix "_old".
104
Manage Objects                                                                           Application Server User Guide
         Note: When you import a new version of an existing script library into a Galaxy, you must stop and restart
         the engine that hosts the script's owning object. The new script version does not replace the old version
         until after the hosting engine has restarted and you have redeployed the object.
         If you import an object whose script references a script function library that is not resident in the Galaxy,
         the imported object is set to Bad state and cannot be deploy ed. To correct this, import the script function
         library and validate the object. For more information about scripts, see the Application Server Scripting
         Guide. For more information about validating scripts, see Validate Objects on page 94.
         If you import a script function library that is a different version than the current library, a message is
         displayed to notify you that there are dependent objects. The message indicates how many objects will
         need to be redeployed if you continue with the import. If you continue wit h the import, the dependent
         objects are marked for redeployment.
         Script function libraries that are COM libraries developed using Visual Studio 6 or earlier are not
         automatically deployed. To place this COM library on the target platform, you c an either:
             Install it directly on the target plat form and register it.
             Import it to the Galaxy, and then export it as an aaSLIB. Modify the aaSLIB xml to designate that the
              library is to be registered as a COM object. Reimport the aaSLIB so that it is aut omatically deployed
              and registered.
                                                                                                                   105
Application Server User Guide                                                                    Manage Objects
          3.   Select Brow se Digital Exchange. Your browser will open and connect to the AVEVA Digital
               Exchange.
          4.   Log in, or sign up for new account.
          5.   Click on the link for the System Platform Developers Community and browse for apps. Select the
               app you want and follow the online instructions.
106
Manage Objects                                                                          Application Server User Guide
         You can enhance a Galaxy's functionality by adding an embedded control from an ArchestrA App to a
         pane in a layout for inclusion in a ViewApp.
         In order to qualify for import as an Arc hestrA App, the App should contain at least one WPF
         FrameworkElement Class control (System.Windows.FrameworkElement).
         ArchestrA Apps should be organized in a single folder which can optionally include subfolders. These
         subfolders typically contain locale files.
         To import an ArchestrA App
         1.   Assemble the App, together with all required dependencies and relat ed files, into a folder.
         2.   Select Import from the Galaxy menu.
         3.   Select Arche strA App.
                                                                                                                 107
Application Server User Guide                                                                    Manage Objects
          After the import process completes successfully, a new object appears in the Graphic Toolbox named
          DisplayModule_00n, where n is 1 or the next available integer. The new object can be renamed, deleted,
          or exported as an .aaPKG file for use in another Galaxy. See Export Objects on page 98 for additional
          information.
 Dependency properties
108
Manage Objects                              Application Server User Guide
                                                                     109
Application Server User Guide                                                                            Manage Objects
             System.Windows.Media.Brush
             Any property that can be converted to or from string
          CLR properties can only be set at configuration (design) time, while dependency properties can be
          bound to any attribute and can be set at run time. If a dependency property is changed at run time, the
          new value is propagated to the attribut e. Dependency properties are dat a-bindable at design time, and
          you can set the binding direction to in (read), out (write), or both. To change the binding direction, click on
          the arrow to toggle the binding direction.
          For dependency properties, you must specify the attribute to whic h you are binding the property, as well
          as the direction of the binding (in (read only), out (write only) or both. The attribute naming convention is
          the same you use, for example, when configuring an animation in the Graphic Editor. Note that the
          ViewApp Editor does not provide syntax validation for attribute names, but the Logger will list any
          configuration errors. Binding is only supported for the following basic data types.
          DataBindable Properties
             System.Boolean
             System.Byte
             System.Char
             System.Decimal
             System.Double
             System.Int16
             System.Int32
             System.Int64
             System.SByte
             System.Single
             System.String
             System.UInt16
             System.UInt32
             System.UInt64
110
Manage Objects                                                                         Application Server User Guide
                                                                                                                111
Application Server User Guide                                                                           Manage Objects
 To host the .NET controls, use the WPF element WindowsForm Host to wrap the control into WPF.
          <UserControl x:Class="ArchestrA.Visualization.TrendApp.TrendControl"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                mc:Ignorable="d"
                d:DesignHeight="300" d:DesignWidth="300">
             <Grid>
                <WindowsFormsHost x:Name="FormsHost" />
             </Grid>
          </UserControl>
112
Manage Objects                                                                       Application Server User Guide
            If you import a new version of an existing instance, the new version is marked as requiring
             deployment if the existing object is already deployed.
                                                                                                              113
                                                                                                          Application Server User Guide
                                                                                         C HAPTER 5
Configure Objects
     Enhance and extend derived templates and instances by adding and configuring features, attributes,
     scripts, and symbols. These elements can be associated with an Object Wizard in a derived template to
     simplify the task of creating instances.
     The Object Editor includes a separate page for adding scripts. All other elements (symbols, attributes,
     Object Wizards, and external content) are added and configured from the Object Editor's main page. For
     an overview of the Attribute s page, see About the Attributes Page on page 69.
     In This Chapter
     Add Attributes to an Object .......................................................................................................... 115
     Adding Features to Attributes ...................................................................................................... 120
     Using I/O Auto Assignment .......................................................................................................... 140
     Writing and Editing Scripts........................................................................................................... 152
     Creating and Working with Content .............................................................................................. 157
                                                                                                                                           115
Application Server User Guide                                                                        Configure Objects
          Note: When you add an attribute to a derived templat e, the attribute, its data type, and writeability are
          automatically locked in derived objects.
          If attribute parameters such as initial values and security classifications are locked in the template, they
          cannot be changed in child instances. If these parameters are unlocked in the template, the initial value
          and security are editable and lockable in derived templates. When unlocked in either the base or derived
          template, the value is editable in instances.
          After you add an attribute to an instanc e, it appears in the Attribute Brow ser list for use with the
          scripting and attribute configuration functions. For more information about using the Attribute Brow ser,
          see Reference Objects Using the Galaxy Browser on page 83.
          In the Attribute s page, you can define the following initial information and parameters for the attribute:
             Add a new attribute to an object.
             Name the attribute and provide a description.
             Configure its data type.
              For a Boolean data type, you can specify different text strings for the ’False’ label and ’True’ label.
              For example, if a Boolean attribute is associated with the status of a motor, you can specify the
              states as "Stopped" and "Running". Text boxes appear for you to enter these strings when you
              select a Boolean data type.
              These labels are also shown in the Value and Limit columns of the Alarm and E vent database and
              InTouch AlarmView control.
             Specify the attribute writeability.
             Set initial values if the attribute is user writeable.
             Enable and set locks and security on the new attribut e.
             Set whether the new attribut e is an array and how many elements are in the array.
          You can then add Features to the attribute. For more information, see Adding Features to Attributes on
          page 120.
116
Configure Objects                                                                       Application Server User Guide
Configure an Attribute
          To configure attributes
          1.   Highlight the attribute you want to configure.
          2.   Edit the Name of the attribute.
          3.   Enter a De scription.
          4.   Select a Data type:
                   Boolean: Enter False and True labels (if not False and True).
                   Integer: Enter Initial value and Engineering units.
                   Float: Enter Initial value and Engineering units.
                   Double: Enter Initial value and Engineering units.
                   String: Enter Initial value.
                   Time: Enter Initial value.
                   ElapsedTime: Enter Initial value.
                   InternationalizedString: Enter Initial value.
          5.   Select Writeability type:
                   Calculat ed
                   Calculat ed retentive
                   Object writeable
                   User writeable
          6.   Enter the Initial value for the attribute.
          7.   Select the checkbox if the attribute is part of an array.
          8.   Enter the Engineering unit type (numeric data types only).
          9.   Select Features and configure them. See A dding Feat ures to Attributes on page 120 for additional
               information.
          10. Lock the Initial value, if you do not want users to be able to modify the value in derived objects. You
              can show or hide the lock icon by toggling the Show/Hide Lock icons button. See Lock and Unlock
              Templat e Attributes on page 65 for additional information.
                                                                                                                 117
Application Server User Guide                                                                          Configure Objects
          11. Configure the attribute's security state. You can show or hide the security icon by toggling the
              Show/Hide Security icons button. See Set Object Security on page 68 for additional information.
          Important: After creating an attribute, it is available for adding Features or additional attributes. If you
          extend an attribut e you have added to an object or another attribute, and then delete or rename that
          attribute, all associated Features and additional attributes added to the object are lost.
               Note: For detailed information about each item on the Attribute s page, see About the Attributes
               Page on page 69.
          5.   Lock the values, if needed. The lock is available only when you are working with a templat e. If you
               are working with an instance, it shows the lock status for the value in the parent object.
118
Configure Objects                                                                          Application Server User Guide
          6.   Set any security you need. For more information about setting security, see Set Object Security on
               page 68.
          7.   Save and close the Object Editor when you are done.
                                                                                                                     119
Application Server User Guide                                                                         Configure Objects
120
Configure Objects                                                                         Application Server User Guide
                                                                                                                   121
Application Server User Guide                                                                       Configure Objects
          I/O Feature
          Advanced
          Property         Description
          Buffered         Enable buffered data to propagate to data subscribers the entire subset of values
                           accumulated within a single scan cycle.
                           Buffering data ensures that if a given attribute changes its value several times
                           during a single scan cycle, there is no folding of data, which occurs when an
                           accumulation of values of multiple data changes within a single scan are
                           overwritten and only the latest value is stored.
          Deadband         Specify the minimum amount by which a value must vary in order for the attribute
                           to register a change, for example, by triggering an alarm, historizing an alarm or
                           event, or triggering a script.
                           The Deadband property is not available for string data types.
          Reflect input to Enable to propagate an input value to an output destination. Enabling
          output           automatically disables the Output de stination differs from input source
                           option.
                           Typically, set this option when you want to read an input from one source,
                           manipulate its value in a script, and send the manipulated value to a different
                           destination address, all during a single scan of an object. For more information,
                           see Using Read/Write I/O in Scripts on page 126.
                           A vailable only when the I/O type is Read/Write. You must set separate Read
                           from and Write to properties.
          Output every     A vailable only when Reflect input to output is selected. Write to the specified
          scan             output destination occurs even when there has been no state or data change
                           since the previous scan.
                           The timestamp is not updated if there has been no state or data change since t he
                           previous scan.
          Enable I/O       Enables scaling between the raw value and the Engineering Units (EU) value.
          scaling          Scaling is the process of taking raw data from a devic e and pres enting it as an
                           appropriate value for your application.
                           Application Server supports two types of data scaling: linear and square root,
                           described in this table.
                           A vailable only for integer, float, and double data types.
122
Configure Objects                                                                       Application Server User Guide
          I/O Feature
          Advanced
          Property        Description
              Important: If the InputSource attribute is locked in the parent template, the attribute cannot be
              updated with the res olved reference when the object is deployed, and the run -time value will be
              "---Aut o---".
             Use the Attribute Browser to select an attribute and automatically insert the correct reference string
              for that attribute. For more information about using the Attribute Browser, see Reference Objects
              Using the Galaxy Brows er on page 83.
                                                                                                                  123
Application Server User Guide                                                                                Configure Objects
             If you are configuring an I/O attribut e for use with the Telemetry Server, see Configure I/O for Use
              with AVEVA Telemetry Server Communication Drivers on page 129 for additional information.
          You can add multiple Read (input) I/O Features to an object. However, you cannot add a Read/Write
          (InputOutput ) I/O Feature to an attribute that already has either a Read or a Write (output) I/O Feature.
          Arrays are not supported.
          Note: Lockable attributes can be configured with a Read I/O Feature, but they only function correctly
          during run time if the configured attribut e is unlocked.
          If the data types of the attribute and its I/O source attributes are the same, they are set to equal values
          according to the object’s execution rate. If the two attributes are different data types, coercion rules are
          applied.
          If c oercion fails or the input value is out of the attribute’s range, quality for the configured attribute is set to
          Bad. Otherwise, the configured attribute quality matches the source attribute. When the object is Off
          Scan, quality is always Bad and user sets are accepted.
          Attributes configured with a Read I/O Feature are not protected by their security classification. The only
          enforced security specifies if an IDE user can edit or add features to the object. A Read I/O Feature can
          be added to a template or instance. If added to a template, the existence of the Read I/O Feature is
          automatically locked in derived objects.
124
Configure Objects                                                                       Application Server User Guide
             Use I/O auto-assignment to prepare the input source for automatic assignment to a configured
              Device Integration (DI) object or other data source. For information about using I/O auto-assignment,
              see Using I/O Auto Assignment on page 140.
              If InputSource or OutputDest attributes, or both, are locked in the parent template, the attributes
              cannot be updated with the resolved reference when the object is deployed, and the run-time value
              will be "---Auto---".
             Use the Attribute Browser to select an attribute and automatically insert the correct reference string
              for that attribute. For more information about using the Attribute Browser, see Reference Objects
              Using the Galaxy Brows er on page 83.
             If you are configuring an I/O attribut e for use with the Telemetry Server, see Configure I/O for Use
              with AVEVA Telemetry Server Communication Drivers on page 129 for additional information.
          If the output destination and the input source are not the same, click Output de stination differs from
          input source. Enter a De stination attribute by using I/O auto-assignment, by typing in the reference
          string, or by using the Attribute Brow ser to search for the reference string in an object.
          Important: If you clear the Output de stination differs from input source check box, the Write to text
          box automatically shows "---". In the run-time environment, "---" is the same reference as the Read from
          value ent ered during configuration time. During run time, you can change the Read from reference.
          During configuration, do not lock the Write to parameter if you clear the Output de stination differs
          from input source check box.
          A Read/Write I/O Feature allows an attribute in a template or an instance to be configured so that its
          value is both read from and written to an external reference. The Read/Write I/ O Feature monitors the
          value/quality of an input and sends outputs on state change.
                                                                                                                 125
Application Server User Guide                                                                             Configure Objects
          The Write to (output) destination can be the same or different from the Read from (sourc e). The
          references are always to another acceptable attribute type in the Galaxy.
          You can add multiple Read/Write I/ O Features to an object. However, you cannot add a Read/Write I/O
          Feature to an attribute that already has a Read or Write I/O Feature.
          Note: You can add a Read/Write I/O Feature to lockable attributes, but they only function correctly during
          run time if the configured attribute is unlocked.
Me.attribute1.WriteValue = 100.0;
          Endif;
          The data change expression for this script is "me.attribute1.WriteValue" because this value
          changes when a new value is about to be written to the field.
          The script can intercept this value just before output and manipulate it. To prevent WriteValue from being
          written out, its data quality can be set to Bad with the SetBad() function.
          For more information, see Work ing with Outputs on page 128.
126
Configure Objects                                                                        Application Server User Guide
             Use I/O auto-assignment to prepare the output destination for automatic assignment to a configured
              Device Integration (DI) object or other data source. For information about using I/O auto-assignment,
              see Using I/O Auto Assignment on page 140.
             If the OutputDest attribute is locked in the parent template, the attribute cannot be updated with the
              resolved reference when the object is deployed, and the run-time value will be "---Auto---".
             Use the Attribute Browser to select an attribute and automatically insert the correct reference string
              for that attribute. For more information about using the Attribute Browser, see Reference Objects
              Using the Galaxy Brows er on page 83.
          Select the Output Every Scan check box if you want the attribute to write to the De stination attribute
          every scan period of the object. Otherwise, the write executes only when the value is modified or when
          quality changes from Bad or Initializing to Good or Uncert ain.
          Writeable and Calculat ed attributes can be configured with a Write I/O Feature. Arrays are not
          supported.
          A Write I/O Feature can be added to a derived template or to an instance. If added to a templat e, the
          existence of the Write I/O Feat ure is automatically locked in derived objects. The output Destination
          attribute is separately lockable in templates.
          If the data types of the configured and destination attributes are the same and only when the quality of
          the extended attribute is good, the two attributes are set to equal values according to the configured
          object’s execution rate. If the two attributes are different data types, coercion rules are applied. If
          coercion fails, the extended attribute is placed into a configuration error and type mismatch state .
          An attribute that is enhanced with a Write I/O Feat ure has the following characteristics:
                                                                                                                  127
Application Server User Guide                                                                            Configure Objects
             A value can be output only when quality is Good or Uncertain. The quality is not output, only the
              value is output, because quality is not output on sets.
             When the quality changes from Bad or Initializing to Good or Uncertain, the value is output, even if
              the value is not modified.
             When the quality changes from Good to Uncertain, with no value modific ation, the value is not
              output.
             When the object goes Off Scan, no out put is done.
             When the extended object is Off Scan, quality is always Good and user sets are accepted.
          Note: In the case of Boolean data types used in Supervisory sets (sets between ApplicationObjects and
          ArchestrA) or a mixture of Supervisory and User sets during a single scan cycle, the behavior is the same
          as the other data types.
128
Configure Objects                                                                        Application Server User Guide
For Boolean data types and User sets, the following examples apply:
          Previous
          Scan Cycle          Scan Cycle             Value to be        Next Value
          Value Sent          Set Requests           Sent               to be Sent
0 1,0,0,1,1 1 none
1 1,0,0,1,1 0 1
0 1,1,0,0 1 0
1 1,1,0,0 0 none
          When the same attribute is extended with an Input extension and an Out put extension, writes to the
          Output extension’s De stination occur every scan regardless of whether the extended attribute has
          changed.
          This behavior occurs even when the Output Every Scan check box is cleared, which may add more
          network traffic. The behavior does not apply to an Input extension.
Configure I/O for Use with AVEVA Telemetry Server Communication Drivers
          If you are using AVEVA Telemetry Server Communication Drivers to send and receive dat a from
          Application Server, you will need to configure I/O attribut es, in accordance with the applicable
          communications protoc ol. The Telemetry Server communicates with outstations via the DNP 3, IEC
          60870, and/or Modbus prot ocols. Use the reference syntax that corresponds wit h the protocol you are
          using. Since some outstations may send data to the Telemetry Server only once per day, you will also
          need to enable buffering to ensure that data is not lost.
          Note: If multiple attribut es with I/O enabled are configured for buffered data from the same data point in
          the Telemetry Server, only one attribute will receive the buffered data at run time.
          Dynamic References
          You can configure Telemetry S erver data points using dynamic references. When you create and deploy
          an attribute with a dy namic reference in Application Server, the point is automatically generated on the
          Telemet ry Server, and eliminates the need to manually create the same reference in two places.
          Additional Information
          For more information about enabling buffered data and creating Telemetry Server referenc es, see the
          following sections:
                                                                                                                  129
Application Server User Guide                                                                         Configure Objects
          A history Feature can be added to a template or an instance attribute. If added to a template attribute, the
          existence of the history Feature is automatically locked in derived objects.
          You can configure Writeable and Calculated attributes of the following data types with a history Feature:
             Float, Double (stored as a Float)
             Integer
             Boolean
             String stored as Unicode, 512 character limit
             Custom Enumeration stored as an Integer
             ElapsedTime stored as seconds
          You can configure the following attributes for a history Feature:
130
Configure Objects                                                                          Application Server User Guide
          Hi story
          Feature
          Attribute s     Description
          Description     The attribute c ontaining t he description string, if any, associated with the attribute
                          being configured.
                          Enter the attribute manually, or use the brows e button to open the Galaxy
                          Browser to find a specific attribute.
                          Example: For the description associated with Attribute001 that has been added
                          to object Reactor31, you would enter or brows e to
                          "Reactor31.Attribute001.description".
                          The description also can be a simple string without reference to an attribute.
          Force Storage Period after which the value, in milliseconds, must be historized even if the value
          Period        has not changed.
                          A value of 0 disables the parameter.
                          Example: A setting of 3600000 indic ates the value must be stored once per hour
                          (measured from the time the object was last put onscan).
                          If the force storage period value is less than the scan period of the host object,
                          forced storage will occur every scan period (effectively equivalent to setting a
                          value deadband of 0).
          Value           The threshold value, measured in engineering units, that the absolute value of
          Deadband        the difference bet ween the new and last-stored values must differ before storing
                          the new value to history.
                          A value of zero (0) is valid and means that any level of change results in the new
                          value being stored.
                          A change in Quality always causes a new record to be stored, regardless of
                          whet her the Value has changed.
          Trend High      The default top of a trend scale.
                          This value must be greater than or equal to the low value for the trend.
                          If this value is changed at run time, the maximum engineering unit change is not
                          reflected in the Historian until you redeploy the object.
                          This attribute applies only to numeric data types.
          Trend Low       The default bottom of a trend scale.
                          This value must be less than or equal to the high value for the trend.
                          If this value is changed at run time, the minimum engineering unit change is not
                          reflected in the Historian until you redeploy the object.
                          This attribute only applies to numeric data types.
          Enable          Enable and provide a valid swinging door rate deadband and the forc e storage
          swinging door   period becomes the deadband override period.
                          Boolean or string dat a types cannot be configured with a swinging door
                          deadband.
                                                                                                                     131
Application Server User Guide                                                                         Configure Objects
          Hi story
          Feature
          Attribute s      Description
          Interpolation    The method used by the Historian to interpolate analog historical data. The
          type             interpolation type determines which analog value is selected during a Historian
                           data retrieval cycle.
                           Select an Int erpolation type:
                           System Default: The Wonderware Historian system-wide interpolation setting is
                           used. The system-wide setting must be eit her stairstep or linear interpolated.
                           Stairstep: The last known value is returned with the given cycle time. If no valid
                           value can be found, a NULL is returned to the Historian.
                           Linear: Historian calculates a new value at the given cycle time by interpolating
                           between the last known value prior to the cycle time and the first value after the
                           cycle time.
          Rollover value A positive integer value that represents a tag’s reset limit when the Historian
                         operates in counter retrieval mode.
                           In counter retrieval mode the Historian uses a t ag's rollover value to calculate and
                           return the delta change between consecutive retrieval cycles.
                           The default value is 0.0.
                           Boolean and string data types cannot be configured with a rollover value.
132
Configure Objects                                                                        Application Server User Guide
          You can enable up to four categories of Limit alarms. When enabled, alarms will be triggered when the
          value reaches the configured limit.
             HiHi
             Hi
             Lo
             LoLo
          For each Limit alarm, specify the following parameters:
          Limit                    The limit that the attribut e value must exceed to trigger an alarm. Enter
                                   the limit value for each enabled Limit alarm category.
          Priority                 A numeric value for the urgency of the alarm. Valid values are 1 through
                                   999, with 1 being the most urgent.
                                   For more information about pre-configuring alarm priorities, see Mapping
                                   Alarm Severity to Priority.
          Alarm message            Browse and select an existing attribute or type a text string as an alarm
                                   message. This text string appears in the InTouch alarm view.
                                                                                                                  133
Application Server User Guide                                                                        Configure Objects
          Alarm deadband           The amount, in engineering units, that the attribute value must exceed
                                   the configured HiHi, Hi, Lo, or LoLo limit before an alarm is triggered.
          Time deadband            The time, in seconds, that must elapse after the attribute value exceeds
                                   an alarm limit before the alarm is triggered.
          You can enabl e up to two categories of ROC alarms. When enabled, alarms will be triggered when the
          value reaches the configured limit.
             Up: Rate of increase
             Down: Rate of decrease.
          For each ROC alarm, specify the following parameters:
          Limit                    The limit that the attribute rate of change value must exceed to trigger an
                                   alarm. Enter the limit value for each enabled alarm category.
                                   The down limit is a positive value, but indic ates a negative rate of
                                   change, or a descending rate Hi limit.
134
Configure Objects                                                                       Application Server User Guide
          Priority                A numeric value for the urgency of the alarm. Valid values are 1 through
                                  999, with 1 being the most urgent.
                                  For more information about pre-configuring alarm priorities, see Mapping
                                  Alarm Severity to Priority.
          Alarm message           Browse and select an existing attribute or type a text string as an alarm
                                  message. This text string appears in the InTouch alarm view.
          Changes per             Select a unit of time for the rate of change calculation – seconds,
                                  minutes, hours, or days.
          E valuate every         The time interval, in milliseconds, at which the rate of change calculation
                                  and detection is performed.
          You can enable up t o two c ategories of Deviation alarms. When enabled, an alarm will be triggered when
          the attribute level deviates from a target value by a configured amount.
             Major: The major alarm deviation toleranc e.
             Minor: The minor alarm deviation toleranc e.
          For each Deviation alarm, specify the following parameters:
                                                                                                                 135
Application Server User Guide                                                                  Configure Objects
          Deviation Alarms
          Feature Parameters    Description
          Tolerance             The major or minor deviation tolerance that the attribute value must
                                exceed to trigger an alarm.
          Priority              A numeric value for the urgency of the alarm. Valid values are 1
                                through 999, with 1 being the most urgent.
                                For more information about pre-configuring alarm priorities, see
                                Mapping Alarm Severity to Priority.
          Alarm message         Browse and select an existing attribute or type a text string as an alarm
                                message. This text string appears in the InTouch alarm view.
          Settling period       The time, in seconds, allowed for the attribute value to return wit hin
                                allowable range after a Target change is made before the deviation
                                alarm is triggered.
                                A deviation alarm cannot occur again until the alarm clears.
                                The value you specify will be converted to the following format: days
                                hh:mm:ss.fffffff.
136
Configure Objects                                                                         Application Server User Guide
          You can set an alarm message and Priority for a state alarm. The time deadband is used to filter out
          rapid, transitory value spikes, and the active alarm state determines the trigger value (True or False) that
          will activate the alarm. For eac h State alarm, specify the following parameters:
          Category                     The alarm category. Select a category from the list box. See State
                                       Alarms on page 296 for additional information.
          Priority                     A numeric value for the urgency of the alarm. Valid values are 1
                                       through 999, with 1 being the most urgent.
                                       For more information about pre-configuring alarm priorities, see
                                       Configuring Alarm Historization, Mapping, and Shelving Priority
                                       Ranges on page 326.
          Alarm message                Browse and select an existing attribute or type a text string as an alarm
                                       message. This text string appears in the InTouch alarm view.
          Active alarm state           The state of the active alarm, True or False, when the alarm is
                                       triggered.
          Time deadband                The time, in sec onds, that must elapse aft er the attribute value exceeds
                                       an alarm limit before the alarm is triggered.
                                                                                                                    137
Application Server User Guide                                                                       Configure Objects
          In the Alarm message box, you can browse and select an existing attribute or you can type a text string
          as an alarm message. This text string appears in the InTouch alarm view.
          Specify a Priority for this alarm, a numeric value for the urgency of the alarm. Valid values are 1 through
          999, with 1 being the most urgent.
          For more information about pre-configuring alarm priorities, see Configuring Alarm Historization,
          Mapping, and Shelving Priority Ranges on page 326.
138
Configure Objects                                                                       Application Server User Guide
             Time since last transition: If no change in the input value, the elapsed time value increments to show
              the total elapsed time since the last transition. A change in input value resets the elapsed time since
              last transition.
             A verage: Defined as the sum of the sample size divided by the number of sample size attributes in
              the data set.
             Standard deviation: Defined as the amount of variation or "scatter" from the average.
You can configure the following parameters for the Statistics Feature:
          Statistics Feature
          Parameters                  Description
          Auto reset on bad value     If enabled, the input automatically triggers a reset command when the
                                      quality of an input goes from BAD or UNCERTA IN to GOOD.
          Values per sample set       The maximum number of samples to collect in calculating the mean
                                      and standard deviation. The minimum numb er of samples is 2.
                                      A large sample set will impact run-time performance.
                                      This attribute is unavailable for a Boolean data type.
                                                                                                                  139
Application Server User Guide                                                                       Configure Objects
When enabled, the Log Change feature logs data change events as well as user events.
          Note: I/O aut o assignment is the default setting for application and other system objects, such as area
          objects. Device Integration (DI) Objects must be manually configured.
          When you add input or output attributes to an area or application object in the Attribute s page of the
          Object Editor, the default setting prepares these attributes for I/O aut omatic assignment. The auto
          assignment reference appears in the I/O section of the Attribute s page if you have enabled the I/O
          attribute feat ure. The default string for an input reference is:
               <IODevice>.[ObjectName].[AttributeName].InputSource
          where [ObjectName] is the hierarchical name of the application or system object, and [ AttributeName] is
          the name of the attribut e.
          The default string for an out put reference is:
             <IODevice>.[ObjectName].[AttributeName].OutputDest
          The string <IODevice> is a placeholder that indicates the I/O reference will be built automatically in a
          process called auto binding. The reference res olves automatically as an auto-bound reference when you
          link the object to a scan group and DI object, without having to manually enter or script the reference.
          The following is an example of an I/O referenc e string before the object has been assigned to a scan
          group and DI object:
              <IODevice>.Mixer.Tank.Inlet.InputSource
          Once you assign the object to a scan group, the reference resolves to include the assigned Device
          Integration (DI) object and scan group. For example, assigning the object to the scan group "Fast" under
          DI object "OPC001" will change the reference to:
              OPC001.Fast.Mixer.Tank.Inlet.InputSource
140
Configure Objects                                                                        Application Server User Guide
          Important: Do not lock InputSource or OutputDest attributes when using I/O auto assignment. If either
          InputSource or OutputDest attributes, or both, are locked in the parent template, the attribut es cannot be
          updated with the resolved auto-bound reference when the object is deployed, and the run-time value will
          be "---Auto---".
          I/O auto assignment is configured in the IO Device s view. Use this view to associate application and
          system objects with DI objects and scan groups.
          Scan groups are contained by DI objects and help categorize devices that are associated with them on
          the basis of how often their I/O points are scanned. For basic information about DI objects, refer to
          Device Integration Templates on page 45. For basic informati on about scan groups, refer to the
          OPCClient Object help file.
          Note: A DI object will not appear in the IO Device s view unless at least one custom scan group has been
          defined for it.
          Assign objects that need to be closely monitored or that have a faster rate of change t o a scan group with
          a faster scan rate. Objects with slower rates of change can be assigned to a scan group with a slower
          scan rate. The scan rate is the rate at which the ArchestrA run time will perform scans. This may be
          different than the scan rate a PLC uses to monitor the hardware attached to it.
          Note: Fast scan groups consume more network and computing resourc es than slow scan groups. In a
          large Galaxy, load balancing may require you to use multiple scan groups with similar scan rates.
          The I/O referenc es for the objects’ attributes set to use I/O automatic assignment are dynamic ally
          generated when you assign an object to a scan group. The auto-bound reference replaces the
          placeholder string and is displayed in the IDE. It is generally in the following format:
              <DIObject>.<ScanGroup>.<Object>.<Attribute>
                                                                                                                  141
Application Server User Guide                                                                          Configure Objects
          <DIObject> and <ScanGroup> correspond to the name of the DI object and scan group to which you
          assign the object. For example, if the DI object name is DI01 and the scan group name is FastSG, then
          the auto-bound reference will start with DI01.FastSG.
          <Object> may consist of multiple elements if there are contained objects. The following is an example
          of an object string:
              Tank3.Valve1.Attr2
          Here, Tank3.Valve1 corres ponds to <object>. The complete auto -bound I/O reference would be:
             DI01.FastSG.Tank3.Valve1.Attr2
          Although you assign objects, references are generated for each I/O attribute associated with the object,
          and not for the object itself. Therefore, you may have to change the I/O references for a subset of an
          object’s attributes. Once objects are associated with DI objects and scan groups, you can validate the
          auto-bound assignment for each of the object’s attributes in the IO Device Mapping view, and if
          necessary, you can ent er override values in this view.
          Note: You cannot assign application and system objects to a default scan group; these assignments can
          only be made for custom scan groups.
          In the IO Devices view, objects and areas are initially unassigned and placed in a flat view under the
          "Unassigned IO Devices" folder. You then select one or more of these unassigned objects or areas and
          drag and drop them onto a scan group. Deployed application and system objects cannot be assigned to
          a scan group. Undeploy them first.
          Once an object is attached to a scan group, the I/O references for the objects’ attributes set to use I/O
          automatic assignment are automatically generated for you by concatenating the DI object, scan group,
          object (including contained objects), and attribute names.
          You can assign multiple objects for auto-binding at once. Hold down the shift or ctrl key to select
          multiple objects and drag the selected items to a scan group. Object assignment is based on hierarchy
          and area inheritance, as follows:
             If all the objects you select are at the same hierarchical level, all contained (subordi nate) objects that
              have not been assigned, except sub-areas, are also selected and will move to the same scan group.
              o    To assign a sub-area, it must be specifically selected.
              o    If some contained objects were previously assigned to a different scan group, these will retain
                   their original assignments. To change an existing assignment, you must specifically select the
                   assigned object and move it to a different scan group.
             If you select objects at different hierarchical levels for assignment to a scan group – for example, if
              you select an area, an object within the same area, and an object from another area – then only the
              selected items move to the scan group.
             If you select an area that contains anot her area, only the area selected will move. You must
              specifically select an area to assign it, regardless of its hierarchical level.
          When an area or containing object is assigned to a scan group, the objects it contains are assigned as
          follows:
142
Configure Objects                                                                         Application Server User Guide
              Objects within the area that share the area's device linkage will be reassigned to the new device
               along with the area. This remains true even in the case where both the area and the contained
               objects are not currently linked to a device. Unassigned objects within the area will use the area’s
               assignment.
              Objects within the area that are already assigned to a scan group that is different from that of the
               hosting area will retain their original assignments.
              If necessary, you can reassign cont ained objects to a different scan group after the initial
               assignment, or override assignments in the IO Device Mapping view .
          Note: You cannot change scan group or DI object assignments for deployed objects in the IO Device s
          view. You must undeploy the object first.
          Deleting a scan group will delete the I/O assignments of any objects that were previously assigned to it,
          including override values.
          Caution: Creating or deleting scan groups within a derived DI object template may overwrite I/O
          assignments when these changes are propagated to instances of the DI object template. If this happens,
          all I/O aut o assignment information for objects linked to the updat ed DI objects, including override
          values, will be lost. The objects will move to the "Unassigned I/O Devices" folder.
               Note: If the area or object has contained objects that were previously assigned to a different scan
               group, these will retain t heir original assignments. Contained areas will not move and must be overtly
               selected.
          4.   The I/O references for each attribute set for I/O aut o assignment will be dynamically configured and
               displayed as auto-bound in the IO Device Mapping view .
                                                                                                                   143
Application Server User Guide                                                                         Configure Objects
          When you initially open the IO Device Mapping view after starting the IDE, the table will scroll so the far
          right column is in view.
             Selecting a DI object in the IO Device s view lists I/O auto assignment attributes for all aut o-bound
              objects linked to all scan groups under it.
             Selecting individual scan groups restricts the scope of the information displayed in the I/O Device
              Mapping view to the auto-bound objects that have been linked to the selected scan groups.
             Selecting individual application or system object further restrict s the scope of attributes displayed to
              only those associated with the selected object.
          Note: You can select multiple items in the IO Device s view. Selected items can be at different
          hierarchical levels. Selecting a subordinate object will exclude non-s elected objects within the device
          hierarchy, even though the parent object is selected.
          In the IO Device Mapping view , you can view and validate I/O references for each automatically
          generated attribute, and you can override the automatically generated I/O references. As is the case in
          the IO Devices view, you do not have to check out objects to change their I/ O assignments.
144
Configure Objects                                                                          Application Server User Guide
          Device.ScanGroup          Override setting: ent er an override value to replace the DIO and scan
          Override                  group that was automatically assigned
          Object.Attribute          Override setting: ent er an override value to replace the object and
          Override                  attribute names
          Runtime Value             Data returned from run time when the Validate References button has
                                    been clicked
          You can change how I/O attributes are displayed by sorting, grouping, or filtering the attributes.
          Attributes are initially sorted by Device name (DI object). To sort attributes using a different column, click
          on the column heading once to sort in ascendin g order. Click a second time on the same column heading
          to sort in descending order. A third click on the column heading turns off sorting for that column.
                                                                                                                    145
Application Server User Guide                                                                         Configure Objects
          To group objects by I/O assignment criteria, drag a column heading to the top of the table in the IO
          Device Mapping view. For example, if you drag the heading "Attribute" to the top of the table, I/O
          assignments will be grouped by attribute name. In the figure below, I/O assignments are grouped by
          attribute name. Note each attribute grouping has been expanded.
          Note: Grouping is not available for the Device.ScanGroup Override, Object.Attribute Override, or
          Resulting Reference columns.
          You can use more than one column heading to group I/O assignments. In the figure below, assignments
          are grouped first by attribute name, and then by I/ O type.
          Columns can also be filtered to display only certain entries by clicking the filter symbol and then selecting
          the filtering criteria. When a filter is applied, the color of the filter symbol changes to orange.
          Note: Filtering is not available for the Device.ScanGroup Override, Object.Attribute Override, or
          Resulting Reference columns.
The table contains additional information that you can reveal by clicking the Show Details button.
          Details Column
          Heading                  Definition
Attribute Dat a Ty pe Attribute type as defined by the attribute definition set in the Object Editor
Target Data Type Attribute type of the target, as determined by the run time
146
Configure Objects                                                                        Application Server User Guide
          Details Column
          Heading                  Definition
          Note: As a best practice, it is more efficient to validat e each reference while performing I/O
          auto-assignment than it is to perform a single validation after configuring and deploying the entire
          application.
          An estimate of the time needed for validation is displayed. The time is updated as validation progresses.
          When validation completes, the total number of unres olved I/ O referenc es is displayed along with the
          total number of auto-bound references checked, for ex ample, "2 out of 5000 referenc e(s) failed to
          validate." To view references that did not validate during the validation period, click the "Show Advanced
          Columns" button. This will reveal the Runtime Quality column.
          You can sort the Runtime Quality column to aggregate unresolved I/O references at the top of the list of
          references. See Using the IO Mapping View on page 145 for additional information on sorting. You can
          then move the associated objects to a different scan group or apply overrides. Recheck the references
          after completing any required reassignments and overrides.
          Note: If an object is already deploy ed, changing any of its I/O assignments in the IO Mapping view will
          change the object’s status from "Deployed" to "Deployed with pending configuration changes."
          To override the DI object and scan group assignment that was made in the IO Devices view, enter the
          value you want in the column Device.ScanGroup Override. Naming restrictions for the
          Device.ScanGroup Override value are as follows:
             The value must contain one DI object name and one scan group name contained by the DI object,
              separated by a period (.).
             The value cannot start or end with a period.
             The value cannot have any leading spaces.
                                                                                                                   147
Application Server User Guide                                                                           Configure Objects
          WARNI NG! The IO Device Mapping view does not verify data that is copied to it. Therefore, if the
          order of attributes i s different in Excel than it is in the IO Mapping view, the I/O references will be
          broken. Once changes are applied, there is no way to undo them.
               Important: I/O assignments can only be validated if the Platform, AppE ngi ne, and associated DI
               object have been successfully configured and deployed.
          2.   Check the data returned in the Runtime Value column. If the assignment is not valid or if the quality
               is bad, no dat a will be returned (the Value column will be empty), and "Not Connected" will be
               displayed in the Runtime Quality column (click the Show Details button to reveal this column).
          3.   To isolate invalid assignments, select the filter icon at the top of the Runtime Quality column filter for
               "Not Connected" messages.
          4.   Edit the I/O assignment of objects as needed.
                  To override a scan group and DI object assignment, enter the new value in the
                   Device.ScanGroup Override column. The override value for this column cannot contain more
                   than one period (.) to separate the DI object name from the scan group name.
148
Configure Objects                                                                         Application Server User Guide
                   To override an object and attribute name, enter the new value in the Object.Attribute Override
                    column.
          5.   Click Apply Pending Overrides to save your changes.
                   To discard the last unsaved override setting, click Undo Last Pending Override.
                   To discard the all unsaved override settings, click Undo All Pending Overrides.
               Important: Do not change the default string if you want to use auto assignment for the attribute. The
               default string indicates that auto assignment is not yet complete and the object is not linked to a PLC.
          4.   Save and check in the template, then close the Object Editor.
          5.   In the Template Toolbox, create instances from the UDO derived template. The instances appear in
               the Model view, under Unassigned Area.
                                                                                                                    149
Application Server User Guide                                                                         Configure Objects
               Note: The DI Object.Scangroup Override column can only contain the DI object name and scan
               group name, separat ed by a period (.).
150
Configure Objects                                                                         Application Server User Guide
          I/O auto assignment uses the syntax: <DI Object.ScanGroup>. <Object.Attribute>. It is the first part of
          the syntax that limits how the OPC client builds the I/O auto assignment reference, since additional
          parameters in the device hierarchy, such as Ethernet ports and backplanes are not included. While these
          parameters may be logically viewed as part of the DI Object.ScanGroup reference, you must add the
          parameters to the Object.Attribute override column (not the DI Object.ScanGroup override column)
          to create the fully qualified I/O referenc e.
          Using DDESuiteLink instead of OP C will accommodate the automatically generated I/O reference to
          these PLCs, and in most cases, overrides will not be needed.
          Caution: Do not change the order of references, either in Excel or in the IO Device Mapping view by
          sorting, grouping, or filtering the reference list while editing references.
               I/O attributes for each object associated with the OPCClient or scan group (depending on whic h is
               selected in the IO Device s view) are shown in the IO Device Mapping view.
          2.   In the IO Device Mapping view , the resulting reference will be in the form:
               OPCClientName.ScanGroupName.ObjectName.AttributeName
               Example (Re sulting Reference column):
               OPCClient_01.SG1.UDO_01.Attribute_001
          3.   Do not edit the Device.ScanGroup Override column (leave it blank). This leaves the DI Object and
               scan group assignment as defined in the IO Devices view.
          4.   Enter the fully qualified field reference in the Object.Attribute Override column. For example:
               S7C_1.S7C_200_1.UDO_01.Attribute001
          5.   Apply the override. The res ulting reference will be display ed. For ex ample:
               OPCClient_01.SG1.S7C_1.S7C_200_1.UDO_01.Attribute001
                                                                                                                   151
Application Server User Guide                                                                        Configure Objects
          5.   Apply the override. The res ulting reference will be display ed. For ex ample:
               OPCClient_01.SG1.CIP_1.CIPENB_1.CIPBackPlane_1.
               CIPLogix5000_1.UDO_01.Attribute001
152
Configure Objects                                                                        Application Server User Guide
          For specific information about writing scripts, including the scripting language, syntax, commands, and
          using .NE T, see t he Application S erver Scripting Guide. For more information about the scripts page, see
          About the Scripts Page on page 74.
          Important: You cannot pass attributes as parameters for system objects. Instead, use a local variable as
          an intermediary or explicitly convert the attribute to a string using an appropriate function call when
          calling the system object.
About Scripts
          The following characteristics apply to the scripting environment:
             Script text has no length limitations.
             Selecting a script function from the Script Function Library dialog box adds it and its syntax to the
              script text where you can edit it.
             You can save a script with syntax errors, but the object cannot be deployed until you correct the
              script syntax errors.
             You can validate your scripts before using them. This helps you avoid syntactically correct but
              semantically incorrect combinations such as two statements declaring the same variable. Variables
              can be declared only one time in a single block.
             You can change the name of a script at any time by renaming it in the Object Editor.
             In the run-time environment, a script execution error stops the script’s current execution. Script
              execution is retried on the next AppEngine scan.
                                                                                                                   153
Application Server User Guide                                                                         Configure Objects
Script Execution
          The existence and execution order of scripts associated with an object are inherently locked at each
          stage of development in the template, derived template, and instance. For example, a set of scripts
          associated with a template are treated as an ordered block in the Configure Execution Order dialog
          box when configuring execution order in a next-generation derived template.
          New scripts in the derived templat e can be ran in any order before and after the templat e’s block of
          scripts. The derived template’s execution order is treated as a block in any dow nstream derived
          templates or instances. Scripts cannot trigger any faster than the scan period of the A ppE ngine the script
          is associated with or faster than the scan period of the AppE ngine that hosts the object that the script is
          associated with.
          Scripts run in one of two modes:
              Synchronous scripting mode is the default for running scripts in the run-time environment. This mode
               runs scripts in order while an object is running on scan.
              Asynchronous scripting mode is a group of scripts running on the same, lower priority execution
               thread. Thes e scripts only support Execute triggering and run independently from each other. Set the
               maximum number of independent threads in the AppEngine configuration editor. To use either
               scripting mode, you must select Execute as the Execution Type in the Scripts area on the Scripts
               page.
          To create and associate a script with an object
          1.   Add a script. On the Scripts page of the Object Editor, click the Add ( + ) button. A script is added to
               the Scripts Name list.
          2.   Type a name for the script and press Enter. Script names can be up to 32 alphanumeric characters,
               including periods. At least one character must be a letter.
          Note: For detailed information about eac h item on the S cripts page, see About the Scripts Page on page
          74.
          3.   Select a trigger that starts the script in the run -time environment.
               Execution Type triggers include: Startup, On Scan, Execute, Off Scan and Shutdown.
                  If you select Startup, On Scan, Off Scan, or Shutdown, the Ba sics group is unavailable. The
                   script is triggered when the object starts, goes on scan, goes off scan, or shuts down.
                   If you select Execute, the Basics group is available.
                  If you selected Execute as the script trigger, select a Trigger Type. Depending on the type
                   selected, you are required to enter an Expre ssion and/or Trigger Period and Deadband
                   values. When t he combination of Expression, Trigger Type, Trigger Period and/or Deadband
                   is satisfied in the run-time environment, the script starts running. See the following table for more
                   information.
                   The Trigger Period format is as follows:
                   Hours:Minutes:Seconds:Milliseconds
                   For example, 3 hours, 5 minut es, and 10.5 seconds is:
                   03:05: 10.5000000
                   Expressions are limited to one language statement in length and calling only synchronous mode
                   script functions. A void using script functions with side effects in expressions because subtle
                   behaviors can occur.
154
Configure Objects                                                                         Application Server User Guide
          Periodic         When the object containing the script is going On Scan, a Periodic script
                           evaluates its expression at the next scheduled scan period of the AppEngine.
                           The script then runs periodically at the trigger interval specified in the Trigger
                           Period box. A time interval of zero (0) starts the script during every scan. This
                           trigger does not require an expression.
          While True       When the object containing the script is going On Scan, a While True script
                           evaluates its expression at the next scheduled scan period of the AppEngine.
                           The script runs if true and then periodically thereafter at the trigger interval.
                           The script continues running as long as the Expre ssion value evaluates to true.
                           A Trigger Period is required. Zero (0) evaluates the expression at the AppEngine
                           scan period and non-zero means the expression is evaluated at the specified
                           time interval.
          On True          When the object containing the script is going On Scan, an On True script
                           evaluates its expression at the next scheduled scan period. The script starts at
                           the transition between the expression going from false to true.
          On False         When the object containing the script is going On Scan, an On False script
                           evaluates its expression at the next scheduled scan period. The script starts at
                           the transition between the expression going from true to false.
          Data Change      Scripts run when the value or quality of the expression changes. The expression
                           must evaluate to a single, non-arrayed value of the following types: integer, real,
                           time, elapsedtime, string, double, Boolean, custom enumeration and quality. To
                           allow execution based on quality, select the Quality changes check box.
                           A deadband can be specified for all data types. Deadband units for time and
                           elapsedtime types are milliseconds. Deadband is always ignored for strings
                           because any change (even from "ABC" to "abc") is considered a change. Only
                           major changes in quality (from Good/Uncertain to Bad/ Initializing or vice versa)
                           are considered changes.
                           After the object is put on scan, Data Change -triggered scripts start running at the
                           AppEngine’s next scan period and then at each subsequent scan period in which
                           the value or quality changes.
          While False      When the object containing the script is going On Scan, a While False script
                           evaluates its expression at the next scheduled scan period, runs if false, and then
                           periodically thereafter at the trigger interval.
                           The script runs as long as the Expre ssion value evaluates to be false. A Trigger
                           Period is required. Zero (0) evaluat es the expression at the AppE ngine scan
                           period and non-z ero means the expression is evaluated at the specified time
                           interval.
                                                                                                                   155
Application Server User Guide                                                                            Configure Objects
                  Set the Runs Asynchronousl y and associated Timeout Limit parameters, as needed. The
                   Timeout Limit is set in milliseconds. Note t hat if a script exceeds the Timeout Limit, it continues to
                   execute all sequential statements, but generat es a warning in the logger when it completes. If
                   the script contains a loop, it will exit the loop and complete ex ecution of the script, when the
                   timeout limit is reached.
                  Select Report Alarm on Execution Error and set a Priority for the alarm if you want the
                   alarming function to alert you if a script execution failure occurs.
                  Select Hi storize Script State to store the state of the script in your application’s historian.
          5.   In the Declarations area, type variable declarations about the script you are writing.
          6.   Set aliases for the reference strings in the Aliase s area. This can simplify the script code and allows
               script code to be created and locked at a template level using alias names. When an individual
               instance of that template is created, you can link external attributes to the alias nam es.
               In the Aliase s area, click the Add button to add a new alias. An alias is added to the list. The name
               is shown in edit mode. Double-click the Reference entry, and ent er a reference string for the alias.
               You can also click the Browse button at the end of the Reference block to open the Attribute
               Browser for easy selection of an object’s attributes.
          7.   Write the script in the Script Creation box. Use the Display Script Function Brow ser and Di splay
               Attribute Brow ser buttons to help you insert script functio ns and object attribute references in your
               script. For help with the specific commands and syntax, see "QuickScript .NET Functions" in the
               Application Server Scripting Guide.
               Click the Validate Script button to validate if your script contains any syntax errors.
          8.   Order the scripts. If you have more than one script associated with a single object, click Configure
               Execution Order. Ordering does not apply to asynchronous scripts. If a script is added to an
               instance derived from a templat e that contains scripts, the new script aut omatically defaults to
               running after the derived scripts.
          9.   When you are done creating your script and setting its execution triggering parameters, save and
               close the Object Editor.
156
Configure Objects                                                                           Application Server User Guide
              o     When you create aliases for a script, an Alias Reference attribute is created for each script with
                    aliases. To lock alias references, you must lock the AliasReference attribute.
              o     Changes to alias names only propagate to derived objec ts when alias es are locked in the
                    Scripts page.
              o     Changes to alias references only propagate to derived objects when the AliasReference
                    attribute is locked in the Attribute s page.
              o     If the AliasReference attribute is not locked, the alias references will be e ditable in derived
                    objects, but changes made in the parent template will not propagate to derived objects.
             The script description, runs asynchronous flag, expression, trigger type, trigger period, deadband
              and execution error alarm are individually lockable and can be locked separately from the script text.
              A group lock is provided for this group of attributes.
             When you add a script to a templat e, all properties of the script are editable.
             When you add a script to an instance, all properties of the script are edit able, except the lock
              properties (locks do not serve any purpose in instance since you cannot derive child objects from
              them).
              Important: An expression typically uses attribute references. If you lock the expression and the
              associated script in a template, use aliases in both the expression and the script. This allows you to
              specify the attributes that the aliases point to on a per -instance basis while the script code is locked.
          The following rules apply to the derivation behavior of locked script attributes:
             If an attribute is locked in a templat e, then all templates and instances derived from the templat e
              share the copy of the value of the locked attribute. A change to the valu e is only allowed in the
              template that locked it. The change propagates to all derived templates and instances.
              For scripts, locking an attribute of the script, such as its script text or execution type, in a templat e
              means all derived templates and instances point to that locked attribute. Future changes to that
              locked attribute’s value, such as modifying the script text, propagate and appear in all derived
              templates and instances.
              If instances are deployed, they are marked pending update status. After they are redeployed, the
              change to the locked attribute in the template exists in the deployed instance.
             If an attribute is not locked in a template, then all templates and instances derived from that template
              receive their own copy of the value of that unlocked attribute. A change to that unlocked value is
              allowed in derived templates and instances because they own their own copy. Any change to the
              unlocked attribute value in the template does not propagate to any derived template or instance.
              An unlocked attribute in a script (such as expression or script order) in a template means that all
              derived templat es and instances have their own copy and the value of that unlocked attribute can
              change. Future changes to that locked attribute’s value (for example, modified expression) in the
              template does not propagate to any derived template or instance. If instances are deployed, their
              status does not change to pending update. Redeploying them does not cause the value to change in
              the deployed instance.
                                                                                                                       157
Application Server User Guide                                                                         Configure Objects
          You cannot add content to a bas e template, only to derived templates or instances.
          To add or link to content:
                  To create a graphic that is owned by the object, select the Add Content button (2). This creates
                   a new object-owned graphic.
                  To link to an existing graphic or external content object to the object, select the Link Content
                   button. This opens the Galaxy Browser. Then, select the symbol or External Content object to
                   be linked to the object.
                  To edit an owned-graphic, select the graphic and click the Edit (1) button.
                   Note: If you edit a linked graphic in the Graphic Toolbox, the changes will affect all object s that
                   link to that graphic.
158
Configure Objects                                                                            Application Server User Guide
          5.   Click Edit. The Graphic Editor opens. For instructions on using the Graphic Editor, see "About
               Creating and Managing ArchestrA Symbols" in the Creating and Managing ArchestrA Graphics
               User’s Guide.
Modifying Graphics
          All modifications made to graphic symbols referenced by other objects are visible in the referenced
          objects.
          To modify a graphic symbol
          1.   On the Graphics page of the Object Editor, click the Name of the graphic symbol to be modified.
          2.   Click Open. The graphics tool box opens, showing the selected graphic symbol.
                                                                                                                       159
Application Server User Guide                                                                      Configure Objects
          3.   Make changes. See "About Creating and Managing ArchestrA Symbols" in the Creating and
               Managing ArchestrA Graphics User’s Guide.
          For more information about Element Styles, see Managing Galaxy Style Libraries and "Working with
          Element Styles" in the Creating and Managing Arc hestrA Graphics User’s Guide.
160
Configure Objects                                                                             Application Server User Guide
          You can configure text, fill, line, outline, blink, and associated display icons for t he following Status styles:
             Communication Error
             Configuration Error
             Pending
             Operational Error
             Software Error
             Security Error
             Warning
             Out of Servic e
             Device Failure
             Bad
             Uncertain
             Installing
                                                                                                                        161
Application Server User Guide                                                                       Configure Objects
https://blogs.msdn.microsoft.com/wpf/ 2015/10/29/wpf-community-projects/
162
Configure Objects                                                                        Application Server User Guide
          The Symbol Wizard Editor can create Symbol Wizards from traditional ArchestrA Symbols and
          Situational A wareness Library symbols. Both types of symbols are located in the Graphic Toolbox in
          separate toolkit folders. Symbol Wizards are saved in the IDE’s Graphic Toolbox and are not associated
          with any specific ArchestrA object templat e or object instance. Except for the ability to select a specific
          symbol configuration, Symbol Wizards behave like standard ArchestrA Symbols.
          Situational A wareness Library symbols provide an additional benefit of including defined properties and
          their associated attributes to more easily creat e configurations. Some Situational Awareness Library
          symbols include a Type property to assign a specific function for a symbol configuration. For example, a
          meter symbol can be configured to repres ent a thermometer, a pressure meter, or flow meter by simply
          changing the attribute assigned to the Type property.
          Typically, the process of creating and embedding a Symbol Wizard in an application requires the
          involvement of a Designer and a Cons umer. A Designer creates Symbol Wizards using the Symbol
          Wizard Editor. A Consumer selects a configuration of a Symbol W izard and embeds the instance of the
          symbol into managed InTouch applications.
                                                                                                                   163
Application Server User Guide                                                                       Configure Objects
          A Designer can create a rule for each layer that defines the conditions when the layer is included in a
          symbol configuration. Rules are assigned with Choice Groups, Choices, and Options. A Designer selects
          a configuration to be the symbol default that appears when the symbol is embedded in a managed
          InTouch application.
          After creating all symbol configurations, the Designer verifies how each configuration of a symbol using
          the Symbol Wizard Preview. Designers set values in the Wizard Options view to verify that eac h
          configuration appears as designed bas ed on the layer rules set for the symbol.
          When a Symbol Wizard is finished, the Designer saves it to the Galaxy library so that it is available for
          use in managed InTouch applications. For more information about creating Symbol Wizards, see
          "Working with Symbol Wizards" in the Creating and Managing ArchestrA Graphics User’s Guide.
          After selecting a symbol configuration and changing any properties, the Consumer saves the Symbol
          Wizard so that it can be embedded into a window from WindowMaker.
          While the InTouc h application is running, the Symbol Wizard appears as the configuration selected by
          the Consumer. A Symbol Wizard configuration cannot be changed during run-time.
          For more information about how to embed Symbol Wizards into a managed InTouch applications, see
          "Working with Symbol Wizards" in the Creating and Managing ArchestrA Graphics User’s Guide.
164
Configure Objects                                                                      Application Server User Guide
Renaming Graphics
          You can rename a graphic symbol.
          To rename a graphic symbol
          1.   On the Graphics page of the Object Editor, click the Name of the graphic symbol to be renamed.
          2.   Type the new name, and press Enter. The new name is saved.
Deleting Graphics
          Caution: Deleting a graphic symbol with embedded references breaks the links to their related objects.
          "Symbol Not Found" appears when you open objects whose embedded graphic symbols have been
          deleted.
                                                                                                                165
                                                                                                              Application Server User Guide
                                                                                           C HAPTER 6
Configure Objects with an Object Wizard
    In This Chapter
    About Object Wizards ................................................................................................................. 167
    Object Wizard Components ......................................................................................................... 178
    Add Content for Use with an Object Wizard .................................................................................. 185
    Conditional Visibility Expressions for Choic e Groups, Choices, and Options ................................... 198
    Trimming.................................................................................................................................... 208
    Attribute and Symbol Overrides ................................................................................................... 211
    Add Scripts to an Object Wizard .................................................................................................. 216
    Object Wizard Derivation............................................................................................................. 218
    Object Wizard Test Mode ............................................................................................................ 222
    Propagation of Object Wizard Changes to Derived Objects ........................................................... 232
    Extend an Inherited Object Wizard ............................................................................................... 233
    Configure Instances .................................................................................................................... 242
    Create a New Instance with the Configure New Asset Editor ......................................................... 246
    Add a Configured Asset to a Symbol ............................................................................................ 252
                                                                                                                                               167
Application Server User Guide                                                  Configure Objects with an Object Wizard
          3.   If necessary, select the Object Wizard button         to open the Object Wizard editor. The Attributes
               tab divides into multiple panes that are used for building the Object Wizard.
          Object Wizards can be used either within the IDE, or from the Configure New Asset editor that also lets
          you configure an associated graphic as you configure the object.
          Note: The Configure New Asse t editor can only be used if 1) the template contains a symbol, and 2)
          your security setting allows you to edit graphics.
          A single template with an Object Wizard can replace a number of derived templates for configuring a
          variety of similar instances. You can add an Object Wizard to any derived template.
          Depending on their level of permissions, users can:
              Create and configure instances from within the IDE, and add them to the Galaxy, or modify existing
               instances. A user simply opens an instance and ans wers a series of prompts or questions. See
               Configure Instances on page 242 for additional information.
168
Configure Objects with an Object Wizard                                                   Application Server User Guide
             Use the Configure New Asset editor to creat e and configure instances and a representative
              symbol, simply by dragging an associated symbol into a graphic, and then answering a series of
              prompts or questions. See Create a New Instanc e with the Configure New Asset Editor on page 246
              for additional information.
          Object Wizards consist of a series of user -selectable choices and options that are used to customize a
          deployable instance. Each choice and option may have one or more attributes, symbols, and/or scripts
          associated with it.
                                                                                                                    169
Application Server User Guide                                                   Configure Objects with an Object Wizard
               Note: Only templates derived from the $UserDefined base template open in the Object Editor with
               the Attribute s page selected. The Object Editor always opens the first page of the object. For
               example, the Object Editor opens the General page of the $AnalogDevice template.
See Object Wizard GUI Panes on page 173 for additional information.
170
Configure Objects with an Object Wizard                                                  Application Server User Guide
          5.   Add a Choice Group by selecting the Add Choice Group (1) button. With the Group name selected,
               change the name of the Group shown in the Prompt (5) text field. See Add a Choice Group on page
               178 for more information.
          6.   To add more Choices to a Choice Group, select the Choice Group and then press the Add Choice
               (2) button. To change the name of a Choice, select the Choice and enter the new name in the
               Prompt field. See Add a Choice to a Choice Group on page 180 for more information.
          7.   Add Options by selecting the Add Option (3) button. Change Option names the same way that you
               change Choice Group and Choice names. See A dd an Option (see "Add an Option" on page 183) for
               more information.
          8.   Use the Up and Down arrow (4) buttons to change the order of Choice Groups, Choices (within a
               Choic e Group), or Options.
          9.   To associate an attribute or content wit h a Choice or Option:
               a.   Select the Choice or Option.
               b.   Select the attribute or content (symbol or other type of content) you want to associate with the
                    Choic e or Option.
               c.   Select the Add Association button (or drag the attribute or content to the Associations pane).
               d.   Settings for the selected attribute or content are shown in the Settings pane, once the
                    association is made. Configure visibility and value overrides, as needed.
                                                                                                                  171
Application Server User Guide                                                 Configure Objects with an Object Wizard
                   Note: No settings are shown for symbols that do not contain custom properties or a Symbol
                   Wizard.
172
Configure Objects with an Object Wizard                                                  Application Server User Guide
               Select whether each attribute, symbol, and other content can be Trimming on page 208 from derived
                instances. Scripts are always configured as trimmable.
          The user interfac e for configuring Object Wizards is accessed through the Attribute s page within the
          Object Editor of the Integrat ed Development Environment (IDE ).
                  Select the Object Wizard button to open the Object Wizard user interface. The Attribute s
                  page divides into multiple panes for use in creating and editing an Object Wizard. See Object
                  Wizard User Interface Details on page 175 for additional information.
                  Select the Scripts button (located at the top right of the Attributes pane) to open the
                  Scripts pane.
          1       Choice s and Add, rename, reorder, and delete Choice Groups, Choices, and Options that
                  Options pane comprise the Object Wizard in the Choice s and Options pane (1). You can
                               also set the logic for displaying Choices and Options.
          2       Associations    Drag and drop attributes, content, and scripts to the Associations pane (2)
                  pane            to associate them with a choice or option; you can use the Add button at the
                                  top of the pane instead of dragging and dropping. You can select multiple
                                  attributes, symbols, or scripts at once. You will also enable and disable
                                  trimming of associated attributes and symbols in this pane. See Trimming
                                  on page 208 for additional information.
                                  You can view associations for individual attributes, symbols, and scripts in
                                  this pane by selecting an attribute, symbol, or script. Every association of
                                  the item is displayed. Select an association to view the item's configuration.
                                                                                                                   173
Application Server User Guide                                                  Configure Objects with an Object Wizard
          3      Settings pane Configure attribute and symbol overrides in the Settings pane (3).
                               Overrides are set individually for each choice or option with which the
                               attribute or symbol is associated. Default settings for attributes are set in the
                               Details pane (7).
                                 Columns can be resized by selecting a column header (in this case, Value)
                                 and moving its edges to widen or narrow it.
          4      Attribute s     The Attribute s pane (4) lists the attributes contained in the template. You
                 pane            can creat e new attributes in this area. To associate attributes with the Object
                                 Wizard, highlight a Choice or Option, and then select and drag one or more
                                 user-c reated attributes from the Attribute s pane to the Associations pane
                                 (2). See Associate Attributes with Choices and Options for additional
                                 information.
                                 Default configuration settings for a selected attribute are displayed to the
                                 right of this pane, in the Details pane (7). See About the Attributes Page on
                                 page 69 for additional information. Configured settings for the selected
                                 attribute that apply to a selected Object Wizard Choice or Option are shown
                                 in the Settings pane (3). You can also enable attribute features
                                 (historization, I/O, alarms, etc. in the Attribute s pane. Multi-select can be
                                 used to enable features for attribut es, as well as to associate att ributes. To
                                 use multi-select for features, select the attributes in the Attribute s pane and
                                 enable the feature in the Details pane.
          5      Content pane The Content (5) pane lists symbols and external content items contained in,
                              or linked to the object. To associate symbols with the Object Wizard,
                              highlight a Choice or Option, and then select and drag one or more items
                              from the Content pane to the Associations pane (2). You can add a new
                              symbol to the object from this pane, or link to a symbol in the Graphic
                              Toolbox. See Associate Content with a Choice or Option on page 187 for
                              additional information.
          6      Scripts pane    To display the Scripts pane (6), select the Scripts button. The Scripts
                                 pane lists scripts contained in the object. To associate a script with the
                                 Object Wizard, highlight a Choice or Option, and then select and drag one or
                                 more scripts from the Scripts pane to the Associations pane (2). See
                                 Associate Content with a Choice or Option on page 187 for additional
                                 information.
                                 To add a script to the object, select the Scripts tab at the top left of the
                                 Object Editor.
          7      Details pane    The Details pane (7) displays details of a selected attribute, symbol, or
                 (Attribute      other content. This pane lets you configure individual attributes, but is not
                 Editor)         usually used while configuring an Object Wizard. See Configure Objects on
                                 page 115 for additional information.
174
Configure Objects with an Object Wizard                                              Application Server User Guide
          1              Object Wizard      Opens/closes the Object Wizard editor (Choice s and Options,
                         button             Associations, Settings, Attributes, and Content panes.
          2              Scripts button     Opens/closes the Scripts pane so you can associate scripts with
                                            Object Wizard Choices and Options.
          3              Test mode button   Changes the Object Wizard editor to test mode. This lets you
                                            verify the behavior of the Object Wizard. See Object Wizard Test
                                            Mode on page 222 for additional information.
          4      <#>     Number of          Number of trimming-enabled attributes, symbols/content, and
                         associations       scripts associated with a Choice or Option. This can help in the
                                            maintenance of complex Object Wizards by letting you quickly
                                            identify where trimming has been enabled.
          5      <#>     Total configured   Total number of configured settings for all attributes and symbols
                         settings           that are associated with each Choice or Option. This can help in
                                            the maintenance of complex Object Wizards by letting you quickly
                                            identify where overrides have been configured.
                                                                                                               175
Application Server User Guide                                                   Configure Objects with an Object Wizard
          12             Attribute / Custom Attribute and symbol custom property icons are displayed for
                         Property icons     Boolean, integer, float, double, string, time, elapsed time, and
                                            internationalized string. An icon is also display ed for Symbol
                                            Wizard settings. See Attribute and Symbol Icons, below.
          13             Setting Override     Attribute, custom property, and Symbol Wizard settings that
                         indicator            contain an override are indicated by bold text and an X next to the
                                              value. To remove the override, select and clear the X. See
                                              Override Icons, below.
          14    <text    Visibility           Sets the conditional visibility of Object Wizard elements. See
                field>   Expression           Conditional Visibility Expressions for Choic e Groups, Choices,
                                              and Options on page 198 for additional information.
          15    Visibility indicator icons    When the icon is unmuted, the setting is visible to the user when
                                              configuring instances. When muted, the setting is hidden. See
                         Visible              About Attribute and Symbol Overrides on page 190 and
                                              Configurable Settings for Attribute and Symbol Values on page
                         Visible - override   215 for additional information. A small x in the top right corner of
                         Hidden               the icon indicates that the visibility setting is an override, and may
                                              differ from the setting in the parent template.
                         Hidden - override    Note: In derived templates, visibility indicators replac e visibility
                                              expressions for Object Wizard choices and options. See Object
                                              Wizard Derivation on page 218 for additional information.
          16             XRef                 Total number of configured overrides for the selected symbol or
                                              attribute. If the attribute or symbol is associated with multiple
                                              Object Wizard Choices or Options, hover over t he XRef number t o
                                              see which Choic es and Options have overrides configured.
176
Configure Objects with an Object Wizard                                                          Application Server User Guide
          [No        Large type with no icon indicates that the item is an attribute feature. X
          icon]      Attribute features are selected in the Details pane (see Object Wizard
                     GUI Panes on page 173) and include I/O, History, State Alarms, Bad
                     Value Alarms, Hi/Lo Alarms, etc.
          Note: For custom properties, string, time, and elapsed time data types can be toggled bet ween
          reference/ex pression and string literal. This does not apply to attributes.
reference/expression
string literal
Override Indicators
Indicator Description
                               This is the default setting (no override). If the setting is changed in a parent template,
                               this value will also change.
                               Setting has been overridden. Changes made in a parent template will not cause the
                               this value to change. The value is shown in bold and an X appears next to the value.
                               No override: Setting is visible and is not overridden. If the visibility of this item is
                               changed in a parent template, the visibility of this setting will also change.
                               No override: Setting is hidden and is not overridden. If the visibility of this item is
                               changed in a parent template, the visibility of this setting will also change.
                               Override has been applied: The visibility setting ("visible") is locked in this template. If
                               this item is hidden in a parent template, this setting will remain visible (setting will not
                               change).
                               Override has been applied: The visibility setting ("hidd en") is locked in this template. If
                               the this item is made visible in a parent template, this setting will remain hidden
                               (setting will not change).
                                                                                                                          177
Application Server User Guide                                                     Configure Objects with an Object Wizard
Choice Groups
Add a Choice Group
          To add a Choice Group to an Object Wizard:
          1.   Select the Add Choice Group button.
               When you add a Choice Group, it includes two Choices. To add additional Choices, see Add a
               Choic e to a Choice Group on page 180. Choices within a Choice Group are mutually exclusive; one,
               and only one, Choice can be selected from a Choice Group. Choices are chosen by selecting the
               radio button next to the Choice. For example, an Object Wizard user must choose Choice #1 OR
               Choic e #2 (but not both or neither).
          2.   Change the default name of the Choic e Group. See Change the Prompt for a Choice Group on page
               178 for additional information.
          3.   Set the position of the Choice Group in the Object Wizard as needed. See Change Choice Group
               Order on page 179 for additional information.
          4.   Set the conditional visibility of the Choice Group, if needed. See Conditional Visibility Expressions for
               Choic e Groups, Choices, and Options on page 198 for additional information.
               Note: You cannot restrict the visibility of the Choice Group if it is the first element in the Object
               Wizard.
178
Configure Objects with an Object Wizard                                                 Application Server User Guide
          2.   In the Prompt field, change the name from the default name ("Group #1" ) to a more descriptive
               name. Choice Groups must have unique names. Two Choice Groups cannot have the same name,
               and a Choice Group cannot have the same name as an Option.
          3.   You can add additional detail about the Choice Group in the De scription field. The description is
               displayed as a tooltip in Test mode and when using the Object Wizard to configure an instance.
                                                                                                                 179
Application Server User Guide                                                     Configure Objects with an Object Wizard
               Note: Associated attributes, symbols and scripts are not removed the object. Only the settings that
               were ent ered in the Settings pane are cleared.
Choices
Add a Choice to a Choice Group
          To add additional Choices to a Choice Group:
          1.   Highlight the Choice Group.
          2.   Select the Add Choice button.
          3.   Change the default name of the Choice. See Change the Prompt for a Choice on page 180 for
               additional information.
          4.   Set the position of the Choice Group in the Object Wizard as needed. See Change Choice Group
               Order on page 179 for additional information.
          5.   Set the conditional visibility of the Choice, if needed. See Conditional Visibility Expressions for
               Choic e Groups, Choices, and Options on page 198 for additional information.
               Note: You cannot restrict the visibility of a Choice if its Choice Group is the first element in the Object
               Wizard.
180
Configure Objects with an Object Wizard                                                  Application Server User Guide
          3.   You can add additional detail about the Choice in the De scription field. The description is displayed
               as a tooltip in Test mode and when using the Object Wizard to configure an instanc e.
Note: When you create a Choice Group, the first Choice is selected by default.
                                                                                                                  181
Application Server User Guide                                                  Configure Objects with an Object Wizard
              Select the Choice you want to set as the default. The radio button for the new default will show it as
               selected.
          You can set a different default Choice in a derived template than is in the parent template. The new
          default is marked by an X in the derived template to indicate it is an override.
          Users can switch from the default Choice when they configure objects if the Choice Group is visible,
          based on selections that the user has already made in the Object Wizard. See Conditional Visibility
          Expressions for Choice Groups, Choic es, and Options on page 198 for additional information about
          setting conditional visibility.
Delete a Choice
          To delet e a Choice from its Choice Group:
          1.   Highlight the Choice.
          2.   Select the Remove Choice button. The Choice, along with the settings for any associated attributes,
               symbols, and scripts, is removed immediately (you are not asked to confirm the deletion). There is no
               undo.
               If you remove the default Choice from a Choice Group, the first (top -most) Choice in the Choice
               Group is automatically assigned as the new default. See Set a Default Choice in a Choic e Group on
               page 181 for information about changing the default Choice.
               Note: Associated attributes, symbols and scripts are not removed the object. Only the settings that
               were ent ered in the Settings pane are cleared.
182
Configure Objects with an Object Wizard                                                      Application Server User Guide
Options
Add an Option
          To add an Option to an Object Wizard:
          1.   Select the Add Option button.
               An Option has two states, true or false (selected or unselected). When using the Object Wizard to
               configure an instance, setting an Option to true will implement configuration aspects (attributes,
               symbols, scripts) associated with the Option. If the Option is false, the Option has no effect.
          2.   Change the default name of the Option. See Change the Prompt for an Option on page 183 for
               additional information.
          3.   Set the position of the Option within Wizard as needed. See Change Option Order on page 184 for
               additional information.
          4.   Set the conditional visibility of the Option, if needed. See Conditional Visibility Expressions for
               Choic e Groups, Choices, and Options on page 198 for additional information.
Note: You cannot restrict the visibility of the Option if it is the first element in the Object Wizard.
                                                                                                                         183
Application Server User Guide                                                   Configure Objects with an Object Wizard
          3.   You can add additional det ail about the Option in the De scription field. The description is displayed
               as a tooltip in Test mode and when using the Object Wizard to configure an instanc e.
Delete an Option
          To delet e an Option:
          1.   Highlight the Option.
184
Configure Objects with an Object Wizard                                                  Application Server User Guide
          2.   Select the Remove Option button. The Option, along with the settings for any associated attributes,
               symbols, and scripts, is removed immediately (you are not asked to confirm the deletion). There is no
               undo.
               Note: Associated attributes, symbols and scripts are not removed the object. Only the settings that
               were ent ered in the Settings pane are cleared.
Note: Only user-created attributes can be associated with Object Wizard Choices and Options.
          When you associate content with Choices and Options, the propagation of these items to derived
          instances is determined by:
              User selection of Choices and Options during configuration.
              Trimming on page 208 configuration for attributes and symbols, as they apply to the selected
               Choic es and Options.
          Cont ent is trimmed from a derived instance when the instanc e is saved. Note that all items are
          propagated to derived templates, regardless of configuration and t rimming settings, since unlike
          instances, templates are not run-time objects.
          Both attributes and symbols can have unique settings for each association. The visibility of these
          settings, which determines if the setting can be overridden by a user deriving instances from the
          template, can also be configured.
          For detailed information about Symbol Wizards and custom properties, see " Using Custom Properties"
          and "Working with Symbol Wizards."
          Cont ent can either be added or linked to an object.
                 When you select the Add Content button, a new symbol is created that is owned by the
                 object. Any changes made t o the symbol are only applicable to the owning object. Changes
                 to the symbol in the parent object will cascade to child objects. The Add Content button
                 does not let you create an object-owned external content item.
                 When you select the Link Content button, the Galaxy Browser opens the Graphic Toolbox
                 (GTB). Selecting a symbol or external content object from the Graphic Toolbox creates a
                 link between the object and the content, but the object does not own the content. Changes
                 to the content will cascade to every object with which the item is linked, regardless of the
                 hierarchical relationship of the objects.
          For information on adding scripts to a template, see Writing and Editing Scripts on page 152.
          The settings configured in the Attribute Editor and Graphic Editor provide the default settings for each
          attribute and symbol. You can override the default values in the Settings pane. Note that you can set
          different values for each Choice or Option with which the content is associated.
                                                                                                                   185
Application Server User Guide                                                 Configure Objects with an Object Wizard
          In addition, you can allow the user to override the default values in derived instances. See " About the
          Attributes Page on page 69" and "Add Attributes to an Object on page 115" for information about adding
          and configuring attributes.
186
Configure Objects with an Object Wizard                                                 Application Server User Guide
The Galaxy Browser opens. Select an existing symbol from the Graphic Toolbox.
          2.   In the Details pane, edit the default name of the content as needed. The edited name applies only to
               the object to which it is linked. The name of the content item remains unchanged in the Graphic
               Toolbox. You can also add a description .
               Note: If you choose to link to the same content item more than once, it is automatically renamed
               within the object wit h an incremental number appended to the original name. Its name in the Graphic
               Toolbox is not changed, and is displayed in brackets in the following format: OriginalName1
               [OriginalName]. In most cases, linking to the same item more than once is not an efficient use of
               an Object Wizard.
          3.   Optional: To edit the linked content, select the Edit button to open the Graphic Editor (for
               symbols) or the External Content Edi tor (for external content items). Any change you make to the
               symbol or external content item changes the configuration of the content, and the change affects any
               object that links to the symbol/content item.
               Note: Editing protected symbols, such as symbols contained in the Situational Awareness
               Library, is not permitted. If you edit an item in the Graphic Toolbox, the changes will affect every
               object that links to the item.
                                                                                                                 187
Application Server User Guide                                                   Configure Objects with an Object Wizard
               Note: Individual items can be associated with more than one Choice or Option. However, a Choice
               or Option does not have to have any items (attributes, etc.) associated with it. For ex ample, a Choice
               labeled "No" or None" typically would not have any content associated with it.
               Note: A content item (attribute, symbol, etc.) does not have to be associated with an Object Wizard
               Choic e or Option. Unassociated items are simply a part of the object and are propagated to all
               derived objects.
188
Configure Objects with an Object Wizard                                                    Application Server User Guide
          3.   If applicable, highlight an attribute or symbol and enter overrides for the default values. The overrides
               affect only the Choice or Option for which they are ent ered. For example, a symbol can have one
               label for one Choice, and a different label for anot her. The override applies only to the associated
               Choic e or Option. See Attribute and Symbol Overrides on page 211 for additional information.
               Note: You can resize columns in the Settings pane by selecting the column header and moving its
               edges to widen or narrow the column.
          4.   If applicable, override the default trimming setting for eac h associated item.
               o   Trimming is disabled by default for symbols (trimming checkbox is unchecked).
               o   Trimming is enabled by default for attributes (trimming checkbox is checked).
               o   Trimming is enabl ed for scripts and cannot be disabled.
               o   Note that the trimming defaults for symbols and attributes are different. See Trimming on page
                   208 for additional information.
               Note: Removing an association does not remove the content item. The content remains a part of the
               template, and if the content is associated with other Choic es or Options, those associations remain
               intact. However, removing an association may affect the trimming of content within instances (see
               Trimming on page 208 for additional information). If the content is completely unassociated with any
               Object Wizard Choice or Option, it is always included in derived instances.
To completely remove an attribute from a templat e, see Delete Cont ent from an Object on page 191.
                                                                                                                    189
Application Server User Guide                                                     Configure Objects with an Object Wizard
          Note: If you override a Symbol Wizard setting, the only way to make t he setting visible again is to remove
          the override. Attributes and custom properties with overrides can be made visible again by selecting the
          visibility checkbox.
          A configured setting is defined as any change from the default configuration of the attribute or symbol.
          This includes changing a value or visibility. For example, you might change the default Boolean value
          from true to false, or you might change an integer value from 5 to 10, or change engineering units from
          liters to cc. Changing the visibility of an setting also counts as a configured setting.
             The default visibility setting for attribut e values is hidden (Visibility icon is muted (grayed-out) in the
              Settings pane).
             The default visibility setting for Symbol Wizard and custom property values is visible (Visibility icon is
              unmuted in the Settings pane).
             Visibility overrides are indicated by a small X in the upper right quadrant of the visibility icon.
190
Configure Objects with an Object Wizard                                                   Application Server User Guide
          The total number of configured settings for each individual attribute and symbol is displayed in the
          Associations pane (1). The total number of configured settings for ALL attributes and symbols
          associated with an individual Choice or Option is displayed in the Choice s and Options pane (2).
                                                                                                                    191
Application Server User Guide                                               Configure Objects with an Object Wizard
          2.   Select the Delete button. This removes the selected symbol from the object. Use the Delete button
               in the Attribute s pane to delete attributes.
               Note: Added (object-owned) symbols are permanently deleted once the object is saved. Linked
               symbols are removed from the object but remain in the Graphic Toolbox.
192
Configure Objects with an Object Wizard                                                Application Server User Guide
          4.   Assign each shape to the corresponding Choice by dragging the shape name from t he Elements tab
               to the corres ponding Choice in the Layers tab.
                                                                                                                193
Application Server User Guide                                                   Configure Objects with an Object Wizard
o Green Symbol Wizard Choice selected for Green Object Wizard Choice.
               Note: Only the default selection can be marked as visible (you can remove the checkmark to hide
               the default selection). Selections with override are not visible. Us ers cannot modify selections that
               are not visible.
194
Configure Objects with an Object Wizard                                              Application Server User Guide
          10. With the default Option Wizard Choice selected (Red, in this example), you should see somet hing
              like this:
              The Symbol Wizard Choice Group can be changed in the Symbol Settings pane, since we did not
              turn off visibility for the default selection.
          11. With any of the non-default Option Wizard Choices selected, you should see somet hing like this:
                                                                                                              195
Application Server User Guide                                                   Configure Objects with an Object Wizard
               In this case, Symbol Wizard settings cannot be changed because there is a non-default configuration
               of the Symbol Wizard is associated with the Green Object Wizard Choice. When a non -default
               selection is made in the Symbol Wizard, its visibility setting is turned off and disabled.
Note: Most symbols in the Situational Awareness Library are Symbol Wizards.
196
Configure Objects with an Object Wizard                                               Application Server User Guide
               o   In the Settings pane, set the ActuatorType to match the Choice in the Choices and Options
                   pane. Since both ElectroHydraulic and Manual are overrides, visibility of these settings
                   automatically changes to hidden.
          4.   Switch to Test mode and check each of the Choices in the Choice s and Options pane.
               o   ActuatorType under Symbol Settings should be grayed -out to indicate it is hidden
               o   The symbol setting should match what you have selected in the Choice s and Options pane.
                                                                                                               197
Application Server User Guide                                                    Configure Objects with an Object Wizard
          Note: You cannot add a visibility expression to the first listed item (Choice Group or Option) in an Object
          Wizard; the first item is always visible.
          When a user uses the Object Wizard to configure an instanc e, the default behavior of any elements
          hidden by visibility expressions remains in effect. For example, if Choice #1 is the default of a Choice
          Group, and the Choice Group is hidden, Choice #1 is still selected for the configured instance, even
          though it is not visible to the user. If the default state of an Option is True but the Option is hidden, the
          Option remains True for the configured instanc e.
          Visibility is set through logic expressions assigned to Choices and Options. These logic expressions use
          the Boolean operators AND, OR, and NOT.
          In derived templates that contain an Object Wizard from the parent object, icons are used to implement
          visibility settings that are in addition to the settings made in the parent object. Note that the visibility
          settings made in the parent Object cannot be changed in the derived template. See Object Wizard
          Visibility Settings in a Derived Template on page 202 for additional information.
198
Configure Objects with an Object Wizard                                                     Application Server User Guide
               Note: Choices are listed in format "Choice Group Name:: Choice Name", for example, Choice
               Group #1::Choice #1. Options are listed in the format "Option::State", for example Option
               #1::True.
               Note: While you can simply select an item for a simple visibility expression without typing an open
               bracket, we recommend that you always type the open bracket as a matter of habit. As you begin
               building more complex visibility expressions, you risk deleting the expression if you select an item
               from the drop-down without first typing an open bracket.
          3.   Select the item from the drop-down list that will be used to control the visibility of the selected item.
               For example, you can make Option #2 visible only if Choice #1 of Choice Group #1 has been
               selected (Group #1::Choice #1), and/or if Option #1 is set to True (Option #1:: True).
               Note: When a user configures an instance, the default behavior of elements remains in effect, even
               if they are hidden from the user. The default Choice of a hidden Choice Group is still selected, and
               hidden Options remain in their default states.
               For additional information, seeOperators, Rules, and Behavior for Visibility Expressions on page
               201.
                                                                                                                     199
Application Server User Guide                                                     Configure Objects with an Object Wizard
               Note: Always type an open bracket before selecting an item from the drop-down list. Simply
               selecting an item wit hout first typing an open bracket will overwrite the existing expression.
               Note: Choices are listed in format "Choice Group Name:: Choice Name", for example, Choice
               Group #1::Choice #1. Options are listed in the format "Option::State", for example Option
               #1::True.
          3.   Select the item upon which you are basing the visibility of the selected item. It will be entered in the
               visibility expression. To expand the expression:
               o   Place the cursor at the front of the expression (before the open bracket) and enter the NOT
                   operator, or
               o   Place the cursor at the end of the expression (after the close bracket) and enter the AND or OR
                   operator.
          4.   Type " [ " (open bracket character) and select another item from the drop -down. All Object Wizard
               items must be enclosed in brackets. Enclose items and operators in parentheses as needed to
               ensure that the expression resolves as intended.
          5.   Add additional operators, parentheses, and Object Wizard items as needed to complete the visibility
               expression. For example:
200
Configure Objects with an Object Wizard                                                       Application Server User Guide
              Note: When a user configures an instance, the default behavior of elements remains in effect, even
              if they are hidden from the user. The default Choice of a hidden Choice Group is still selected, and
              hidden Options remain in their default states.
For additional information, see Operators, Rules, and Behavior for Visibility Expressions on page 201.
                                                                                                                         201
Application Server User Guide                                                     Configure Objects with an Object Wizard
             The visibility expression editor validat es the logical expression as you enter it, but does not check if
              the expression is possible. For example, the expression "[Valve Type::3 -Way] AND [Valve
              Type::4-Way]" would not be flagged since it is logically correct, even though the condition is
              impossible (you cannot select more than one Choice from a single Choice Group).
             If you change a default selection, the setting override indicator          appears next to the changed
              setting.
          See Object Wizard User Interface Details on page 175 for more information about visibility icons and the
          setting override indicator. For additional information about derivation and visibility, see Object Wizard
          Derivation on page 218.
          The visibility expressions that were configured in the parent Object Wizard remain in effect. You can,
          however, hide Choice Groups, Choices, and Options. Instead of using Boolean expressions to set the
          visibility of Groups, Choices, and Options, use the visibility icon . When changing the visibility settings
          of a derived Object Wizard:
             The behavior of a hidden Choice or Option does not change when configuring an instance from the
              derived Object Wizard. The default state of a hidden Option remains in effect when the instanc e is
              configured. If the Option's default state is True, any attributes, symbols, or scripts associated with it
              are aut omatically configured for the instance. Similarly, the default Choice in a hidden Choice Group
              is automatically selected, along with its associated attributes, symbols and scripts.
             You cannot hide (turn off the visibility of) a default Choice. You can, however, hide the entire Choice
              Group.
             If every Choice except the default is hidden, the entire Choice Group is hidden.
202
Configure Objects with an Object Wizard                                                  Application Server User Guide
              If you change a default choice, the entire Choic e Group is automatically hidden. You can turn
               visibility on again for the Choice Group. Once the Choice Group has been made visible, you can hide
               individual Choices.
[Option #1::True]
                                                                                                                  203
Application Server User Guide                                                 Configure Objects with an Object Wizard
204
Configure Objects with an Object Wizard                                                  Application Server User Guide
          1.   Select Option #1 and type [ (open bracket) in the Visibility text box.
          2.   Select Group #1::Choice #1 from the drop-down list.
          3.   Place the cursor in the text box after ] (close bracket) and type OR.
          4.   Type [ and select Group #1::Choice #3 from the drop -down list. The Visibility text box should contain:
                                                                                                                   205
Application Server User Guide                                                   Configure Objects with an Object Wizard
206
Configure Objects with an Object Wizard                          Application Server User Guide
                                                                                          207
Application Server User Guide                                                Configure Objects with an Object Wizard
Trimming
          Trimming refers to the ability of the Object Wizard to remove unneeded attributes, symbols, and scripts
          from derived instanc es. By removing unneeded items, the size of instances an be minimized, thus
          allowing more efficient utilization of run -time system resources. This can also result in faster
          deployments.
             When you associate an attribut e with a Choice or Option, the Trim checkbox (1) is checked by
              default. This means that trimming is enabled, and the attribut e will be evaluated for trimming.
208
Configure Objects with an Object Wizard                                                  Application Server User Guide
              When you associate a symbol with a Choice or Option, the Trim checkbox is unchecked by default.
               This means that trimming is DISabled, and the symbol will NOT be evaluated for trimming.
              When you associate a script with a Choice or Option, the Trim checkbox is checked. Trimming
               cannot be disabled for scripts.
          Note:Symbols do not exist as run-time objects, but do exist as part of a ViewApp. Trimming unnec essary
          symbols can help to reduce system resource requirements.
          The total number of trimmable items (attributes, symbols, and scripts) associated with each Object
          Wizard Choice and Option is displayed in the Choice s and Options pane (2). Items that are not enabled
          for trimming are not included in this count. The default trim state of associated symbols is disabled.
Enable Trimming
          Whether or not an attribute or symbol associated with a Choice or Option will be evaluated for trimming is
          determined by the state of its trimming checkbox in the Associations pane. See Object Wizard User
          Interface Details on page 175 for additional information.
          To enable trimming:
          1.   Select the Trim checkbox in the Associations pane.
               o   When checked, trimming is enabled.
               o   When unchecked, trimming is disabled.
          2.   Symbols and attributes are evaluated for trimming when an instance is derived, in accordance wit h
               the following behaviors (scripts are always evaluated for trimming):
               o   If none of its associations have trimming enabled, the item is not evaluated for trimm ing and is
                   always propagat ed to derived instances.
                                                                                                                  209
Application Server User Guide                                                 Configure Objects with an Object Wizard
               o   The item is propagated to the instance if any Choice or Option where trimming is enabled is
                   selected.
               o   The item is trimmed if at least one of its associations has trimming enabled, and none of the
                   associations with trimming enabled are selected (even if associations with trimming disabled
                   have been selected).
               o   Trimming occurs only when the instance is saved.
Note: Trimming is not applicable to derived templates, since these are not run-time objects.
210
Configure Objects with an Object Wizard                                                Application Server User Guide
9. Select Choice #2. Note that Attribute001 now appears in the Attribute s pane.
10. Enable Option #1. Note that S1 now appears in the Symbol s pane.
                                                                                                                211
Application Server User Guide                                                      Configure Objects with an Object Wizard
          Attribute Overrides
          For attributes, you can override default settings and set visibility for:
             Attribute description
             Data type
             Initial value
             Engineering units (if applicable)
             Activate/ deactivate features, such as I/O and alarms
             Feature values
          Attribute Setting Visibility
          When you associate an attribut e with an Object Wizard Choice or Option, its settings are hidden by
          default. You can make settings visible by selecting the checkbox next to the setting. You can also make
          overrides visible.
          Symbol Overrides
          For symbols, you can override default settings and set visibility for:
             Symbol Wizard Choices and Options
             Custom properties
          Symbol Setting Visibility
          When you associate a symbol with an Object Wizard Choice or Option, Symbol Wizard and custom
          property settings (if any) are vi sible by default. If you override a symbol custom property or Symbol
          Wizard setting, its visibility automatically turns off (the setting is hidden). You can make an overridden
          custom property setting visible again by selecting the checkbox next to the setting.
          Note: If you override a Symbol Wizard setting, the only way to mak e the setting visible again is to remove
          the override.
          Custom properties can be Boolean, integer, float, string, etc. See Object Wizard User Interfac e Details
          on page 175 for additional information. For detailed information about custom property data types, see
          "Using Custom Properties" in the Creating and Managing A rchestrA Graphics User Guide. When
          configuring string, time, and elapsed time custom properties, a toggle is provided in the Settings pane to
          configure the custom property as either:
               Reference string or an expression. Reference strings will be evaluated to determine their meanings.
          For example, Me.Tank1.InletValve.PV
212
Configure Objects with an Object Wizard                                                    Application Server User Guide
To change the string type, select the icon next to the text field.
Enter Overrides and Set Visibililty for Attribute and Symbol Values
          For bot h attributes and symbols that contain a wizard or custom properties, you c an enter overrides that
          apply only to the associated Object Wizard Choice or Option. While the following procedure shows how
          to configure a symbol, the procedure for configuring attributes is virt ually identical. See also About
          Attribute and Symbol Overrides on page 190.
          To configure a Overrides for a Choice or Option
          1.   Select the Choice or Option you want to configure (Choice s and Options pane).
          2.   Select a symbol or attribute (Associations pane) associated with the Choice or Option. See Add
               Attributes, Symbols and Scripts to an Object Wizard for information about associating symbols with
               Object Wizards.
               This does not apply to scripts since they can only be associated with a Choice or Option. Th ere are
               no configuration or visibility settings that can be configured.
          3.   In the Settings pane, override t he default values as needed. Overrides are shown in bold and by an
               X next to the new value. See
               o   You can resize columns in the Settings pane as needed by selecting and moving the boundary
                   between column headers.
               o   Symbol Wizard and Custom Property settings are visible by default. Overrides are aut omatically
                   hidden from users.
                   –   You can only restore the visibility of a Symbol Wizard setting with an override by removing
                       the override.
                       Note: This behavior is unique t o Symbol Wizard overrides. You can change visibility settings
                       for both Custom Property overrides and attribute overrides.
                   –   You can restore the visibility of an Custom Property with an override by selecting the
                       Visibility icon until it is unmuted. The icon will have a small X in its upper right quadrant to
                       indicate that Visibility has been overridden.
               o   Switching a Custom Property string type between expression/reference and static text is an
                   override (value is displayed with bold type with an X next to the value and in the Visibility
                   setting).
                                                                                                                     213
Application Server User Guide                                                     Configure Objects with an Object Wizard
              o    Attribute settings are hidden by default. You can override the Visibility settings for attributes that
                   use their default setting, as well as for attributes that have an override.
              Note: Attribute, Symbol Wizard, and Custom Property values that are marked as visible can be
              overridden by users as they configure instances.
              Note: The total number of configured settings (visibility settings and value settings ) is shown in the
              Associations pane, and is reflected in the Choice s and Options pane. See About Attribute and
              Symbol Overrides on page 190 for additional information.
          Note: If you override a Symbol Wizard setting, the only way to make t he setting visible again is to remove
          the override. Attributes and custom properties with overrides can be made visible again by selecting the
          visibility checkbox.
214
Configure Objects with an Object Wizard                                                     Application Server User Guide
          A configured setting is defined as any change from the default configuration of the attribute or symbol.
          This includes changing a value or visibility. For example, you might change the default Boolean value
          from true to false, or you might change an integer value from 5 to 10, or change engineering units from
          liters to cc. Changing the visibility of an setting also counts as a configured setting.
             The default visibility setting for attribut e values is hidden (Visibility icon is muted (grayed-out) in the
              Settings pane).
             The default visibility setting for Symbol Wizard and custom property values is visible (Visibility icon is
              unmuted in the Settings pane).
             Visibility overrides are indicated by a small X in the upper right quadrant of the visibility icon.
          The total number of configured settings for each individual attribute and symbol is displayed in the
          Associations pane (1). The total number of configured settings for ALL attributes and symbols
          associated with an individual Choice or Option is displayed in the Choice s and Options pane (2).
          Note: Icons for attribute and symbol settings are defined in Object Wizard User Interface Details on page
          175.
          To override default values, enter the new values in the Settings pane (1). If the attribut e or symbol is
          associated with multiple Choices or Options, different overrides can be used for eac h one. These
          configured (override) values are saved when you save the template.
                                                                                                                       215
Application Server User Guide                                                        Configure Objects with an Object Wizard
          An override is defined as any change from the default symbol configuration. For example, you might
          change the default Choice of a Symbol Wizard, or change a custom property or attribute value. Changing
          the visibility of a setting is also considered an over ride. By default, symbol settings are visible in derived
          objects, while attribute settings are hidden by default.
          If the setting is marked as visible, users can enter overrides when they use the Create New Asse t editor
          to configure a new instance. If the setting is hidden, it is not exposed to users and therefore the default
          value cannot be overridden.
          Symbol Wizard overrides are automatically hidden and cannot be changed back to visible, except by
          restoring the original setting. The names of configured settings are displayed in bold type, and have an
          "X" next to the setting. To restore the original setting, clear the X.
          Configured visibility settings have a small x in the upper right quadrant of the visibility icon. To restore the
          original, click on the icon twice to clear the override. If the original visibility state was visible, the icon will
          cycle through override - hidden, override - visible, and then return to its original state of visible (no
          override).
          Custom property and attribute overrides are also hidden automatically. However, you can override the
          visibility setting for a setting that has an override value and make it visible again.
          The total number of configured settings for each individual attribute and symbol is displayed in the
          Associations pane (2). The total number of overrides for ALL attributes and symbols associated with a
          Choic e or Option is displayed in the Choi ces and Options pane (3).
216
Configure Objects with an Object Wizard                                                   Application Server User Guide
          A template with an Object Wizard may contain more scripts than any single instance deri ved from it. As
          each instance is configured through the Object Wizard, unused scripts are automatically evaluated for
          trimming from the instance. When you save the instance, unused scripts are discarded.
          Overrides do not apply to scripts since scripts do not contain configurable settings. If you need a script to
          behave differently for different Choices or Options, create a separate script for each behavior. Scripts
          that are not associated with selected Choices and Options are trimmed from the deployed objec t.
          Note: Scripts that are not associated with any Choices or Options are always propagated to derived
          instances.
               When you associate a script with an Object Wizard Choic e or Option, trimming is automatically
               enabled, and cannot be disabled.
                                                                                                                   217
Application Server User Guide                                                   Configure Objects with an Object Wizard
218
Configure Objects with an Object Wizard                                                     Application Server User Guide
You will notice that the child template looks different than the parent templat e.
See Object Wizard Visibility Settings in a Derived Template on page 202 for additional information.
               Note: The system applies the default values and actions of hidden Options and Choice Groups when
               a user derives an instance from the template. Visibility does not change configuration, it only affects
               aspects of the wizard that are visible to the user.
          2.   Change the default Choice in a Choice Group. This hides the Choice Group.
               You can select the visibility icon to make the Choice Group visible again. You can t hen s et visibility of
               the Choices individually.
          3.   Change the default state of an Option. This hides the Option.
                                                                                                                       219
Application Server User Guide                                                     Configure Objects with an Object Wizard
You can select the visibility icon to make the Option visible again.
220
Configure Objects with an Object Wizard                                                    Application Server User Guide
 You cannot change attribute, symbol, or script associations with any existing Choices or Options.
          When a Choice or Option is changed from the default, the change is indicated by by an X next the
          modified Choice or Option. To revert to the default, select the X.
          Similarly, when a visible setting for an associated attribut e or symbol has been changed from the default,
          the change is indicated by an X next to the modified setting. To revert to the default, select the X.
                                                                                                                    221
Application Server User Guide                                                     Configure Objects with an Object Wizard
              Note: E ven if a value is overridden in t he parent object, the value will appear as a default value in the
              child object. This is because the override from the parent becomes the default for the child.
222
Configure Objects with an Object Wizard                                               Application Server User Guide
          Visibility expressions determine which Choice Groups, Choices, and Options are visible or hidden (along
          with associated symbols, attributes, settings, and configured overrides), bas ed on previous selections.
                                                                                                               223
Application Server User Guide                                                      Configure Objects with an Object Wizard
          2.   Select the Test mode button. The background color of the Choi ces and Options and Settings
               panes darkens, and the Associations pane is no longer shown. Choice Groups and Options are
               displayed, based on their visibility settings.
          3.   Check that the Choice Groups and Options that you expect to be visible are shown.
               o   Regardless of the construction of the Object Wizard, the first item (Choice Group or Option) in
                   the Object Wizard is always visible.
               o   Choic e Groups are displayed as drop down lists, with only the default Choice visibl e.
          4.   Check that the expected default Choice for each visible Choice Group is shown.
          5.   Check that the default state (checked or unchecked) of each visible Option is correct.
          6.   Cycle through different Choice and Option selections, and verify that subsequent dependent items
               are hidden or shown as designed.
          7.   Verify that the settings for associated attributes and symbols are shown in the Settings pane, and
               that settings that should be visible are marked as visible. Verify that settings with visibility turned off
               are marked as hidden.
224
Configure Objects with an Object Wizard                                                  Application Server User Guide
                                                                                                                   225
Application Server User Guide                                                    Configure Objects with an Object Wizard
               o   Change the Wizard Mode to Advanced. This displays the DEVIA TION ALARMS option
                   (unchecked). Note that the associated DeviationAlarms attribute is not shown.
226
Configure Objects with an Object Wizard                                                   Application Server User Guide
               o   To display the DeviationAlarm attribute, set the DEVIA TION ALA RMS option to TRUE
                   (checked). Continue setting the remaining Deviation Alarm options to TRUE. Note that as each
                   Option is selected, its corresponding attribute is displayed.
          Note: When configuring an instanc e from an Object Wizard, unused attributes that have trimming
          enabled are not propagat ed to the instance. Only attributes that are not associated with the Object
          Wizard, and attributes with trimming enabled that evaluate as required, are present in the instance after
          the instance is saved. Trimming does not occur until after an object is saved. Any configured overrides
          for trimmable attributes remain in memory until the us er saves the instance.
                                                                                                                   227
Application Server User Guide                                                  Configure Objects with an Object Wizard
               Make sure that the Trimming checkbox (3) is selected in the Associations pane; the default state
               for symbols is unselected. See Trimming on page 208 for additional information.
228
Configure Objects with an Object Wizard                                                     Application Server User Guide
          4.   Create two more symbols: Symbol001 and Symbol002. We will leave these symbols unassociated
               with any particular Choice or Option. Since they are not a part of the Object Wizard, these symbols
               will be included in all objects that are derived from our Object Wizard. It does not matter if t rimming is
               enabled for these, since without any Object Wizard association, they are considered to be owned by
               the object.
                                                                                                                      229
Application Server User Guide                                                  Configure Objects with an Object Wizard
              o    With the default Object Wizard selections made (in this case, 2-Way Valve), the 2WayValve
                   symbol associated with this choice is shown, along wit h the t wo symbols not associated with any
                   Wizard Choices or Options (Symbol001 and Symbol002). These can be seen in the Symbol s
                   pane. Note the message at the bottom of the Symbol s pane that states "3 of 5 displayed." This
                   is because the 2WayValve and 3WayValve symbols are hidden.
230
Configure Objects with an Object Wizard                                           Application Server User Guide
              o    Change the Valve Type to 3-Way. This displays the 3WayValve symbol and hides the
                   2WayValve and 4WayValve symbols.
                                                                                                           231
Application Server User Guide                                                    Configure Objects with an Object Wizard
              o    Change the Valve Type to 4-Way. This displays the 4WayValve symbol and hides the
                   2WayValve and 3WayValve symbols.
          Note: When configuring an instanc e from an Object Wizard, unused attributes that have trimming
          enabled are not propagat ed to the instance. Only attributes not associated with the Object W izard, and
          attributes with trimming enabled that evaluate as required, are present in the instance after the instance
          is saved. Trimming does not occur until after an object is saved, and any overrides a user enters for a
          trimmable attribute remain in memory until the us er saves the object.
          Important: With the exception of the first two items in the above list, changes DO NOT propagate to
          derived templat es if the setting is marked as overridden in the derived template.
232
Configure Objects with an Object Wizard                                                 Application Server User Guide
             Associate attributes, symbols, and scripts with existing Choices and Options.
             Enter overrides for attribute and symbol settings.
             Change the default setting for Choice Groups.
              Note: When you change an inherited default Choice, the entire Choice Group is automatically
              hidden. However, you can turn visibility back on for the Choice Group. After that, you can selectively
              hide Choices wit hin the Choice Group, if necessary.
              Note: When you change an Option's default state, the Option is automatically hidden. However, you
              can turn visibility back on.
                                                                                                                 233
Application Server User Guide                                               Configure Objects with an Object Wizard
          2.   Rename the Choice Group by entering the new name in the Prompt textbox.
          3.   You can change the relative position of the new Choice Group as needed by using the Move Up and
               Move Down buttons.
          4.   Select the Add Choice Group button to add additional Choic es, if needed. Choice Groups include
               two Choices by default.
               Choic es within a Choice Group are mutually exclusive; one, and only one, Choice can be selected
               from a Choice Group. Choices are chosen by selecting the radio button next to the Choice. For
               example, an Object Wizard user must choose Choice #1 OR Choice #2 (but not both or none).
          5.   Rename the Choice by entering the new name in the Prompt textbox.
Note: You cannot add Choices to an existing Choice Group in a derived template.
234
Configure Objects with an Object Wizard                                                 Application Server User Guide
2. Rename the Option by entering the new name in the Prompt textbox.
5. Add and configure additional items and associate them with the Object Wizard, as needed.
               Note: A Choice or Option does not have to have any associations. An individual attribute, symbol, or
               script can be associated with more than one Choice or Option. Symbol and attribute override s ettings
               can override the default values of an attribute; the overrides affect only the Choice or Option for
               which they are entered. For example, an attribute can have a value of 5 for one Choice, and a value
               of 10 for another.
                                                                                                                 235
Application Server User Guide                                                   Configure Objects with an Object Wizard
236
Configure Objects with an Object Wizard                                                    Application Server User Guide
               No additional configuration is needed for scripts. If you need the script to modify a script for anot her
               Choic e or Option, creat e a copy of the script and change it.
          5.   Add additional scripts and associate them with the Object Wizard, or associate the same script with
               other Choices or Options.
                                                                                                                     237
Application Server User Guide                                                Configure Objects with an Object Wizard
          4.   If the symbol contains a Symbol Wizard or custom properties, modify the settings as needed for the
               Choic e or Option wit h which it is associated.
          5.   Add additional symbols and associate them with the Object Wizard, or associate the symbol with
               other Choices or Options.
          6.   If applicable, configure Symbol Wizard and custom property values for each symbol association in
               the Settings pane.
               Note: A Choice or Option does not have to have a symbol associated with it. A symbol can be
               associated with more than one Choice or Option. You can override the default Symbol Wizard and
               custom property values; the overrides affect only the Choice or Option for which they are entered.
238
Configure Objects with an Object Wizard                                                     Application Server User Guide
                  The Galaxy Browser opens. Select a symbol or Symbol Wizard from the Graphic Toolbox and
                   select OK.
          2.   The symbol is added to the object. The icon (2) next to the symbol name indicates the symbol is
               linked to the object.
          3.   Highlight a Choice or Option in the Choice s and Options pane (3).
          4.   Drag the symbol from the Symbol s pane to the Associations pane (4).
          5.   If the symbol is a Symbol Wizard, modify the settings (5) as needed for the Choice or Option with
               which it is associated.
          6.   Turn visibility of the Symbol Wizard settings (6) on or off, as needed. If the settings are visible, users
               can override your configuration settings.
          7.   In the Details pane (7), edit the default name of the symbol as needed. You can also add a
               description (optional).
               Note: A Choice or Option does not have to have a symbol associated with it. A symbol can be
               associated with more than one Choice or Option. You can override the default values of a Symbol
               Wizard; the overrides affect only the Choice or Option for w hich they are entered.
                                                                                                                     239
Application Server User Guide                                                  Configure Objects with an Object Wizard
          2.   Rename the graphic in the Details pane of the Object Editor. You can also add a description of the
               symbol (optional).
          3.   Select the Edit symbol button. The Graphic Editor will open in a new window.
          4.   Select the Graphic Editor window and creat e the symbol to be added to the template.
          5.   Save the symbol and close the Graphic Editor.
          6.   To associate the symbol with an Object W izard Choic e or Option, see Associate Content with a
               Choic e or Option on page 187.
240
Configure Objects with an Object Wizard                                        Application Server User Guide
                                                                                                        241
Application Server User Guide                                                Configure Objects with an Object Wizard
          3.   Select the Graphic Toolbox symbol from the navigation pane that you want to link to the template.
          4.   Rename the graphic in the Details pane of the Object Editor. This name applies only to the current
               object. You can also add a description of the symbol (optional).
          5.   Select the Edit symbol button. The Graphic Editor will open in a new window.
          6.   Select the Graphic Editor window and edit the symbol as needed.
          7.   Save the symbol and close the Graphic Editor. When you save the GTB symbol, changes will be
               reflected in every object to which the symbol is linked, including child objects.
          8.   To associate the symbol with an Object Wizard Choic e or Option, see Associate Content with a
               Choic e or Option on page 187.
Configure Instances
          You can use the IDE to configure instances from a template with an Object Wizard, or you can
          graphically creat e instances using an editor that is started from the Graphic Editor. If you are using
          InTouch OMI for your run-time environment, you can also access the editor through the ViewApp Editor
          or Layout Editor. See the InTouch OMI online help for more information about these editors.
              From the IDE, the Object Wizard presents a series of prompts or questions, from which you select an
               answer to build a representation of a piece of field equipment, such as a pump, valve, PLC, etc.
              If you are using the Graphic Editor or one of the InTouch OMI editors, select a symbol from the
               Toolbox tab and drag it onto an overview symbol. See Create a New Instanc e with the Configure
               New Asset Editor on page 246 for more information.
Configure an Instance
          To configure an instance using an Object Wizard in the IDE:
242
Configure Objects with an Object Wizard                                                  Application Server User Guide
                                                                                                                  243
Application Server User Guide                                                  Configure Objects with an Object Wizard
2. Open the symbol by selecting the Edit button, or by double clicking on the symbol.
244
Configure Objects with an Object Wizard                                               Application Server User Guide
          See the Application Server User Guide, "Creating and Work ing with Content on page 157," for additional
          information about working with symbols.
                                                                                                               245
Application Server User Guide                                                   Configure Objects with an Object Wizard
          Settings can be different types, including Boolean, integer, string, etc. Settings can be used to turn on or
          off a feature for the object, such as I/O, Historization, or Alarms. Changing one setting can cause other
          settings to be shown or hidden.
          The Configure New Asset editor lets you quickly and easily add and configure new instances (assets)
          and symbols from any template that contains an Object Wizard and at least one graphic. The editor also
          lets you configure symbol wizard and custom property settings, if applicable to the symbol you select.
          With this editor, you do not need to use the Arche strA IDE to configure object properties, or spend a lot
          of time configuring symbol properties in the Graphic Editor.
          To start the Configure New Asset editor:
246
Configure Objects with an Object Wizard                                                 Application Server User Guide
1. Select a new or existing symbol in the Graphic Toolbox. The Graphic Editor opens.
2. If necessary, use the arrow keys until the Templates tab is shown, then select it.
3. Navigate to the template you want to use. The template you select must contain at least one symbol.
                                                                                                                 247
Application Server User Guide                                                 Configure Objects with an Object Wizard
4. Select the symbol you want to use from the template and drag it onto the canvas.
          5.   As soon as you drop the image ont o the canvas, the Configure New Asse t editor opens to the
               Select Object Options page.
248
Configure Objects with an Object Wizard                                                   Application Server User Guide
               o   Configure the properties listed under Refine (right column), then click Next.
               Object options determine which graphic options can be used. Only the applicable symbol (or
               symbols) will be available. For example, if an object includes options that allow it to be configured as
               a pump or as a conveyor belt, you will not be able to add a pump graphic if you have selected a
               conveyor belt asset on the Object Options page.
               See About Object Options on page 250 for additional information.
          6.   The Select Select Graphic Options page options. If more than one symbol is displayed, select the
               one you want to use, then configure its graphic options. Click Finish when you are done.
               Graphics options are symbol wizard options. Select the symbol wizard options applicable to the
               asset you are adding to the overview symbol. Once you select the graphic options, you can configure
               any applicable custom properties.
          7.   After you click Finish, the Configure New Asset editor closes. Adjust the size and position of the
               symbol on the Graphic Editor canvas as needed. Add additional symbols and graphics as needed.
          8.   When you have finis hed adding symbols and other edits, select Save and Close to exit from the
               Graphic Editor.
                                                                                                                    249
Application Server User Guide                                                   Configure Objects with an Object Wizard
250
Configure Objects with an Object Wizard                                                 Application Server User Guide
          The Available Graphics column displays the symbol or symbols that are associated with the object as
          configured on the Select Object Options page. If more t han one symbol is displayed, select the one you
          want to use. Only one graphic can be selected for eac h asset you configure.
          The Graphic Options column cont ains symbol wizard configuration selections that apply to the symbol.
          Typically, these are used to control things like orientation of the symbol, whether or not it has a visible
          label, to add alarm borders, etc.
          The Custom Propertie s column contains additional refinements to set parameters for the symbol. This
          includes items like alarm limits and priority levels.
                                                                                                                 251
Application Server User Guide                                                Configure Objects with an Object Wizard
          2.   Navigate to the asset you want to add to the open symbol., and drag it onto the canvas.
          3.   Adjust the size and position of the symbol on the Graphic Editor canvas as needed. Add additional
               symbols and graphics as needed.
          4.   When you have finis hed adding symbols and other edits, select Save and Close to exit from the
               Graphic Editor.
          Note: InTouch HMI does not support adding a symbol derived from a symbol wizard linked to an object
          wizard directly onto an InTouch window. The symbol must be contained in an overview symbol.
252
                                                                                                              Application Server User Guide
                                                                                            C HAPTER 7
Deploying and Running an Application
    You can deploy and test your objects at any time during development. When you are ready to test or run
    the application in production, you deploy the Galaxy.
    You can see what your application looks like in the Deployment view or t he Model view. B oth views show
    you the structure of your application. For more information, see IDE Application Views on page 27.
    A simulation server, derived from the $OPCClient Device Integration system object, is included with
    Galaxies created from the Default.cab file. The simulator can be imported to or created for other
    Galaxies. Use the simulator to test a Galaxy prior to deployment.
    When you create a Galaxy from the Default.cab file, the Gal axy's assets are automatically assigned to
    the simulator's Fast scan group. When you have completed testing and created new Device Integration
    objects, move the assets from the simulator to scan groups within the new DI objects.
    In This Chapter
    Deployment Overview ................................................................................................................. 253
    Object, Area, Engine, and Platform Assignments .......................................................................... 255
    Data Integration Objects.............................................................................................................. 257
    Auto-Build .................................................................................................................................. 257
    Determining Galaxy Status .......................................................................................................... 258
    Configuring Advanced Communication Management .................................................................... 258
    Simulation Server ....................................................................................................................... 262
    Deploying Objects....................................................................................................................... 267
    Redeploying Objects ................................................................................................................... 270
    Undeploying Objects ................................................................................................................... 272
    Uploading Run-time Configuration ............................................................................................... 273
    Associating All Galaxy Graphics with an InTouchViewApp............................................................. 274
Deployment Overview
    The deployment process copies a Project's assets from the development environment to the run -time
    environment. Once they are deployed, your assets are "live" and functional.
    Configuration changes do not appear in the run-time environment until the changes are deployed.
    You must have the appropriate level of permissions to deploy assets.
    To view your permissions
    1.   Select the Galaxy menu from the ArchestrA IDE toolbar.
    2.   Select Configure > Security.
                                                                                                                                                253
Application Server User Guide                                                 Deploying and Running an Application
3. Go the Roles page. Deployment permissions are listed under General permissions.
254
Deploying and Running an Application                                                 Application Server User Guide
                                         Minimum         2 GB                    682 MB
              Sm all
              (1 - 25K I/O per Node)
                                         Recommended     4 GB                    1365 MB
                                         Minimum         8 GB                    2730 MB
              Medium
              (25k - 50k I/O per Node)
                                         Recommended     12 GB                   4096 MB
                                         Minimum         16 GB                   5461 MB
              Large
              (> 50k I/O per Node)       Recommended     24 GB                   8192 MB
                                                                                                              255
Application Server User Guide                                                      Deploying and Running an Application
          The Deployment view uses the WinPlatform as its foundation, and all objects cascade from the
          WinPlatform object. The WinPlatform object can be thought of as the node (computer) that hosts the rest
          of the objects. The basic hierarchy of objects in the Deployment view is:
              Galaxy >    WinPlatform >     AppEngine >      Area >    Application Object
                                                                       DI Object
          Data Integration (DI) Objects provide the interface between application objects and PLCs in the physical
          environment. DI Objects contain scan groups, and application objects are assigned to scan groups; this
          assignment can be done in the IO Device s view.
          The relations hip of other objects in the Galaxy to DI Objects is most clearly viewed in the IO Device s
          view. All IO bet ween objects in the Galaxy and the PLC is through a DI Object. Scan groups are
          configured in the DI Object, and objects are assigned to a scan group.
              Galaxy >    DI Object >     Scan Group >       AppEngines
                                                             Areas
                                                             Application Objects
256
Deploying and Running an Application                                                     Application Server User Guide
          While objects can be deploy ed from any IDE view, the Deployment view provides the simplest way to
          understand the object hierarchy during deployment. The IO Device s view provides the simplest view of
          the relationship of each scan group and its assigned objects.
Auto-Build
          Refer to Using Auto-Build in the Wonderware OI Core Communications Driver Help for information
          about the Auto-B uild process. Key points to remember include:
             Specify a new Galaxy as the target Galaxy until you are familiar with how Auto-Build works. This will
              help to avoid accidentally overwriting objects.
             Always specify a prefix. This will also help you avoid overwriting object s and lets you differentiate
              between similarly-named controllers.
             Use pre-check validation to catch illegal object names, such as names that exceed the maximum
              number of characters and that contain illegal characters. Note that Auto -Build skips names wit h
              errors .
                                                                                                                   257
Application Server User Guide                                                   Deploying and Running an Application
               The Galaxy Status dialog box shows the counts of total instances, total templat es, deployed
               instances with changes, undeployed instances with changes, objects that have an error or warning
               state, objects that are checked out, and object you have checked out.
          3.   Click OK.
258
Deploying and Running an Application                                                       Application Server User Guide
          Note: This dependence on the attribute being referenced by a running application is only the case when
          the attribute subscription is not already active due to configuration for history, alarming, or scripting. For
          example, if an attribute is configured for history, the subscription to the field device will always be active
          regardless of what window is active in InTouch, and regardless of whether InTouch is running at all.
          When the items on the current window are no longer active because the window is minimized, a Suspend
          operation is performed for each item. Suspending scanning caus es data updates to stop flowing to the
          application without deleting the subscriptions for each item. This reduces the overhead of unsubscribing
          and subscribing again to items when windows are minimized and restored.
          In Advanced Communication Management, applications monitor the number of outstanding references
          to attributes that are updated with values from an external source object. When an attribute’s external
          reference count reaches zero, the application sends a Suspend message to the s ource object requesting
          it to suspend updates. For example, a UserDefined object named PumpRPM has an attribute named
          RPM, which has an integer data type. The input source of RPM is plc1.n7:11, where plc1 is an ABPLC DI
          object.
          When there are no active subscriptions to ud1. RPM, the subscription between input source and
          PumpRPM is suspended. When a client like ObjectViewer or a managed application running in
          WindowViewer subscribes to ud1. RPM, an Activate message is sent to the DI object to start sending
          data bet ween the plc1 object and the PumpRPM object. This enables ObjectViewer or a managed client
          application running in WindowViewer to receive current plc1 dat a.
          Unlike defined static attributes, some scan groups contain dynamic attributes. Dynamic attributes within
          a scan group provide the means for a running application’s objects to dynamically subscribe to data from
          an external device. Dynamic attributes are created, activated and added to the scan group usi ng
          ArchestrA object attributes or InTouch indirect tags and scripts that include the IOS etRemoteReferences
          function.
          When a dynamic attribute is poked, the time stamp is updated to the timestamp passed in with the value
          if available, or the current time provided by the hosting AppEngine is used. If the data provider passes in
          a Value, Time, Quality (VTQ) triplet of data in the callback, the time stamp is associated with the value
          and quality used to update the attribute.
          To enable Advanced Communication Man agement, you must:
             Select Advanced Communication Management for your Galaxy.
             Set the scan mode for each scan group that belongs to your device integration objects within the
              Galaxy.
                                                                                                                    259
Application Server User Guide                                                     Deploying and Running an Application
          Note: Any deployed plat form and application engines must be restarted when the Advanced
          Communication Management state changes. Restarting should be done by means of the SMC.
260
Deploying and Running an Application                                                      Application Server User Guide
              Acti veAll
               o   Scanning is continuous and dynamic attributes are never removed when unsubscribed.
               o   Items are activated by client requests, but continue to exist even after the client are not
                   interested in them anymore.
               o   Items are not removed when the scan mode changes.
               o   The scan group polls the field devic e for all points irrespective of whether they are currently
                   active, inactive, or even subscribed to by items.
              Acti veOnDemand
               o   When the scan mode is configured as ActiveOnDemand, attributes that are not actively being
                   referenced by any client or object are made Inactive and are not scanned.
               o   New Items are deleted and added to the scan group as requested (referenced) by clients.
               o   Items that exist when a scan mode change occurs are not deleted unless the previous mode was
                   ActiveAll and the items are no longer referenced.
               o   ActiveOnDemand scan mode polls the field device for currently active items only. Inactive items
                   are not scanned.
          The following table shows scan mode scan states for dynamic attributes based on whether items are
          referenced or not.
3. If necessary, add a scan group by clicking the plus sign box above the list of available scan groups.
                                                                                                                      261
Application Server User Guide                                                     Deploying and Running an Application
          4.   If necessary, set the length of the scan group update interval in milliseconds. The default updat e
               interval is 500.
          5.   Double-click in the Scan Mode box of the scan group to show a drop -down list of available scan
               modes. ActiveOnDemand is the default scan mode.
          6.   Select a scan mode from the list.
          7.   Save your changes to the devic e integration object and exit from the edit or.
Simulation Server
          System Platform includes a simulated dat a access server that lets you develop and test a Galaxy before
          deploying it to your production environment.
          The simulation server's hierarchy can be viewed in the Operations Integration Server Manager, within
          the System Platform Management Console (SMC). To run the SMC, from the Start menu, point to
          Wonderware Utilities and select System Platform Management Console .
          The simulation server is automatically installed on the Galaxy Repository node for Galaxies derived from
          the Default.cab file, and is always available. It mimics the data output from a PLC. The simulation server
          sends data to attributes of instances configured for I/O Automatic Assignment in your Galaxy, the same
          way that a PLC would.
          The simulation server contains all the system objects needed to create a functional test environment for
          testing I/O references that use I/O Automatic Assignment. However, some manual configuration is
          required before the simulation server can be used. The simulation server includes an Operations
          Integration server and a PLC simulator.
          The simulation server is based on an OPC client device integration (DI) object. You can add it to Galaxies
          that do not contain it by default. If you need to add the simulation server, you will configure it the same
          way as you would an OPC client in a normal production environment. Required configuration steps
          include choosing the server node and server name, and adding scan groups. This process i s described
          in more detail below.
          In its default configuration, the simulation server consists of the following elements:
              A channel for OPC communications between your Galaxy and the simulation server. The
               communications channel has the default name "Port."
262
Deploying and Running an Application                                                     Application Server User Guide
             A PLC simulator to generat e simulated data for your Galaxy. The PLC simulator has the default
              name "PLC."
             A device integration (DI) object that is used to link the PLC simulator to the instances in your Galaxy
              (OI.Sim.1).
                                                                                                                  263
Application Server User Guide                                                    Deploying and Running an Application
          The IO Device name for the simulation server must not be changed from its default name, Simulator.
          You assign application objects (instances) to the simulator server's scan groups the same way as you
          would assign instanc es to an I/O device's scan groups. The default scan group is Fast.
264
Deploying and Running an Application                                                    Application Server User Guide
                                                                                                                 265
Application Server User Guide                                                    Deploying and Running an Application
               Note: When instances are created, they are assigned to the Simulator Fast scan group by default.
               To change the scan group assignment of an asset, you must undeploy the inst ance first.
266
Deploying and Running an Application                                                     Application Server User Guide
Deploying Objects
          You deploy object instances for two reasons:
             Testing.
             Placing the application into production to process field data.
          When you are ready to deploy, make sure the following conditions are met:
             Bootstrap software is installed on the target computers.
             The objects being deployed are not in an error state in the Galaxy database.
             You creat ed, configured, and checked in objects to the Galaxy.
             Objects are assigned to a host.
             The object's host is already deployed. A cascade deploy operation, which deploys a hierarchy of
              objects, deploys all objects in the correct order. This deploys an object’s host before the object is
              deployed.
             Any associated script libraries are ready for use on the target computer. For more information, see
              Importing Script Function Libraries on page 105.
          Note: DINet work objects have specific configuration limits. For example, whether more than one object
          can be deployed to a single WinPlatform. The IDE does not check for these limits. For more information,
          see the help file for the DINetwork object for specifics on configuration limits.
          You can tell if you have objects that need to be deployed by looking at the icons next to the objects.
          Deployment status icons include:
Not deployed
Deployed
Deployed, but pending configuration changes exist that have not been deploy ed.
Deployed, but software modifications exist that have not been deployed.
          [No icon]   Good. No additional icon is displayed for deployed objects running on-scan or off-scan
                      with a good status.
                                                                                                                   267
Application Server User Guide                                                       Deploying and Running an Application
Warning
                      InTouchViewApp application files are being asynchronously trans ferred to the target
                      node. This icon is normally visible for only a few moments at the end of an
                      InTouchViewApp deployment operation, unless the object is deployed on a slow
                      network.
                      This icon is larger than the other icons and completely replaces the original while it is
                      being shown.
          To deploy objects
          1.   Select the objects you want to deploy in an Application view.
          2.   On the Object menu, click Deploy. The Deploy dialog box appears.
268
Deploying and Running an Application                                                       Application Server User Guide
                   –   If both Deploy Changes and the Preserve Runtime Changes option are selected, values
                       changed during run time are loaded as the object is redeployed. The new run-time value is
                       used, even if you configure a new value in the IDE.
                   –   If Deploy Change s is selected but the the Pre serve Runtime Changes option is NOT
                       selected, new configured values set in the IDE are used, and will ove rwrite any changes
                       made during run time.
                  Redeploy Original: If one of the objects you are deploying is currently deployed, this option
                   deploys the same version as previously deployed. For example, use this option to redeploy an
                   object that is corrupt ed on the target computer. If the Pre serve Runtime Changes option is
                   selected, the object is deployed wit h the last run time value, even if you change the configured
                   value in the IDE.
                  Force Off Scan: If one of the objects you are deploying is currently deployed, this option s ets the
                   target object to off scan before deployment occurs.
                  Preserve Runtime Changes: Selecting this option will produce different results, depending on
                   whet her you have chosen Deploy Changes or Deploy Original, if values were changed at run
                   time, and if configuration values were changed in the IDE.
                   –   If a value was changed in run time and Deploy Change s and this option are checked, the
                       object is deployed with the last run time value, even if you change the configured value in the
                       IDE.
                   –   If a value was not changed during run time and Deploy Change s and this option are
                       checked, the object is deployed wit h the last configured value from the IDE.
                   –   If a value was changed in run time and Redeploy Original and this option are checked, the
                       object is deployed with the last run time value, even if you change the configured value in the
                       IDE.
                   –   If a value was not changed during run time and Redeploy Original and this option are
                       checked, the object is deployed wit h the original configured value from the I DE. If you
                       configured a new value in the IDE, the prior configured value is used.
          5.   In the Currently undeployed objects area, select the Deploy New Objects check box to start a
               normal deployment.
          6.   In the Deploy Status Mi smatch area, select the Mark as Deployed check box to mark the object as
               deployed in the Galaxy. A mismatch happens when the object is previously deployed to a target
               node, but the Galaxy shows the object is undeployed. Clear this option to redeploy the object to the
               target node.
          7.   In the Initial Scan State area, select one of the following:
                  On Scan: Sets the initial scan state to on scan for the objects you are deploying. If the host of the
                   object you are deploying is currently off scan, this setting is ignored and the object is
                   automatically deployed off scan. When you are deploying multiple objects, the deploy operation
                   deploys all of the selected objects "off-scan." After all of the objects are deployed, the system
                   sets the scan-state to "on-scan."
                   Objects can run only when both the host/engine is "on scan" and the object is "on scan." If either
                   the host/engine or the object is "off scan," the object cannot run.
                   Always deploy Areas to their host AppEngines on scan. Because Areas are the primary
                   providers to alarm clients, deploying Areas off scan results in alarms and events not being
                   reported until they are placed on scan.
                  Off Scan: Sets the initial scan state to off scan for the objects you are deploying. If you deploy
                   objects off scan, you must use the ArchestrA System Management Console Plat form Manager
                   utility to put those objects on scan and to function properly in the run-time environment.
                                                                                                                     269
Application Server User Guide                                                     Deploying and Running an Application
                   Note: The System Management Console cont rols the state of the host/engine. The
                   ObjectViewer controls the state of th e objects.
                   The default scan setting is set in the User Default settings in the Configure User Information
                   dialog box. For more information, see Configure User Information on page 37.
          8.   Click OK to deploy the objects. The Deploy progress box appears. If you see error messages, see
               Deployment Error Messages on page 270. When the deploy is complete, click Close.
Redeploying Objects
          Updating assets that are already deployed requires a redeployment of the asset. Redeploying an asset
          or a group of hierarc hical assets can be done almost seamlessly, with very little downtime. When you
          redeploy an asset, a maximum of t wo scan cycles are ne eded bet ween the time the existing asset
          configuration is undeployed and the asset with new configuration information is deployed in its place
          (typically, less than one second). This redeployment work flow provides two important benefits:
              Minimized downtime. While an asset is down, it does not provide status updates and does not
               respond to scripts or commands.
              Reduced points of failure. The existing configuration remains in effect until the new configuration is
               available.
270
Deploying and Running an Application                                                     Application Server User Guide
          This minimal downtime needed to redeploy assets ensures that uptime is maximized and the impact on
          operations is minimized. To ensure against a deployment failure due to communications or other error,
          the existing asset configuration remains deployed and onscan until the n ew configuration has been
          successfully deployed. Therefore, if a redeploy attempt fails for any reas on, operations are not affected,
          as the existing configuration remains available within the production environment. The asset is not
          stopped or taken offscan until the new configuration replaces it. Since less than two scan cycles are
          needed for a redeploy operation, and this occurs only at the final stage of pushing out the new
          configuration, there is little risk of adverse effect on operations.
              Redeploying assets follows the same workflow as deploying assets. See Deployment Overview on
               page 253 for additional information. Redeployment occurs when you select and deploy the asset.
          When assets with retentive attributes are redeployed, the Application Engine for the assets restores the
          retentive attributes to the values previously set at run time, if the Preserve Runtime Changes option is
          selected. See Deploying Objects on page 267 and Retentive Attribute Properties and Behavior on page
          272 for additional information.
          You may have an object with a Pending Update deployment state. The Pending Update state means the
          object changed since it last deployment. When you deploy those changes, the new object is marked as
          the last deployed version in the Galaxy.
          To redeploy
          1.   On the Object menu, click Deploy.
          2.   Follow the procedure for Deploying Objects on page 267.
               Note: It is not necessary to redeploy hosted objects if you are uploading changes only to the
               WinPlatform object.
               Important: The WinPlatform object will briefly shut down during the redeploy operation as
               checkpoints are synchronized. However, AppEngines and other objects remain deployed.
                                                                                                                  271
Application Server User Guide                                                       Deploying and Running an Application
               Note: If the WinPlat form object hosts redundant AppEngines, the AppEngine may automatically fail
               over if the failover timeout is detected by the standby engine.
Undeploying Objects
          You may need to undeploy one of more objects. Undeploying removes one or more objects from the
          run-time environment.
          Before you start, you need to select the object or objects you want to undeploy in the IDE.
          Before you delet e or restore a Galaxy, undeploy all objects in the Galaxy.
          Undeploying can fail if the target object has objects assigned to it. Make sure you select Ca scade
          Undeploy in the Undeploy dialog box.
          To undeploy
          1.   On the Object menu, click Undeploy. The Undeploy dialog box appears.
               In the upper right of this dialog box, the Undeploy Object Count box shows the number of objects
               being undeploy ed. You can select a single object in Application view and, if you selected Cascade
               Undeploy and other objects are assigned to the selected object, the total number of objects appears
               in this box.
272
Deploying and Running an Application                                                   Application Server User Guide
          2.   Select one or more of the following. Some of these options might not be available, depending on the
               kinds of object you select.
                  Cascade Undeploy: Select to undeploy the selected object as well as any objects it hosts.
                  Include Redundant Partner: Select to also undeploy an AppEngine’s redundancy part ner
                   object.
                   Note: The AppE ngine in a redundant pair t hat was configured as the Primary can be undeployed
                   alone because objects hosted by it run on the deployed Backup AppEngine, which becomes
                   Active.
                  Force Off Scan: If one of the objects you are undeploying is currently on scan, selecting Force
                   Off Scan sets the target object to off scan before undeployment. If you do not select Force Off
                   Scan and the target object is on scan, the undeployment operation fails.
                  On Failure Mark as Undeployed: Marks the object as undeployed in the Galaxy when the
                   object targeted for undeployment is not found.
          Note: A node cannot upload run-time changes to the Galaxy if the version of Application Server it is
          running is older than the version running on the GR node.
          Cert ain attribute values can be set in the configuration environment, but they can also change at run
          time. As a result, the values of these attributes can differ between the run-time and configuration
          environments. Thes e types of attribute writeability are:
                                                                                                                   273
Application Server User Guide                                                     Deploying and Running an Application
Uploading Restrictions
          Cert ain run-time changes to the Galaxy cannot be uploaded. Before uploading changes, make sure the
          selected objects are:
             Not checked out
             Not edited and checked in since last deployment or upload
             Not in Pending Update state
          If you select an object that is currently checked out to you, a warning appears during run-time upload. If
          you continue, you lose all configuration changes you made to the checked out object. The Galaxy
          performs an Undo Check Out operation on it before the run-time attributes are copied to the Galaxy
          database.
Note: You cannot upload run-time changes for objects checked out to other users.
Undeployment Situations
          The following situations occur in these specified undeployment scenarios:
             After undeploying a WinPlatform, only the Bootstrap software remains on the target computer. All
              other WinPlat forms are notified of the undeployment of the WinPlatform and stop trying to
              communicate with it over the network.
             Alarm Clients know immediately that an area is undeployed and is no longer available. They remove
              the area from selection lists. Alarms associated directly with the area (not as a result of containment)
              are immediat ely removed from current alarm views.
             Undeploying an object that has Pending Updat es status removes that status. It is now marked as
              undeploy ed.
             If cascade undeploy fails on one object, then the undeploy continues to the extent possible on ot he r
              objects. The entire operation is not terminated because the undeploy fails for one object. However, a
              host might not be undeployable if one of its assigned objects cannot be undeployed.
          Assume an ApplicationObject is hosted by the Active AppEngine in a redundant pair and a number of
          subscriptions is configured in that ApplicationObject that refers to items in a DIObject. If you undeploy the
          ApplicationObject in question, the items are not removed immediately from the item count of the
          DIObject. How fast those items are removed depends upon the value of the Maximum time to maintain
          good quality after failure option (Redundancy.StandbyActivateTimeout attribute) on the Redundancy
          page in the AppEngine’s editor. This behavior does not apply to the undeployment of ApplicationObjects
          hosted by non-redundant AppEngines.
          Note: The term "graphic" includes any symbol or client control present in the Graphic Toolbox, and any
          symbols owned or inherited by templates and instances.
274
Deploying and Running an Application                                                    Application Server User Guide
                                                                                                                 275
Application Server User Guide                                                    Deploying and Running an Application
              The "Include all Galaxy graphics" enabled setting will persist through a Galaxy backup and restore
               operation, but will not persist through an ITVA import or export, or t hrough GR dump and GR load
               operations.
276
                                                                                                      Application Server User Guide
                                                                                           C HAPTER 8
Working with History
                                                                                                          ®
    You can configure applic ation objects to store process data in the Wonderware Historian (formerly
    called IndustrialSQL Server). Historical data from Application Server can be ret rieved and viewed using
    standard Wonderware Historian database utilities. Also, you can use historical data to produce reports
    shown from your client applications. InTouch includes a set of ActiveX cont rols designed to show
    historical data from the Wonderware Historian in trends or graphs that can be embedded in client
    application windows.
    In This Chapter
    Application Server History Components ....................................................................................... 277
    Saving Object Attribute Data to the Historian ................................................................................ 278
    Configuring Common Historical Attributes .................................................................................... 283
    Configuring System Objects to Store Historical Data ..................................................................... 285
    Configuring Application Objects to Save Historical Dat a ................................................................ 290
                                    DAServer/
                                                        Application                         Storage           Run-time
                                     Proxy/
                                                          Object                            Engine            Database
                                    DIObject
HCAL
                                                               WinPlatform
                                                                                  Store
                                                                                 Forward
    A single Historian installation can receive historical data from a single Galaxy. A push model is used to
    send and save new historical updates to Historian. Each system object Engine (Plat form, AppEngine,
    ViewEngine) includes a historian feature that sends all history updates for all hosted objects to the
    historian. The historian feature receives the history updates from objects on the same engine only. All
    Engine objects include an attribute to specify the node name of the computer hosting Historian.
    The figure shows a single Historian. This may be a common configuration, but other Application Server
    configurations support multiple Historian databases for a Galaxy. However, eac h Engine object only
    sends its historical data to one Historian.
    There is a one-to-one relationship between a historical object attribute and a tag in Historian.
                                                                                                                                  277
Application Server User Guide                                                                       Working with History
278
Working with History                                                                        Application Server User Guide
0x85 133 Initial Value (Good) Initial value for a delta request.
OPC Qualities from Application Server res ult in storage of an Wonderware Historian Quality as follows:
                                                                                                                     279
Application Server User Guide                                                                       Working with History
          Wonderware Historian QualityDetail contains the det ail of data quality as a 32-bit value. QualityDetail is
          derived from OP C quality. Each source is allocated a byte position within the QualityDetail 32-bit word,
          which is formatted as:
          0x XXRRDDDD
          Only the low-order two bytes (DDDD) are mapped to OPC quality for data sent by Application Server and
          saved to the historian:
          OPC Quality (any          Results in any one of these Wonderware Historian Quality
          substatus form )          Details
280
Working with History                                                                      Application Server User Guide
          If slow updates for real -time dat a values are received from an I/O source and an intermittent network
          disconnect occurs, the timestamp of the first data value of a historized attribute uses the AppEngine’s
          timestamp instead of the source’s timestamp. In the following example, in row n umber 4, the value " 30" is
          sent again to the historian, but the timestamp is the AppEngine timestamp and not the actual timestamp
          of "2008-11-24 18:50:41. 061" when the value of 30 was generated from the I/O source.
          If slow updates for late data values are received from an I/O source and an intermittent net work
          disconnect occurs, the timestamp of the first data value of a historized attribute is modified to maintain
          the time sequence. In the following example, in row number 4, the value "30" is sent again to the
          historian, but the timestamp is modified by adding 5 milliseconds to previous timestamp of the NULL data
          value. Note that a QualityDetail of 704 is stored for the data value in row number 4.
                                                                                                                   281
Application Server User Guide                                                                         Working with History
          You can save alarm counts by severity level as historical data. For more information about mapping
          alarm severities to priority ranges and saving alarm counts aggregat ed by severity level to the Historian,
          see Mapping Alarm Severity to Priority.
Note: If enabled, the Value Deadband mechanism resets itself based on this new stored value.
             All new attributes value, timestamp, and quality are sent to the Historian for storage.
             The Historian stores the historical records to the database.
Store-and-Forward Mode
          If the Historian shuts down or the network connection t o it is lost while an application is running, historical
          data continues to be stored locally on the computer hosting the WinPlatform object.
282
Working with History                                                                     Application Server User Guide
          When the Historian node recovers, data is forwarded from the local node to the Historian node at a low
          priority.
          If an AppEngine loses connectivity to the Historian node, the Historian reports bad data quality to clients.
          When you undeploy an object with attributes configured for history, the Historian stores the final data
          points with Bad quality.
Buffered Behavior
          The buffered data feature enables efficient accumulation and propagation of V TQ (V alue, Time, and
          Quality) data updates, without folding and data loss, to data consumers such as objects, alarms, the
          Historian, and scripts from field devices that support buffering.
          Buffered data is defined as data captured and stored locally on a remote device for later trans fer to a
          supervisory system for proc essing, analysis, and long-term storage. The Buffer property is input-only.
          When an object is associated with an attribute th at supports buffered dat a (HasBuffer property is true),
          the object monit ors and processes the Buffer property of the attribute. Each V TQ entry in the buffer that
          meets value deadband criteria is pushed to the Historian.
          Attributes that are buffer-enabled are registered to Historian in the same manner as non-buffered
          attributes are registered. The Historian does not differentiate a buffered from a non -buffered registered
          attribute. An attribute is considered registered after a Historian key is returned from HCAL to the object.
          All the buffered V TQs that are received by the parent attribute while Historian registration is pending are
          ignored and discarded.
          For more information about buffered data, see Work ing with Buffered Data on page 369. For further
          reading on historizing events and attributes that are buffering-enabled, see About Buffered Data and
          History on page 376.
                                                                                                                   283
Application Server User Guide                                                                         Working with History
          The historical attributes you configure are based on the data type of the object. For example, the
          following figure shows the common historical attributes for numeric al attributes (integer, float, or double).
          If you are configuring a boolean or string attribute, you see a smaller set of historical attributes. Similarly,
          a discrete field attribute will also ha ve this same, smaller set of historical attributes.
          This section describes the common historical attributes that you can configure for your system and
          application objects. Refer to this section as you complete the procedures to configure your objects.
             Force Storage Period
              Interval in milliseconds in which an attribute value is saved to the Historian, regardless of whether the
              value exceeds its value deadband setting or not. An attribute value is saved to the Historian at every
              Force Storage interval. The default value of zero (0) disables the Force Storage period.
             Value Deadband
              Thres hold value in engineering units, which is the absolute differenc e between the current and most
              recent saved historical values. The current value must exceed the absolut e deadband to be saved as
              historical data.
284
Working with History                                                                      Application Server User Guide
              The Value Deadband filters out small, momentary value changes from being saved to the Historian.
              A new value that is within the range of the deadband is not saved to the Historian. The default value
              of 0.0 disables the Value Deadband and any change to a value is saved as historical data.
             Trend Hi
              Initial maximum trend value in engineering units for clients. The default is 100.
             Trend Lo
              Initial minimum trend value in engineering units for clients. The default is 0.0.
             Enable Swinging Door
              A flag that indicates whether the swinging door rate d eadband is enabled or disabled. The default is
              disabled.
              Enable Swinging Door is disabled if the historical attribut e data type is Boolean or a string.
             Interpolation Type
              List of methods used by the Historian to int erpolate analog historical data. The interpolation type
              determines which analog value is selected during a Historian data ret rieval cycle. Interpolation types
              include System Default, Stairstep, or Linear. The default interpolation type is System Default.
              o    Stairstep
                   No interpolation occurs. The last known value is returned with the given cycle time. If no valid
                   value can be found, a NULL is returned to the Historian.
              o    Linear
                   The Historian calculates a new value at the given cycle time by interpolating between the las t
                   known value prior to the cycle time and the first value aft er the cycle time.
              o    System Default
                   The Historian system-wide interpolation setting. The system-wide setting must be either
                   stairstep or linear int erpolated.
             Rollover Value
              Positive integer value that represents a tag’s reset limit when the Historian operates in counter
              retrieval mode. In counter retrieval mode the Historian uses a tag's rollover value to calculate and
              return the delta change between consecutive retrieval cycles. The default val ue is 0.0.
              The Rollover value applies only to numeric attributes. The Rollover value is disabled if the historical
              attribute data type is Boolean or a string.
             Rate Deadband
              Percentage rate of change deadband based on the change in the slope of inc oming data values to
              the Historian. For example, specifying a swinging door rate deadband of 10 percent means that data
              is saved to the Historian if the percent age change in slope of consecutive data values exceeds 10
              percent.
              The default is 0.0, which indicat es a swinging door rate deadband is not applied. Any percentage
              greater than 0.0 can be assigned to the rate deadband.
                                                                                                                   285
Application Server User Guide                                                                                      Working with History
                                                                                                  InTouchViewApp
                                                    WinPlatform
AppEngine
Area
                                                                                     ViewEngine
          Hi story Attribute s
Description   
Enable compression   
Engineering units    
Historian   
Interpolation Type    
Rate Deadband    
Rollover Value    
TCP Port   
Trend High    
Trend Low    
Value Deadband    
286
Working with History                                                                    Application Server User Guide
          3.   In the Network address box, type or select the node name of the computer assigned to the
               WinPlatform object.
          4.   In the Hi story store forward directory box, enter the path to the folder to save store and forward
               historical data. The folder must exist on the computer specified in the Network address box.
          5.   Click the Engine tab to show history attributes.
          6.   In the Hi story area of the Engine page, configure the attribut es. For more information on each
               attribute, see the WinPlat form object Help.
                                                                                                                  287
Application Server User Guide                                                                    Working with History
          7.   Click the Platform Hi story tab to show the attributes to save system data from the computer hosting
               the WinPlatform object to the historian.
          8.   Select the check box next to each attribute whose data you want saved in the historian. For more
               information about these historical attributes, see Configuring Common Historical Attributes on page
               283.
          9.   Click the Scheduler History tab to show the attributes to save data to the historian.
          10. Select the check box next to each scheduler attribute whose data you want saved in the historian.
          11. Click the Engine Hi story tab to show the attributes to save data from AppEngines hosted by the
              WinPlatform object.
          12. Select the check box next to each engine attribute whose data you want saved in the historian.
          13. Save your changes and check in the WinPlatform object.
          14. Deploy the object to its target computer in an on scan state.
          Note: Except for Late Data, the ViewE ngine object contains the same historical attributes as the
          AppEngine object.
288
Working with History                                                                     Application Server User Guide
          3.   In the Hi story area of the Engine page, configure the attribut es. For more information on each
               attribute, see the AppEngine object Help.
          4.   Click the Scheduler History tab to show the attributes to save data to the historian.
          5.   Select the check box next to each scheduler attribute whose data you want saved in the historian.
          6.   Click the Engine Hi story tab to show the attributes to save data from AppEngines hosted by the
               WinPlatform object.
          7.   Select the check box next to each engine attribute whose data you want saved in the historian.
          8.   Save your changes to the AppEngine object.
                                                                                                                  289
Application Server User Guide                                                                                                                      Working with History
          2.   Click on the General tab to show attributes for area alarm counts that can be saved as historic al
               data.
          3.   Select the check box next to each alarm state counter that you want to save to the historian.
          4.   Set the attributes for each alarm count er that you select. For more information about assigning
               values to historical attributes, see Configuring Common Historical Attributes on page 283.
          5.   Save your changes and close the Object Editor.
Boolean
DiscreteDevice
Double
FieldReference
Float
Integer
Sequencer
String
Switch
UserDefined
Hi story Attribute s
Interpolation Type      
Rate Deadband      
Rollover Value      
Trend High      
290
Working with History                                                                                                                Application Server User Guide
AnalogDevice
Boolean
DiscreteDevice
Double
FieldReference
Float
Integer
Sequencer
String
Switch
                                                                                                                                                             UserDefined
          Hi story Attribute s
Trend Low      
Value Deadband      
          Note: The historical attributes available from the UserDefined object are based on the dat a type
          associated with the selected attribute.
          2.   Enable historization.
                  For UserDefined objects, create an attribute and then activate the Hi story feature. Assign
                   values to the history parameters. For more information about assigning values to the history
                   feature, see Configuring Common Historical Attributes on page 283.
                  For AnalogDevice objects, select the Historize feature to enable the common history attributes
                   shown in the Hi story area of the page.
                   The History page includes check boxes to save PV, SP, PV mode, Control mode, and Control
                   Track Flag data to the historian.
                   Assign values to the PV history attributes that appear in the Hi story area of the page. For more
                   information about assigning values to the common history attributes, see Configuring Common
                   Historical Attributes on page 283.
          3.   Save your changes and close the Object Editor.
                                                                                                                                                                           291
                                                                                                            Application Server User Guide
                                                                                          C HAPTER 9
Working with Alarms and Events
     You can create A rchestrA applications that generate alarms and events to provide the status of a running
     application.
     ArchestrA objects include built-in event and alarming reporting capabilities. You must configure alarms
     for each object in the IDE to use the event and alarm functions.
     In This Chapter
     Understanding E vents ................................................................................................................. 293
     Understanding Alarms ................................................................................................................. 295
     Configuring Alarms ..................................................................................................................... 309
     Distributing Alarms and E vents .................................................................................................... 317
     Configuring Plant State-Based Alarms ......................................................................................... 322
     Configuring Alarm Historization, Mapping, and Shelving Priority Ranges ........................................ 326
     Using Aggregated Alarm Information ............................................................................................ 328
Understanding Events
     E vents represent normal system, application, or user occurrences that produce status messages. A
     typical event occurs when an operator logs on to an application at the beginning of a work shift.
     Application Server can detect events, store them as historical data, and report them to client
     applications.
     An event indicates a significant occurrence that is detected, reported, and saved as historical data.
     E vents can be detected by any Application Server component including automation objects and the
     SMC.
     E vents provide a means for any software component to log information about a system, appli cation, or
     operator action. Application Server components use an event API to send event messages to
     Alarm/E vent distributors and the Wonderware Historian. Also, events are sent to client applications like
     InTouch OMI to be shown in real-time trends or reports.
Types of Events
     Application S erver creates several types of run-time event messages, which are saved as historical data.
         System events
          E vent messages are logged when a Platform, Engine, Area, DI Network or DI Device start or stop.
          Any system action that affects a large number of objects is logged as an event.
          A System event message cont ains the following information:
          o     E vent type, whic h is System.
          o     Tagname, which is the name of the object generating the event.
          o     Tag description, which is a short description of the object generating the event.
          o     Area, which is the name of the area that contains the object generating the event.
          o     E vent description, which describes the system action and can be either Started or Stopped.
          o     Timestamp, which is the current system time.
                                                                                                                                             293
Application Server User Guide                                                              Working with Alarms and Events
294
Working with Alarms and Events                                                            Application Server User Guide
Understanding Alarms
          Alarms warn about process conditions that can potentially cause problems. Typically, you s et up an
          alarm to become active when a process value exceeds a defined limit. For example, you can set an
          alarm for a pump that warns when no fluid pressure is detected.
          An alarm is an abnormal condition that requires immediate attention. An operator usual ly acknowledges
          an alarm. ArchestrA handles the real-time reporting of alarms and provides special clients for viewing
          them.
          Application and system objects can detect and generate an alarm. To detect an alarm, a system or
          application object sets a Boolean Attribute flag to indicate whether the object's alarm condition is
          currently true or false.
          To report an alarm, the object must contain an alarm feature. The alarm feature makes a referenc e to the
          object’s Boolean flag to det ermine whether the alarm condit ion is true. It then combines this information
          with the current alarm mode to determine whether to report a this as an active or inactive alarm state. An
          alarm feature is dedicated to reporting a single alarm condition’s state. The alarm feature send alarm
          notification messages to ArchestrA alarm and event distribut ors.
          E very alarm notification includes a set of fields containing data that describes the alarm. Some alarm
          notification data is saved as historical data. The following list describes all fields sent with an alarm
          notification.
             TagName, which is the name of the object generating the alarm. Saved as historical data.
             Name, which is the name of the alarm. Saved as historical data.
             InAlarm, which is a Boolean value that indicates whether the object’s alarm state is currently active
              or inactive. Saved as historical data.
             Quality, which is the current quality of the data upon which the alarm is based. Saved as historical
              data.
             OnTimeStamp, whic h is the time when the attribute value transitioned into an alarm state. The
              attribute’s value timestamp is used, if available. Otherwis e, the timestamp is the AppEngine scan
              time. Saved as historical data.
             OffTimeStamp, which is the time when the alarmed attribute value returns to normal. The attribute’s
              value timestamp is used, if available. Otherwise, the OffTimeStamp is the AppEngine scan time. If an
              active alarm is disabled, it forces a return to normal and the timestamp is the current time. Saved as
              historical data.
             Category, which is an integer between 1 and 14 that identifies the type of alarm and source of the
              alarm. These values are associated with Internationalized category labels set by Wonderware.
              Alarm category labels can be localized to other languages. Application Server uses the default
              Galaxy language to retrieve these strings and send them to InTouch. The alarm category labels
              appear in InTouc h and InTouch history as the default Galaxy language strings. Saved as historical
              data.
             Priority, which is an integer value from 1 to 999 indicating the severity of the alarm. An alarm priority
              of 1 is most urgent and 999 least urgent.
             TargetValueReference, which is an optional field that mak es a reference to the target value of the
              alarm. Not saved as historical data.
             ActualValueReference, which is an optional field that makes a reference to the actual attribute value
              for the alarm condition. Not saved as historical data.
             TargetValue Snapshot, which is an optional field containing the attribute’s target value at the time
              when the alarm became active. Saved as historical data.
                                                                                                                   295
Application Server User Guide                                                            Working with Alarms and Events
             ActualValueS napshot, which is an optional field containing the attribute’s actual value at the time
              when the alarm became active. Saved as historical data.
             EngUnitsReference, which is the reference t o the engineering units string for the condition. Saved as
              historical data.
             AcknowledgedFlag, which indicates whether the alarm is acknowledged or not. If this flag is FALSE,
              the alarm is still unacknowledged. Saved as historical event data.
             AcknowledgeTime, whic h indicates the time when the alarm was acknowledged if the
              AcknowledgedFlag is TRUE. Saved as historical data at the time of acknowledgement.
             AcknowledgeUserId, which is the string containing the name of the user who acknowledged the
              alarm. Saved as historical data at the time of acknowledgement.
             AlarmMode, which indicates whether the alarm mode is Enabled, Silenced or Disabled. Saved as
              historical data at the time when the alarm mode changes.
             Message text describing the alarm, which can be statically or dynamically constructed. The message
              typically contains the alarm description, the exceeded limit value, and possibly the variable value.
              For an alarm feature, this message is retrieved by means of a reference to a string/international
              string attribut e in the object. The reference is setup at ObjectDesigner time for alarms. If none is
              specified, then the common feat ure short description attribute is utilized. This field is also provided in
              the alarm feature section and can be dynamically generated and scripted. Saved as historic al data.
             Area, which is the name of the area that contains the object generating the alarm. Saved as historical
              data.
Types of Alarms
          Application Server supports the following types of alarms:
             State alarms, which are also known as Boolean alarms
             Limit alarms
             Target deviation alarms
             Rate of change alarms
          The type of alarm that you can configure is based on the dat a type of the attribut e’s value.
State Alarms
          A state alarm set on an attribute of Boolean data type corresponds to a discrete tag with two possible
          states. When you create a state alarm, you configure whether the active alarm state corresponds to the
          TRUE or FALSE state of the attribute.
296
Working with Alarms and Events                                                                        Application Server User Guide
Category Description
          You can set an alarm message and Priority for a state alarm. The time deadband sets the length of time
          that an attribute value must continuously remain in an alarm or unalarmed state. The time deadband
          filters out rapid, transitory value spikes.
          The timestamp when a state alarm becomes active or inactive is the most current timestamp of the
          corresponding input value. If there is no timestamp associated with the alarmed value, the AppEngine
          timestamp is used instead.
Limit Alarms
          A limit alarm compares the current value to one or more predetermined alarm limits within the attribute’s
          full range of values. If the value exceeds a limit, an alarm occurs.
          LoLo Alarm Level        Lo Alarm Level        Hi Alarm Level        HiHi Alarm Level
                                                                                                 90
                                                                         80
                                                   20
                             10
                                                                                                                               297
Application Server User Guide                                                                              Working with Alarms and Events
          You can individually select and configure values and priorities for the LoLo, Lo, Hi, and HiHi alarm limits.
          You can set individual messages for each alarm limit.
          You can also configure alarm and time deadbands for limit alarms. The alarm deadband is expressed as
          a percentage of the attribute’s full value range. The deadband value sets the percentage of the total
          range that the attribute value must change to reset a limit alarm to the inactive state.
          For example:
              An attribute's full value range is 0 to 50, and the HiHi alarm limit is 40.
              The alarm deadband is set to 5. Since the attribute's range is 50, the actual alarm deadband value is
               2.5 (50 * 5%).
              The attribute value reac hes the HiHi alarm limit (40).
              To reset the HiHi alarm to an inactive state, the attribute value must fall below 37.5 (40 - 2. 5).
          The time deadband sets the length of time that an attribute value must continuously remain in an alarm or
          unalarmed condition. The process variable must remain above or below the indicated limit for at least the
          indicated deadband time before the application object updates the status of the alarm CONDITION
          Boolean. Then, standard Alarm feature logic determines whether to take that updated alarm condition
          and report changes to the alarm state or not.
          The timestamp when a limit alarm becomes active or inactive is the most current timestamp of the
          corresponding input value. If there is no timestamp associated with the alarmed value, the AppEngine
          timestamp is used instead.
                                                                                  70
                                                                                           5 EU Deadband
                                                    60
                                  Target                     5 EU Deadband
                                    50
                                                             5 EU Deadband
                                                    40                                     5 EU Deadband
                                                                                  30
298
Working with Alarms and Events                                                             Application Server User Guide
          You can individually select and configure values and priorities for the minor deviation limit and the major
          deviation limit. You can set individual messages for the minor and major deviation alarm limits.
          The deviation alarm’s settling period is the time allowed for the attribute value to reach an expected
          target value after a device starts. No alarm can occur during the settling period.
          You can also configure a value for a deviation deadband, whic h is expressed in Engineering Units. The
          deadband range sets a threshold that an attribute value must change from a deviation limit to reset the
          alarm to the inactive state.
          The timestamp when a deviation alarm becomes active or inactive is the most current timestamp of the
          corresponding input value. If there is no timestamp associated with the alarmed value, the AppEngine
          timestamp is used instead.
70 70 70
                           60                               60         20                    60
                           50                               50                               50
                                   10
                           40                               40                               40
                                                                                                                     299
Application Server User Guide                                                              Working with Alarms and Events
          Alarm limits are expressed in the Engineering Units of the attribute’s value over an interval, which can be
          per second, minute, hour, or day.
          You can select and configure the value and priority for the upward and downward ROC limits. You can
          set individual messages for ROC alarms that exceed the upward or downward limits.
          The timestamp when a rate of change al arm becomes active or inactive is the most current timestamp of
          the corresponding input value. If there is no timestamp associated with the alarmed value, the
          AppEngine timestamp is used instead.
Statistical Alarms
          A statistical alarm is one in which a statistic is calculated, based upon an attribute. If t he statistic exceeds
          some pre-set limit, the object flags the alarm condition as TRUE.
AlarmModeCmd Attribute
          AlarmModeCmd is a writable attribute that sets the current commanded alarm mode for the object. You
          set the AlarmModeCmd to enabled, silenced, or disabled with a script, user input, or from an attribute
          configured to read from an input source.
AlarmInhibit Attribute
          The AlarmInhibit attribute disables one or more alarms when set to TRUE. The value of the AlarmInhibit
          attribute is typically set by a script, manually by the user, or from an attribute configured with an input
          feature. If the AlarmInhibit attribute is set TRUE, all alarms of the object and of any contained objects are
          disabled.
          When the AlarmInhibit attribute is set to FALSE, alarms are not inhibited and the object AlarmMode and
          parent object AlarmMode determine whether alarming is enabled, silenced, or disabled.
AlarmMode Attribute
          The AlarmMode is a calculated attribute that identifies the object alarm mode and is based upon the
          current values of an object’s:
             AlarmModeCmd attribute
300
Working with Alarms and Events                                                                    Application Server User Guide
             AlarmInhibit attribute
             Parent object AlarmMode attribute
                              Parent Object
Parent AlarmMode
                                                                           Child Object
                          AlarmInhibit        AlarmMode
                                                                Parent AlarmMode
                   AlarmModeCmd
                                                                      AlarmInhibit        AlarmMode
AlarmModeCmd
          Application Server checks the AlarmModeCmd and AlarmInhibit attributes of an object and the
          AlarmMode status of the parent object. Application S erver then updates the object's AlarmMode attribute
          to reflect the most restrictive setting.
          All individual alarms use the object's AlarmMode status to determine whether they are enabled, silenced,
          or disabled.
_AlarmModeEnum Attribute
          The _AlarmModeE num attribute can be used by any object to obtain an enumeration of permissible
          settings for the AlarmModeCmd attribute.
          Alarm Detection
          The Buffered Data feature will pass buffered alarm VTQs to the alarm subsystem in the same manner as
          with buffer data not enabled. When enabled, the Bu ffered Data feature can generate multiple alarm
          messages in the same scan.
          For more information on alarm detection, see About Buffered Data and Alarms and E vents.
                                                                                                                           301
Application Server User Guide                                                                          Working with Alarms and Events
The following figure shows an object’s individual alarms for the HiHi and Hi alarm limits.
                                                 Parent Object
                 Parent AlarmMode
AlarmInhibit AlarmMode
AlarmInhibit AlarmMode
AlarmModeCmd
                                                                        Hi Individual Alarm
                                                                  Parent AlarmMode
AlarmInhibit AlarmMode
AlarmModeCmd
          The calculated AlarmMode attribut e value of an individual alarm uses the same inputs as an object
          alarm. The parent AlarmMode attribute is from the object itself. As with object alarms, the individual
          alarm mode is set to the most restrictive input state. For example, if the object’s AlarmMode state is
          disabled and the individual alarm’s AlarmInhibit is FALSE, the individual alarm is disabled.
          Each individual alarm is autonomous from other individual alarms in an object. The AlarmMode of an
          individual alarm is not propagated to ot her alarms. Unlike inhibit for the entire object, inhibit of an
          individual alarm does not affect the alarms of any contained objects. You can selectively enable, silence,
          or disable an individual alarm and not set other alarms to the same value within the object hierarchy.
302
Working with Alarms and Events                                                              Application Server User Guide
          To ensure that alarmed attributes always have current dat a, the alarm feature always registers a
          reference to the alarmed attribute. This guarantees that Message Exchange never suspends updates for
          this attribute. E ven if alarms are disabled for a particular attribute, the alarmed attribut e cannot enter an
          Advanced Communication Management Suspended state.
          The object hierarchy and alarm states determine the final alarm condition of an object.
             An Area object’s alarm state determines the alarm state for all alarms of objects that belong to the
              Area.
                        Area-Disabled
                     Container Object-Any
                     Contained Object-Any
             The most restrictive setting within an object hierarchy determines the object’s alarm state.
                        Area-Enabled
                   Container Object-Disabled
                   Contained Object-Enabled
             When an individual object alarm is silenced or disabled, it applies only to that alarm and not to other
              alarms belonging to the obj ect.
                        Area-Enabled
                   Container Object-Enabled
                   Contained Object-Enabled
                                   Enabled
                              A                 Object Alarm State = Enabled
                                    Disabled
                              B                 Object Alarm State = Disabled
                                                                                                                      303
Application Server User Guide                                                          Working with Alarms and Events
              The alarms on any contained object are not affected. The disabled or silenced s tate of an individual
              alarm does not propagate downward through the object hierarchy to the alarms of any contained or
              assigned object.
Enabling Alarms
          To enable an object’s alarms, you must ensure that the AlarmModeCmd and AlarmInhibit attributes are
          enabled for the object, its container, and its area. An event, including the user’s name, is generated
          indicating the object’s alarms are enabled.
          When object alarms are enabled, you can enable, silence, or disable an individual alarm.
Silencing Alarms
          When object alarms are silenced, an individual alarm that is enabled or silenced is forced to be silenced.
          When object alarms are silenced, an individual alarm can be disabled.
Disabling Alarms
          When object alarms are disabled, an individual alarm that is enabled or silenced is forced to be disabled.
          When object alarms are enabled and an individual alarm is enabled or silenced, the individual alarm can
          be inhibited. This forces the individual alarm to be disabled.
          When object alarms are silenced and an individual alarm is enabled or silenced, the individual alarm can
          be inhibited. This forces the individual alarm to be disabled.
          When object alarms are inhibited, an individual alarm that is enabled or silenced is forced to be disabled.
Shelving Alarms
          You can shelve alarms to temporarily hide them from displays for a fix ed period. Alarms continue to be
          historized, even when they are shelved.
          Shelving typically is used to reduce alarm "noise", or to temporarily suppress alarms that might be
          triggered during system modifications or repairs, allowing you to foc us on correcti ng other more urgent
          alarms.
          Shelving is similar to silencing an alarm, but shelved alarms differ from silenced alarms in the following
          ways:
             Shelved alarms have a built-in associated time-out period. Shelved alarms are automatically
              unshelved when the configured shelving period expires. You can also manually unshelve alarms and
              return them to an active, displayed state.
             Alarm shelving must be enabled at an area level, but shelving applies only to individual alarms. You
              cannot shelve a hierarchy of alarms for an entire area or for an entire object. You cannot propagate
              alarm shelving through the Model View hierarchy.
             The system enforces role-based limitations on permission to shelve alarms, alarm severity levels
              that can be shelved, and the total number of alarms a user can shelve.
          The system tracks who shelved the alarm, from what workstation, the reas on for shelving the alarm,
          when shelving began, and when shelving will expire. Shelved alarms aggregate in similar fashion to
          silenced alarms. For information about alarm aggregation, see Using Aggregated Alarm Information on
          page 328.
          A set of seven attributes provide run-time alarm shelving information and control:
304
Working with Alarms and Events                                                           Application Server User Guide
          AlarmShelveReason            A read-only string value providing the reason for which the alarm was
                                       shelved or un-shelved by the Alarm Shelve command.
                                       Default value: Blank (See AlarmShelveCmd attribute.)
          AlarmShelveUser              Read-only, the name of the user who most recently shelved or
                                       un-shelved the alarm with the Alarm Shelve command.
                                       Default value: Blank
          AlarmShelveNode              Read-only, the name of the computer node from which the user most
                                       recently shelved or un-shelved the alarm with the Alarm Shelve
                                       command.
                                       If t he node is hosted in a Terminal Server client session, the node and
                                       the TSE ID are both identified.
                                       Default value: Blank
                                                                                                                  305
Application Server User Guide                                                              Working with Alarms and Events
          3.   Select the severity level in the Shelve column. By default, severity levels 3 (medium) and 4 (low) are
               enabled.
          4.   In the IDE, open the relevant Area object editor. Click the Shelve Alarms checkbox to enable
               shelving for that area. Shelving is enabled by default.
306
Working with Alarms and Events                                                             Application Server User Guide
4. Double-click the .AlarmShelveCmd attribute. The Modify String Value dialog opens.
               a.   To shelve an alarm, enter a duration in hours or in decimal fractions if the duration is to be less
                    than one hour. The duration cannot be blank.
               b.   Enter a reason between the quotation marks for shelving or unshelving. The reason cannot be
                    blank. Click Apply.
               c.   To unshelve a shelved alarm, enter a value of "0".
          The six read-only alarm shelving attributes will display the current shelving status information.
Throttling Alarms
          Alarm throttling prevents network and message queues from flooding during periods of high alarm
          activity. Throttling sets a maximum number of transitions into and out of an alarm state within a defined
          period. Alarm transitions that exceed the throttling limit are not reported.
          The WinPlatform object includes tuning parameters that specify the maximum alarm rate per second on
          an engine. The Alarm t hrottle limit attribute must be used in conjunction with the scan period to determine
          the maximum number of alarms that can occur in a scan cycle. You can set the alarm throttle li mit when
          you configure the WinPlat form object. For more information about setting the scan period and alarm
          throttle limit, see Configuring WinPlatform Object Alarms on page 310.
          Alarm messages can be throttled for alarms going int o alarm and out of alarm state. Alarm
          acknowledgement messages are not throttled. Users can still acknowledge alarms even when alarm
          throttling is active. Users can still disable alarms for objects or areas when the alarm rate causes
          throttling to occur. Also, the alarm inhibit and the disable/ enable/silence messages are not throttled.
          If an active alarm is disabled, the going out of alarm and disabled messages are sent to the notification
          distributor. If alarms are being throttled, the going out of alarm message can be throttled. The disabled
          message is accepted regardless of the throttling status. The going out of alarm message is not raised
          again. This can result in never logging a message for that alarm indicating it went out of alarm. The final
          alarm list in the Notification Distributor still shows the correct alarm state.
                                                                                                                     307
Application Server User Guide                                                           Working with Alarms and Events
Alarm Acknowledgement
          Alarms are acknowledged by users who view unacknowledged alarms from their client applications like
          InTouch HMI. Only alarms of certain priority levels need to be acknowledged.
          The basic workflow to acknowledge an alarm consists of the following general steps:
             The alarm is detected and reported to any subscribed alarm clients. The alarm is unacknowledged
              unless it is of a priority level that does not require acknowledgement.
             An authorized user attempts to acknowledge the alarm from the client. The user can type an optional
              comment when acknowledging the alarm.
             The user’s acknowledge request is sent to the detecting object’s alarm feat ure. The
              acknowledgment must pass through standard security checks first. The acknowledge request
              contains the user’s name and any alarm comment.
308
Working with Alarms and Events                                                              Application Server User Guide
          For the alarm utility, the alarm is acknowledged within the alarm feature immediately. The user name,
          comment, and acknowledged time are also saved. Alarm comments can be localized into any supported
          language.
          The acknowledge is considered an alarm state change, which is sent to all subscribed clients. When an
          alarm is acknowledged, the current AppE ngine timestamp is used as the acknowledgement time.
          After an alarm is acknowledged for the first time, any additional (extra) acknowledgement attempts for
          the same alarm are rejected and an error is returned.
          By inspecting the Alarm Viewer or the Alarm Control client, you can determine if the alarm
          acknowledgements were successful.
Configuring Alarms
          Alarming capabilities are a part of object templates, but they are not implemented until you configure the
          object in the IDE. After alarms are configured, you can view Application Server alarms in a client
          visualization application like InTouch HMI.
          Configuring an object to be an alarm p rovider includes the following general sequence of steps:
             Decide whether alarm notification is needed for each possible alarm condition of an object. For
              example, a command time-out alarm for a valve if the output command fails to move the valve.
             Edit the object and set an attribute that specifies alarming.
             Edit the object from the IDE and assign values to alarm attributes.
             Configure the alarm properties. Typically, the fields that require configuration are Category, Priority
              and Description.
             Configuring any limit fields to set an alarm. For example, the feedback time-out time limit.
          You can add alarm detection and reporting capabilities to objects that were not originally developed to
          detect alarms. You do this by configuring alarm features for the object’s attributes.
                                                                                                                          309
Application Server User Guide                                                        Working with Alarms and Events
             WinPlatform
              o    Excess CPU load alarm
              o    Low disk space alarm
              o    Excessive page faults alarm
              o    Low memory alarm
              o    Engine failure alarm
              o    Engine checkpoint failure alarm
              o    Object quarantined condition
              o    Subscription folding condition
              o    Scheduler scan overrun condition
              A WinPlatform object includes a general communication alarm when it loses contact with the areas
              to which it is subscribed.
             AppEngine
              o    Checkpoint failure alarm
              o    Object quarantined condition
              o    Subscription folding condition
              o    Scheduler scan overrun condition
              o    Redundancy failover alarm
              o    Redundancy Standby unavailable
              o    Redundancy Standby not ready
             ViewEngine
              o    Checkpoint failure alarm
              o    Object quarantined condition
              o    Subscription folding condition
              o    Scheduler scan overrun condition
          The Area and InTouchViewApp system objects do not include any alarms.
310
Working with Alarms and Events                                                           Application Server User Guide
          To indicate whet her the alarm is of high or low importance, the communication failure alarm priority is
          configurable at design time as an integer of range 1–999. InTouc h Alarm P rovider must be enabled in the
          WinPlatform object editor, General tab.
                                                                                                                  311
Application Server User Guide                                                        Working with Alarms and Events
          8.   Click the Alarms tab to show platform, engine, and scheduler alarms that can be set for the
               WinPlatform object.
          9.   Select the check box next to each alarm that you want to enable for the WinPlatform object.
          10. Set the limit, value deadband, and priority for each alarm you selected.
          11. Save and close the Object Editor.
          12. Check the object in to the Galaxy.
          13. Deploy the object in an on scan state.
312
Working with Alarms and Events                                                                        Application Server User Guide
          2.   Click the Alarms tab to show engine, scheduler, an d redundancy alarms that can be set for the
               AppEngine object.
          3.   Select the check box next to each alarm that you want to enable for the AppEngine object.
          4.   Set the priority for each alarm you selected.
          5.   Save and close the Object Editor.
          6.   Check the object in to the Galaxy.
          7.   Deploy the object in an on scan state.
                                         Alarm Types
                                              State
Limit
                                                                  Deviation
                                                                  Target
                                                                              Change
                                                                              Rate of
Statistical
Application Objects
AnalogDevice    
Boolean
                                                                                                                               313
Application Server User Guide                                                         Working with Alarms and Events
DiscreteDevice  
Double
FieldReference
Float
Integer
Sequencer 
String
Switch 
UserDefined    
          The following list shows the types of alarms for each application object in more detail.
             AnalogDevice
              o     Level alarms (HiHi, Hi, Lo, LoLo) [limit alarms]
              o     Rate of Change alarms (Up, Down)
              o     Target Deviation alarms (Minor, Major)
              o     PV Bad Value alarm [state alarm]
             DiscreteDevice
              o     Uncommanded change alarm [state alarm]
              o     Command time-out alarm [state alarm]
              o     Active1 state alarm [state alarm]
              o     Active2 state alarm [state alarm]
              o     Fault state alarm [state alarm]
              o     Active1 state duration alarm [statistical alarm]
              o     Active2 state duration alarm [statistical alarm]
             Sequencer
              o     Execution halted [state alarm]
              o     Condition trigger failure [state alarm]
              o     OnEntry out put failure [state alarm]
              o     OnExit output failure [state alarm]
             Switch
              o     PV State alarm [state alarm]
             UserDefined (Attributes can be alarmed)
              o     PV State alarm [state alarm]
              o     PV Bad Value alarm (that is, bad quality) [state alarm]
              o     Attribute alarm features
                    State alarms
314
Working with Alarms and Events                                                             Application Server User Guide
For objects that do not include this check box, use the Attribute s page.
Note: If you are using field attributes instead of Attributes, use the Field Attribute s page.
                                                                                                                    315
Application Server User Guide                                                           Working with Alarms and Events
          3.   Select or clear the c heck box based on whet her y ou want to generate an event each time the object’s
               PV value changes.
          4.   Click the tab that lists alarm attributes.
                   For the AnalogDevice object, click Alarms.
                   For the DiscreteDevice object, click Alarms.
                   For the Sequencer object, click Settings.
                   For the Switch object, click General.
                   For the UserDefined object, click Attributes (or Field Attribute s, if you are using field
                    attributes). See Setting Alarms on the Attributes Page on page 316 for more information.
          5.   Select the check box that enables alarming for the object.
          6.   Assign values to the attributes for the type of alarm you selected by completing the following steps:
               a.   Assign values to the alarm limits based on the type of alarm.
               b.   Assign an alarm priority (1-999) for each limit you set.
               c.   Accept the default alarm message or include another message for each alarm limit.
               d.   Assign values to the remaining attribut es based on the type of alarm you selected. For more
                    information about other alarm attributes, see Types of Alarms on page 296.
          7.   Save your object changes and close the Object Editor.
          2.   Select the alarm features you want to configure for the attribute. For Boolean data types, you can
               select:
316
Working with Alarms and Events                                                            Application Server User Guide
                   State alarm
                   Bad value alarm
               For Integer, Float and Double data types, you can select:
                   Limit alarms
                   ROC alarms
                   Deviation alarms
                   Bad value alarms
          3.   For each alarm feature that you activate, enter the settings for each alarm.
               a.   Assign values to the alarm limits based on the type of alarm.
               b.   Assign an alarm priority (1-999) for each limit you set.
               c.   Accept the default alarm message or include another message for each alarm limit.
               d.   Assign values to the remaining attribut es based on the type of alarm you selected. For more
                    information about other alarm attributes, see Types of Alarms on page 296.
          4.   To configure event logging for an object, select the Log change feature and click the checkbox
               "Generate event upon change."
          5.   Save your object changes and close the Object Editor.
              Area objects                    Area objects report detected alarms through the Area, which
                                               distributes them to alarm and event clients.
                                                                                                                    317
Application Server User Guide                                                           Working with Alarms and Events
          The WinPlatform sends an alarm through the InTouch Distributed Alarm System to InTouch clients when
          the WinPlatform loses communication wit h an Area that it subscribes to. This condition typically occurs
          during a network outage wit h computers hosting those Areas.
          In a network outage, the WinPlat form InTouch Alarm Provider sends an alarm for each disconnected
          Area that it subscribes to, including all of its alarm distribution hierarchy. Each of these alarms is a high
          priority alarm that contains the name of the Area to which communication is lost. These communication
          problem alarms must be acknowledged.
          Although they still appear in the historic al record, any current alarms from the disconnected Area drop
          from the InTouch client’s summary list. They can no longer be acknowledged.
          When communication to the disconnected Areas is restored, any unacknowledged alarms generated in
          those Areas are sent to the alarm client.
318
Working with Alarms and Events                                                          Application Server User Guide
              \Provider!Area!Filter
              \\Node\Provider!A rea!Filter
          The filter can have a wildcard * character at the beginning or at the end, but not both.
          The \\Node at the beginning is only important if you want to query for alarms from a provider on anot her
          computer. Otherwise, you can leave it off and the reference is assumed to be a provider on the loc al
          computer. The provider name Galaxy refers to alarms and events that get reported by the WinPlat form
          configured as an InTouc h alarm provider on that computer node.
              \Galaxy!Area1
              The query returns all alarms and events from all objects directly contained in Area1 and any
              sub-areas contained by Area1. This hierarchy is determined by what is configured in the Model View
              in the IDE.
             If Area1 and Area2 are two separate mutually exclusive areas, you can submit a query for alarms
              from both areas.
              \Galaxy!Area1 \Galaxy!Area2
             If you're on NodeA and the WinPlat form is on NodeB, you can submit a query for the alarms from the
              remot e computer.
              \\NodeB\Galaxy!Area1
             You can submit a query for all alarms from objects whose name begins with " Tank" in the
              TankFarm1 area.
              \Galaxy!TankFarm1!Tank*
              The trailing wildcard character matches alarms from all objects with names that begin with " Tank"
              like Tank001, Tank002, Tank Upper, or TankLower.
                                                                                                                 319
Application Server User Guide                                                            Working with Alarms and Events
             You can submit a query for specific alarm types. For example, you can submit a query for all HiHi
              alarms in the TankFarm1 area.
\Galaxy!TankFarm1!*.HiHi
 You can submit a query for all types of alarms from a specific object within an area.
              \Galaxy!TankFarm1!Tank752.*
              The trailing wildcard character matches all alarm types for Tank752.
          Note: Smart Card authentication is not supported in multi-galaxy environments for read/write operations
          to remote galaxies.
          If even one alarm in the list requires a signature, you must provide a signature to acknowledge the
          alarms. The SignedAlarmAck() function will acknowledge ALL the alarms in the list.
          With the SignedAlarmAck( ) function, you can provide credentials and acknowledge an alarm or group of
          alarms even if you are not the logged-on operator.
320
Working with Alarms and Events                                                        Application Server User Guide
          Alarm Classes     Only certain classes of alarms are          No system-wide distinction for
          (client column)   supported or det ected: DSC, VALUE,         classes. Alarms are tied to a
                            DEV, ROC, SPC.                              Boolean that can be triggered from
                                                                        any logic.
          Alarm Type        Discrete, LoLo, Lo, Hi, HiHi, MinorDev,     No sub-class. The Alarm feature
          (Sub-class)       MajorDev, ROC, SPC. Client column.          name is the closest concept. For
          (client column)                                               example, ".PVHiAlarm". Mapped
                                                                        from Cat egory.
          Group             Alarm group allows client-side filtering.   No alarm group. But Area provides
                            Sub-groups must be on same InTouch.         mappable concept. Sub-Areas can
                                                                        be on different nodes.
                                                                                                               321
Application Server User Guide                                                                Working with Alarms and Events
          State                 Four states, which are combinations of           Alarm state provides equivalent
                                ACK/UNA CK and ALARM/ RTN                        concept and can be mapped.
                                    UNA CK/ALARM (usually displayed as
                                     UNA CK)
                                    ACK/ALARM (usually displayed as
                                     ACK)
                                    UNA CK/RTN (usually displayed as
                                     UNA CK_RTN)
                                    ACK/RTN (usually displayed as
                                     ACK_RTN)
                                These states have a 1:1 corres pondence
                                with states of the Alarm feature, which
                                keeps track of whether the alarm is
                                InAlarm and IsAcked.
                                Alarms in the state ACK/RTN are not
                                shown in the SUMMA RY alarm display
                                because they do not need any further
                                action from the operator. But, all four states
                                appear in the HIS TORY display, and in the
                                Alarm Database.
          Value,                Only static values sent with alarm               Static values and dynamic
          CheckValue            message.                                         references are provided.
          Ack                   All alarms sent to client and require            All alarms sent to client and
                                acknowledgement regardless of priority.          require acknowledgement
                                                                                 regardless of priority.
          History               Alarm state changes are logged to event          Alarm state changes are logged to
                                history and shown on historical client.          event history and shown on
                                                                                 historical client.
                                    Default Alarm
          Plant State               State               Available Alarm States
322
Working with Alarms and Events                                                                Application Server User Guide
                                 Default Alarm
          Plant State            State                  Available Alarm States
          You can define new plant states, rename plant states, or remove existing plant states, except the
          "Running" state (you can, however, rename "Running"). The alarm state for Running is read-only and
          cannot be changed from Enable.
          After you have defined plant state-based alarm configurations for the Galaxy, you can assign plant
          state-based alarming to area objects in the Galaxy. This is done by setting the PlantState attribute for
          each area object that will use plant state-based alarming. The area object will automatically update its
          PlantAlarmMode attribut e to match the alarm state that is set for the PlantState currently assigned to it.
Attribute Definition
          Note: Settings in this dialog are not shared across Galaxies in a multi-Galaxy environment. Each Galaxy
          in the environment will have its own Alarm s and Events Configuration.
                                                                                                                       323
Application Server User Guide                                                         Working with Alarms and Events
          To use the default values, you do not have to set anything in this dialog. Simply enable plant state-based
          alarms for each area object that is to utilize this feature. See Configuring State-Based Alarming on an
          Area Object on page 325 for additional information.
             To add a new Plant State, Click the add button. A new row is created at the bottom of the table.
              Enter the name of the new plant state. The maximum name length is 64 characters.
              Select a value for the AlarmMode (enable, silence, or disable).
             To delet e an existing Plant State, click the remove button. The selected plant state and its
              associated value are removed from the table.
              Note: The first row of the Alarm Plant State table is read-only and cannot be deleted. Running is the
              default PlantState name in the first row.
             To rename an existing PlantState, double click the plant state you want to rename, then enter the
              new name for the plant state. The maximum name length is 64 characters.
324
Working with Alarms and Events                                                          Application Server User Guide
                                                                                                                 325
Application Server User Guide                                                             Working with Alarms and Events
          To change a PlantState, the operator enters a string to match one of the defined Pl antState values (for
          example, "Running"). Before a change to PlantState can be implemented, the system checks that the
          user belongs to a role that has the permission "Can Modify Plant State of an Area" and is therefore
          authorized to make the change. If the operator enters a string that does not match a defined PlantState,
          the change is rejected.
          At run time, the AlarmMode attribute is read-only. Therefore, the AlarmMode for a PlantState cannot be
          changed through a run time client (for example, changing from enable to silence). It can only be changed
          through the IDE.
          If an area is assigned to a PlantState and the PlantState is deleted through the IDE, the area will remain
          in that PlantState until it is changed. If AlarmMode for the deleted PlantState is anything other than
          enable, the AlarmMode will change to enable.
          Note: Operators with appropriate permissions can use the AlarmModeCmd attribut e to change
          AlarmMode of an area at run time. However, the AlarmModeCmd can only be used to set a more
          restrictive condition than the AlarmMode of the area’s corresponding PlantState. For more information
          about changing alarm modes, see Enabling, Silencing, and Disabling Alarms on page 302.
1 Critical N Y 1 250
326
Working with Alarms and Events                                                              Application Server User Guide
          Note: Mapped alarm severities are not shared across galaxies in a multi-galaxy environment. Each
          galaxy in the environment has its own priority to severity mapping.
1 System Y
2 Application Y
3 User N
          Note: In prior versions of Application Server, historization of alarms and events was configured through
          the Alarm DB Logger Manager (an InTouch component) and utilized the SQL database "WWALMDB."
          The method described here replaces the Alarm DB Logger method.
          2.   Configure alarms:
               a.   Edit the priority range for each severity level, or accept the default values.
                                                                                                                     327
Application Server User Guide                                                            Working with Alarms and Events
               b.   Accept the default (enabled) historization or click to clear the check box and disable historization
                    for each severity level.
          3.   Configure events: Accept the default historization values, or click to clear the check box and disable
               historization for each event type.
          If you want to change the default Alarm Border indicator images shown in the Alarms and Events
          Configuration dialog, see "Changing Alarm Border Indicator Icons" in the Creating and Managing
          ArchestrA Graphics User’s Guide.
328
Working with Alarms and Events                                                            Application Server User Guide
          4.   View aggregated alarm status information by means of run-time clients and applications. For more
               information, see Monitoring Alarm State Information at Run Time on page 335.
          Note: Alarm aggregation is enabled by default on Area objects. Alarm aggregation cannot be disabled
          on application objects, such User Defined objects.
                                                                                                                   329
Application Server User Guide                                                             Working with Alarms and Events
          You can use animations such as the alarm border animation with Situational Awa reness Library symbols
          or with ArchestrA symbols in both Managed InTouch applications and InTouch OMI ViewApps, and you
          can add alarm aggregation displays to navigation items in InTouc h OMI ViewApps
          Alarm aggregation functionality can be described for an object, for an area, and for an attribute.
          Object          Aggregation represents all alarms on the object, on all contained objects, and on
                          their descendents down to the lowest level of the model view.
                          Alarm aggregation values on child objects are added to the values of the parent
                          object or objects.
                          All objects have this alarm aggregation functionality.
          Area            Aggregation represents the alarms on the Area object itself, on all objects assigned
                          to the area, and on all sub-Areas, down to the lowest level of the model view.
                          If the Area’s AlarmMode is silenced, all alarms on all Objects in that Area will be
                          silenced. For more information about setting alarm modes, see the following
                          topics:
                               Understanding Alarms on page 295
                               Setting Alarm State with Object Attributes on page 300
                               Enabling, Silencing, and Dis abling Alarms on page 302.
          Attribute       Aggregation repres ents all the alarms on the attribute itself. This is the lowest level
                          of aggregation.
          Alarms are aggregated if they are in one of three states:
             UNA CK_ALM
             ACK_ALM
             UNA CK_RTN
          Alarms in the ACK_RTN state are not aggregated.
          Alarms in silenced mode are aggregated, even though they do not appear in a run-time client.
          A set of five attribut es provide run-time aggregated alarm status information:
          AlarmMostUrgentSeverity         Displays the severity as an integer 1–4 of the most import ant current
                                          alarms on an object and its descendents. If no alarms are in the
                                          InAlarm state or waiting to be acknowledged, the value is 0.
          AlarmMostUrgentInAlarm          Displays the InAlarm status (true or false) of the most import ant
                                          current alarm.
          AlarmCntsBySeverity             In InTouch OMI and InTouch HMI run-time client applications, this
                                          attribute is used to show the number of alarms by status and
                                          severity. In the Object Viewer, this attribut e displays an array that
                                          shows:
330
Working with Alarms and Events                                                           Application Server User Guide
                                                                                                                  331
Application Server User Guide                                                            Working with Alarms and Events
S1 S2 S3 S4 S1 S2 S3 S4 S1 S2 S3 S4
          In the Object Viewer example shown above, the local object bit value (4) is 34. This is the sum of the
          active S2 bit value plus the UnAck_ALM S2 bit value. Other examples:
             If the local object has one or more active S1 alarms that are unacknowledged, the bit value is 17 (S1
              Active Alarm = 1; S1 UnAck_ALM = 16).
             If the local object has one or more active S4 alarms that are UnAck_RTN, the bit value is 2056 (S 4
              Active Alarm = 8; S4 UnAck_RTN = 2048).
             If there are no local alarms, the bit value is 0.
             If there are multiple local alarms with different severities and unack statuses, the bit value is the sum
              of each bit that is set. For example, if there are two unacknowledged S1 alarms, but one has returned
              to normal, the bit value is 273 (t wo S1 Active Alarms = 1; one S1 UnAck_ALM = 16; one S1
              UnAck_RTN = 256). Note that each bit that is set is only counted once, even if more than one alarm
              exists at that severity or status.
          When alarm aggregation is shown on a navigation it em in an InTouch OMI ViewApp, the bit value is used
          by the navigation item to determine the alarm location (selected object or a contained object). See
          Aggregat ed Alarm Display in InTouch OMI Navigation on page 332 for additional information.
          Note: Alarm indicators ("adorners") used in InTouch OMI navigation are FrameworkElement Adorners,
          part of the Microsoft .NET Framework used in creating and configuring apps for InTouch OMI ViewA pps.
          The opacity of the alarm indicat or shows if the alarm is on the selected navigation node or on a contained
          object. When enabled, the following alarm severities and alarm statuses are shown:
             If the color of the alarm indicator is opaque (solid), the alarm is on the selected (local) object. If
              enabled, the severity (S1 to S 4) and status of the alarm (UNA CK_A LM, UNACK _RTN, ACK _ALM) is
              shown graphically, along wit h a count for each alarm severity that has been enabled.
             If the color of the alarm indicator has some transparency, the alarm is on a contained object.
             The color of the blinking line under the object name shows the highest -severity (most urgent) alarm.
             An indicator on the NavigationTree or BreadCrumbControl shows if the data quality of the object is
              bad. Bad quality may result if communication has been lost with the object.
          You can also determine which navigation node or asset contains the alarm by selecting the alarm icon.
          This displays a tooltip that indicates the node(s) or asset(s) sending the alarm(s).
332
Working with Alarms and Events                                                       Application Server User Guide
          Set Alarm Adorner Options in the Alarms and Events Configuration dialog (Galaxy > Alarms and
          E vents Configuration) to configure whic h aggregated alarms are displayed on NavigationApp controls
          and any custom apps that subscribe to the aggregated alarm count during run time.
          The following Alarm Adorner Options are set through the dialog. The corresponding attribute settings
          are propagated to run-time nodes (all attribute names are prefixed by MyViewA pp.Alarms). For
          additional information about these attributes, see About Alarm Adorner Attributes on page 334.
                                                                                                              333
Application Server User Guide                                                     Working with Alarms and Events
          RTN (Return to Normal) ShowRet urnToNormalAlarms       When enabled, the ViewApp dis plays
                                                                 RTN alarms
334
Working with Alarms and Events                                                           Application Server User Guide
          Note: AlarmApp is not supported in InTouch HMI applications. Similarly, AlarmClient is not supported in
          InTouch OMI ViewApps. Use AlarmApp for InTouch OMI ViewApps to allow alarm aggregation to follow
          selected objects and areas.
          An alarm border animation applied t o a group of symbols can indicate a priority 1 alarm with a red border,
          flashing or solid for different alarms. The alarm border animation can also indicate a return to normal
          (RTN) for the same symbols.
                                                                                                                  335
Application Server User Guide                                                          Working with Alarms and Events
          Alarm clients configured in InTouch applications will display the severity of each alarm in the User1 field.
          You can change "Us er1" to a more descriptive heading, such as "Severity".
          For information about configuring alarm animations, see "Configuring an Alarm Border Animation" in the
          Creating and Managing ArchestrA Graphics User’s Guide.
336
                                                                                                        Application Server User Guide
                                                                                 C HAPTER 10
Working with Multiple GR Nodes and
Galaxies
    This section describes how to pair Galaxy Repositories to configure multi-galaxy communication. This
    lets you connect to and configure remote galaxies, and us e standard run-time tools such as the Galaxy
    Browser, Object Viewer, and ViewApps to browse and subscribe to attributes across multiple galaxies
    deployed across multiple GR nodes.
    Important! If you are using an IDE node that includes a local GR to configure galaxies on remote GR
    nodes, the enhanced security on Wonderware System Platform 2017 and newer versions will not let you
    connect to a remote GR unless you pair to the GR first. You must configure multi -galaxy communication
    to allow the connection. See Connecting to a Remote GR from the IDE on page 366 for additional
    information.
    In This Chapter
    Understanding the Multi-Galaxy Environment ............................................................................... 337
    Setting up Multi-Galaxy Communication ....................................................................................... 337
    Accessing Multiple Galaxies ........................................................................................................ 341
    Setting Remote Galaxy References in the Owning Object Property ................................................ 350
    Working with ArchestrA Services ................................................................................................. 352
    Managing Galaxies in a Multi-Galaxy Environment ........................................................................ 358
    Troubleshooting a Remote Galaxy Connection ............................................................................. 360
    Fixing Communication Issues with the OS Configuration Utility ...................................................... 367
                                                                                                                                        337
Application Server User Guide                                             Working with Multiple GR Nodes and Galaxies
               Important! There can be only one Cross Galaxy Server in a multi-galaxy environment. All GRs in the
               environment must point to the same Cross Galaxy Server node. You can specify nodes by name or
               by IP address.
          5.   Configure Multi-Galaxy for eac h Galaxy (Galaxy > Configure > Multi Galaxy).
               a.   Connect to Galaxy 1 (on GR Node 1) and select the checkbox to enable Remote Pairing. Then,
                    enter a passphrase. The passphrase must be the same for each galaxy to be paired, and must
                    meet a minimum complexity standard:
                    –   Minimum length is nine characters, including at least eight alphanum eric characters (with at
                        least one upper case and one lower case letter and at least one number)
338
Working with Multiple GR Nodes and Galaxies                                           Application Server User Guide
               d.   Enter Node 1 as the Target Galaxy Repository, and ent er the same Passphrase as you entered
                    for Galaxy 1.
                    Node 1 is now listed as a paired Galaxy Repository in the Multi-Galaxy Configuration dialog.
          To change the Cross Galaxy Server
          Use this procedure to change the Cross Galaxy Server for a previously paired Galaxy:
          1.   From the IDE, connect to the Galaxy on a remote node.
          2.   Configure Service Discover for the Galaxy (Galaxy > Configure > Service Discovery).
                                                                                                               339
Application Server User Guide                                           Working with Multiple GR Nodes and Galaxies
               Set the node as the Local Galaxy Server. Set the new node as the Cross Galaxy Server. You can
               configure secondary nodes for redundancy if needed.
               When pairing, the GR node initiating the pairing gets a copy of the primary Cross Galaxy Server
               node if none has been configured.
          Important: You must create a new galaxy with a new, unique name, from a backup .cab file rather than
          by creating a galaxy and performing a restore of the backup .cab file.
Unpairing Galaxies
          You can modify your multi-galaxy configuration by unpairing individual galaxies.
          To unpair galaxies
          1.   Click Galaxy on the IDE menu, then click Configure, then click Multi Galaxy.
               The Multi-Galaxy Configuration dialog box appears.
          2.   In the Paired Galaxies area, select the Galaxy Repository you want to unpair, then click the Delete
               (x) button.
          Under certain conditions, the unpairing operation can fail. For more information, see Troubleshooting a
          Remote Galaxy Connection on page 360.
340
Working with Multiple GR Nodes and Galaxies                                                Application Server User Guide
Renaming Galaxies
          To rename a galaxy for use in a multi-galaxy environment
          1.   Select a galaxy you want to rename, undeploy it and back it up to create a .cab file.
          2.   Use the .cab file as a "template" by placing it in one of the following directories, according to your
               operating system:
                  (32-bit)
                   \Program Files\ArchestrA\Framework\Bin\BackupGalaxies
                  (64-bit)
                   \Program Files (x86)\ArchestrA\Framework\Bin\ BackupGalaxies
          3.   Create a new galaxy based on the backup .cab file, wit h a new name. The name must be unique, not
               in use anywhere else in the multi-galaxy environment.
          4.   Repeat the preceding steps for each galaxy to be renamed with a unique name.
          5.   Redeploy each newly creat ed galaxy.
          6.   Delet e the original galaxy from the Galaxy Repository node.
          7.   Upgrade to ASB-enabled Application Server using the latest System Platform installation program.
          Your galaxies can now be configured for use in a multi-galaxy environment.
                                                                                                                    341
Application Server User Guide                                            Working with Multiple GR Nodes and Galaxies
342
Working with Multiple GR Nodes and Galaxies                                              Application Server User Guide
          Using the same instanc e of the Galaxy Browser, you can select Factory1 from the Namespace selection
          box. The Factory 1 Tagnames and Attribut es will appear.
          You can work with the Factory1 Tagnames and Attributes in the same way as with thos e of Factory2.
          For example, you are working in the Object Editor scripts tab, and you want to add a reference from
          Factory1 in a script. You can open the Galaxy Browser, select Factory1 in the Galaxy Selection box,
          select the Tagname "Outlet _001", select the Attribute "udInt3", then click OK. The Attribut e referenc e is
          inserted into the script as
              Factory1:Outlet_001.udInt3
          at your cursor location. This functionality is unchanged except for the addition of the GR node prefix to
          the Tagname and Attribute.
          Using an instance of the ArchestrA OPC UA Client Service to browse a Galaxy namespace requires the
          use of the specific service instance name as a prefix.
          For example, using an instance of the UA Client Service named "OP CUA Client _010" to browse the
          preceding example would be addressed as follows:
OPCUAClient_010:Factory1:Outlet_001.udInt3
                                                                                                                   343
Application Server User Guide                                            Working with Multiple GR Nodes and Galaxies
              Factory1:Outlet_001.udInt3.value
          E verything following the prefix is addressed as usual. Adding the attribute reference to the Watch
          Window is the same as usual. The attribute reference will appear in the Watch Window with the GR node
          name prefix.
          Using an instance of the ArchestrA OPC UA Client Service in Object Viewer requires the use of the
          specific service instance name as a prefix.
          For example, using an instance of the UA Client Service named "OP CUA Client _010" in the preceding
          example would be addressed as follows:
OPCUAClient_010:Factory1:Outlet_001.udInt3.value
              Galaxy:Pump1.PV
          The following is the same reference with the same access name, but used in a multi -galaxy environment
          to target a remote galaxy named "Factory2", containing object Pump1 with attribute PV:
Galaxy:"Factory2:Pump1.PV"
344
Working with Multiple GR Nodes and Galaxies                                           Application Server User Guide
          The entire expression, enclosed in quotation marks, becomes an item name. This syntax can be used in
          ArchestrA Graphics .NE T scripting, and in InTouch scripting.
          Using an instance of the ArchestrA OPC UA Client Service in this sc enario requires the use of the
          specific service name as a prefix.
          Scope Name/Service Name is specified in the ArchestrA UA Client service edit or. This can be the
          identifier of the OPC UA server to which it is connecting.
          For example, using an instance of the UA Client Service named " TestServer" would be addressed as
          follows:
TestServer:Item1
          Important: If you manually enter ArchestrA Graphic custom property overrides, do not ent er the double
          quotation marks shown in the example. Browsing aut omatically provides the correct syntax, without the
          quotation marks, for custom property overrides. This syntax variation applies to custom property
          overrides only.
          You can define a paired galaxy as a tag source, with an InTouchViewApp leveraging the galaxy pairing
          already configured in Application Server.
                                                                                                               345
Application Server User Guide                                              Working with Multiple GR Nodes and Galaxies
You can then use the Galaxy Browser to access the Galaxy namespaces of the paired galaxies.
346
Working with Multiple GR Nodes and Galaxies                                              Application Server User Guide
          7.   Click OK.
          8.   Clear this option for all nodes in your multi-galaxy environment.
                                                                                                                   347
Application Server User Guide                                              Working with Multiple GR Nodes and Galaxies
              When you run the IDE on the GR node, you can only configure multi-galaxy communication for the
              GR on the same node. From the GR node, you can connect the IDE to a different GR to perform
              other c onfiguration operations, but any attempts to perform multi-galaxy configuration will result in an
              informational message that the functionality is not allowed.
             IDE running on a deployed platform node
              When you run the IDE on a deployed plat form node, you can only configure multi -galaxy
              communication for the GR the platform is deployed from. From the platform node, you can connect
              the IDE to a different GR to perform other configuration operations, but the multi-galaxy configuration
              dialogs will be disabled.
             Multiple instance s of the IDE on a stand-alone node
              On a stand-alone node, if you or other users run more than one instance of the IDE, multi-galaxy can
              only be configured for the GR to which the IDE last connected.
              The IDE node automatically pairs with the GR it connects to. While an IDE is connected to a GR
              node—and paired with it—if anot her IDE connects to a different GR on the same computer, the IDE
              node pairs with the new GR. The previously running IDE will continue to function, but multi -galaxy
              configuration dialogs will be disabled.
          By default, installing Application Server deploys the ASBGRBrowsing service. Other user -defined
          services are not deployed during installation. When you deploy the platform, the ASBMxDataP rovider
          and the ASBAuthentication services automatically deploy. These are default instances which you can
          modify. You can configure and deploy new instances of each of these services.
348
Working with Multiple GR Nodes and Galaxies                                            Application Server User Guide
                                                                                                                 349
Application Server User Guide                                             Working with Multiple GR Nodes and Galaxies
350
Working with Multiple GR Nodes and Galaxies                                             Application Server User Guide
          3.   To use the Galaxy Browser to set the owning object (instead of typing the reference), click the
               ellipsis button. This launches the browser.
          4.   From the Galaxy Browser, select the remote galaxy from the Namespace list of galaxy names. The
               objects contained in the galaxy are listed by tagname.
          5.   Select the object you want to set as the owing object and click OK.
                                                                                                                 351
Application Server User Guide                                            Working with Multiple GR Nodes and Galaxies
352
Working with Multiple GR Nodes and Galaxies                                               Application Server User Guide
              ASBMxDataProvider Service
               The ASBMxDataP rovider service connects to ArchestrA run -time components and provides access
               to run-time data.
              ASBGalaxyBrowsing Service
               The ASBGalaxyBrowsing service connects to the ArchestrA namespace to enable browsing of
               ArchestrA objects and attributes.
              ASBAuthentication Service
               Users are authenticated against Active Directory user accounts. You can configure more than one
               ASBAuthentication service instance to point to different domain servers as needed.
              Event Service
               The E vent service raises, monit ors, and routes events. The E vent Service is not required to enable
               or configure multi-galaxy communication.
              EventHi storization Service
               The E ventHistorization service stores events in a configured database. It is not required to enable or
               configure multi-galaxy communication.
              ASBOPCUAClient Service
               The ArchestrA OPC UA Client Service provides OPC UA data access connectivity to OPC UA
               servers. The OP C UA Client is supplied as a separately installed service in the ASB infrastructure.
               Multiple instances of the OP C UA Client service are supported within the same ArchestrA Galaxy.
               Note: Close the IDE before uninstalling the OPC UA Client Service. If you uninstall the OP C UA
               Client Service with the IDE running, the service will not function properly when you re -install it.
          Note: For the ASBGRBrowsingService, you can also specify the name of the Galaxy to assign an
          instance of the service.
                                                                                                                      353
Application Server User Guide                                             Working with Multiple GR Nodes and Galaxies
          To configure ports for OPC UA clients and servers, the following requirements apply:
             On the node running the ASBOPCUAClient service, you need to open two ports, one for IData and
              one for IBrowse.
             On a node running an OPC UA server, you need to open two ports, one for the OP C UA server and
              one for the OPC UA discovery service, if configured.
              See the following table for more information about OPC UA port configuration.
          The ASB Core Services, installed with the ASB and started by the Watchdog Service, also use specific
          ports. The following table lists the default TCP ports assigned to the user-configurable ASB Services and
          the ports in use for the ASB Core Services.
             The ASB Core Services port numbers should not be used to configure instances of user servic es.
             The firewall must allow incoming connections to the ports in the following table for their
              corresponding services to function.
354
Working with Multiple GR Nodes and Galaxies                                            Application Server User Guide
aaServiceASBSoftwareUpdate 7587
          Important: If a Galaxy Repository (GR) has more than one Galaxy, two additional ports must be opened
          to enable a remote GR to browse to each additional galaxy. For example, two galaxies would require
          ports 7500, 7501, 7502, and 7503 to be open. Three galaxies would require ports 7500 -7505 to be open.
          Important: The ASBGRB rowsing service is configured with one default service instance named
          "Default_< GalaxyName> _GRBrowse". Do not change the name of this default service instance or delete
          this service instance. The GRBrowsing service will stop working when you undeploy the GR Plat form. If
          the default service instance has been renamed, revert the service instance name back to the default
          format. If the default service instance has been deleted, creat e a new instance with the correctly
          formatted default name.
                                                                                                                355
Application Server User Guide                                             Working with Multiple GR Nodes and Galaxies
          2.   Right -click ASBGRBrow singService, and then click Create. You can also type CTRL+N. The new
               instance appears in the tree structure.
          3.   Right -click the instance name and click Check-out
          4.   Enter the Galaxy name in the Galaxy Name box.
          5.   In the Assignments area, select the node you want to assign to the instance, and t hen click Update.
               Note: The Update button is enabled only when you select a node. You cannot delete a node that is
               already assigned to a service instance. To delet e a node, you must first unassign the node from the
               service instance and then delete it.
356
Working with Multiple GR Nodes and Galaxies                                            Application Server User Guide
          2.   Right -click ASBMxDataProviderService, and then click Create. You can also press CTRL+N. The
               new instance appears in the tree structure.
          3.   Right -click the instance name and click Check-out.
          4.   In the Assignments area, select the node you want to assign to the instance, and t hen click Update.
          5.   On the left-pane, right-click the instance, and then click Check-in.
          6.   On the left-pane, right-click the instance, and then select Deploy. A message appears indicating
               whet her the node is successfully deployed.
          2.   Right -click ASBAuthenticationService, and then click Create. You can also press CTRL+N. The
               new instance appears in the tree structure.
                                                                                                                  357
Application Server User Guide                                              Working with Multiple GR Nodes and Galaxies
          Note: A run-time node will be offline if its hosted WinPlatform object is undeployed or if there is a pending
          software upgrade (S UP state). To change the status of the node to online and deploy new services,
          apply any required soft ware upgrades and redeploy the WinPlat form object.
IOMBLSService
          The IOMBLSServic e provides services for browsing, configuring, and deploying objects and visual
          elements. All the services provided by IOMBLSServic e are hosted in a single executable
          (aaS erviceHost32.exe). IOMB LService is not user -configurable, and runs in the background. Do not
          delete, duplicate, close, or modify this service in any way.
358
Working with Multiple GR Nodes and Galaxies                                                 Application Server User Guide
          5.   Open the Multi-Galaxy Configuration dialog. Notice that all the pairing information has persisted
               through t he uninstall -reinstall operation. Also, notice that multi-galaxy operations are not functioning.
               You can’t browse to or subscribe from Node2 even though the nodes appear to be paired.
          6.   Unpair and pair Node1 to get the new Discovery Service and pairing information from Node2.
Backing Up a Galaxy
          Use the Galaxy Database Manager in the SMC to perform a galaxy backup. The backup workflow is
          unchanged. There are minor differences in some details:
              The .cab file XML (_GalaxyInfo.txt) has changed to include the backup node name.
              The file repository folder of t he .cab file no w contains a file, <gr node name><galaxy name>_S R.cs v,
               that lists all nodes and services configured for the galaxy whose backup the .cab file represents. The
               galaxy restore process uses this .csv file to recreate ASB nodes and servic es in the target galaxy .
          You can back up and restore to a local node. You can back up and restore to a remote node.
Deleting a Galaxy
          Deleting and restoring a galaxy requires that there be no clients connected to it. In a multi -galaxy
          environment, any deployed browsing service is considered a connection.
          The following preparatory steps occur prior to initiating the galaxy delete operation:
          1.   Use the Configure Arche strA Services editor to undeploy and delete all service instances. The
               ASB Service instances created for a galaxy are not deleted when the galaxy is deleted.
          2.   Use the Configure Arche strA Services editor t o undeploy all browsing s ervices associated with the
               galaxy being deleted. If clients are connected, the delete operation is aborted and all browsing
               services that were previously undeploy ed are redeployed.
          If the delete operation can proceed, all services, including the browsing services, are deleted.
Restoring a Galaxy
          The galaxy restore workflow remains unchanged. You can do the following restore operations:
              Restoring to an E xisting Galaxy on page 359
              Restoring to a New Galaxy on page 360
                                                                                                                      359
Application Server User Guide                                             Working with Multiple GR Nodes and Galaxies
          The workflow for restoring Galaxy2 to Galaxy1 remains unchanged. Use the SMC to restore the galaxy,
          and target the existing galaxy, Galaxy1, to be replaced. The destination galaxy name will remain
          unchanged, even though the nodes will be replaced with what is defined in the .cab file.
Upgrading a Galaxy
          Back up your galaxies before performing an Applic ation Server software upgrade.
          When you restore a non-ASB galaxy from a backup to a later version of the software that includes the
          ArchestrA Services and ASB functionality, the restore process will set up the default services and
          extensions.
          When you back up the upgraded galaxy, the backup .cab file XML will have the node name. The .csv file
          will contain the list of services and instances as they exist in the upgraded galaxy.
Migrating a Galaxy
          The migration workflow remains unchanged, but has an additional operation at the end of the migration
          process specifically for ASB.
          Migrating from a non-ASB galaxy to an ASB-enabled galaxy, by default, does not create service
          instances and nodes during the migration process.
          Creation of ASB service instances and nodes is deferred until the end of the migration proc ess.
360
Working with Multiple GR Nodes and Galaxies                                              Application Server User Guide
          Important: Watchdog and other ASB core services must be running whether or not you are operating in
          a multi-galaxy environment. Galaxy deletion, configuration, or run-time operations can fail if ASB
          services are not running, even when not operating in a multi-galaxy environment. See Local services in
          the following troubleshooting table for more information.
          Local service s   The ArchestrA Watchdog service is      Do not stop the Watchdog service even if
                            a utility to start all the ArchestrA   you do not plan to use a multi-galaxy
                            Core Services. The Watchdog            environment.
                            service starts automatically when
                                                                   These steps use the Windows 2008 R2
                            you start your operating system.
                                                                   operating system for illustration.
                            The Watchdog service and other
                                                                   1.   Click Start, then Admini strative
                            ASB services are tightly coupled
                                                                        Tool s, then Component Services.
                            with Application Server
                                                                        The Component Services utility
                            configuration and run-time
                                                                        opens.
                            operations.
                                                                2.      Click Services (Local) to populate
                               The Watchdog service must be
                                                                        the Services (Local) pane.
                                running in order to create
                                service instances and nodes, to 3.      Click Arche strA Watchdog Service
                                deploy, undeploy, or delete             to view its state.
                                user-defined ArchestrA
                                                                4.      If the Watchdog service is not
                                services.
                                                                        running, click Start the service.
                               The Watchdog service must be
                                                                   5.   Exit the Component Services utility.
                                running whether or not you are
                                using a multi-galaxy
                                environment.
                                                                                                                  361
Application Server User Guide                                                   Working with Multiple GR Nodes and Galaxies
          Service               By default, the Local Galaxy Server   Do these steps for each galaxy in the
          Di scovery            primary node is not configured        multi-galaxy environment for which you
          configuration         (blank), and must be designated       are having connectivity issues.
                                before you can enable galaxy
                                                                      1.   In the IDE main menu, click Galaxy,
                                pairing.
                                                                           then click Configure, then click
                                By default, the Cross Galaxy Server        Service Discovery to open the
                                primary node is not configured             Service Discovery Configuration
                                (blank), and must be set to the            dialog box.
                                designated Cross Galaxy Server
                                                                    2.     Verify or configure the Local Galaxy
                                before you can enable galaxy
                                                                           Server Primary node as the local
                                pairing.
                                                                           galaxy GR node.
                                There can be only one Cross Galaxy
                                                                   3.      Verify or configure the Cross Galaxy
                                Server in a multi-galaxy
                                                                           Server P rimary node as the node you
                                environment. All galaxies in the
                                                                           have defined as the Cross Galaxy
                                environment must designat e the
                                                                           Server for all paired galaxies.
                                same Cross Galaxy Server primary
                                node.
362
Working with Multiple GR Nodes and Galaxies                                               Application Server User Guide
          Arche strA        The user-configurable ArchestrA        For more information about configuring
          Services          Services provide communic ation        ArchestrA Services, see Configuring and
          configuration     channels for attribut e browsing and   Deploying ArchestrA Services on page
                            run-time dat a access.                 353.
                            By default one instance of each        For browsing issues, verify the
                            service is configured and locally      ASBGRBrowsing servic e instance.
                            deployed.
                                                                   For run-time data subscription issues,
                            At least one instance of each          verify the ASBMxDataP rovider service
                            service must be deployed on each       instance on the publisher side, and
                            galaxy in the multi-galaxy             ensure that the galaxy is deployed.
                            environment for multi-galaxy
                                                                   For secured write issues, verify the
                            communication to function.
                                                                   ASBAuthentication service instance.
                            Note: When you set or change the 1.         In the IDE main menu, click Galaxy,
                            Local Galaxy Server or the Cross            then click Configure, then click
                            Galaxy Server, the core ASB                 Arche strA Service s to open the
                            services aut omatically restart. This       Configure Arche strA Service s
                            can create a timing issue if you            dialog box.
                            immediat ely deploy a platform. The
                            ASBMxDataProvider and the             2.    Expand the GR node in the hierarchy
                            ASBAuthentication services can fail         pane to view the installed services.
                            to deploy. Run-time connectivity            Expand each service in the hierarchy
                            would then fail in the multi-galaxy         to view the service instances.
                            environment.                                a.   Select the instance to view its
                                                                             configuration in the configuration
                                                                             pane.
                                                                        b.   Verify that the Galaxy Name is
                                                                             correct (ASBGRBrowsing
                                                                             service only).
                                                                        c.   Verify that the service instance is
                                                                             assigned to a node, visible in the
                                                                             Assignments pane, and that the
                                                                             node is correct.
                                                                        d.   Verify that the service instance is
                                                                             deployed.
                                                                   3.   Edit the service instanc e
                                                                        configurations as necessary.
                                                                                                                   363
Application Server User Guide                                               Working with Multiple GR Nodes and Galaxies
          Client                The Galaxy Browser, Object Viewer,   For Object Viewer communication errors,
          configuration         and Managed InTouch applications     review the Attribute Reference syntax. In
                                can function as clients to browse    particular, ensure that the correct
                                attributes in the ArchestrA          <GalaxyName>: prefix is present and
                                namespace, or to subscribe to        points to the correct galaxy.
                                run-time dat a.
                                                                      For Galaxy Browser errors, ensure that
                                Using these clients in a multi-galaxy you have selected the correct galaxy in
                                environment is described in           the Galaxy: list box.
                                Accessing Multiple Galaxies on
                                                                      For Managed InTouch errors:
                                page 341.
                                                                       Ensure that you have selected the
                                                                          correct galaxy when accessing
                                                                          tagnames and attributes from the
                                                                          Galaxy Browser.
                                                                        Ensure that syntax is correct,
                                                                         including the "Galaxy:" access name
                                                                         prefix, and the full attribute reference
                                                                         in quotes, with the remote galaxy
                                                                         prefix as part of the expression.
                                                                         Correct any incorrect syntax.
364
Working with Multiple GR Nodes and Galaxies                                                Application Server User Guide
          Security          OS User with domain users only and      For information about security
          configuration     OS Group (supports only domain          configuration, see Configure Securit y on
                            users) are the only ArchestrA           page 409.
                            Security models support ed in a
                                                                    In the IDE, set the security mode to
                            multi-galaxy environment.
                                                                    Galaxy Security.
                            Security issues, evident wit h failed
                                                                    In InTouch HMI, set the security mode to
                            writes, can occur for any of the
                                                                    Arche strA.
                            following possible causes:
                                                                  In the multi-galaxy environment, set local
                               Security mode of galaxy is set to
                                                                  and remote galaxy security to the same
                                Galaxy Security
                                                                  mode for each galaxy.
                               Security mode of InTouch is not In the multi-galaxy environment, log into
                                set to ArchestrA                  each remote galaxy at least one time (for
                               User has not logged int o the       each user who requires access to those
                                remot e Galaxy at least once        galaxies and has sufficient write
                                                                    permissions ).
                               Security modes of local and
                                remot e galaxies don’t match        In the Configure ArchestrA Services
                                                                    dialog, verify the ASBAuthentication
                               User doesn’t have sufficient        service instance.
                                permissions to perform the write
                                                                    1.   Open the Configure Arche strA
                               Default User Authentication              Services dialog box.
                                service is not deployed on the
                                GR node                             2.   Expand the GR node in the hierarchy
                                                                         pane to view the installed services.
                                                                         Expand the each service in the
                                                                         hierarchy to view the service
                                                                         instances.
                                                                         a.   Select the instance to view its
                                                                              configuration in the configuration
                                                                              pane.
                                                                         b.   Verify that the service instance is
                                                                              assigned to a node, visible in the
                                                                              Assignments pane, and that the
                                                                              node is correct.
                                                                         c.   Verify that the service instance is
                                                                              deployed.
                                                                    3.   Edit the service instanc e
                                                                         configurations as necessary.
                                                                                                                    365
Application Server User Guide                                                 Working with Multiple GR Nodes and Galaxies
          Unpairing             Unpairing galaxies requires that        When an unpair operation fails, you will
          galaxies              communication is established with       see the Un-pair operation with remote
                                the remote node to be unpaired. If      Galaxy Repository failed error
                                communication with a remote             message and dialog box.
                                galaxy is broken, unpairing with that
                                                                      This dialog box offers you a choice to
                                node will fail.
                                                                      force the unpair, or to wait until the
                                This condition can occur in different remot e GR is back online.
                                scenarios, including:
                                                                       Click Yes to forc e the unpair.
                                 The remote node is down or not
                                                                      The forced unpairing occurs only on the
                                    on the network.
                                                                      local GR. When the remote GR is back
                                 The System Authentication           online, any client running on the remot e
                                    service is not running.           GR will be unaware that an unpairing has
                                                                      occurred, and will still be able to discover
                                 The Watchdog service is not         and connect to the service on the local
                                    running                           GR from which you performed the failed
                                 A mismatch or corruption has        unpairing operation.
                                    occurred in a security key.        Click No to end the unpairing
                                                                            operation and wait until the remote
                                                                            GR is back online.
                                                                        When you click No, the system takes no
                                                                        action, and pairing remains as
                                                                        configured.
                                                                        You can now troubleshoot why the
                                                                        remot e GR is offline, then retry the
                                                                        unpairing operation.
366
Working with Multiple GR Nodes and Galaxies                                             Application Server User Guide
          2.   Configure Service Discovery for Node 1, and set Node 1 as the Local Galaxy Server and Cross
               Galaxy Server (Galaxy > Configure > Service Discovery).
          3.   Open the IDE on Node 3 and connect to Galaxy 2.
          4.   Configure Service Discovery for Node 2, and set Node 2 as the Local Galaxy Server. Set Node 1 as
               the Cross Galaxy Server (Galaxy > Configure > Service Discovery).
          5.   Configure Multi-Galaxy for eac h Galaxy. Use the Node 1 IDE to configure Multi-Galaxy for Node 1,
               and the Node 3 IDE to configure Multi-Galaxy for Node 3.
               Make sure that you use the same Passphrase for both nodes.
          Scenario 2
          The nodes have the following configuration:
              Node 1: IDE + GR (Galaxy 1)
              Node 2: IDE + GR (Galaxy 2)
          To establish communication with the blocked GR in Scenario 2
          1.   Open the IDE on Node 1 and connect to Galaxy 1.
          2.   Configure Service Discovery for Node 1, and set Node 1 as the Local Galaxy Server and Cross
               Galaxy Server (Galaxy > Configure > Service Discovery).
          3.   Open the IDE on Node 2 and connect to Galaxy 2.
          4.   Configure Service Discovery for Node 2, and set Node 2 as the Local Galaxy Server. Set Node 1 as
               the Cross Galaxy Server (Galaxy > Configure > Service Discovery).
          5.   Configure Multi-Galaxy for eac h Galaxy. Use the Node 1 IDE to configure Multi-Galaxy for Node 1,
               and the Node 2 IDE to configure Multi-Galaxy for Node 2.
               Make sure that you use the same Passphrase for both nodes.
                                                                                                                  367
Application Server User Guide                                             Working with Multiple GR Nodes and Galaxies
          The utility will open ports and change registry values to fix any communication issues it finds. Other than
          starting the utility, all updates are automatic. No user interaction is required or allowed, other than
          restarting the system after the utility has finished running.
368
                                                                                                           Application Server User Guide
                                                                                    C HAPTER 11
Working with Buffered Data
     In This Chapter
     About Buffered Data ................................................................................................................... 369
     Configuring Buffered Data for an Attribute .................................................................................... 370
     Using Object Viewer with Buffered Data ....................................................................................... 371
     Using ArchestrA Scripts to Process Buffered Dat a ........................................................................ 373
     Buffered Data Run-time Behavior................................................................................................. 375
     About Buffered Data and History .................................................................................................. 376
     About Buffered Data and Alarms and E vents ................................................................................ 377
     Note: If multiple attribut es with I/O enabled are configured for buffered data from the same data point in
     the Telemetry Server, only one attribute will receive the buffered data at run time.
                                                                                                                                            369
Application Server User Guide                                                              Working with Buffered Data
          Attribute                User defined attributes with I/O configured to read or read/write data can
                                   support buffered data processing.
                                   When buffered data is enabled, the attribut e subscribes to the buffer
                                   property and rec eives the buffered data via Message Exchange. See
                                   Using Message Exchange and Attributes on page 383 for more
                                   information about Message Exchange.
          Scripts                  A script subscribes to an attribute and receives buffered data from it. A
                                   specific syntax is used to properly proc ess buffered data in scripting.
                                   Scripts can also read the buffer from an attribute or directly from the
                                   DIObject.
                                   For more information, see Using ArchestrA Scripts to Process Buffered
                                   Data on page 373.
          Telemetry Server         The Telemetry Server collects and stores VTQ data from RTUs (remote
                                   terminal units) c onnected to field devices. The Telemetry Server typically
                                   only sends data to Application Server when polled. Since polling may be
                                   performed only periodically, there may be a large dataset of intermediate
                                   values that would be lost if buffering is not enabled.
          DIObject                 For attributes with a buffer property that is being subscribed, the
                                   DIObject collects VTQ values from the O I Server, and legacy DAServer,
                                   and packs the VTQ values into buffer collections, based on scan cycle
                                   completion or on end of data received.
          Application Engine       The Application Engine hosts and executes the ApplicationObjects’
                                   logic.
          Data Consumers           When buffered data is enabled, data consumers such as the Historian
                                   and alarms subsystems subscribe to the Buffer property of the
                                   configured attribute to receive published buffered data. The buffered
                                   data, a stream of V TQs, is assembled and appended in cac hes to avoid
                                   data folding, and is then published through Message Exchange to
                                   consumers such as the Historian, alarms and scripts. See Using
                                   Message Exchange and Attributes on page 383 for more information.
          Note: The buffered data feature does not support out-of-sequence data. Out-of-sequence data occurs
          when the time stamps of the VTQ sequence for a specific referenc e is not arranged in incremental order
          from older to newer.
370
Working with Buffered Data                                                               Application Server User Guide
               Buffered data can be configured for all attribute data types except InternationalizedString.
          3.   Enable the I/O feature for the attribute and select Read or Read/Write, as appropriate.
          4.   Click the arrow to expand the Advanced I/O configuration options.
               Select and modify other advanced options as needed. See Using the I/O Feature on page 121 for
               more information.
                                                                                                                  371
Application Server User Guide                                                                 Working with Buffered Data
          The Object Viewer Attribute s Li st displays a Has Buffer column to reflect whether an attribute has a
          buffer. The value displayed in the column is True if the attribute has a buffer and False if the attribute has
          no buffer, as shown in the following illustration.
          Add the <attributename>.buffer property to the Object Viewer Watch Window . The Value column
          displays the message <<Double-click to display buffer>>. Double-click the attribute to view the buffer
          elements. The View Buffer Elements dialog box appears.
          The View Buffer Elements dialog box header displays the Attribute Reference, Type, Timestamp, and
          Count. A details window displays Value, Timestamp, and Quality (VTQ) columns for each item. The data
          is displayed as a snapshot. Refresh the window to ret rieve another snapshot.
          The source attribute must also have buffered data enabled. If buffered data is not enabled on the source
          attribute, the data quality will return as bad, and a configuration error message is displaye d.
372
Working with Buffered Data                                                              Application Server User Guide
          Important: For scripts that process buffered data, it is strongly recommended that you configure scripts
          as asynchronous execution type. Processing buffered data may be time consuming and exceed the
          script execution time limit. See Scripting Tips and Best Practices on page 374 for more information.
          Declaration
              dim vtq as ValueTimeQuality;
Note: The only syntax that can be used to process buffers in scripts is FOR EACH.
          LogMessage("Script Start");
             strWriter = System.IO.File.AppendText("C:\\sample.txt");
          FOR EACH vtq in me.UD1.buffer
             strWriter.WriteLine("DAS value is "+vtq.value);
             strWriter.WriteLine("Time stamp of the value is "+vtq.time);
                                                                                                                 373
Application Server User Guide                                                                Working with Buffered Data
          next;
             strWriter.Flush();
             strWriter.Close();
          LogMessage("Script End");
          For each VTQ in this script sample, Value, Timestamp, and Quality are written to the sample.txt file.
          For purposes of illustration, UD1 in the script sample is a buffer -enabled Integer attribute with input
          extended to a DDE item.
          Sample Output Text Written to Text File
          DAS value is 2
374
Working with Buffered Data                                                               Application Server User Guide
          dim x as indirect;
          In Startup:
          x.BindTo("me.attribute1.buffer");
          In Execute:
          Scan Group                           When the buffer property of a scan group’s dynamic attribute
                                               is subscribed to at run time, the buffer data support is
                                               enabled. The scan group accumulat es all of that item's
                                               updates into a buffer of V TQs.
                                               The scan group supports buffering up to 10,000 V TQs per
                                               item per scan. Higher data throughput rates are not
                                               supported
                               On Scan         When the object is placed On Scan, the system enables all
                                               available items and resets item error count.
                                                                                                                   375
Application Server User Guide                                                                 Working with Buffered Data
                                Off Scan        When the Scan Group goes Off Scan, it will clear all buffers
                                                associated with each item in the Scan Group.
                                                When buffered data is enabled and the host object goes Off
                                                Scan, a VTQ with Bad Quality is added to the buffer. On a
                                                subsequent scan, the buffer property of the Value attribute is
                                                cleared.
          Inputs                On Startup      When buffer is enabled on the attribute, buffer support for the
                                                input is enabled. No dat a is processed during this phase.
                                                Redundant DIObject
                                                When buffering is enabled, the Redundant DIObject (RDI)
                                                subscribes to the buffer property of its DI source items.
                                                On failover, all advised items are moved to the backup node,
                                                whet her or not buffered dat a is enabled.
                                                Buffered attributes are not synchronized with a redundant
                                                partner. When a failover occurs, unprocessed buffered data
                                                is lost.
          Buffer Monitoring        The ApplicationObject monitors and historizes the attribut e value. If the
                                   attribute being historized has a buffer property, the ApplicationObject
                                   monitors the attribute’s buffer instead of its value, and historizes each V TQ
                                   in the buffer.
          Attribute Registration Attributes that are buffer-enabled are registered with the Historian in the
          with the Historian     same manner as non-buffered attribut es are registered.
376
Working with Buffered Data                                                                Application Server User Guide
          Push Attribute         After successful registration of an attribute wit h the Historian, the
          Changes to the         buffer-enabled attribute pus hes the dat a changes to the Historian.
          Historian
                                 If the buffer-enabled attribute reads an empty buffer, and if this is the firs t
                                 scan cycle after the attribute was registered, it gets the attribute’s Value,
                                 Time, and Quality properties, and if Quality is Good, sends this VTQ to the
                                 Historian.
                                 If the buffer-enabled attribute reads an empty buffer, and if this is not the
                                 first scan cycle after the attribute was registered, it does nothing.
                                 For more information, see Work ing with History on page 277.
                                                                                                                    377
Application Server User Guide                                                                 Working with Buffered Data
          4.   Under Data management, enable the setting, "Reconnect as soon as possible & do not mark
               disconnects."
          5.   Save and close the AppEngine object.
378
Working with Buffered Data                                                            Application Server User Guide
          Detection          With buffered data enabled for the condition attribute, the alarm condition
                             change is detected using the buffer property of the condition attributes.
                             Multiple alarm messages can be generated based on the buffer contents.
                             The alarm is time-stamped with the time the alarm was recorded at the
                             field device, not the time at which the values were received and processed
                             within the object.
                             A set of alarm messages corresponding to the alarm state transitions are
                             sent to its Notification Distributor.
                             The TimeAlarmOff attribute’s value is set to the time of the last off
                             transition, and TimeAlarmOn to the last on transition.
                             The InAlarm value, time and quality properties are set to the last alarm
                             transition’s state, time and quality.
          Throttling         Alarm throttling settings are ignored for alarm messages generated based
                             on buffered data.
                             Alarms will be generated for all alarm conditions in the buffers. If a
                             potential throttling point is reached, the current version of Application
                             Server provides a functionality for all alarms to be processed without
                             system overload.
          Acknowledgement    If an alarm is associated with buffered dat a, acknowledging an alarm only
                             acknowledges the last alarm, and not all alarms contained in the buffer.
          Disabled Alarms    If an alarm is disabled for a buffered attribute, the alarm’s Buffer property is
                             not processed. Alarm buffers for disabled alarms are cleared.
                             If an alarm is silenced for a buffered attribute, the alarm’s Buffer property is
                             processed. Alarms will be generated but will not be displayed by the alarm
                             client.
          Outages            Buffered alarms and events can be lost when there is an out age because
                             the Notification Distributor will only keep and re -send the last on-alarm
                             message and the last off-alarm message.
                                                                                                                379
Application Server User Guide                                                             Working with Buffered Data
          Data Change E vent    Application (data change) E vents have the following fields:
                                   E vent type – data change (historized)
                                   Timestamp – date/time of event (historized)
                                When Log E vent is checked for the buffered data -enabled attribute, a data
                                change event will be reported for every V TQ in the attribute's buffer
                                property.
          Limit Alarm           The limit alarm can provide a buffer of alarms on an attribute with buffered
                                data enabled.
                                If the base attribute has an associated Buffer property, then the limit alarm
                                calculation is performed for each VTQ in the buffer. This results in a buffer
                                of Boolean alarm conditions with associated time of the V TQ matching the
                                times of the VTQ in input buffer, which is stored in the respective condition
                                attribute’s buffer property.
                                The order of the condition buffer matches the order of the input buffer. The
                                respective condition value and time reflects the last VTQ in the input
                                buffer.
                                Value Deadband: If value deadband is configured for limit alarms, then
                                the alarm condition is calculated using V TQs in the input buffer. All VTQs
                                in the buffer are proc essed. Value deadband is used during execution.
                                Time Deadband: If time deadband is configured for limit alarms, when the
                                alarm condition is met, the duration of the condition is calculated using the
                                VTQs in the input buffer. If the last condition change remains undecided
                                until the end of processing the current buffer, then a late decision will be
                                made when the next input buffer is processed. If no more input buffer is
                                received, the last alarm condition change is reported when the time
                                deadband has elaps ed as engine time.
                                The time deadband is applied only to the On Rise event of the alarm state.
                                It is not applied when the alarm state falls outside the limit condition.
          State Alarm           The state alarm can provide a buffer of alarms on a B oolean attribute when
                                buffered dat a is enabled.
                                If the base attribute has an associated Buffer property, then the state
                                alarm calculation is performed for each V TQ in the input buffer. This
                                results in a buffer of Boolean alarm conditions with associated time of the
                                VTQ matching the times of the V TQ in input buffer, which is stored in the
                                respective Condition attribute’s buffer property.
                                The order of the condition buffer matches the order of the input buffer. The
                                respective condition value and time reflects the last VTQ in the input
                                buffer.
380
Working with Buffered Data                                                          Application Server User Guide
          Rate of Change     If the input has an associated Buffer property, then the Rate of Change
          Alarm              (ROC) calculation is performed for each V TQ in the input buffer. Interval is
                             calculated using the difference of two successive V TQs. These
                             calculations result in an array of Boolean alarm conditions with associated
                             timestamps which are stored in the buffer property of the resp ective
                             condition alarm attribute. The condition value reflects the last VTQ in the
                             respective condition buffer.
          Deviation Alarm    If buffered data is enabled for a deviation alarm’s attributes, buffered data
                             is also enabled on the configured condition attributes Dev.Minor. Condition
                             or Dev.Major. Condition or both.
                             When buffered data is enabled on a deviation alarm’s attributes and the
                             AppEngine goes Off Scan, the buffers for the configured condition
                             attributes, Dev.Minor.Condition or Dev.Major. Condition or bot h, are
                             cleared of all VTQs.
                             If the input has an associated Buffer property, then the deviation
                             calculation is performed for each V TQ in the input buffer. These
                             calculations result in an array of Boolean alarm conditions and associated
                             timestamps which are stored in the buffer property of the respective
                             condition alarm attribute. The condition value reflects the last VTQ in the
                             respective Condition buffer.
                                                                                                             381
                                                                                                            Application Server User Guide
                                                                                     C HAPTER 12
Working with References
    This section describes the conc ept of referenc es and how to use reference strings in creating your
    Application Server application.
    In This Chapter
    Using Message Exchange and Attributes ..................................................................................... 383
    Referenc e Strings ....................................................................................................................... 383
    Viewing Attributes in Objects ....................................................................................................... 389
    Using Galaxy Referenc es in InTouch ........................................................................................... 392
    Telemet ry Server Data References .............................................................................................. 394
    Note: ArchestrA is the framework for supervisory control and manufacturing information systems. It is an
    open and extensible technology based on a distributed, object -based design. For example, if you are
    using Application S erver with InTouch, thes e products communicate with each other using the ArchestrA
    framework.
    All object attributes have properties, such as Value and Quality. Any data read or written to or from these
    attributes over ArchestrA Message Exchange is tracked. If an operation cannot be performed, the
    requesting client is notified.
    Message Exchange provides the following feat ures and information:
        Guarant eed response
        Name signatures
        Status and data quality
        Message order preservation wit hin a priority system
        AppEngine-to-A ppEngine buffering
        Publish-subscribe heartbeats
Reference Strings
    Referenc e strings refer to an object or to data within an object’s attributes. A reference string consists of
    an object's reference string plus an attribute's reference string.
                                                                                                                                             383
Application Server User Guide                                                                   Working with References
          GalaxyName:ObjectName.AttributeName.
          Use references and reference strings in a multi-galaxy environment as you would in a single-galaxy
          environment, with the exception of the galaxy name prefix, <GalaxyName>, followed by a colon as in the
          preceding example. For more information about using referenc es and referenc e strings in a multi-galaxy
          environment, see Accessing Multiple Galaxies on page 341.
          In TIC101.PV, TIC101 is the object reference and PV is the attribute reference. The AttributeName
          can be omitted in a reference string, PV being assumed in such cases.
          Referenc e strings are concatenated substrings, each no more than 32 characters separated by periods.
          A substring cannot contain a period. Mathematical operator characters are not allowed. At least one
          character in each substring must be non -numeric.
          A void assigning objects and attributes names such that the same reference string can refer to two
          different things. For example, you have two objects named A1 and B2, and inside A1 you create an
          attribute named B2 with a data type of Float. A1.B2 refers to the attribut e Float named B2. If you then
          assign object B2 so that A1 is a container of object B2, the reference A1.B2 could refer either to the
          object B2 or the attribute B2 Float.
          Important: The Galaxy resolves referenc e strings. If the GR is not available, resolution is done on a
          peer-to-peer level. After initial resolution, an object is provided an alias that handles references to its
          location across your net work. If an object is relocated or renamed, the referenc e string res olution is
          repeated and a new alias provided.
Relative References
          Referenc es that go up the hierarchy to parent objects are called relative references. For more
          information about hierarchy, see ApplicationObject Containment on page 55.
          Relative references, such as Me, are valid reference strings. A valid reference string must always contain
          at least a relative reference or one substring.
          The following are valid relative references that refer to the current object:
             Me                         MyContainer               MyArea
             MyPlatform                 MyEngine                  MyHost
          Relative referenc es are especially us eful in templates because absolute references typically do not apply
          or make sense.
          When you use relative references, like MyContainer, you can refer to contained objects within that
          container. For ex ample, a reference to MyContainer.InletValve.PV is equivalent to
          Tank1.InletValve.PV in the following hierarchy:
          Inlet Valve               Can referenc e at this level because this object is contained
          (InletValve)
          Outlet Valve              Can referenc e at this level because this object is contained
          (OutletValve)
384
Working with References                                                                 Application Server User Guide
Property References
          Cert ain property names are reserved for ArchestrA. If a string has a reserved property name in the
          ArchestrA environment, you can still use it. The PROPERTY keyword must be part of the string, for
          example, PROPERTY(propertyName). In all other cases, the case insensitive PROPERTY keyword is
          not required.
          The Value property is assumed if no property reference is specified.
          The following are property references:
               .Name
               .Value
               .Type
               .Quality
               .Time
          syntax:
          obj.int.PROPERTY(quality)
          where:
                obj = object specifier
                int = attribute
                PROPERTY = keyword
                (quality) = property specifier
          For example, you can address the time of an attribute in a scan group for a DIObject from within an
          InTouch application, as follows:
          Galaxy:"<DIObject>.<scangroup>.<attribute>.Property(Time)"
          This is the same as if you used . Time:
          Galaxy:"<DIObject>.<scangroup>.Attribute(<attribute>).Time"
          You can directly address an item without having an attribute in the scan group. For this example, the item
          is MB1:
          Galaxy:"<DIObject>.<scangroup>.MB1.Property(Time)"
          and
          Galaxy:"<DIObject>.<scangroup>.Attribute(MB1).Time"
          For objects with a default scan group, you must refer to the .Time, .Value, and .Quality properties using
          the .Property(time), .Property(value), and .Property(quality) notation.
          The following is an example of the correct use of property:
                LogMessage(ATTRIBUTE("MyEngine.tagname.PROPERTY(securityclassification)")
                )
          The following is an example of the incorrect use of property:
Logmessage(abtcpplc5_001.fast.changingpoint.property(quality));
                                                                                                                 385
Application Server User Guide                                                                    Working with References
          obj.udStringGMTfromLocalTime= localDateTime.ToUniversalTime().ToString();
          To convert the string GMT to a string of local time:
Obj.udStringLocalTimeFromGMT = univDateTime.ToLocalTime().ToString();
Arrays
          A reference string can also refer to the Value property of an array attribute with an optional Array Element
          Referenc e that includes up to one dimension:
             [i] – individual element
             [] – entire array
386
Working with References                                                             Application Server User Guide
This... means...
| or
[] contents optional
Quotation marks are not allowed in tag names, feature names, or attribute names.
Using Literals
          Items outside of angle brackets "<>" are literals. For example:
               reference_string ::= <Automation_object_reference><attribute_reference> |
                <tag_name>
               property ::=
                Value|Type|Quality|BitField|Dimension1|SecurityClassification|Locked|Cate
                gory | propertyref
               propertyref ::=
                PROPERTY(Value|Type|Quality|BitField|Dimension1|SecurityClassification|Lo
                cked|Category)
                                                                                                             387
Application Server User Guide                                                                    Working with References
             BitField ::= .00, .01, .02, …, .31 (valid ONLY for attributes of type
              MxInteger; otherwise Configuration error occurs at run time)
             attribute ::= <static_attribute>|<dynamic_attribute>
          Notes
             <tag_name> is an object’s unique name.
             <contained_name> is an object’s optional contained name. It can be specified in a reference when
              an object is referred to as a contained child of another object.
             <index> is –1 or a positive integer from 1 to 32767.
             <identifier> is limited to a maximum of 32 characters.
             An <attribute> name or < feat ure> name can contain several <identifier> parts. The lengt h of each
              <identifier> part can be up to 32 characters. Each <identifier> part is separat ed by a period. The
              maximum total length of the <attribut e> name is 329. This name length applies to both static and
              dynamic attribut e names. The maximum total length of the <feature> name is 329.
             <relative_name> and <property> replacements are case insensitive, including PROPERTY().
             If no attribute reference is specified, .PV is assumed. If PV is an attribute of type array, the resulting
              reference is invalid. For arrays, the .PV[] part must be explicitly supplied.
              The exception to this rule is a reference that is preceded with an @ sign. This reference refers to the
              object itself and not any particular attribute or property. Currently, this reference string format is used
              only in the Execution Order group on the Object Information page of the Object Editor.
             Do not use Property Names or InTouch Pseudo-P roperty Names for the names of features or
              attributes when enhancing an object’s functionality on the Scripts, Attribute s and Field Attribute s
              pages.
              ArchestrA Property Names include: Locked, Category, HasruntimeS etHandler, Name, Type,
              Quality, Dimension1, Value, SecurityClassification, 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12,
              13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 and 31.
388
Working with References                                                                    Application Server User Guide
               This page shows you the selected attributes for the object, the current attribute values, and locked
               and security status. The information shown depends on whether Configuration and Runtime or
               Runtime Only is selected.:
               AttributeName
               The name of the attribute.
               Value
               Shows the value of the attribute.
               Locked/Unlocked
               Shows if the attribut e is locked or unlocked
               Security
               Shows the current security setting, if any.
          4.   To filter the view, select one or more of the following:
                                                                                                                    389
Application Server User Guide                                                                   Working with References
                  Configuration and Runtime: Select to show both configuration and run-time attributes for the
                   selected object.
                  Runtime only: Select to show only run-time attributes for the selected object.
                  Include hidden: Select to show hidden attributes for the selected object.
          5.   When you are done, click Close.
Cross Reference
Reference
          Note: References and cross-references shown in the Propertie s dialog box only refer to interobject
          communications. Area associations, containment, or host assignments are not shown.
390
Working with References                                                                      Application Server User Guide
               Target Attribute
               The absolute reference of the Attribute Reference. If this is a referenc e to a dynamic attribute, the
               Target Attribute only lists the Tagname of the instance.
               Attribute Reference
               The reference string within the Source Attribute. This is an absolute reference or a relative
               reference.
               Source Attribute
               The attribut e in the selected object that is referencing an attribute in anot her object in the application
               Galaxy.
          5.   When you are done, click Close.
Finding Objects
          Your Galaxy can get very large and can include many objects. It can become difficult to find a specific
          object. You can search for templates or instances, and you can search by part or all of a tag name or
          hierachical name. You can limit a search by platform and engine. Other search options are:
              Find objects with errors or warnings
              Find checked-out objects
          To search for objects
          1.   On the Edit menu, click Find. The Find dialog box appears.
                                                                                                                        391
Application Server User Guide                                                                 Working with References
                  In the Search criteria area, specify how to search for the name in the Find what box. The
                   options are: Contains, Exact match, Starts with or Ends with.
                  Search for objects in an error or warning state by selecting Only objects with errors or
                   warnings.
                  Search for objects that are checked out by selecting Onl y Checked-out objects.
                  Limit the search scope by selecting from the Search scope lists.
          3.   When you are done specifying the search criteria, click Find. The searc h results appear in the
               bottom pane.
          4.   Double-click an object in the results pane. The object is located and selected for you in the
               Application views area.
               If you double-click a Backup AppEngine, the IDE opens the Deployment view and the object is
               selected there. See Work ing with AppE ngine Redundanc y on page 474 for more information.
          Note: You must install the Bootstrap and IDE on the InTouch node to create the TagSource to browse
          Galaxy objects.
          The following lists the primary ways you can open the Tag Browser in InTouch to see unlimited selection
          mode:
              Double-click an animation link tagname or expression input box.
              Double-click an ActiveX or wizard tagname or expression input box.
              Double-click an empty area in any InTouch QuickScript window.
              In the InTouch QuickScript editor, select Tagname on the Insert menu.
              Press the Alt+N keys in the InTouch QuickScript editor.
              Double-click a blank New Name box in the Substitute Tagnames dialog box.
392
Working with References                                                              Application Server User Guide
 Double-click the Tagname input box in the SQL Access Bind List Configuration dialog box.
          For complete information about using the InTouch Tag Browser, see the InTouch documentation.
          Before you can browse Galaxy references, you must define a new tag source.
          To define a new tag source
          1.   In the InTouch HMI Tag Browser, click the Browse button to the right of the Tag Source list. The
               Define Tag Sources dialog box appears.
                                                                                                              393
Application Server User Guide                                                                 Working with References
          3.   Type a Tag Source Name. This name appears in the Tag Source box of the Tag B rowser. For
               example: Training1.
          4.   Select Galaxy from the list for Acce ss Name and Tag Source Type.
          5.   In the GR node name box, type the Host Name of t he computer on which the Galaxy is located. If the
               Galaxy is located on the same comput er, use localhost.
          6.   In the Galaxy Name list, select the name of your Galaxy. For example: Training. Assuming the
               examples given in steps 3 and 5, the Define Tag Sources dialog box appears as follows.
          7.   Click Close. The Tag Browser appears. Now you can browse the TagNames.
          To browse attribute references in a Galaxy
          1.   Open the InTouch Tag Browser in unlimited selection mode.
          2.   In the Tag Source box, select the tag source you created in the previous steps (Training1 in the
               example). The Attribute Brow ser appears.
          3.   Select the object and attribute you want to reference in your InTouch application and click OK.
          Note: The next time you open the Tag Browser, the Attribute Browser aut omatically opens. To change
          that, exit the Attribute Browser without selecting anything by clicking the blue arrow at top right. The Tag
          Browser appears and it defaults to the InTouch Tagname Dictionary.
          For more information about using the Attribute Browser, see Ref erence Objects Using the Galaxy
          Browser on page 83.
394
Working with References                                                                 Application Server User Guide
              o   The percent sign (%) that precedes the OutstationFullName indicates that the reference is
                  dynamic. Static data references do not include the percent sign. See Telemetry Server Static
                  Data References on page 406 for more information.
          Note that Telem_Server_ is always prepended to the ScopeName (computer name) at the beginning of
          the reference string. Dynamic tags automatically populat e some of the required fields in the Telemetry
          Server dashboard. This helps to reduc e the amount of duplicated configuration data needed for each
          point. For information about creating dy namic tags, see Telemetry Server Dynamic Tags on page 395.
          Using attributes on UserDefined objects (UDOs) is a recommended best practice to create the I/O
          interface to the Telemetry Server. Once you create the attribute and enable I/O, creat e the I/O reference
          using the applicable protocol and syntax. See Using the I/O Feature on page 121 for more information
          about enabling I/O.
          Invalid Characters
          The following are invalid characters that cannot be us ed within Telemetry Server OutStationFul lNames
          or Point Names.:
          < > #%\ "; :?. @ & =+ ${}|^[ ]
          The %, . and : characters are used in creating Telemetry Server references.
             The "%" character designates the reference as a dynamic tag.
             The "." character is used to separat e the GroupName and OutstationName within the
              OutStationFullName.
             The ":" character is used to separat e the ScopeName from the Telemetry Server tag information.
                                                                                                                 395
Application Server User Guide                                                                  Working with References
              Note: Group is a Telemetry Server-specific term that refers to a folder in the configuration hierarchy.
              An outstation object is contained within a group. In the Telemetry Server, the configuration hierarchy
              is the tree at the left side of the dashboard.
Naming Rules
          When ent ering data references for an I/O attribute in Application Server, the following naming rules are
          used to creat e or rename points in the Telemetry Server:
             If a point with the specified name and address does not exist in the specified group and outstation, a
              new point is created with specified name. If a point name is not specified in the reference, the default
              naming convention is used to generate the point name. Typically, this is <PointType> _<Address>.
             If a point with the specified name and address already exists in the specified group and outstation,
              the existing point is used.
             If a point with the specified address but a different name is found in the specified group and
              outstation, the reference generates a configuration error. The point with specified address is not
              changed and a new point is not created. See Configuration Errors on page 396 for more information.
             If a point with the specified name exists in the specified group, but is attached to a different
              outstation, the reference generates a configuration error. The named point is not changed and a new
              point is not created. See Configuration Errors on page 396 for more information.
             If a point with the specified name exists in the specified group and outstation but has a different point
              address, the reference generates a configuration error. The named point is not changed and a new
              point is not created. See Configuration Errors on page 396 for more information.
             If any other database object with the specified name exists in the specified group, the reference
              generates a configuration error. A new point is not created. See Configuration Errors on page 396 for
              more information.
             If the point name is invalid, for example, if it contains invalid characters, is too long, or has some
              other error, the reference generates a configuration error and a new point is not created. See
              Configuration Errors on page 396 for more information.
Configuration Errors
          To resolve configuration errors, refer to the Telemetry Server User Guide for detailed information. The
          basic way to resolve an error is to make one or more of the following changes, as applicable:
             Check that the <PointName> in the dynamic tag reference is valid to allow the point to be created in
              the Telemetry Server database.
396
Working with References                                                                    Application Server User Guide
               Check that the <Point Type> and address in the dynamic tag reference are valid for the prot ocol and
                correct for the particular outstation. For some point types, such as Modbus digit al points, you must
                additional items, such as bit offset and bit count.
                o   In DNP3, address refers to Point Number.
                o   In IEC 60870, address refers to IOA.
                o   In Modbus, address refers to PointAddress
               Check that the<OutstationFullName> in the dynamic tag reference exactly matches the name of the
                outstation in the Telemet ry Server database and that this is the correct outstation. The name is case
                sensitive.
               Rename, or delete, the object that has the same name in the group, or move the object to a different
                group.
                                                                                                                    397
Application Server User Guide                                                                      Working with References
PTC Pulse (Trip/ Close) DNP 3 Pulse Output Points on page 400
          Reference Syntax
          When creating a Telemetry Server reference, adding a percent sign (% ) before the full outstation name
          makes the reference a dynamic reference. The full outstation name includes the group name.
          The general syntax for dynamic references is as follows :
               Telem_S erver_<ScopeName>:%<OutstationFullName>;<PointType>;<PointNumber>[;<PointNam
               e>]
          Note that all point types contain all the elements shown in the general syntax, but some point types
          contain additional parameters. For example, the syntax for Pulse data types is as follows:
               Telem_S erver_<ScopeName>:%<OutstationFullName>;PTC;<PointNumber1>;<Point Number2>[;<
               PointName>]
          When the <Point Name> parameter is not specified and the point does not already exist, a default name
          is automatically assigned to the point. The name is in the format "<PointType>_<PointNumber>."
398
Working with References                                                                Application Server User Guide
              Note: When referencing a binary output point using the DO point type, the Telemetry Server uses
              the "latch on/off" operation type.
             Point number: a decimal number from 0 to 65535 that maps to the "Point Number" field in the
              Telemet ry Server dashboard. The maximum point number is on the device-dependent.
             Point name: an optional, descriptive name for the point, for example, LiftStationPump_01. If point
              name is not specified, the point is assigned a default name that uses point type and number in the
              format PointType_PointNumber, for example, DI_5.
          Binary Reference Examples
          Telem_S erver_Node-12:%Group.DNP3_Outstation;DI;5
              Referenc es binary input point 5, which is given the name Group.DI _5
          Telem_S erver_Node-12:%Group.DNP3_Outstation;DI;5; Tag_Name
              Referenc es binary input point 5, which is named Group.Tag_Name
                                                                                                                399
Application Server User Guide                                                              Working with References
400
Working with References                                                                 Application Server User Guide
              Referenc es binary output point 12 using "pulse-on" operator type and "NULL" trip-close code, which
              is given the name Group.P N_12
          Telem_S erver_Node-12:%Group.DNP3_Outstation;PN;12; Tag_Name
              Referenc es pulse (null) point 12 using "pulse -on" operator type and "NULL" trip-close code, which is
              named Group.Tag_Name
                                                                                                                   401
Application Server User Guide                                                                      Working with References
402
Working with References                                                                 Application Server User Guide
                                                                                                                 403
Application Server User Guide                                                                      Working with References
          Reference Syntax
          The general syntax for references is as follows, but there are variations bet ween analog, digital and
          string point types:
               Telem_S erver_<ScopeName>%<OutstationFullName>;<PointType>;<PointAddress>;<DataType>[
               ;<PointName>]
          When the optional <PointName> parameter is not specified, a default name is automatically assigned to
          the point. The name is in the format "<PointType>_<PointAddress>."
404
Working with References                                                                   Application Server User Guide
              o   DB Value: This value sets the Significant Change option (deadband) of the tag in the Telemetry
                  Server. You can enter the deadband as an absolut e or percentage value.
                  –   DB<numeric value>: The Significant Change field is set to Absolute and the Deadband
                      field is set to the numeric value provided in the tag syntax.
                  –   DB%<numeric value>: The Significant Change field is set to Percentage of Span and the
                      Deadband field is set to the numeric value provided in the tag syntax.
                  –   Point name: a descriptive name for the point, for example, LiftStationPump_01. If point
                      name is not specified, the point is assigned a default name that uses point type and number,
                      in the format PointType_PointNumber, for example, AI_100.
          Analog Reference Examples
          Telem_S erver_Node-12:%Group.Modbus _RTU;AI;40001;UINT16
              Referenc es the analog input point mapped to holding register 40001with UINT16 dat a type, which is
              given the name AI_40001
          Telem_S erver_Node-12:%Group.Modbus _RTU;AI;40001;UINT16; Tag_Name
              Referenc es the analog input point mapped to holding register 0001 wit h UINT16 data type, which is
              named Tag_Name
                                                                                                                       405
Application Server User Guide                                                                    Working with References
406
Working with References                                                                  Application Server User Guide
          Where
             <ScopeName> is by default the name of the computer where the Telemetry Server instance is
              installed. You can customize the "ScopeName" field in the Telemetry Server to accommodate
              redundancy.
             <Item> is the location of the dat abase item.
             <Property> is the name of the property tag t hat you want to reference. If you omit <Property>, the tag
              uses the default property for the defined database item or aggregate. The default property for an item
              or aggregate varies according to the type of item or aggregate. For example, the default property for
              a point is CurrentValue.
             <Database Aggregate> is the name of the database aggregate that has the required property.
              Database Aggregates are extensions to a table in the database and they have their own name, table,
              properties and methods.
             <Method> is the name of the method that you want to reference. Method static tags are write-only.
              Attempting to read a method tag generates an error.
              o   Method static tags are writ e only. Writing to a method tag invokes the method, and thus triggers
                  the associated action. Attempting to read a method tag generates an error.
              o   Only methods with zero or one arguments are supported in static tags. When you write to a
                  method tag with zero arguments, the value being written is discarded. When you write to a
                  method tag with one argument, the value being written is passed as the argument to the method.
                  Therefore, the argument must match the value.
                                                                                                                   407
                                                                                                             Application Server User Guide
                                                                                     C HAPTER 13
Configure Security
    This section describes the architecture of A rchestrA security and how to use it to manage access to
    configuration and run-time aspects of your Application Server application.
    For the latest information about mitigating security threats that can affect Microsoft and Wonderware
    products, sign into the AVEVA Global Customer Support website:
    https://softwares upport.aveva.com/ http://softwaresupport.aveva.com
    Then, navigate to Security Central.
    In This Chapter
    About Security ............................................................................................................................ 409
    Security Model for Galaxies ......................................................................................................... 410
    About SQL Server Security.......................................................................................................... 419
    Configuring Security.................................................................................................................... 420
    About OS Group-based Sec urity .................................................................................................. 429
About Security
    Galaxies are created without security. After creating a Galaxy, you can add security to manage access to
    it. User permissions are set within the IDE. Adding security to a Galaxy authenticates users across all
    editors and interfaces and controls access to the:
        IDE
        ArchestrA System Management Cons ole (SMC)
        Layout Editor
        Screen Profile Editor
        ViewApp Editor
    Security lets you set specific permissions for operations within the IDE and SMC, such as:
        Starting the IDE
        Importing, exporting, creating, and modifying instances, derived templates, graphics and ViewA pps
        Deploying and undeploying instances
        Uploading run-time changes
        Managing alarms
        Performing maintenance and system administration functions wit hin the SMC.
    You can also configure credentials that InTouch OMI apps can use for connecting to resources that do
    not recognize Windows credentials.
    While there are not specific permissions that can be set for the Layout, Screen Profile, and ViewApp
    Editors, restricting permissions for graphics and objects in the IDE will also restrict a user's ability to
    modify objects and graphics in these editors. See Assigning Users to Roles on page 426 for additional
    information.
                                                                                                                                              409
Application Server User Guide                                                                     Configure Security
              Note: Regardless of the Galaxy security setting, a user must be a member of the aaConfigTool s
              group to connect to a Galaxy from the IDE, or the user must launch the IDE using the "Run as
              administrator" option. Use the Windows Control Panel to add a user to the aaConfigTools group.
              Since aaConfigTools is an OS user group, you cannot use Galaxy Security Configuration to add a
              user to the group.
              Note: For additional information about SQL Server security, see the section on SQL Server Rights
              Requirements in the System Platform Installation Guide.
             Credentials that allow a logged-in user to an InTouch OMI ViewApp to access third -party resources
              used by the ViewApp.
          Each Galaxy in the Galaxy Repository manages its own security model. The security schema managed
          in a Galaxy is a three-level configuration model to create and maintain the following:
             Users associated with specific roles
             User roles associated with specific system administration, configuration and run -time (operational)
              permissions, which map to security groups
             Security groups associated with specific objects in the Galaxy
          The default Galaxy Security model includes:
             Two users: DefaultUser and Administrator, both with full access to everything.
              Important: Be sure to change the passwords for the Administrator and DefaultUser accounts aft er
              enabling galaxy security. We recommend that you use Microsoft Active Directory to implement your
              galaxy password policy because it is the easiest and most effective way to set the policy.
              Important: We recommend that you set the privileges for the Default role to the minimum level
              needed by all users.
410
Configure Security                                                                      Application Server User Guide
          The security matrix defines a cascading model of users associated with specific roles that are associated
          with specific security groups that are associated with specific objects. User run-time permissions can
          vary from object to object, action to action, and process to process. The security icons associated with
          object attribut es map directly to control points in the ArchestrA security model.
              Note: If you are implementing a multi-Galaxy environment or creating credentials for ViewA pps,
              Galaxy Authentication Mode is not supported. Use one of the OS -based authentication modes
              instead. See Work ing with Multiple GR Nodes and Galaxies on page 337 and About Credentials on
              page 417 for more information.
             OS User Based: Uses the operating system's user authentication system on an individual user level.
              All security for the Galaxy is specified and contained in the operating system (OS ) on a user level
              basis. When the user logs on, security credentials are checked and access to areas and activities
              are decided at the OS user level.
             OS Group Ba sed: Uses the operating system's user aut hentication system on a group basis. All
              security for the Galaxy is specified and contained in the user-to-roles mapping you created in t he OS
              to assign security. When a user logs on, security credentials are checked and verified at the OS
              group level. OS groups are mapped to security roles in the Galaxy to allow access to areas and
              activities in the Galaxy. For more information, see About OS Group-based Security on page 429.
          Note: If you are using OS user-based security or OS group-based security and you have permissions to
          use the IDE, the Log In dialog box does not appear.
          Important: Do not use the "Administrator" user account to log in to Application S erver, InTouch
          ViewApps, or other System Platform components. "Administrator" is a reserved System Platform name.
          Some modules of A pplication Server and System Platform view "Administrator" as a system admin, while
          other modules view it as a Galaxy admin.
                                                                                                                 411
Application Server User Guide                                                                     Configure Security
              Important! Make sure that you have a valid login for the IDE before changing the authentication
              mode, especially if changing from "None." If not, creat e a login before changing authentication
              modes.
             To switch users, the person must log on as the new user by clicking Change User on the Galaxy
              menu.
             If you previously configured security under one aut hentication mode and then switch authentication
              modes, only those users created while configuring the new mode are available. Other users are not
              deleted, just unavailable in the new mode.
             Objects that are reassigned to different security groups are marked as "pending update" and require
              redeployment for the change in security group to take effect.
             If security was previously configured for an OS -based aut hentication mode, reconfiguring security
              synchronizes the user’s full name and OS groups if some data in the OS has changed.
412
Configure Security                                                                       Application Server User Guide
About Roles
          You can create and manage user roles that apply to your organization’s processes and work -based
          authorities. A role defines a set of permissions. After defining roles, you assign roles to authorized users
          as needed to provide the users with the permissions that they need. A user can be given multiple roles.
                                                                                                                   413
Application Server User Guide                                                                     Configure Security
          Application Server automatically creat es two roles called Admini strator and Default and gives both
          roles full permissions to everything. When defining roles, first remove any permissions that are not
          needed by all users from the Default role because all configured users will be assigned to the Default
          role and you cannot remove the Default role from a user. For example, if the minimum set of permissions
          required by all users is the ability to acknowledge alarms and modify "Operate" attributes, remove all
          other permissions. Add new roles by selecting the + button above Role s available, then enter a name for
          the role and an access level.
          You can specify General and Operational Permissions for each role.
             General permissions relate t o application configuration and administration tasks within t he IDE and
              the System Management Cons ole (SMC). By default, the Administrator and Default roles have all
              general permissions. Remove any unnecessary general permissions from the Default role. Leave
              only the permissions that are needed by all users.
414
Configure Security                                                                Application Server User Guide
              Note: You cannot remove any General permissions from the Administrator role. You can, however,
              remove Operational permissions.
                                                                                                           415
Application Server User Guide                                                                       Configure Security
             Operational permissions relate to the security groups listed on the Security Groups page. For
              each role, modify security group permissions as needed. The Administrator and Default roles initially
              are given all operational permissions for the Default Security Group. If you created any new security
              groups on the Security Groups page, the Administrator and Default roles are not automatically
              granted any permissions to these security groups. f you do not intend to have us ers with the
              Administrator role working with alarms or attributes at run time, you can limit operational permissions
              from the Administrator role.
About Users
          If you select either OS based authentication mode, users with local accounts are added to the
          Authorized Users Available list in the following format: .\<username>. Domain users are added in
          the format <domain>\username>.
          If you select OS Group Ba sed authentication mode and us e local accounts, the local account must exist
          on each node in the Galaxy for successful authentication of that user on any computer in the Galaxy. OS
          groups are added in the format <domain>\<groupname>.
416
Configure Security                                                                       Application Server User Guide
          Two users are defined by default when a new Galaxy is created: Administrator and Default User. These
          cannot be deleted in an open security setting and both users are associated with the default roles,
          Administrator and Default. See About Roles on page 413 for more information.
          Important: Do not use the "Administrator" user account to log in to Application S erver, InTouch
          ViewApps, or other System Platform components. "Administrator" is a reserved System Platform name.
          Some modules of A pplication Server and System Platform view "Administrator" as a system admin, while
          other modules view it as a Galaxy admin. When using OS-based security, do not use the local ArchestrA
          user account for Application Server user authentication purposes.
About Credentials
          The Credentials tab lets you add login credentials that some InTouc h OMI ViewApps may need for
          access to third-party data and applications that do not support Windows OS credentials, Active Directory,
          OpenID Connect, or other standard authentication met hod. Initially, a galaxy does not include any
          credentials. Credentials are created on a galaxy-wide basis, not for individual ViewA pps. Although you
          enter credentials as plain text, it is encrypted when it is saved, and the credentials are sent to run -time
          nodes as encrypted data.
          The credentials you create here are associated wit h an OS group name. When a us er logs into a
          ViewApp, the user obtains access to credentials that are associated with t he same OS group of which the
          user is a member. For example, if you create credentials that are associated with the OS group
          "Operators," a user that is also a member of "Operators" has access to those credentials.
          App developers use the GetNamedCredentials() method in the InTouc h OMI S DK to access and use
          credentials in their apps.
          Note: Credentials are supported only when OS User based or OS Group based authentication mode is
          enabled. If authentication mode is set to None or Galaxy, you cannot add or delete credentials, or use
          them at runtime, even if the credentials were created while the authentication mode was set to OS User
          or OS Group.
Note: Null values are valid for all fields, except the credential name.
             Group: Select the ellipses button (...) next to the group name to choose a different group name. You
              can also choose a different domain, and then pick a group name from the selected domain. When
              you add credentials, you must associate each credential wit h an OS Group name (local or domain).
                                                                                                                   417
Application Server User Guide                                                                Configure Security
              To associate a credential with an OS group, simply highlight the group name when you add the
              credential. You can change the group at any time. Associations are saved when you click OK. See
              Associate an OS Group wit h a Credential on page 418 for more information.
418
Configure Security                                                                       Application Server User Guide
          1.   Select the the ellipses button (...) next to the group name in t he Credentials tab. The Select Groups
               dialog opens.
          2.   Choose the local machine or a domain from the Select in dropdown list. Or, you can type the OS
               group name in the Enter OS Group name text box.
          3.   Choose an existing OS group from the Available OS Groups window and click the + button above
               the list, on the right side. The OS group is added in the Selected Groups window.
4. Click OK to close the Select Groups dialog and return the Credentials tab.
                                                                                                                  419
Application Server User Guide                                                                    Configure Security
             aaAdministrators group
             ArchestrA user account
             aaGalaxyOwner user account
          Caution: aaGalaxyOwner and ASBService are reserved OS user names. aaAdministrators and
          ASBSolution are res erved OS group names. Do not creat e users or groups with these names.
          The aaA dministrat ors group, ArchestrA user account, and aaGalaxyOwner user account are defined for
          use with SQL Server, and are used for Galaxy operations. Do not delete this group or these accounts.
          See the section on SQL Server Rights Requirements in the System Platform Installation Guide for
          additional information. This section also describes how to set the SQL Server Security Mode wi th the
          aaConfig SQL utility.
Configuring Security
          Before you open the security editor for a Galaxy, make sure:
             No other user is connected to the Galaxy.
             All objects in the Galaxy are checked in.
             Your user profile has configuration permissions to change Framework Configuration/Modify Security
              Model, if security was previously configured.
          If you try to open the security editor before these conditions are met, a warning message appears and
          you are denied access.
          Caution: Do not configure security settings of the IDE while an IDE-managed InTouch application is
          opened for editing in WindowMaker.
          Other us ers who try to open the Galaxy while you are configuring security are denied access to the
          Galaxy.
420
Configure Security                                                                         Application Server User Guide
          2.   On the Authenti cation Mode tab, select the security type you want: Galaxy, OS User Based, or OS
               Group Based.
               If you select the OS Group-ba sed authentication mode, you can specify the time -out period for login
               attempts and role verification. Allowing a longer interval can be helpful if your network connection is
               slow or intermittent.
                    Login Time: The time-out period (measured in milli-seconds) during which the system validates
                     the user’s membership against the OS groups selected as ArchestrA Roles. Minimum value is 0
                     (zero), maximum is 9,999, 999. The default value is 1,000. If the login time is set to 0 (zero),
                     which turns this feature off, the operation does not time out. Specify a value, based on the s peed
                     of your net work and the number of groups configured in ArchestrA. The slower the net work or
                     the larger the number of groups, the greater the value.
                    Role Update: The time between each validation attempt per OS group for the user’s
                     membership when a log on is attempt ed. The user members hip update is done one role per Role
                     Update interval to minimize network usage. The minimum allowed value is 0 (zero) and the
                     maximum is 9,999,999. The default value is 0 (zero), which turns off this feature so the operation
                     does not pause between validating user membership and groups. This option operates
                     independently of the Login Time option. E ven if Login Time times out, the role update
                     operation continues in the background and eventually updates user-to-role relationships for this
                     user in the local cache.
                                                                                                                    421
Application Server User Guide                                                                       Configure Security
          3.   Select the Security Groups tab to add and configure new security groups. Security groups define
               which objects (templates and instances ) the logged-in us er can access. To assign objects to a new
               Security Group, select the objects listed under the Default Group and drag them to the new group.
               Security Groups are displayed in Roles tab, under "Operational Permissions." See Assigning Users
               to Roles on page 426 for more information.
                  Create a new security group by clicking the Add button. Type a unique name for the new group
                   in the Security Groups Available pane. Security group names can be up to 32 alphanumeric
                   characters, including a period. The name must include at least one letter and cannot start with $.
Note: Security group names are not case sensitive. Admin is the same as admin.
                  Objects can only be associated with one security group. To move objects from the Default
                   security group to the new security group, click the Default group, then drag objects to the new
                   security group.
422
Configure Security                                                                     Application Server User Guide
          4.   Select the Roles tab to set the permissions (general and operational) for each Security Role, and to
               create new roles or delete existing roles.
                    Remove any unnecessary general and operational permissions from the Default role (you can
                     also remove operational permissions from the Administrator role). Leave only the permissions
                     that are needed by all users. See About Roles on page 413 for more information.
                    If you selected Galaxy or OS User based authentication mode, you can create new roles by
                     clicking the Add button. Type a name for the new role in the Roles Available pane. Role names
                     can be up to 512 alphanumeric characters, including a period.
                                                                                                                423
Application Server User Guide                                                                       Configure Security
                  If you selected the OS Group ba sed authentication mode, the Select Groups dialog is
                   displayed after you click the Add button. This lets you add roles, based on existing OS groups.
                   –   In the "Enter the OS Group name" text box, type the group name (preceded by the domain
                       name, if not part of the local domain) and click the Add button, or,
                   –   In the "Select in" dropdown, select the domain that has the OS group you want to add as a
                       role. Then, select the group from the "A vailable OS Groups" dropdown and click the Add
                       button.
                  Select the General and Operational Permissions for the new role. General permissions define
                   Galaxy configuration and management actions that a user is allowed in the IDE and the SMC.
                   Operation permissions define the actions a user can take at run time, for example, permission to
                   acknowledge alarms or modify attribute values.
                   Important: In the General permissions area, clearing the Can Start SMC check box will still
                   allow a user assigned to this role to start the SMC, but not to connect to Platform Manager.
                   Important: In the General permissions area, clearing the Can Start/Stop the
                   Engine/Platform check box will still allow the user assigned to this role to set the engine or
                   platform On Scan or Off Scan.
424
Configure Security                                                                        Application Server User Guide
                     Important: If a role is given "Can Modify Deployed Instances" permission, make sure "Can
                     Create/Modify/Delete..." permissions in the System Configuration, Device Integration Objects,
                     and Application Configuration groups are also selected. This provides the role with check in and
                     undo checkout abilities.
          5.   Select the Users tab to associate authorized users with their roles, add new users, or delete existing
               users.
Note: Bold red text indic ates that the User or Role is invalid within the selected Authentication Mode.
               If you selected Galaxy or OS User based authentication, create a new user by clicking the Add
               button. User names can be up to 255 alphanumeric characters with no spac es. To configure user
               roles, see Assigning Users to Roles on page 426.
Note: You cannot add users if OS Groups based authentication mode is selected.
               While viewing Application S erver events and alarms in InTouch, the ". " appears as the us er’s domain
               if it is a local name. Otherwise, it appears as <domain name>\<username>.
          6.   When you are done, click OK. You are prompted to log on to the currently open Galaxy.
               Important: To improve security, do not use the default user accounts (Administrat or or DefaultUs er)
               when logging in to the IDE or ot her System Platform components. These are reserved system
               names. In general, you should avoid using generic or easily -guessed user names such as "Admin,"
               "Administrator," "DefaultUser," or "User." Be sure to change the passwords for these accounts to
               prevent malicious or accidental access to the Galaxy.
                                                                                                                    425
Application Server User Guide                                                                      Configure Security
          Note: All users are automatically assigned to the Default role in addition to any new roles you create and
          assign to them. The best way to manage permissions is to limit the permissions of the Default role to
          those permissions you want every one to have. Then, add us ers to other roles with permissions for other
          parts of A pplication Server.
          The Administrat or user can log on any aut hentication mode except when security is disabled. When you
          are logged in as Administrator on the Galaxy Repository node, you can change the password of any
          Galaxy user without providing the old password.
              In Galaxy authentication mode, you can edit the User Name in the Change Password dialog box.
              In OS -based aut hentication modes, the User Name of the OS user is shown. User information
               cannot be edited.
          You can assign users to more than one role.
          To assign a role to a user
          1.   On the Galaxy menu, click Configure and then click Security. The Configure Security dialog box
               appears.
          2.   Click the Users tab.
426
Configure Security                                                                        Application Server User Guide
Note: The Change Password button is displayed only if Galaxy authentication mode is selected.
          3.   Select the user in the Authorized Users available area. Select a role in the Associated Roles for
               <user name> area.
               E very user is assigned to the Default role. Add ot her roles that they need to perform their job
               functions.
          4.   Provide each user with a password. Make sure that you set new passwords for the Admini strator
               and DefaultUser accounts.
                    If you are using Galaxy Authentication Mode, click Change Password. The Change Password
                     dialog box appears.
                     You can leave the "Old Password" field blank when you initially set the password for the
                     Administrator and DefaultUser accounts.
                                                                                                                   427
Application Server User Guide                                                                      Configure Security
                  If you are using an OS-based security mode, use the Windows Cont rol Panel to manage
                   passwords.
               Important: If an OS-based sec urity mode is selected on the Authentication Mode page, changing a
               user’s password changes the OS password for the user. Any ArchestrA password may be set to a
               maximum of 127 characters.
          5.   When you have finis hed configuring us ers, click OK. The security information is used in the
               configuration, administration and run-time environment to authenticate users.
          Note: The aaA dminstrators group is required. If you accidentally delete it from Windows, you can run
          either the Change Network Account utility or the aaConfig SQL utility to restore it. If you delete the
          group from SQL Server, you must run aaConfig SQL. See the System Platform Installation Guide for
          more information.
Deleting Roles
          You can delete roles you no longer need. You cannot delet e a role if any users are associated with it.
          You cannot delet e the Default and Administrat or roles.
          To delete a role
          1.   On the Galaxy menu, click Configure and then click Security. The Configure Security dialog box
               appears. Click the Roles tab.
          2.   On the Role page, select the role you want to delete.
          3.   Click the Delete button.
Deleting Users
          You can delete users you no longer need.
          To delete a user
          1.   On the Galaxy menu, click Configure and then click Security. The Configure Security dialog box
               appears. Click the Users tab.
          2.   On the User page, select the user you want to delete.
          3.   Click the Delete button.
428
Configure Security                                                                        Application Server User Guide
          Note: The ArchestrA user account and aaGalaxyOwner account are required. If you accidentally delete
          the ArchestrA user account from Windows, you can run either the Change Network Account utility or
          the aaConfig SQL utility to restore it. If you delete either account from SQL Server, you must run
          aaConfigSQL to restore it. See the System Platform Installation Guide for more information.
          Note: Application Server us es Pre-Windows 2000 Group names for OS Group -bas ed Authentication
          Mode, not the Active Directory Common Name.
                                                                                                                    429
Application Server User Guide                                                                        Configure Security
430
Configure Security                                                                       Application Server User Guide
          The operator and verifier provide credentials for authentication by entering a valid security account
          (domain name, user name, and password), or by using a Smart Card if a Smart Card reader is attached
          to the system.
          Note: Smart Card authentication is not supported in multi-galaxy environments for read/write operations
          to remote galaxies.
          Operators can write to attributes configured with Secured Write or Verified Write security classification
          even if another user is logged on. This does not affect the session of the logged -on user.
             The operator must have the Can Modify Operate Attributes operational permission to perform the
              Verified Write.
             The verifier must have the Can Verify Writes operational permission to confirm the Verified Write.
          For more information, see Set Object Security on page 68 and About Roles on page 413.
          Note: The Secured and Verified Write feat ures work only when security is enabled on both the Galaxy
          and InTouch applications and do not work if eit her Galaxy or InTouch security is set to None.
Using Configurable Descriptions and Comments for Secured and Verified Writes
          At run time, the Secured Write or Verified Write dialog boxes appear when the operat or attempts to write
          to an attribute configured for Secured Write or Verified Write. The dialogs enable configurable user input
          that can be used to provide information about the Secured or Verified Write.
          Use the SignedWrite() script function to configure these inputs. The script function can be used only for
          ArchestrA attributes configured wit h Secured Write or Verified Write. It can be used only for symbol
          scripts and not for application object scripts.
          Reason Description
          The reason description is specific to an ArchestrA attribute. It explains the purpose of the attribute and
          the impact of changing it. If you do not configure a reason description, the reason description area is
          blank.
                                                                                                                  431
Application Server User Guide                                                                             Configure Security
          It is possible to use a script to directly assign a value t o an attribute or field attribute that requires Secured
          or Verified Write. When the script is executed, the Secured or Verified Write dialog box appears and the
          reason description area displays an Attribute description, if there is one. If the Attribute does not have a
          description, then the reason description area displays the description of the Application Object to which
          the attribute belongs.
          Note The reason message and Comment box and list are displayed in the Sec ured Write or Verified
          Write dialog box only in InTouch WindowViewer and not in ObjectViewer.
432
                                                                                                              Application Server User Guide
                                                                                      C HAPTER 14
Working with Languages
    This section describes the feat ures and procedures for configuring languages and enabling run -time
    language switching.
    In This Chapter
    Defining and Configuring Galaxy Languages ................................................................................ 433
    Graphics Language S witching ..................................................................................................... 433
    Alarm Comment Language S witching ........................................................................................... 434
    Workflow .................................................................................................................................... 434
    Configuring Languages for a Galaxy ............................................................................................ 434
    Exporting Symbol Text for Offline Translation ............................................................................... 438
    Translating Exported Symbol Language Files ............................................................................... 442
    Importing Translated Symbol Language Files ............................................................................... 443
    Exporting Alarm Comments for Offline Translation ........................................................................ 447
    Translating Exported Alarm Comment Language Files .................................................................. 451
    Importing Translated Alarm Comment Language Files .................................................................. 452
    Re-exporting Alarm Comments .................................................................................................... 453
    Testing the Language Switching Functionality at Run Time ........................................................... 454
                                                                                                                                                433
Application Server User Guide                                                                Working with Languages
Workflow
          A typical workflow for a large Galaxy might consist of the following:
          1.   Export the Galaxy elements to be translated as a single file that is more manageable by the
               translator.
          2.   Import the translated file back into the Galaxy.
          3.   Export the translated file by Areas for use by InTouch applications.
          4.   Import the translated language file into InTouch.
                  In stand-alone InTouch, you can perform a single import operation.
                  In managed InTouch, you must import the language file into each managed InTouch application.
          5.   For InTouch applications that only target subareas of the Galaxy, exporting by Area is a more optimal
               work flow.
          Important: Exporting, translating and importing the translated files back into the Galaxy are important
          steps for translating and managing translat ed files. Note that run-time language switching will not
          function if you do not import the translated language file as described in number 4.
434
Working with Languages                                                                   Application Server User Guide
         2.   On the Galaxy menu, point to Configure, and then click Languages. The Configure Languages
              dialog box appears.
              The Configure Languages dialog box shows the base (default) language of the Galaxy.
         3.   Click Add. The Add Language dialog box appears.
                                                                                                                  435
Application Server User Guide                                                                Working with Languages
          2.   On the Galaxy menu, point to Configure, and then click Languages. The Configure Languages
               dialog box appears.
          3.   Select the row of the language to remove and then click Remove. A Confirm Delete dialog box
               appears.
          4.   The dialog box provides an additional language deletion option. Select the check box to delete alarm
               comment translations for the language selected. Leave the check box empty (unselected) if you want
               to keep the alarm comment translations for the selected language.
          5.   Click Yes to confirm deletion of the selected language as well as the alarm comment translations for
               that language if also selected.
436
Working with Languages                                                                 Application Server User Guide
         2.   On the Galaxy menu, point to Configure, and then click Languages. The Configure Languages
              dialog box appears.
              The Configure Languages dialog box shows the base language of the Galaxy.
         3.   In the list of languages, select the target language.
         4.   Click Set Default.
         5.   Click OK.
                                                                                                                437
Application Server User Guide                                                                   Working with Languages
          Note: Changing the default language does not change the alarm comment default language. Alarm
          comments are always stored as the Galaxy Repository default language, which is the locale of the
          operating system on which the Galaxy is created.
          Note: The alarm comment export files are named and formatted differently from symbol dictionary files.
          For further information see Exporting Alarm Comments for Offline Translation on page 447.
438
Working with Languages                                                                   Application Server User Guide
                                                                                                                  439
Application Server User Guide                                                                   Working with Languages
          For example, a Galaxy has Symbol1 and Symbol2 defined in the Graphic Toolbox. There are two
          instances called UserDefined1 and Us erDefined2. Us erDefined1 includes Symbol1. UserDefined2
          includes Symbol1 and Symbol2. The instance symbol UserDefined1.Symbol1 embeds Symbol1 and
          Symbol2 from the Graphics Toolbox and one instance symbol UserDefined2.Symbol1. If you select the
          instance UserDefined1 and ex port the language data, then the language data wo uld also be exported for
          the symbols Symbol1, Symbol2, and UserDefined2.Symbol1.
440
Working with Languages                                                                   Application Server User Guide
             All SmartSymbols
             ArchestrA Symbols referenced by the $InTouchViewA pp template
         The export causes a cascade export of all referenced Arc hestrA Symbols.
         When you export language data for a managed InTouch ap plication, the default language for the Galaxy
         is ignored. The InTouch default locale is always the installed InTouch locale. If the InTouch installed
         locale and the Galaxy default language are not the same, the export is skipped for the selected
         InTouchViewApp and a message is logged.
         To export language data for a managed InTouch application
         1.   Using the ArchestrA IDE, open the Galaxy for which you want to export symbol text.
         2.   Select one or more managed InTouch applications.
         3.   On the Galaxy menu, point to Export, and then click Localization(s). The Export Locale Data
              dialog box appears.
                                                                                                                  441
Application Server User Guide                                                                   Working with Languages
If you export more than one time to the same directory, a message box appears.
          If you click Yes, the existing .xml files are deleted and the current text for symbols in the Galaxy are
          exported as a new .xml file.
          Any existing translations for a symbol are reflected in the new .xml file.
442
Working with Languages                                                                     Application Server User Guide
         4.   Type the language-specific text in the Translation column in the row that corresponds with the base
              language string in the Phrase column.
         5.   If necessary, change the font parameters for the translat ed strings. If you only provide a translation,
              the Galaxy-configured font for the language is used to render the text after the translation is
              imported. If you specify a font, it overrides the Galaxy -configured font.
                 In TranslatedFontName column, type the font name.
                 In the TranslatedFontP roperty column, type the not ation for the font properties:
                  B = bold
                  I = italic
                  U = underline
                  For example, if you want to the text to be bold, type B in the TranslatedFontProperty column. If
                  you want the text to be bold and underlined, type BU in the TranslatedFontProperty column.
         6.   Save the file using XML Data as the file type.
              Important: If you save as another file type, such as XML Spreadsheet, Excel changes the sc hema
              and the Galaxy cannot load the file. If you change the name of the XML file, the file will not import
              properly into the Galaxy.
                                                                                                                     443
Application Server User Guide                                                                     Working with Languages
          6.   In the Galaxy mismatch area, configure how you want Galaxy mismatches handled. A Galaxy
               mismatch occurs when you try to import a translation file that was exported from a different Galaxy.
               The Galaxy name in the translation .xml file is used to match the current name of the Galaxy.
                  Click Skip file to skip all the files that do not contain the current Galaxy name in the file name.
                  Click Import to import all the selected files, regardless of what the Galaxy name is in the .xml
                   filename.
444
Working with Languages                                                                Application Server User Guide
         7.   In the Symbol/Object Mismatch area, configure how you want symbol and object mismatches
              handled. A symbol or object mismatch occurs when the name of the symbol and the internal ID
              (GObjectID) of the symbol do not match what is within the .xml file. Objects include
              AutomationObjects and InTouc hViewA pp objects.
                 Click Skip to skip the symbols and objects that have mismatch names or mismatch IDs in the
                  .xml file
                 Click Import to import a symbol or object only if it has a matching name or matching ID. If the
                  name resolves to one object, and the ID resolves to another object, then the import is skipped.
              For examples, see Examples of Symbol or Object Mismatch Handling during Language Imports on
              page 445.
         8.   Click Import. The import progress is shown.
         9.   Click Close. The Import Language Dictionary Files dialog box appears.
         10. Click Check In. The check in progress is shown.
         11. Click Close. A summary of the import is shown.
         12. Click OK.
         The following table shows an ex ample of handling mismatch conditions for an A utomationObject symbol.
         The bold name/ID is the matching name/ID in the .xml file and current Galaxy during import.
                                                                                                               445
Application Server User Guide                                                              Working with Languages
446
Working with Languages                                                                  Application Server User Guide
Important: The exported file name is generated automatically and must not be changed.
Reimporting
            We highly recommend reimporting the translated files to the Galaxy after translation. Although
             reimport is not mandatory, you can use the reimport to optimize the export files to be used in the
             InTouch application.
                                                                                                                  447
Application Server User Guide                                                                   Working with Languages
              If you make changes to your alarm comments after you export comment text, you must export the
               alarm comments again. For this reason, we further recommend using the import functionality in
               Application Server to reimport the language file after each translation. This practice will avoid the
               need to retranslate alarm comments you have already translated.
          For further information and procedures, see the following sections in this chapter:
               Exporting Alarm Comments from Very Large Galaxies on page 448
               Exporting Alarm Comments by Area on page 449
               Importing Translated Alarm Comment Language Files on page 452
448
Working with Languages                                                                  Application Server User Guide
         2.   On the Galaxy menu, select Export, then select the Localization menu option, and then select the
              All Alarm Messages menu option. The Export Alarm Message s dialog box appears.
                                                                                                                 449
Application Server User Guide                                                                 Working with Languages
          For purposes of language export, these System Objects form their own "Area" or become notification
          distributors for the purpose of sending alarms. Exporting System Objects follows these import ant
          conventions:
              System Object can only be exported from the Galaxy menu. They cannot be selected and exported
               using a context menu.
              System Objects can only be export ed by exporting alarm comments for all Areas.
          To export alarm comments for all Areas.
          1.   Using the ArchestrA IDE, open the Galaxy for which you want to export alarm comments.
          2.   On the Galaxy menu, select Export, then select the Localization menu option, and then select the
               All Alarm Messages menu option. The Export (Area) Alarm Message s dialog box appears.
450
Working with Languages                                                                  Application Server User Guide
              a.   In the Select option to export all alarm message s area, select the Export selected area(s)
                   only radio button, or select the Include sub-areas radio button to include all sub areas for each
                   selected Area.
              b.   Check the Export untranslated alarm messages only check box if you have already exported,
                   translated and re-imported your language files by Area and you want to export only newer,
                   untranslated messages. Otherwise, leave the check box unchecked.
              c.   In the Language to export pull-down list, select the language to export. You can export only one
                   language at a time.
              d.   In the Path box, type the folder to which you want to export the language file. Click Brow se to
                   select an existing folder or create a new folder.
         5.   Click Export. The export progress box appears.
         6.   Click Close when the export completes.
                                                                                                                  451
Application Server User Guide                                                                       Working with Languages
               c.   Select the color pattern you want and click OK in the Format as Table dialog box. Excel will
                    format the region to be edited.
               Important: Only edit the text in column 3, translations. No other text in the file may be edit ed. You
               can edit the original alarm comment text only within the ArchestrA IDE.
4. Save the file as a .txt file in the directory you originally select ed for export.
               Important: Do not change the file name or the file type, otherwise it will not import correctly into the
               Galaxy.
452
Working with Languages                                                                 Application Server User Guide
         2.   On the Galaxy menu, select Import, then select the Localization menu option, and then select the
              Alarm Message(s) menu option. The Import Alarm Message s dialog box appears.
              Note: If an alarm name or message do not match, the alarm comment import will display a message
              for each failed alarm message import.
                                                                                                                453
Application Server User Guide                                                                 Working with Languages
454
                                                                                                            Application Server User Guide
                                                                                    C HAPTER 15
Managing Galaxies
    You can back up and restore Galaxies, change the Galaxy you are working with, delete a Galaxy, and
    export and import all or part of a Galaxy.
    If you want to create a Galaxy, see Create a Galaxy on page 18.
    In This Chapter
    Backing Up and Restoring Galaxies ............................................................................................. 455
    Changing Galaxies ..................................................................................................................... 457
    Deleting a Galaxy ....................................................................................................................... 457
    Galaxy Object Components Synchronization ................................................................................ 458
    Exporting a Galaxy Dump File ..................................................................................................... 459
    Editing the Galaxy Dump File ...................................................................................................... 460
    Importing a Galaxy Load File ....................................................................................................... 462
    Hosting Multiple Galaxies in One Galaxy Repository ..................................................................... 463
    Disk Space Requirements ........................................................................................................... 463
    Managing Communication between Galaxy Nodes ....................................................................... 463
    Mapping Network Drives with User Account Control Enabled......................................................... 464
    About ArchestrA Us er Accounts ................................................................................................... 464
    Using Multiple Network Interface Cards ........................................................................................ 465
                                                                                                                                             455
Application Server User Guide                                                                 Managing Galaxies
              See the Galaxy Database Manager documentation for more information about backing up or
              restoring your Galaxy.
              If Enhanced Security mode is in effect, you will be prompted to enter SQL SysAdmin credentials
              before you can restore a Galaxy creat ed in an older version of Application Server.
456
Managing Galaxies                                                                     Application Server User Guide
Changing Galaxies
         You can have many Galaxi es in the Galaxy Repository. If you are a systems integrator, you have at least
         one Galaxy for every client.
Galaxy B
                                                                          Galaxy C
                                                Galaxy Repository Node
                                 Galaxy A
Galaxy D
Active Galaxy
         For a Galaxy to deploy objects to other comput ers in the Galaxy, the Galaxy Repository (GR) must host
         a platform defined in that Galaxy. Because of this, y ou can only deploy one Galaxy from the Galaxy
         Repository at a time to the comput ers on your net work. For more information about deploying, see
         Deploying Objects on page 267.
         To change from one Galaxy to another
         1.   On the Galaxy menu, click Change Galaxy. The Change Galaxy dialog box appears.
Deleting a Galaxy
         You can delete a Galaxy. Deleting a Galaxy removes all of the Galaxy information from your computer.
         Before you delet e a Galaxy, you must undeploy all objects within it. For more information about
         undeploying objects, see Undeploying Objects on page 272.
                                                                                                               457
Application Server User Guide                                                                     Managing Galaxies
          Make sure you select the right Galaxy to delete. After you delete a Galaxy, you cannot undelete it. You
          can only recreate it by restoring from a backup. For more information, see Back ing Up and Restoring
          Galaxies on page 455.
          To delete a Galaxy
          1.   Undeploy all objects from the Galaxy you want to delete.
          2.   Close any Galaxy and connected IDE you have open.
          3.   On the File menu, click Change Galaxy. The Connect to a Galaxy dialog box appears.
          4.   Select the Galaxy you want to delet e, except the connected Galaxy.
          5.   Click Delete Galaxy.
          6.   At the prompt, click Yes.
          7.   When the Galaxy is deleted, click Close.
Definitions
          The following terms are important in understanding the Galaxy Object Components Synchronization
          feature:
              Object Component: Base template-dependent files
              Server: The GR node, which maintains the object component information
              Client: The IDE
458
Managing Galaxies                                                                           Application Server User Guide
         If the system recognizes that the minimum connectivity requirements are met, and there are object
         versioning conflicts, then you are prompted about the out-of-sync state with the option either to
         synchronize or to reject the synchronization operation.
         Select the option you prefer. If you select to synchronize, the synchronization operation will run without
         further prompts.
         A warning message is placed in the Logger for any out-of-sync detection and synchronization issues.
         Note: I/O Auto Assignment information is not included in the Galaxy dump file. For information about
         manually adding I/O Auto Assignment information to a Galaxy dump file for inclusion in the Galaxy load
         process, see Enabling I/O Auto Assignment in the Galaxy Dump File on page 461.
         See About the Galaxy Dump File Structure on page 460 for specific information about the structure of the
         .csv file. Before you start, make sure you know what instances you want to export to a file.
         To export objects to a Galaxy dump file
         1.   In the Application views area, select at least one instance. Shift+click to select multiple instances.
              You can export all instances derived from a template by selecting the template.
         2.   On the Galaxy menu, click Export and then click Galaxy Dump. The Galaxy Dump dialog box
              appears.
         3.   Browse to the location of the .csv file to which you want to dump the selected instances. Type the
              name of the file. Click Save.
         4.   When the Galaxy export process is done, click Close. A .csv file is created containing the selected
              objects and configuration data.
                                                                                                                     459
Application Server User Guide                                                                       Managing Galaxies
Add comments by adding a line wit h a semi-colon as the first character in the comment.
Host Attributes
          Galaxy dump files contain a column for the Host attribute of the objects being dumped. In the case of
          Platform objects, Host is always the name of the Galaxy from which the object is being dumped.
          This data is ignored in subsequent Galaxy Load operations because the Host for Platform objects is
          automatically the name of the Galaxy into which it is being loaded, regardless of the name of the Galaxy
          from which it was dumped.
460
Managing Galaxies                                                                            Application Server User Guide
         Using a text editor, you can delete the Host attribute column, like any other dat a in the Galaxy dump file.
         This has no effect on Platform objects in subsequent Galaxy Load operations because they take the
         Galaxy name as their Host.
                                                                                                                        461
Application Server User Guide                                                                         Managing Galaxies
          Note: A comment line in a .csv file created in Microsoft Excel can create an unintended default -value
          object. To avoid this, open the .csv file in Notepad to make sure the comment line does not contain
          quotation marks.
462
Managing Galaxies                                                                       Application Server User Guide
                   Replace entire instance if an instance of an object with the same name already exists and you
                    want to replace it entirely with the object in the import file.
                   Only update changed attributes if an instance with the same name already exists and you
                    want to replace only the attributes of the object where the values are different.
                   Skip if an instance with the same name already exists and you want to keep the version already
                    in the Galaxy.
                   Stop Galaxy Load if an instance with the same name already exists and you want to cancel the
                    Galaxy Load.
         5.   Click OK. A progress box appears showing the Galaxy load process.
              When the load is done, all objects changed or creat ed during the Galaxy Load process are checked
              in.
         Note: If you try to deploy objects from the second Galaxy to a computer t hat hosts deployed objects from
         the first Galaxy, the deploy fails.
                                                                                                                 463
Application Server User Guide                                                                    Managing Galaxies
          WARNI NG! The user account that i s used for Arche strA communication is a standard Windows
          operating system account located on the local computer or on a domain. Do not delete this
          account with operating system account management tools. If you do, the IDE stops functioning.
          If you delete the ArchestrA user account on an IDE node, you must recreate it with the Change Network
          Account utility. You must have Administrat or privileges on the computer to make changes with the
          Change Net work Account utility.
          Before you start, find out the user name and password that is created on all computers wit h
          ArchestrA-enabled software installed.
          Important! Completing the account change requires a system restart. Once you press OK, you
          cannot cancel the account name change or the system restart.
464
Managing Galaxies                                                                     Application Server User Guide
         1.   The domain name or local machine name for the old A rchestrA user account is shown. If you need to
              change to a different domain, use the short domain na me. Do not use a fully qualified domain name
              (FQDN). For example, use "DomainName" and not "DomainName.com" or "DomainName.local."
         2.   Do one of the following:
                   In a single-node ArchestrA system, enter a new or existing account name.
                   In a multi-node ArchestrA system, create the same user account with the same user name and
                    password on all other ArchestrA computers.
              If you are using an existing account name or a domain account, leave the "Create Local Account"
              checkbox unchecked.
         3.   Click OK or Cancel. If you click OK, the system will warn you to shut down all open applications and
              that the computer will be restart ed. You cannot cancel the account change or system restart at this
              point. After you recreate the user account, the Microsoft Windows security c omponent on your
              computer can take several minutes to update this information on the ArchestrA Galaxy node. Until
              that happens, your IDE might not function properly. Restarting the Galaxy node applies this update
              immediat ely.
                                                                                                               465
Application Server User Guide                                                                      Managing Galaxies
          To define the correct order (Windows 8.1 and Windows Server 2012 and 2012 R2)
          1.   Open Network Connections through the Control Panel (access Network Connections through
               Control Panel > Network and Sharing Center, then select Change adapter settings).
          2.   Rename each network card with a clearly identifiable function, for example, Supervisory Net and
               PLC net.
          3.   Select Advanced from the menu bar (press the Alt key if the menu bar is not visible), and click
               Advanced Settings.
          4.   In the Advanced Settings dialog box, click the up and down arrows to define the correct order of
               Connections.
                  The first connection in the list must be the supervisory network card.
                  If a computer contains more than two network cards, for example, a supervisory connection, a
                   PLC connection, and a Redundancy Message Channel (RMC) connection for ArchestrA
                   redundancy, the supervisory network must be listed first. The others can be listed in any other
                   position.
          5.   Click OK to accept the changes.
          To define the correct order (Windows 10 and Windows Server 2016)
          See Configuring Multiple NICs on page 466 for instructions.
466
Managing Galaxies                                                                         Application Server User Guide
             Private profile: Active whenever the network type for all active network connections on the
              computer are identified as private networks. The private profile typically is used in a more trusted
              environment and is less restrictive than the public profile to allow for net work discovery.
             Public profile: Active in all other circumstanc es. The public profile typically is more restrictive than
              the private profile because the comput er often is connected to the Internet in an insecure location.
              Network discovery and remote access are dis abled rather than explicitly blocking specific traffic.
         All programs allowed to communicate through the firewall are blocked if one or more net work interface
         cards (NICs) are configured as "Public Net work." When the IP address of a net work card changes, the
         NIC is automatically updated to "Public Net work." If even one NIC in a computer with multiple NICs is
         configured as "Public Network", the firewall exceptions are disabled.
         This is particularly important for computers configured to run as a redundant pair. I f the TCP/IP properties
         for a net work card are set to obtain an IP address automatically, there is a possibility that the network
         address will change when the computer restarts. The computer may suddenly change from having a
         "Private Network" to having a "Public Network," and potentially block the programs that were previously
         allowed to communicate through the firewall.
         Note: An exception to this would occur if the NICs are configured and set to the Public Profile before
         Application S erver is installed. The Application Server installation would allow the necessary programs to
         communicate through the firewall in the current (Public) profile.
         The following describes the key NIC settings for a redundant pair. You configure these settings for both
         the primary and backup computers. These settings apply if more than two NICs are installed for
         redundancy (RMC) or ot her networking purposes, such as networking PLCs.
         For detailed instructions on how to configure multiple network interface card binding order settings, see
         Defining the Order of the NI C on page 465 and Configuring the IP Address and DNS Settings on page
         466.
         To configure multiple NICs
         1.   Under Internet Protocol Version 4 (TCP/IPv4) Propertie s, select the Use the following IP
              address option and provide an IP address, subnet mask, and default gateway.
              a.    For the primary computer, the default gateway should be the IP address that you configure for
                    the backup computer. For example:
                    IP address: 100. 100. 100.94
                    Subnet mask: 255.255. 255. 0
                    Default gateway: 100.100.100.95
              b.    For the backup computer the default gateway should be t he IP address that you configure for the
                    primary computer. For example:
                    IP address: 100. 100. 100.95
                    Subnet mask: 255.255. 255. 0
                    Default gateway: 100.100.100.94
              c.    A NIC acting as Redundancy Message Contr ol (RMC) does not require a default gateway. The
                    IP address and Subnet mask can be configured as described for the primary and backup
                    computers. Windows will identify this NIC and assign it a privat e profile. For example:
                    IP address 100.100.100.96
                    Subnet mask: 255.255. 255. 0
         2.   Under Advanced Settings, check that the Regi ster thi s connection's addre ss in DNS option is
              not selected.
                                                                                                                    467
Application Server User Guide                                                                        Managing Galaxies
          To set the binding order in Windows 8.1 and Windows Server 2012 / 2012 R2
          1.   Make sure that the primary network adapter is first in the binding order. This plac es it above t he RMC
               network in the binding order.
          2.   Make sure that ALL net work cards are configured as "Private Network."
          3.   Configure the RMC NIC to have a persistent (across reboots) Private profile.
               a.   Open a command window and enter the command secpol.msc. The Security Policy window
                    appears.
               b.   Select Network List Manager Policies.
               c.   Select Unidentified Network.
               d.   Right click, then select Properties, and then change the Location type from Not configured to
                    Private.
               e.   Close the command window.
          It may be necessary to restart the computer for the changes to take effect.
          To set the binding order in Windows 10 and Windows Server 2016
          Microsoft has changed how network protocol bindings are handled in its newest operating systems.
          Windows now us es an Interface Metric number to determine priority.
          To check the existing priorities of your net work cards:
          1.   Launch the Windows PowerS hell as administrator.
          2.   To view the current priority, enter the following cmdlet:
               Get-NetIPInterface
468
Managing Galaxies                                                                       Application Server User Guide
              This displays the Interface List. An interface metric number is listed for each network interface
              card/adapter. Note that the lowest number has the highest priority.
         3.   Identify the NIC cards and define the binding order (priority). Check the InterfaceIndex numbers for
              each NIC. It could be that your cards already have the correct priorities (higher InterfaceIndex
              numbers have lower priority).
         4.   If you need to change the priority of your interface cards, us e the following cmdlet to change the
              InterfaceIndex for one or more network cards. For example:
              Set-NetIPInterface    -InterfaceIndex 2    -InterfaceMetric 100 (lower priority)
              Set-NetIPInterface    -InterfaceIndex 5    -InterfaceMetric 10 (higher priority)
                                                                                                                    469
Application Server User Guide                                                                  Managing Galaxies
          If you install the Wonderware software before configuring the NICs properly, configure the NICs as
          described in this section and then run the OS ConfigurationUtilit y again. To do this, run the
          OSConfigurationUtility.exe, located in the C:\Program Files (x86)\Common Files\Arche strA folder.
          To verify that the firewall exceptions are set, open Control Panel and then open the Windows Firewall
          application. Verify that the executables for the Wonderware products you have installed are allowed to
          communicate through the firewall.
470
                                                                                                             Application Server User Guide
                                                                                     C HAPTER 16
Working with Redundancy
     You can set up and run Application Server in a redundant environment. For more information about
     redundancy, see the AVEVA Software Global Customer Support website.
     In This Chapter
     About Redundancy ..................................................................................................................... 471
     Working with AppEngine Redundancy.......................................................................................... 474
     Troubleshooting.......................................................................................................................... 480
     Working with Data Acquisition Redundancy .................................................................................. 482
About Redundancy
     A failover is the condition during which run-time operations are moved from one critical component to
     another. Failover can occur due to failure conditions or it can be forced manually, called a forced failover.
     Application Server provides redundancy in two critical functions:
         AppEngine: You must configure both an AppEngine and two WinPlatforms.
         Data acquisition: You must configure two DIObjects (data sources) and a Redundant DIObject.
                                                                                                                                              471
Application Server User Guide                                                                   Working with Redundancy
When you configure redundancy, you configure the Primary object and the Backup object.
             Primary object: The main or cent ral object that provides the functionality during run time. For
              AppEngines, this is the object you enable for redundancy. For data acquisition, this is the DIObject
              you intend to use first as your data source in run time.
             Backup object: The object that provides the functionality of the Primary object when the Primary
              object fails. For AppEngines, this is the object created by the Arc hestrA infrastructure when the
              Primary object is enabled for redundancy. For data acquisition, this is the DIObject you do not intend
              to use first as your data source in the run-time.
             Acti ve object: The object that is currently executing functions. For AppE ngines, it is the object that is
              hosting and executing ApplicationObjects. For data acquisition, it is the object that is providing field
              devic e data through the RedundantDIObject.
             Standby object: The object that is waiting for a failure in the Active object or for a force-failover. For
              AppEngines, it is the object that monitors the status of the Active AppEngine. For data acquisition, it
              is the object that is not providing field device data through the R edundant DIObject.
472
Working with Redundancy                                                                 Application Server User Guide
         In the AppEngine redundancy environment, the Active and Standby objects monitor each ot her’s
         statuses and switch during a failover situation.
         During a failover, when an Active engine fails, it restarts and the Standby engine becomes active. The
         Active engine then turns to the standby mode. In the data acquisition environment, the
         RedundantDIObject monitors the status of the two DIObject data sources, and handles the switching
         from Active to Standby objects.
         The relations hip bet ween the configuration time (P rimary/Backup) and run-time (Active/Standby) object
         pairs is not static. In the run time, either the Primary or Backup object can be the Active object at any
         particular time. Whenever one becomes the Active object, the other automatically becomes the Standby.
Note: CPU load balancing will only work on run-time nodes with redundant engines.
            Registry Key:
             EngineFailoverStartup
         Subkey entries used for enabling and tuning CPU load balancing are:
                                               Default
         Subkey Name                           Value       Description
                                                                                                                 473
Application Server User Guide                                                                                           Working with Redundancy
                                                                           Default
          Subkey Name                                                      Value      Description
          The configuration of bot h WinPlatforms should be the same. At a minimum, the store-forward directory
          configurations must be common to bot h WinPlatforms:
          During configuration, you can assign Primary and Backup AppEngines to the same WinPlatform. To
          deploy, you must assign the Primary and Backup AppEngines to different WinPlatforms.
                                   Supervisory Network
                                    Redundancy Message
                                      Channel (RMC)
          AppEngine A                                                  AppEngine A
                                                                           (Backup)
                                     Requires dedicated
                                    NIC on each computer
                        WinPlatform 1                      WinPlatform 2
          Each production computer hosting a redundancy-enabled AppE ngine must have a minimum of two
          network cards. One NIC is for the supervisory network and P LC network, if the computer has only two
          network cards. The other must be for a dedicated Ethernet connect ion between computers for the
          redundancy message channel (RMC).
          For information about distributed networks, see Using Multiple Net work Interface Cards on page 465.
          The RMC handles redundancy monitoring, message handling and data synchronization bet ween
          redundant pairs.
474
Working with Redundancy                                                                 Application Server User Guide
Configuring Redundancy
         You configure redundancy in AppE ngine/WinPlatforms objects using their Object Editors.
         The redundancy-related parameters in the AppEngine Object Editor are located on the Redundancy
         and General tabs.
         An AppEngine that is part of a redundancy pair has a deployment status indicating its own status and that
         of its partner object. These statuses are visually indicated in the Application views.
         You can set the status of a redundancy pair to one of the follo wing states:
         Partial Deployed          Either the Primary or Backup AppEngine is deployed and its partner is
                                   not deployed. If an AppE ngine has a Partial Deployed status, its partner
                                   has a Partial Undeployed status.
         Partial Undeployed        Either the Primary or Backup AppEngine is undeployed and its partner is
                                   deployed. If an AppEngine has a Partial Undeployed status, its partner
                                   has a Partial Deployed status.
                                                                                                                 475
Application Server User Guide                                                                Working with Redundancy
          Note: The actual engine failure time-out is three times the value of this parameter. If you set the
          parameter to 2000 ms (2 seconds), a failover occurs if the AppEngine fails to communicate with the
          computer’s Bootstrap for 6 seconds. A setting of 10000 ms (10 seconds) can be too long a wait period
          (30 seconds) for a well-functioning redundancy operation.
          After you save the configuration of the object and check it into the Galaxy, the icon for the object
          changes. A Backup AppEngine is created with the same configuration as the Primary object.
Icon Object
Backup AppEngine
476
Working with Redundancy                                                              Application Server User Guide
         If the Plat form hosting the redundant AppEngine is shutdown in SMC, the AppEngine cannot be flagged
         as "On failure mark as undeployed" when you undeploy the AppE ngine. You see an engine
         communication error in the Deploy dialog box.
         Important: If you deploy the Backup AppE ngine first and then deploy hosted objects to that AppEngin e,
         make sure the network communication to both target comput ers is good before deploying the Primary
         AppEngine. Otherwise, errors occur.
         In the run-time environment, either the Primary or Backup AppEngine can become the Active or Standby
         depending upon failure conditions on either computer.
Configuration Requirements
         Before deploying the Primary and Backup AppEngines, all c onfiguration requirements must be met.
            Each AppEngine must be assigned to a separate WinPlat form.
            A valid redundancy message channel (RMC) must be configured for each WinPlatform.
            To deploy the Primary and Backup together, select Include Redundant Partner in the Deploy
             dialog box. This option is not available when doing the following operations:
             o   Cascade deploy from the Galaxy
             o   Multiple object selection deploy
             o   Deploying the WinPlatform that hosts the Primary or Backup AppEngine
         The following table shows a matrix of allowed operations based on specific conditions.
                                                             Deploy Both
                                                             Primary and            Cascade Deploy
         Condition                                           Backup Objects         Allowed
                                                                                                              477
Application Server User Guide                                                               Working with Redundancy
                                                                   Deploy Both
                                                                   Primary and        Cascade Deploy
          Condition                                                Backup Objects     Allowed
          Important: Undeploying any objects, including redundant AppEngine pairs, does not uninstall c ode
          modules for that object from the hosting computer. Code modules are uninstalled only when the
          WinPlatform is undeployed.
          To undeploy as a pair
          1.   Select one of the objects in an Application view.
          2.   On the Object menu, click Undeploy. The Undeploy dialog box appears.
          3.   Select Include Redundant Partner in the Undeploy dialog box and click OK.
During Deployment
          During initial deployment of a redundant pair of AppEngines, files are deployed in the following order:
              Code modules and other files for the Primary AppEngine are deployed
              Those files for its assigned ApplicationObjects
              All of these files are deployed to the Standby AppE ngine by the Active engine’ s WinPlatform using
               the redundancy message channel (RMC)
          Note: If some or all of thes e files already exist on the Standby AppE ngine’s WinPlatform, perhaps,
          assigned to another AppEngine on that plat form, only the delta files are deployed to the Standby
          AppEngine.
478
Working with Redundancy                                                                  Application Server User Guide
                                                                                                                  479
Application Server User Guide                                                                  Working with Redundancy
             Standby - Ready: The state of an AppE ngine when it completed synchronizing code modules and
              checkpoint data with the Active AppEngine. In this state, the AppEngine monitors for Active
              AppEngine failure by verifying heartbeat pings received from the Active engine and checks that all
              files required for execution are in sync with the Active engine. It receives the following from the Active
              AppEngine: checkpoint change dat a, subscription -related notifications, alarm state changes, and
              history blocks.
             Standby - Sync'ng with Acti ve: The state of an AppEngine when it is synchronizing code modules
              with the Active object. If code modules exist on the Standby computer that do not exist on the Active
              node, they are uninstalled, and likewise, any code modules that exist on the Active node but not on
              the Standby node are installed. After all code modules are synchronized, the AppE ngine transitions
              to Standby-Sync’d Code state.
             Standby - Syncing Code: The state of a Standby AppEngine that successfully synchronized all
              code modules with the Active object.
             Standby - Syncing Data: The state of a Standby AppEngine when all object-relat ed data, including
              checkpoint and subscriber information, are synchronized with the Active object. An object in this
              state typically transitions to Standby -Ready state.
             Switching to Acti ve: A transitional state when a Standby AppEngine is commanded to become
              Active.
             Switching to Standby: A transitional state when an Active AppE ngine is commanded to become
              Standby. When the active engine is switched to standby, the engine will be restarted. This transition
              state can be switched off by the user changing the attribut e of the engine.
             Failed: The state of a redundant partner when its process crashes or is terminated by the user. The
              AppEngine process can be restarted using System Management Console/PlatformManager.
             Unknown: The state of a redundant partner when a communication loss occurs between
              AppEngines or when the partner AppEngine is stopped, shutdown, or undeployed.
          For examples on redundant configuration, see the AVEVA Soft ware Global Customer Support website.
Troubleshooting
          Most troubleshooting happens in the System Management Console. For more information about using
          the System Management Cons ole, see the System Management Console User’s Guide.
          Cert ain requirements are validated by the system infrastructure. For example, the order in which you
          configure an object pair for redundancy is validated.
          The following problems can occur when you are using redundancy:
             You can configure an AppEngine for redundancy before configuring its associated WinPlatform. If
              you do this, you see an error message that the Platform (specifically, the RMC) is not configured yet.
             If the RMC IP Addre ss parameter is not configured in both hosting WinPlatforms, then the
              configuration state of bot h Primary and Backup AppEngines changes to Error. You also see a
              message indicating that the host WinPlatform is not configured with the network adapter required for
              redundant communications. When the RMC IP Address is configured and the WinPlat forms are
              checked in, the hosted A ppEngines are automatically revalidated and the Error state is resolved. If
              hosted AppE ngines are checked out, they are not revalidated.
             If both Primary and Backup AppE ngines are assigned to the s ame WinPlat form and you try to deploy
              both engines, both the Primary and Backup fail to deploy. You see a message that the Primary and
              Backup objects must be hosted by different WinPlatforms. Reassign the Backup object to another
              WinPlatform and deploy it separat ely.
             If both the Network Addre ss and RMC IP Addre ss parameters in the WinPlatform’s editor refer to
              the same net work card, you get a warning message when you save the configuration. These
              parameters must refer to different net work cards.
480
Working with Redundancy                                                                              Application Server User Guide
            Before restarting a comput er that hosts one of a redundant pair of AppEngines (either the Active or
             Backup), ensure that the Primary Network is connected. A restart while the Primary Network is
             disconnected makes the Primary Net work bind to the RMC’s IP address. An incorrect redund ancy
             state occurs, indicating that redundancy functionality is good. Any time you restart a
             redundancy-enabled comput er, check for proper net work connections afterwards. For more
             information, see Using Multiple Net work Interface Cards on page 465.
            When scripting is used to activate attributes, attributes displayed in the watch window may appear to
             remain in an initializing state after deployment or engine failover. This happens because the script is
             capturing the attributes while they are still initializing on one of the redundant engines, before the
             engines are able to synchronize. The attributes will move to active state, but unless there is retry
             logic in the script, that information will not be returned. This situation can be avoided by ensuring that
             your scripts contain ret ry logic to capture the updated state of the attributes.
Generating Alarms
         When failover conditions occur, the ArchestrA system reports alarms to subscribed alarm cl ients like
         InTouch.
         These alarms contain the following information:
            The name of the AppEngine reporting the alarm.
            The node name of the AppEngine reporting the alarm.
            The state of the AppEngine.
            The node name of the AppEngine’s partner object.
         Depending on what caused the failover, the Standby AppE ngine can become the Active AppEngine in an
         Off scan state and alarms might not be generated.
         If the Active AppEngine is shutdown off scan, the checkpointer can trans fer that state to the Standby.
         When the Standby becomes the Active, it starts off scan. When the AppEngine is put on scan, alarms
         then are generated.
         Reported alarms include the following:
         Standby        Active          Standby Not         Standby Not         Entering Standby        Active Engine
         Not Ready                      Ready               Ready               Ready
         *
                  * The Active AppEngine monitors the status of the Standby through the RMC to determine w hen to raise this
                  alarm. Also, if the Active AppEngine is in Active-Standby not Available state, this alarm is not generated.
                                                                                                                                481
Application Server User Guide                                                                  Working with Redundancy
          When a failover occurs, the Standby AppE ngine that becomes active carries alarms outstanding from the
          old Active AppE ngine. The state of those old alarms, though, will change to reflect the new partner's
          status.
          Timestamps are preserved for alarms, including when:
             The alarm was acknowledged
             The alarm condition went true
             The alarm condition went false
          Finally, the following information is preserved for alarms:
             An alarm was acknowledged
             The message input by the operator when the alarm was acknowledged
          All alarm state information is collected and sent to the Standby AppEngine at the end of a scan cycle and
          before being sent to alarm clients.
          The sequenc e of reporting alarms ensures that alarm clients do not report alarms in states that are
          different from those reported by the Standby AppE ngine if the Active AppEngine fails.
Generating History
          All active objects (AppEngine and hosted objects) report history data as they normally do in the run -time
          environment.
          Historical dat a is reported to the historian only from the Active AppEngine.
          Losing connectivity with the historian does not cause a failover. The Active AppE ngine goes into
          store-forward mode and caches data every 30 seconds. Store-forward data is synchronized with the
          Standby AppE ngine.
          When failover conditions occur, no more than 30 seconds of history data is lost in the transition from
          Standby to Active status. For more information, see the AVEVA Soft ware Global Customer Support
          website.
482
Working with Redundancy                                                               Application Server User Guide
                                                                                                               483
                                                                              Application Server User Guide
                                                              A PPENDIX A
Glossary
    application
    A collection of objects in a Galaxy Repository that performs automation tasks. Synonymous with
    Galaxy. There can be one or more applications within a Galaxy Repository.
    Application Engine (AppEngine)
    A scan-based engine that hosts and executes the run -time logic contained within
    AutomationObjects.
    ApplicationObject
    An AutomationObject that represents some element of your production environment. This can
    include things like
    o   An automation process component. For example, a thermocouple, pump, motor, valve, reactor,
        or tank
    o   An associated application component. For example, function block, PID loop, Sequenti al
        Function Chart, Ladder Logic program, batch phas e, or SPC dat a sheet
    Application Server
    The supervisory control plat form. Application Server uses existing Wonderware products such as
    InTouch for visualization, the Wonderware Historian for data storage, and the device Integration
    product line like an Operations Integration Server (OI Server) for device communications.
    An Application Server can be distributed ac ross multiple computers as part of a singl e Galaxy
    namespace.
    Application view
    The Applications view shows the object-related contents of the Galaxy in four different ways: Model
    view, Deployment view, Derivation view, and Operations view. The Model view appears when the
    IDE is opened for the first time.
    Arche strA
    The distributed architecture for supervisory control and manufacturing information systems. It is an
    open and extensible technology based on a distributed, object-based design.
    Arche strA Object Toolkit
    A programmer’s tool to create new ApplicationObjects and Devic e Integration Object (DIObjects)
    templates, including configuration and run-time implementations. Includes a tool to build DI Objects
    and create unique Domain Objects that interact with DIObjects in the ArchestrA environment.
    Arche strA S ymbol
    A graphic you create and us e to visualize data in an InTouch HMI system. You use the ArchestrA
    Graphic Editor to create ArchestrA Symbols from basic elements, such as rectangles, lines, and text
    elements.
    area
    A logical grouping of AutomationObjects that represents an area or unit of a plant. It is used to group
    related objects for alarm, history, and security purposes. It is represented by an area
    AutomationObject.
    area object
    The system object that represents an area of your plant within a Galaxy. The Area Object acts as an
    alarm concentrator, and places other Automation Objects into proper context with respect to the
    actual physical automation layout.
                                                                                                       485
Application Server User Guide                                                                                  Glossary
              assignment
              The designation of a host for an AutomationObject. For example, an AppEngine object is assigned to
              a WinPlatform object.
              attribute
              An externally accessible data item of an AutomationObject.
              attribute reference string
              A text string that references an attribut e of an AutomationObject.
              AutomationObject
              An object type that represents permanent things in your plant, such as ApplicationObject or Device
              Integration Object (DIObjects), with user-defined, unique names within the Galaxy. It provides a
              standard way to create, name, download, execute, and monitor the represented component.
              Backup Application Engine
              The object created by the ArchestrA infrastructure when the Primary object is enabled for
              redundancy. See redundancy for further details.
              base template
              A root template at the top of a derived hierarchy. Unlike ot her templates, a base template is not
              derived from another template but developed with the ApplicationObject Toolkit and imported into a
              Galaxy. All base templates names start with a dollar sign ($).
              Block Read Group
              A DAGroup that is triggered by the user or another object. It reads a block of data from the external
              data source and indicates the completion status.
              Block Write Group
              A DAGroup that is triggered by the user or another object after all the required data items are set.
              The block of data is sent to the external dat a device. When the block write is complete, it indicates
              the completion status.
              Bootstrap
              The base ArchestrA service which is required on all ArchestrA computers. It provides the base
              software environment to enable a platform and allows a computer to be included in the Galaxy
              Namespace.
              Buffered Data
              Data capt ured and stored locally on a remote device for later transfer to a supervisory system for
              processing, analysis, and long-term storage. Can be configured within the I/O feature in the
              Attributes page.
              change log
              The revision history that tracks the life cycle activities of ArchestrA Objects, such as object creation,
              check in/check out, deployment, and import/export.
              change propagation
              The ability to create templates whic h allows each component templat e to support changes such that
              a change in one of the elements can be automatically propagated to all — or select, related — object
              instances.
              check in
              IDE operation for making a configure d object available for other users to check out and use.
              check out
              IDE operation for the purpose of editing an object. It makes the item unavailable for other users to
              check out.
              Checkpoint
              The act of saving to disk the configuration, state, and all associated data necessary to support
              automatic restart of a running AutomationObject. The restart ed object has the same configuration,
              state, and associated data as the last checkpoint image on disk.
486
Glossary                                                                                Application Server User Guide
           compound object
           An ApplicationObject that contains at least one other ApplicationObject.
           contained name
           An alternate naming convention that when combined with the TagName of the root container object,
           results in the hierarc hical name. For example, for a given object, its Hierarchical Name =
           Line1.Tank1.InletValve and its Contained Name= InletValve.
           containment
           A hierarchical grouping that allows one or more AutomationObject to exist within the name spac e of
           a parent object and be treat ed like parts of the parent object. Allows for relative referencing to be
           defined at the template and instance level.
           DAGroup
           A data access group associated wit h Device Integration Object (DIObjects). It defines how
           communications are achieved with external data sources. It can be a Scan Group, Block Read Group
           or Block Write Group.
           DAServer Manager (DAS Manager)
           The System Management Console (SMC) snap-in supplied by the Operations Integration Server (OI
           Server) that provides the required interfac e for activation, configuration, and diagnosis of the OI
           Server.
           Data Acce ss Server (DAServer)
           See Operations Integration Server (OI Server).
           Data Acce ss Server Toolkit (DAS Tool kit)
           A developer tool that can build an Operations Integration Server (OI Server).
           Deployment
           The operation which instantiates an AutomationObject instance in the ArchestrA run time. This
           action involves installing all t he necessary software and instantiating the object on the target platform
           with the object’s default attribut e data from Galaxy Repository.
           Deployment view
           The part of the Application view in the IDE that shows how objects are phy sically dispersed across
           Platforms, areas and Engines. This is a view of how the application is spread across computing
           resources.
           derivation
           The creation of a new template based on an existing Templat e.
           Derivation view
           The part of the Application view in the IDE that shows the parent-child relationship between base
           templates, derived templates and derived instances. A view into the genealogy of the application.
           derived template
           Any template with a parent template. Derived templates inherit the attribut es of the parent template.
           You can changes these attributes in the derived template.
           Device Integration Object (DIObjects)
           An AutomationObject that represents the communication with external devices or software.
           DIObjects run on an Application Engine (AppEngine), and include DINet work Objects and DIDevice
           Objects.
           DHCP
           Dynamic Host Configuration Protocol. A network configuration protocol for hosts on IP networks.
           DIDevice Object
           An object that repres ents the actual external device (for example, a PL C or RTU) that is associated
           with a DINetwork Object. It can diagnose and browse data registers of the DAGroups for that device.
                                                                                                                  487
Application Server User Guide                                                                                  Glossary
              DINetwork Object
              An object that repres ents the network interface port to the device through the Data Access Server
              (DAServer) or the object that represents the communications path to another software application. It
              provides diagnostics and configuration for that specific network card.
              element
              Basic shapes, such as rectangles, lines, and text elements, and cont rols y ou can use to create an
              ArchestrA Symbol to your specifications.
              Element Style
              An Element Style defines one or more visual fill, line, text, blink, outline, and status properties of
              ArchestrA graphic elements. You can apply an Element Style to set preconfigured values to the
              visual properties of a graphic element.
              Engine Object
              An ArchestrA system-enabled object that contains Local Message Exchange and provides a host for
              ApplicationObjects, Device Integration Object (DIObjects) and area objects.
              event record
              The data that is transferred about the system and logged when a defined event changes state. For
              example, an analog crosses its high level limit, an acknowledgement is made, or an operator logs in
              to the system.
              export
              The act of generating a package file (.aaPKG) extension from persisted data in t he Galaxy database.
              You can import the resulting .aaPK G file into anot her Galaxy.
              FactorySuite Gateway
              A Microsoft Windows applic ation program that acts as a communications protocol convert er. Built
              with the ArchestrA DAS Toolkit, FS Gateway links clients and data sources that communicate using
              different data access protocols.
              Galaxy
              The entire application. The complete ArchestrA system consisting of a single logical name space
              (defined by the Galaxy database) and a collection of plat form objects, Engine Objects and other
              objects. One or more net worked computers that constitute an automation system. This is referred to
              as the Galaxy Namespace.
              Galaxy database
              The relational database containing all persistent configuration information like templates, instances,
              and security in a Galaxy Repository.
              Galaxy Database Manager
              A utility to manage your Galaxy. It can back up and restore Galaxies if they become corrupt or to
              reproduce a Galaxy on another computer. The Galaxy Database Manager is part of the System
              Management Console (SMC).
              GalaxyObject
              The object that represents a Galaxy.
              Galaxy Repository
              The soft ware sub-system consisting of one or more Galaxy databases.
              Graphic Toolbox
              The part of the IDE main window that shows a hierarchy of graphic toolsets, which contain ArchestrA
              Symbols and client controls.
              hierarchical name
              The name of the object in the context of its container object. For example, Tank1.OutletValve, where
              an object called Tank1 contains the OutletValve object.
488
Glossary                                                                                    Application Server User Guide
           Model view
           The area in the Application view in the IDE that shows how objects are arranged to describe the
           physical layout of the plant and supervisory process being controlled.
           object
           Any template or instance in a Galaxy database. A common characteristic of all objects is they are
           stored as separate components in the Galaxy Repository.
           Object Viewer
           A utility in which y ou can view the attribut e values of the s elected object in run time. This utility is only
           available when an object is deployed. Object Viewer shows you diagnostic information on
           ApplicationObjects so you can see performanc e paramet ers, resource consum ption and reliability
           measurements. In addition to viewing an object’s data value, data quality and the communication
           status of the object, you can also modify some of its attributes for diagnostic testing. Modifications
           can include adjusting timing parameters and setting objects in an execution or idle mode.
                                                                                                                       489
Application Server User Guide                                                                                     Glossary
              OffS can
              The state of an object that indicat es it is idle and not ready to execut e its normal run -time proc essing.
              Operations Integration Server (OI Server)
              The server executable that handles all communications between field devices of a certain type and
              client applications. Similar to I/O Servers but with more advanced capabilities. Also called a
              DAServer.
              OnScan
              The state of an object in which it is performing its normal run-time processing based on a configured
              schedule.
              Operations view
              The area in the IDE that shows the results of validating the configuration of objects.
              package definition file (.aaPDF)
              The standard description file that cont ains the configuration dat a and implementation code for a base
              template. File extension is .aaPDF.
              package file (.aaPKG)
              The standard description file that contains the configuration data and implementation code for one or
              more objects or templates. File extension is .aaPKG.
              Platform Count
              Number of computers in the Galaxy. Each Workstation or Server communicating directly with the
              Application Server requires a platform to be part of the Galaxy Namespace. This includes each
              InTouch and InTouch View client.
              Platform Manager
              This utility is an extension snap-in to the ArchestrA System Management Console (SMC).Provides
              Galaxy application diagnostics by allowing you to view the run-time status of some system objects
              and to perform actions upon those objects. Actions include setting platforms and engines in an
              executable or idle mode and starting and stopping platforms and engines.
              platform object
              An object that repres ents a single computer in a Galaxy, consisting of a system wide message
              exchange component and a set of basic services. This object hosts all Application Engines.
              Primary Application Engine
              The object created by the ArchestrA infrastructure when the Backup object is created through
              redundancy. See redundancy for further details.
              properties
              Data common to all attributes of objects, such as name, value, quality, and data type.
              proxy object
              An AutomationObject that represents an actual product for the purpose of device integration wit h the
              Application Server or InTouch HMI. For ex ample, a Proxy object enables the Application Server to
              access an OPC server.
              redundancy
              Two computers: One executes objects. The ot her is a stand by.
              RedundantDIObject
              Monitors and controls the redundant Device Integration Object (DIObjects) data sources. Unlike
              redundant AppEngines, individual DIObject data sources do not have redundancy -related states.
              They function as stand-alone objects.
              Redundant Message Channel
              A dedicated Ethernet connection which is required bet ween the platforms hosting redundant
              engines. The RMC is vital to keep both engines synchronized with alarms, history, and checkpoint
              items from the engine that is in the Active Role. Each engine also uses this Message Channel to
              provide its health and status information to the other.
490
Glossary                                                                                Application Server User Guide
           reference
           A string that refers to an object or to data within one of its attributes.
           relative reference
           Objects may refer to thems elves, containers, hosts or to child objects elsewhere in the parent/child
           hierarchy using special reserved keywords such as "Me" or "MyContainer". Relative references
           continue to work properly ven if the object that is referenc ed is renamed. Examples of relative
           references are "Me", "MyArea", "MyContainer", "MyHost", and "MyPlatform".
           remote reference
           The ability to redirect ArchestrA object references or references to remote InTouch tags. The new
           script function that redirects remote references at run time is IOSet RemoteReferences.
           SCADA
           Supervisory Control and Data Acquisition (S CADA ) is a centralized industrial control system that
           controls and monitors sites or systems which are spread over large areas - an entire industrial plant
           or a country.
           Scan Group
           A DAGroup that requires only the update interval be defined. The data is retrieved at the requested
           rate.
           Scan State
           The Scan State of an object in run time. This can be either OffScan or OnScan.
           security
           Application Server security is applied to IDE, System Management Console (SMC), and the run-time
           data level. At the run-time data level which centralizes the definition of all permissions to the
           ApplicationObjects. These ApplicationObjects can be accessed by a variety of clients but the
           security is centrally defined, allowing ease of maintenance. Users that are allowed to modify these
           ApplicationObjects at run time are mapped to the objects by user-defined roles. These roles can be
           mapped directly to existing groups in a Microsoft Domain or workgroup.
           System Management Console (SMC)
           The central run-time system administration/management product where you perform all required
           run-time administration functions.
           system object
           An object that repres ents an area, plat form or engine.
           TagName
           The unique name given to an object. For example, for a given object, its TagName = V1101 and its
           HierarchicalName = Line1. Tank1.InletValve.
           template
           An object containing configuration information and soft ware templates us ed to create a derived
           template or instance.
           Template Toolbox
           The part of the IDE main window that shows Toolsets containing templat es. The Template Toolbox
           shows a tree view of template categories in the Galaxy.
           Tool set
           A named collection of templates shown together in the IDE Templat e Toolbox.
           ViewEngine object
           Hosts InTouchViewApp objects. The ViewEngine object supports common engine features such as
           deployment, undeployment, startup, and shutdown.
           WinPlatform object
           An object that repres ents a single computer in a Galaxy. A WinPlatform object consists of a
           system-wide message exchange component and a set of basic ArchestrA services. The WinPlatform
           object hosts the Application Engine (AppEngine).
                                                                                                                 491
Application Server User Guide   Glossary
492
                                                                     Application Server User Guide
Index
                                                 severity • 328
   .                                             statistical type • 300
   .csv files
                                                  subscribing • 318
       characters in • 461                    aliases
       editing • 459                             rules for locking in scripts • 156
       importing • 462                            using in scripts • 154
       structure • 460                        analog device objects, output extensions • 128
       time formats • 461                     AppEngine objects
                                                 description • 45
                                                                                              493
Application Server User Guide                                                                       Index
494
Index                                                                      Application Server User Guide
                                                                                                    495
Application Server User Guide                                                                             Index
496
Index                                                                            Application Server User Guide
M adding images • 76
                                                                                                          497
Application Server User Guide                                                                            Index
          R                                                 S
                                                            script function libraries
          rate of change alarms • 299
          reassigning objects, undeploying • 29                 exporting • 100
          recreating ArchestrA user account • 464               importing • 105
          redundancy                                        script libraries, exporting • 459
              alarm generation • 481                        scripting
498
Index                                                                          Application Server User Guide
            groups, default • 410                           alarm extensions • 133, 134, 135, 137, 138
            groups, importing objects • 112                 application • 45
            icon not available • 68                         base • 42, 43
            icons • 69                                      classes • 43
            opening Galaxies • 21                           configuring redundancy • 476
            options in attributes • 69                      contained names • 59
            restricting access to attributes • 68           containment • 54
            restrictions, creating new Galaxies • 18        creating derived • 52
            security roles • 410                            default • 42, 43
        Security Mode • 419                                 defined • 42
        setting network cards • 465
                                                            deploying • 41
        setting prompts for check-in comments • 37
                                                            derived • 43, 46
        silenced alarms • 302, 304
        single scan cycles • 128                            devic e integration • 45
        Situational A wareness Library symbol • 162         exporting • 459
        SmartSymbols, exporting language data • 440         inheriting extensions • 120
        standby object, redundancy • 472
                                                            naming conventions • 52
        Startup scripts, initializing • 119
        state alarms • 296                                  nesting • 42
        Statistics Feature Paramet ers • 138                nesting levels • 54
        store forward, historized data • 282                propagating changes • 43
        storing history, configuring • 290                  reserved names • 52, 53
        subscribing to alarms • 318
                                                            system • 45
        suppressed alarms • 302
                                                        time formats, .csv files • 461
        switch objects • 128
                                                        timestamps
        Symbol Wizard
                                                            saving as historical data • 278
            Cons umer workflow • 162
                                                        toolsets
            creating multiple configuration symbols •
                                                            creating • 50
              163
                                                            naming conventions • 50
            Designer workflow • 162
           embedding symbols into an InTouch
            application • 164                           U
        symbols                                         undeploying
            exporting language data • 438                   history • 282
            translating text • 438                          objects before moving • 29
        system templates • 45                           undeploying redundant engines • 478
                                                        unlocking, template attributes • 65
                                                        Upload Runtime Changes
        T
                                                            I/O Auto Assignment • 149
        tagnames • 54, 59, 96
                                                        User Account Control • 464
        tagnames, containment • 55
                                                        user accounts • 464
        target deviation alarms • 298
                                                        user defaults, setting • 37
        Templat e Toolbox, location • 22
                                                        users
        templates
                                                                                                        499
Application Server User Guide                              Index
              default • 410
              deleting • 428
          V
          validating
              Galaxies • 95
              object manually • 95
              objects • 94
              objects, viewing results • 34
              references in scripts • 94
              scripts • 94, 153
          viewing
              object properties • 47
              object relationships • 29
              objects, assignment relationships • 31
          views in the IDE • 22
          W
          Windows
               user accounts • 464
          WinPlatform object, configuring for
            redundancy • 474
          WinPlatform, object • 45
          WinPlatforms, history configuration • 285
          Wonderware Historian, installing • 277
          writing
              to attributes in runtime, attribut es
                  in runtime, writing to attributes • 65
500