Configuration with 2 tasks

Right-click Resources (1)/Task configuration (2)/Task configuration (3) and select "Append Task".
Configuration with 2 tasks 1:

Perhaps rename the new task (here "FastTask")

Right-click on "FastTask" and select "Append program call".
Configuration with 2 tasks 2:

Now click on the button to right of the program call and select the program block that calls the block FB_MBUSKL6781() (here "P_Zaehler").
Configuration with 2 tasks 3:

Then set the task time (here 10 ms) and the priority (standard 1, FastTask 0 ).
Configuration with 2 tasks 4:

After a new task was added in PLC Control, the project has to be recompiled and reloaded into the System Manager. The inputs and outputs of the serial interface are then inserted manually into the fast task (here "FastTask").
Configuration with 2 tasks 5:

Finally you have to select the three marked buttons:

1.Check configuration

2.Actvate configuration

3.Set/Reset TwinCAT to Run Mode

Configuration with 2 tasks 6:

Further information on task configuration