Nesting macros, Example 5: nesting macros, Running macros – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual
Page 643: Nesting macros – 15 running macros – 15
![background image](/manuals/581457/643/background.png)
24
•
A
DDING
LOGIC
AND
CONTROL
24–15
•
•
•
• •
24
•
Pla
ceho
lde
r
Nesting macros
You can insert a macro within another macro—this is called nesting. A macro can have up
to eight nesting levels.
Example 5: Nesting macros
A macro called Draw contains:
Display Overview
Display Detail
and a macro called Factory contains:
Draw
Valve23=Open
With the Draw macro nested in the Factory macro, running the Factory macro performs
the same actions as in Example 3.
Running macros
At run time, an operator can run a macro anywhere they can run a FactoryTalk View
command. Ensure you include a way for the operator to run commands or macros, for
example, by specifying them as press actions for buttons.
For more information about running macros, see Help.
Running a macro when an HMI server starts
If you have created an HMI server with components that must start in a particular order,
create a Startup macro. To make this macro run when the HMI server starts, select it as
the startup macro in the Components tab of the HMI Server Properties dialog box.
For details about specifying the startup macro:
In a network distributed application, see page 6-18.
In a local station application, see page 8-8.
The single quotation mark ( ‘ ) is a special character in FactoryTalk View and cannot be used in
nested macros. Instead, use the double quotation mark ( “ ) .