[Example] Automate Scripts with a Macro
In this example, we will create a macro that automatically invokes a set of scripts one after the other. For background information about macros, see Macros.
- System Manager is in Engineering mode.
- The scripts that you want to automate are enabled for the execution.
- In System Browser, select Applications > Logics > Macros.
- The Macro tab displays.
- Select the Manual navigation check box.
- Select Applications > Logics > Scripts.
- Drag the scripts from System Browser into the empty area inside the Macro tab.
- For each script, a new instruction row is created.
- For each instruction, configure the other fields in the row: set Property to Status and Command to Start.
- (Optional) In the Initial Delay field, set the delay before the command is sent out.
- Click Save As .
- In the Save Object As dialog box, select the main Macros folder or any subfolder under it as the destination where you want to save the new macro.
a. In the Name field, enter Automatic Scripts Run by Macro.
b. Click OK.
- When this macro is invoked, the scripts are now automated and will be started.