45
ifm
Programming Manual AS-i Gateway AC14 (4.2.x)
12/2017
Programming
Configure task processing
>
7.6
Configure task processing
4109
► Familiarise yourself with the following CODESYS functions!
Task configuration
→ Online help > CODESYS Development System > application programmable > task
configuration
The processing of the tasks is controlled by parameters. The user can set the parameters for each
task separately
CODESYS automatically creates the following tasks and visualisations during project creation:
Name
Description
Note
[MainTask]
Configuration of the main task (e.g. for main program
[PLC_PRG (PRG)])
→
Configure main task
(
[VISU_TASK]
Configuration of the task for processing visualisation
→
Set parameters for visualisation task
(
→ p.
>
7.6.1
Configure main task
18412
The basic settings of the task characteristics cover the requirements of many applications. In the event
of non-optimum device performance the user must determine and set the optimum task characteristics
himself.
To change parameters of a task:
►
In device tree: Double click on [Taskkonfiguration] > [MainTask]
>
The editor window shows the configuration of the main task.
►
Set the parameters as requested.
>
Selected value is applied.
>
7.6.2
Set parameters for visualisation task
17066
► Execute the visualisation task (VISU_TASK) with a priority that is as low as possible to
avoid interruption of other tasks that are important for the core functions of the application.
► Execute the VISU_TASK in appropriate cyclic intervals to save the resources of the
device-internal CODESYS PLC of the fieldbus network.
Each visualisation is executed separately from the program code in a separate task. To set the
properties of the visualisation task:
►
In the device tree: Double-click on [Task configuration] > [VISU_TASK]
>
Editor window shows parameters of the visualisation task.
►
Set the parameters as required.
►
Save the project to apply changes.