QUOTE(BobLfoot @ Jul 17 2008, 09:10 AM) [snapback]71630[/snapback]
[quote name='Alaric' post='71601' date='Jul
I never thought of using a periodic task for WallClock maintenance before and I think it makes great sense.
Bob, you may be interested in something I saw two weeks ago about the continuous task at one of Rockwell's Automation On the Move events (mini Automation Fair).
The class instructor opened the continuous task and monitored the program scan time which was running between 3 and 4 milliseconds for the demonstration program. In this PLC the only task was the continuous task. The continuous task time slices with all of the PLC housekeeping, communication servicing, etc. He put the PLC in program mode, switched the task to periodic at 10 msec and put it back into run mode. Now the program completed a scan in about 0.7 milliseconds. Then he changed the task period to 2 msec. So now the program was being executed nearly twice in the same time that it ran just once before.
So today I had some time while waiting for Bubba and Cletus to complete some mechanical work on a startup and I did the same thing. This PLC has 8 tasks including the continuous task and all 7 periodic tasks have a higher priority than the continuous task, but I still dropped the max scan time from 3.2 mSec to 1.2 mSec. I actually changed the task back to continuous because there are a couple dozen similar machines, but it was an interesting exercise.