Studio 5000 L83E Task Overlap

So I have 2 identical pieces of equipment. The cycle time of one is approximately 17% longer than the other. I have confirmed all gantry speeds are identical between the two, along with all other step permissive for the sequences. Theoretically they should be running the same cycle time.

Both have the same settings for the Task configuration, Period = 100ms, Priority = 3, Watchdog = 500, but one has a rapidly climbing task overlap count. 2000 within a 5 min span. If I compare the Max scan times under the Monitor Tab, the one running slower has a 17% higher max scan time than the one that is running at the desired cycle time.

If I go inside that task and add up all the max scan times for the individual programs both the fast and slow machine adds up to approximately 15ms.

My question is where should I continue looking to find out what is slowing down this task?
 
Anywhere you see a JMP or FOR instruction is the biggest flag. CPS is another, as is FAL in "all" mode, and generally any of the file/shift instructions.

Logix doesn't have any "blocking" or "wait" instructions, so you need to look for looping, long-executing instructions, or very big AOIs (many of the PlantPAx AOIs fall into this category). Large arrays in your program may also lead you (via cross reference) to a problem.
 
If you have a higher priority tasks or Motion, they will interrupt (and delay) your periodic task.
Also make sure there are no additional tasks with the same priority.
 
If you have a higher priority tasks or Motion, they will interrupt (and delay) your periodic task.
Also make sure there are no additional tasks with the same priority.
There is one other task that is higher priority. And its Period is 7ms. But this equipment has been running like this for years. No clear indication what the change point is that would have caused this slow down.
 
The task overlap would be concerning to me. That is causing additional scan time for the programs within that task and your continuous task if you have one. The bigger issue is that task overlaps could lead to a watchdog fault. I don't want to see ANY task overlaps, much less see it increasing rapidly. As mentioned, I would be looking at JMP instructions and even JSR instructions to see how they flow. Does a JMP jump backwards in the logic causing it to rescan code? Does the JSR get called multiple times within a single scan? Are there multiple JSRs for a single routine? Is there a FOR NEXT loop somewhere in here? Anyhting that can cause looping is what I would be looking at.

OG
 
The task overlap would be concerning to me. That is causing additional scan time for the programs within that task and your continuous task if you have one. The bigger issue is that task overlaps could lead to a watchdog fault. I don't want to see ANY task overlaps, much less see it increasing rapidly. As mentioned, I would be looking at JMP instructions and even JSR instructions to see how they flow. Does a JMP jump backwards in the logic causing it to rescan code? Does the JSR get called multiple times within a single scan? Are there multiple JSRs for a single routine? Is there a FOR NEXT loop somewhere in here? Anyhting that can cause looping is what I would be looking at.

OG
We use custom AOI's to control each step in our sequence. And I did find some instances where we would, for example, go from step one, two, three, then jump to an added step twenty at the bottom of the ladder. Then back up to four to finish the sequence. So I moved all the steps so they run sequential in the ladder according to the process. And that has helped a bit, thanks for the tips.
 
If you have a higher priority tasks or Motion, they will interrupt (and delay) your periodic task.
Also make sure there are no additional tasks with the same priority.
Thanks for the tip. After some extensive digging I found that the higher priority task was overlapping at a high frequency as well. So I dug through the logic and could not find a definitive root cause. So I increased the high priority task period from 7ms to 7.5ms, as the max was showing 7.44ms. This stopped the overlap on the high and the lower priority task. And I regained my lost cycle time. So the high priority was taking longer thus causing it to interrupt the lower priority as well.

Thanks everyone for your input.
 

Similar Topics

Hello all, I have a hindsight question, as I have a working system, but thought it would be good to ask if anyone has suggestions or criticism. I...
2
Replies
117
Views
8
Replies
361
Views
Our controls group was gifted a panel with a 1769-L30ER processor. We want to use the panel / PLC as a test or play device. Trying to upload the...
7
Replies
379
Views
Hello, I have noticed that in version 35 of Studio there are times that XIC/XIO bits get stuck and will not function properly. After toggling...
14
Replies
418
Views
Hello has anyone made a Recipe screen or add on graphic for view designer PLC Logic Based, Rockwell provides one but it seems that it is HMI Based...
0
Replies
124
Views
Top