Ken Roach said:Don't be too focused on the "all I did...." aspect of this troubleshooting. Maybe something in these shutdown routines is malfunctioning that did not previously, and it has nothing to do with the PID.
This is what the fault information in the secondary controller will tell you. The rest of the "Array subscript too large" error message tells you which task, which routine, even which rung is responsible for the controller fault. There, and only there, is the root of your problem.
Hi Ken
Thank you very much for your kind support, i think, i am pretty sure that i got the problem and i fixed it as well. But i will see tomorrow if it faulted during the night time or not.
The problem was in the PID task i was assigning a number to a variable and i was using the same variable as one of the indexes of the array in my Main task. And i guess it might be due to the timing issues that this fault was getting trapped depending upon how the last time PID task was executed. Atleast thats my guess, but i will inform you tommorrow if the faults came in again. Thanks a lot for your guidence once again.