SKA AB

Task Period Exceeded

2 posts in this topic

Hi, we have one PLC that throws many errors on task period exceeded.

checking the status, this warning have come over 15000 times since when ever it started couting it.

Max cycle time is 2.83ms while max allowed task is the default(?) 2ms.

We think it has something to do with the block for the barcode scanning. this blockas around 134ns cycle time when it seems normal, all other blocks is around 4-8 ns.

How can we make sure what part that sometimes exceeds the 2 ms execution time?

Share this post


Link to post
Share on other sites

It's not 'what part' exceeded the cycle time, its the fact that the entire cycle took too long at all.  If you want to determine which part is taking the most time, the best bet is to edit your code to stop some sections from running and see what happens to the cycle time.

You can try to split some of your less critical logic into some periodic tasks, and set them for longer timeout like 10ms.

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now