A BASIC TASK runs once, upon activation, and then terminates.
The code frame for a BASIC TASK (for example: TASK1 containing Activities A11 and A12), without controller, will resemble the following:
If the TASK is periodic, with a period of 10 ticks, the code will change to look like this:
Note: Use the Data Dictionary->Design Attributes->Schedule Periodic flag to define a periodic Task.If the TASK is periodic, containing Activities A11 and A12 with CTRL1 as controller, the code will change to look like this: