Question:
How can I set up a script to be executed after a certain time interval?
Solution:
To do so, follow these procedures:
- Insert a Timer Tag;
- Set the Enable property to False;
- Set the TriggerType property to Continuous;
- Set the RepeatInterval with the necessary time value;
- Create a script to enable the Timer Tag, for example:
Application.GetObject("Data.TstTimer").Enabled = True
- In the Timer Tag’s OnPreset event, create the script to be executed when enabling the tag. To prevent this event from being indefinitely repeated, disable the Enable property (by setting it to False) at the end of the script.