Create a macro

In the
Macros
editor, assign values to tags. The values can be in the form of other tags, expressions, or simple numeric values. At runtime, when the macro runs, the values are sent to the tags at the data source.
To create a macro
  1. Open the
    Macros
    editor, using one of these methods:
    • From the
      File
      menu, select
      New > Macro
      .
    • In the
      Explorer
      window's
      Logic and Control
      folder, double-click the
      Macros
      icon.
    • In the
      Explorer
      window's
      Logic and Control
      folder, right-click the
      Macros
      icon and select
      New
      .
    • In the
      Explorer
      window's
      Logic and Control
      folder, drag and drop the
      Macros
      icon into the right pane.
  2. Type one or more tag assignments, each in a separate row.
  3. From the
    File
    menu, select
    Save
    and specify a name for the file.
  4. Click
    Close
    .
You are prompted to save your changes if you haven’t done so.
TIP:
When renaming macro files, make sure you update any references to that macro file, for example, in the
Runtime Security
,
Display Settings
, or
Startup
editor.
The
Delete Row(s)
menu item on the
Edit
menu does not delete multiple selected rows in certain spreadsheet editors. If you select multiple rows in the
Information Messages
,
Local Messages
,
Macros
,
and Alarm Setup (Messages tab)
editors, and then select
Delete Row(s)
from the
Edit
menu, only one row will be deleted.
To delete multiple rows, right-click in the editor and select
Delete Row(s)
.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal