Creating a Task Configuration

Requirement: The open project includes a program-type POU and a Task Configuration with a Task object has been inserted below Application in the device tree.

  1. Double-click the task object below Task Configuration in the device tree.

    The Configuration tab of the task object opens.

  2. In the Type dropdown list., click Cyclic.

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

  3. Enter t#300ms in the Interval (e.g. t#200ms) input field.

  4. Click Add Call.

    The Input Assistant opens.

  5. In Input Assistant ‣ Categories -> Programs, click the desired POU and then click OK.

    CODESYS inserts the selected POU into the POU list of the Configuration tab and below the task object in the device tree.

    When the application is executed from the controller, CODESYS executes the selected POU in cyclical intervals of 300 ms.