Restarting the PFC200 application if it crashes

Hello,

I would like to restart automatically codesys if its application crashes.

Is writing a daemon the best way to do this?

I can use for this :

  • /usr/bin/getledstate - a for the status
  • /etc/init.d/runtime stop
  • /etc/init.d/runtime start or restart

Thanks.

Hi Thomas,

The pfc200 has a Linux OS, which has a watchdog.
Your application could setup the watchdog and kick it from the plc cycle.
The pfc200 controller is reset, when the watchdog times out.

Regards,

Is it possible to restart the PLC 8212 with 2.3 if an error occurs and stops the PLC?
And how do you do that?
How do you set up the watchdog function?

I just posted a HowTo that is quite similar to this. Take a look and see if it may help you:

1 Like

Thank you!
I’ll look in to this!