Using parameters, Nesting macros, Using parameters -10 nesting macros -10 – Rockwell Automation 9301 Series RSView32 Users Guide User Manual
Page 550

15–10
RSView32 User’s Guide
Screen1 appears, then the graphic display Screen2 appears, then the
tag Valve23 is set to its open state.
Note that you don’t need to put braces around tag names when using
placeholders in commands.
Using parameters
Macros can accept parameters. To specify a parameter in a macro, type
a percent (%) sign followed by a number. Up to nine parameters are
allowed.
B
To run the macro and parameters, specify the macro name followed
by the parameters. Separate multiple parameters with spaces.
For example, here is the same Factory macro with two parameters:
Example: Factory macro with two parameters
Display Overview
Display %1
valve23 = %2
To run the macro, type
Factory Detail Open
The macro performs the same actions as in the original Factory
example because it substitutes “detail” wherever %1 appears in the
macro and substitutes “open” wherever %2 appears in the macro.
Nesting macros
You can insert a macro within another macro—this is called nesting.
You can have eight nesting levels in macros.