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,