Ups persistent var problems

lucaver89
2020-12-28
2020-12-31
  • lucaver89 - 2020-12-28

    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.

    • 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

     
  • eschwellinger

    eschwellinger - 2020-12-28

    What does mean the system freeze... Linux OS or the CODESYS Runtime?

     

    Last edit: eschwellinger 2020-12-29
  • lucaver89 - 2020-12-28

    The codesys runtime. The variables declared as PERSISTENT RETAIN loose their values.

     
  • eschwellinger

    eschwellinger - 2020-12-28

    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
  • lucaver89 - 2020-12-29

    Not with me...

    What do You mean with "shutdown of the network adapter"?

     
  • eschwellinger

    eschwellinger - 2020-12-29

    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:

    1. stop the runtime
      sudo /etc/init.d/codesyscontrol stop

    2. start the plc runtime manually
      cd /var/opt/codesys
      sudo /opt/codesys/bin/codesyscontrol.bin -d /etc/CODESYSControl.cfg

    3. second CLI
      tail -f /tmp/codesyscontrol.log

     
    πŸ‘
    1
  • lucaver89 - 2020-12-31

    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

     

Log in to post a comment.