Macro command syntax

When using the macro, follow the syntax below:
  • Separate each identifier, specification, or string with a space or tab.
  • Start each command on a new line or separate those on the same line with a semicolon (;).
  • If an exclamation mark (!) occurs at the beginning of a command sequence, (either at the beginning of a line or after a semicolon), the command sequence is treated as a comment. The next carriage return or semicolon (;) ends the comment.
  • If an exclamation mark occurs anywhere but at the beginning of a command sequence, it is processed as a valid part of the command.
  • 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, when you run it you must enclose the name in double quotes, for example, "
    New Macro
    ".
In the
FactoryTalk View SE
Client, commands take precedence over macros. For example, if you have a macro named Display and try to run it, the Display command will run instead. Be sure that macro names do not conflict with FactoryTalk View commands.
To specify a time lag between the execution of one command in a macro, and another, use the Pause command. For example if a macro uses the Display command followed by a command that does something with the objects in the display, you can specify the Pause command after the Display command to ensure that all the objects in the display have time to initialize before the next command is run.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal