Ron Beaufort
Lifetime Supporting Member
from OkiePC ...
I'm pretty sure that's incorrect, Paul ... I'd be willing to bet substantially more than pocket change on it ...
a couple of my students brought up the question awhile back - and we put together a little program to test the concept ... please let me know if you find anything wrong with the logic specified in the rung comments ...
note that if you inhibit the periodic task, then the program will run without a problem ... if you allow the task to manipulate the value of tag A, then it only runs for a few seconds before being killed by that "fault rung" at the bottom ... the only way that I can explain these results is that the periodic task is indeed changing the value of tag A partway through the execution of the CPT ...
sample Boot Camp program attached ...
A periodic task wouldn't interrupt the middle of a math function.
I'm pretty sure that's incorrect, Paul ... I'd be willing to bet substantially more than pocket change on it ...
a couple of my students brought up the question awhile back - and we put together a little program to test the concept ... please let me know if you find anything wrong with the logic specified in the rung comments ...
note that if you inhibit the periodic task, then the program will run without a problem ... if you allow the task to manipulate the value of tag A, then it only runs for a few seconds before being killed by that "fault rung" at the bottom ... the only way that I can explain these results is that the periodic task is indeed changing the value of tag A partway through the execution of the CPT ...
sample Boot Camp program attached ...
Last edited: