SmartPLC SafeLine AC4S with fieldbus interfaces
69
7.7
Configure task processing
42491
► Familiarise yourself with the following CODESYS functions!
Task configuration
→ Online help > CODESYS Development System > Program application > 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
(
→ S.
[VISU_TASK]
Configuration of the task for processing visualisation
→
Set parameters for visualisation
task
(
→ S.
>
7.7.1
Configure main task
42486
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 standard area of device tree: Double click on [Task configuration] > [MainTask]
>
The editor window shows the configuration of the main task.
►
Set the parameters as requested.
>
Selected value is applied.
>
7.7.2
Set parameters for visualisation task
42523
► 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 Standard 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 standard area of 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.