Parameters in macros

Macros can accept optional parameters. To specify an optional parameter in a macro, place a percent (
%
) sign followed by a parameter number after the command that will use the parameter. To indicate a percent in a macro, you need to insert two percent signs
(%%
) because a single percent indicates a parameter.
The single quotation mark (
'
) is a special character in
FactoryTalk View
and cannot be used in nested macros. Instead, use the double quotation mark (").
If a macro name has spaces in it, enclose the name in double quotes, for example,
"New Macro"
parameter.
Type macro parameters after the macro name.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal