Assigning a task

The following section describes how to assign the task references created for the stand-alone PLC project to the system tasks.

Various task references have been generated for the stand-alone PLC project (e.g. "PlcTask" and "MyTask"), which define the processing of the MAIN and MyProg program blocks.
The PLC instance of the stand-alone PLC project is integrated into the TwinCAT project.
Double-click on the integrated PLC instance in the TwinCAT project tree to open the PLC instance settings in the editor.
Select the Context tab.
Assign the task references to the existing system tasks. (In this example, the task references are assigned to the system tasks of the same name.)