beautypg.com

Creating symbols – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual

Page 652

background image

F

ACTORY

T

ALK

V

IEW

S

ITE

E

DITION

U

SER

S

G

UIDE

A–6

• •

For example, if the current area is called RecipesArea, the graphic display specified using
the relative reference IngredientDisplay is resolved to the absolute reference
/RecipesArea::IngredientDisplay before it can be used.

For commands, relative references are resolved in different ways, depending on the type
of parameters the command takes.

Commands that take tags as parameters

Commands that take tags as parameters are resolved as follows:

When the command runs from a graphic display, the area that contains the graphic
display is used to resolve the relative reference.

For example, if the command Display OverviewStats runs from the graphic display
called IngredientDisplay in the area RecipesArea, the area name RecipesArea is used
to resolve the relative reference in the command.

If the command runs from the graphic display called IngredientDisplay in the Mixing
area, the Mixing area name is used to resolve the relative reference in the command.

When the command is run by an Events component, the Alarm Identification feature,
or the Startup or Shutdown macros, the area that contains the HMI server is used to
resolve the relative reference.

Commands that take HMI project components as parameters

When the command runs from a graphic display, the area that contains the graphic display
is used to resolve the relative reference.

Some commands are run by a part of the system that runs in the background. This
background activity is managed by the HMI server.

For example, an Events component runs commands when events occur. These parts of the
system resolve relative references using the area in which the HMI server is located,
because the HMI server manages the background activity.

Creating symbols

If you have long commands, or commands with parameters that are hard to remember or
easy to mix up, you can rename those commands with a single word called a symbol.

Symbols can be used anywhere a command can be used: in a box that requires an action,
in a macro, or at the command line.

You can define symbols in a macro or at the command line. However, symbols are mainly
an operational convenience when using the system from the command line.