I am getting a watchdog error that stops the PLC.
The notification is:
Exception Information typeId=Watchdog subTypeId=0 subType=watchdog taskName=Cyclic100ms programName=Arp.Plc.Eclr/Initialize1 information=Watchdog occured extendedInformation=watchdog time 100000us / time after task start 299830us
Is there a way to know what Function Block in the program causes the error?
Better late than never, I suppose … I now have an explanation for the “time after task start” behaviour described in this thread. In the scenario described above, the task Interval and the task Watchdog values were both 100 ms. There is a PLCnext Runtime component (called WatchdogHandler) that checks the execution time of each task and compares it with the Watchdog time. If the task has been running for longer than the Watchdog time, then we get the Watchdog error message shown above. The Watchdog Handler only does this check once during each scheduled task interval, and it does this check 200µs before the end of the task interval. So in the example above, the Watchdog Handler does its first check 99.8 ms after the start of the task. At that point the task is still stuck in the endless loop, but it hasn’t exceeded the watchdog time yet. The second time the Watchdog Handler does its check is 99.8 ms after the second task cycle was supposed to start, or 199.8 ms after the start of the first task cycle - which is still stuck in the endless loop. This time the watchdog time has been exceeded, so we get the error message shown above. The time after the “hung” task started is correctly reported as (very close to) 199.8 milliseconds. Sorry for the long wait for an answer to this question. I have asked for this explanation to be added to the Info Center. ~ Martin.