Tasks come first in the project hierarchy. They control all program type POUs. Tasks are located in the task pool of the navigator:
Control FPWIN Pro7 offers three kinds of execution control:
(1) |
Cyclical (programs) The program will be processed completely before it is repeated again. Example: A liquid is continually pumped out of a container and the liquid’s temperature is measured. |
(2) |
Event-driven (interrupts) Execution of the program starts when a defined event occurs. Example: If the temperature in the container drops below the minimum, a heating program is called. |
(3) |
Time-driven (periodic interrupts) The program is executed at regular intervals. Example: A synchronizing program is executed every 10 minutes. |
Program type POUs must be compiled and assigned to a task. Otherwise they will not be processed.
You may assign one or several POUs to a task. If you assign several POUs, they will be processed according to their input sequence. During compilation, the programs are treated as one single program and are downloaded into the PLC.To deactivate/activate a program within a task for code generation, select the program and then or use the context menu.