Select [Tools] - [Script Editor] Click Tools > Script Editor… to open the [ Script Editor ] window as shown below, or press click the icon.
...
The [Script Editor] will be empty when first opened. To begin creating scripts, use the icons in the top left corner of the window. script icon in the toolbar.
...
Item | Description |
| Adds a new script. The [Add Script] window will appear Create New Script: Edit Script pop-up window will appear allowing script name, running type, running period to be configured. Create New Commands: Command Editor pop-up window will appear allowing scripting using commands. |
| Adds a new script folder. |
| Deletes the selected script or action list. |
| Allows the user to undo an action. |
| Allows the user to redo an action. |
| Copies the selected script or action list. |
| Pastes the previously copied/cut script or action list |
| Cuts the selected script or action list. |
| Compiles Validates the selected script. The compiled result Any errors will appear on the field marked as [Build]in the box at the bottom of the Script Editor window. Validation is not required, but is recommended. |
| Opens the ‘Find and Replace’ window. |
| Allows the user to import a previously saved script. |
| Saves the selected script to a user defined folder. |
After pressing the icon, the [Edit Script] window will open. From this menu, users can assign a name for the script, a running type, and a running period.
...
To create a script, click the + icon at the window's top-left corner, then click Create New Script, and an Edit Script pop-up window will appear. Once the script configuration is complete, click OK to begin scripting.
...
Item | Description | |
Script Name | Allows the user to assign a name for the script. | |
Running Type | Manual | The selected script will only run when called. The script can be configured to operate on a schedule, on tag value change, on a button press, on a page open/close, etc. |
Startup | The selected script will run once the project file loads. | |
Periodic | The selected script will run periodically. | |
Running Period | Allows the user to define the interval between script executions. This option only applies to the ‘Periodic’ running type . |