Configuration with 2 tasks
Right-click Resources (1)/Task configuration (2)/Task configuration (3) and select "Append Task".
Perhaps rename the new task (here "FastTask")
Right-click on "FastTask" and select "Append program call".
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").
Then set the task time (here 10 ms) and the priority (standard 1, FastTask 0 ).
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").
Finally you have to select the three marked buttons:
1.Check configuration
2.Actvate configuration
3.Set/Reset TwinCAT to Run Mode