I thought naively that by enabling the watchdog the Plclogic would be restarted when a timeout occur, but all I get is an exception and my task stops.
How can I restart a task when a watchdog exception occur?
I can see I can add an Event handler for an exception but which function should I call to restart my task or application?
π
2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If watchdog triggers, then you may have an issue, setting up watchdog time or in your code.
I recommend you to investigate your issue (what task failed watchdog ? Do your normal cycle time is near watchdog time ? Do you have loops with bad exit conditions ?)
Watchdog is not a mechanism designed to restart plc, but to stop it and prevent machine/operator damage.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I thought naively that by enabling the watchdog the Plclogic would be restarted when a timeout occur, but all I get is an exception and my task stops.
How can I restart a task when a watchdog exception occur?
I can see I can add an Event handler for an exception but which function should I call to restart my task or application?
more posts ...
If watchdog triggers, then you may have an issue, setting up watchdog time or in your code.
I recommend you to investigate your issue (what task failed watchdog ? Do your normal cycle time is near watchdog time ? Do you have loops with bad exit conditions ?)
Watchdog is not a mechanism designed to restart plc, but to stop it and prevent machine/operator damage.