Skip to main content

Configuring a Task

You can change the settings of a task below the Task Configuration object in the editor of the task object on the Configuration tab.

Tip

When a new project is created with the Standard project template, a simple task configuration is prepared and the MainTask task already exists.

Procedure. Changing the task

Requirement: The open project includes a POU of type PROGRAM and a task configuration with a task object has been inserted below the application in the device tree.

  1. In the device tree, double-click the task object below the Task Configuration.

    The task editor opens with the Configuration tab.

  2. In the Type list box, select the Cyclic entry.

    The Interval (e.g. t#200ms) input field appears.

  3. In the Interval (e.g. t#200ms) field, type in the value t#300ms.

  4. Click the _cds_icon_task_add.png Add Call button.

    The Input Assistant opens.

  5. In the Input Assistant dialog, in the Programs category, select the desired POU and click OK to close the dialog.

    The selected POU is listed in the call stack on the Configuration tab and in the device tree below the task object.

    When the application is executed from the PLC, the POU selected in the task object is cyclically executed in the interval of 300 ms.