ThomasM
February 13, 2025, 3:44pm
1
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.
edwin
February 17, 2025, 8:06am
2
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:
This guide was made for specific application, but it may be useful as a starting point for others. It monitors both the CODESYS runtime process and a PFC RUN led and will attempt to restart the stored bootproject if possible.
How To Monitor CODESYS runtime process and restart.docx (90.1 KB)
1 Like
Thank you!
I’ll look in to this!