Hello, In my application I’ve programmed a hard reset functionality so the application can be remotely reset by operators. It is a PLCnext engineer application running on a controller with firmware 2020.0 LTS. On the Linux environment I have a python script running, the script is scheduled at reboot in a crontab file. In my Engineer application, I have tested with both the function blocks FB_ResetPLC and PBCL_SysRestart and with both I achieve the same behaviour. When executed, the controller reboots, I see this because it goes offline. When online again, I see that the controller is in ‘stopped’ state, the controller will not start the application. While in this state, the fail LED blinks and I see a warning in the cockpit notifications: system watchdog state changed: new state: WatchdogAcknowledged plc startup is: forbidden. When I perform a warm restart by taking off the power supply the application will restart in a normal way. Kind regards, Jannes
Hello Jannes, please supply the /opt/plcnext/logs/Output.log file.
This sounds like a watchdog or some fatal error occurs when the PLC is shutting down.
What libraries/versions are you using?
I’ve uploaded the outputfile. I see that I forgot to update the clock on the controller, so the timestamps are not correct, but the restart should be at the end of the file. I tested without the python scripts now, and I can confirm that it has the same behaviour without the python scripts running. Libraries I’m using in PLCnext engineer: CANbus_5 (on ESM2, fast cyclic update) Modbus_TCP_4 PLCnextBase_1_0 PLCnextBaseServices I’m not sure if this the right way to upload, but I changed the extension of the output file to png.
Hello Jannes,
the only error that I see is a Watchdog tirggered by the CAN bus Task.
Hello Oliver!
Regarding this topic, we need to implement a restart function to our PLC project.
What is the adequate solution in PLCNext?
Thank you
David