Twincat (Balford Beckhoff) Frequently asked Questions (FAQ)-How to add a custom task, how to get a part of the program to have a different execution cycle

Source: Internet
Author: User

Right-click Tasks and add a new task to set the scan cycle for the new tasks, such as 100ms

?

Right-click the entire project of the PLC, then add a referenced task, select the task you created

?

Create a new program in Pou (such as AAAAA), then hold the PRG down and drag it down to the Tasklagrange (you can see that standard main is the same, that is, the task of main executes the pou of main)

?

After the execution of the program, it can be found that the ABC variable is a 100ms increase of 1, it is obvious that he is different from the main program scan cycle (this makes sense, for example, some drives only allow 8ms or more scanning cycle, and the standard drive must be 2ms or below the cycle, if you must use a unified scanning cycle, It is not possible to control both of these drives in one project, and if you can set up different scan cycles, the problem is solved.

?

?

For more instructional videos and downloads, please pay attention to the following information:

My Youku Space:

Http://i.youku.com/acetaohai123

?

My online forum:

http://csrobot.gz01.bdysite.com/

?

Problem Exchange:

qq:910358960

Email:[email protected]

?

Twincat (Balford Beckhoff) Frequently asked Questions (FAQ)-How to add a custom task, how to get a part of the program to have a different execution cycle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.