The Multi-Task System
Operating Manual XCA 1100 / XCA 1200
●
Version 12/17
131
9.6
Insert Tasks and Assign Programs
Insert tasks
To insert a task, you have to carry out the following steps in
MULTIPROG:
In the project tree under the resource for the respective controller,
right click on the
Tasks
folder to open the context menu
(
Figure125:
Multi-Task-System, insert
a task in MULTIPROG
Select the
Insert/Select task
menu item. The
Insert
dialog appears.
Enter the name for the task.
Set the required task type in the
Task type
list.
Choose from a default task, cyclical task, event task or system task.
Note: If task type 'DEFAULT' is not listed, the resource already has
a default task.
Confirm the dialog with
OK
.
The
Task settings for ...
dialog appears. The dialog contains text and
list fields, depending on the previously selected task.
You have to enter the following parameters for the task:
Table 41:
Multi-Task-System,
task parameters
Task
Parameter
Cyclical task
Time interval
Event task
Event number (number of interrupt)
System task
Number of a system program
The instructions in section Task Priorities must be observed when
assigning priorities.
Programs must be assigned to tasks before they can be executed.
Assigning a program to a task means that an instance of the program
will be executed when the task is activated. Different instances of a
program can be assigned to different tasks.
Several programs can be assigned to one task. In this case the first
program in the task directory will be executed first. Then the next
program will be executed, and so on.