<< Click to Display Table of Contents >> Script properties |
![]() ![]() ![]() |
List of script properties:
Property |
Description |
Group |
Select group for the script. |
Subgroup |
Select subgroup for the script. |
Name |
Name of the script. |
Comment |
Optionally specify a meaningful comment. |
Background color |
Background color of the screen for developing script using FBD language. It's not affect on script execution. |
Script type |
Select type of the script: ▪General - is tied to the whole project. ▪Screen - is tied to the screen. ▪Tag - is executed depending on tag's value. ▪Object - is tied to the object. ▪Report - is tied to the report. |
Language |
Choose language for the script - FBD or ST. Description of the language you can find below in this document. |
Dimension |
Screen's dimension for developing script using FBD language. It's not affect on script execution. |
Every cycle |
Check Every cycle if you want this ST script is executed every update period of the project. You can find out this period in Project properties (Update interval(ms)). |
Execution |
Choose it if you want to use ST script and don’t want it’s executed every cycle: •OnDataChange - script is executed when tag’s values used in this script are changed. •OnStart(OnOpen, OnCreate) - script is executed when project is started (for general script type) or screen is opened (for screen script type) or object is created (for object script type). •OnStop(OnClose, OnDestroy) - script is executed when project is stopped (for general script type) or screen is closed (for screen script type) or object is destroyed (for object script type). •OnClick - script executed when screen is clicked (for general and screen script types) or object is clicked (for object script type) |