Task Assignment
When declaring global variables in TwinCAT PLC Control, the individual variables are not assigned to a particular task. Therefore they initially appear in the TwinCAT System Manager under the standard task.
Since the task’s cycle time determines the update cycle on the I/O bus, it is essential that the data structures for communication between the fast communication task and the hardware be assigned to that task. The corresponding entries under the standard task’s inputs and outputs are dragged with the mouse or with the Move to context menu into the communication task.
All data structures of the following types are affected:
- KL6inData
- KL6outData
- KL6inData5B
- KL6outData5B
- KL6inData22B
- KL6outData22B
- EL6inData22B
- EL6outData22B
- PcComInData
- PcComOutData