The hardware of my project is consisting with a raspberry pi3 b+ and a pico ups 3.0. As suggested in many thread the grateful shutdown is managed by the ups. A simple codesys application manage some automations in my home.
When the power is down the ups runs the "sudo shutdown" and all persistent variables keep their values. The system freezes when voltage fluctuations occur.
Is there any solutions to avoid this trouble?
There are other solution able to cooperate with ups to avoid the trouble?
Thank You for help me,
Regards
Luca
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi to All,
The hardware of my project is consisting with a raspberry pi3 b+ and a pico ups 3.0. As suggested in many thread the grateful shutdown is managed by the ups. A simple codesys application manage some automations in my home.
When the power is down the ups runs the "sudo shutdown" and all persistent variables keep their values. The system freezes when voltage fluctuations occur.
Thank You for help me,
Regards
Luca
more posts ...
What does mean the system freeze... Linux OS or the CODESYS Runtime?
Last edit: eschwellinger 2020-12-29
The codesys runtime. The variables declared as PERSISTENT RETAIN loose their values.
Did'nt we discuss this a few month ago?
Think the shutdown of the network adapter caused the problem
Last edit: eschwellinger 2020-12-29
Not with me...
What do You mean with "shutdown of the network adapter"?
this was here:
https://forge.codesys.com/forge/talk/Runtime/thread/4b2cd65c12/
but not sure if you see the same issue.
I would recommend to start the plc manually by commend to get more information:
stop the runtime
sudo /etc/init.d/codesyscontrol stop
start the plc runtime manually
cd /var/opt/codesys
sudo /opt/codesys/bin/codesyscontrol.bin -d /etc/CODESYSControl.cfg
second CLI
tail -f /tmp/codesyscontrol.log
Dear,
I don't think that the problem is the same to the previous topic.
So, is there a possibility to export these variables to a usb memory?
Thank you and happy new year
Luca