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
- Open theMacroseditor, using one of these methods:
- From theFilemenu, selectNew > Macro.
- In theExplorerwindow'sLogic and Controlfolder, double-click theMacrosicon.
- In theExplorerwindow'sLogic and Controlfolder, right-click theMacrosicon and selectNew.
- In theExplorerwindow'sLogic and Controlfolder, drag and drop theMacrosicon into the right pane.
- Type one or more tag assignments, each in a separate row.
- From theFilemenu, selectSaveand specify a name for the file.
- ClickClose.
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