Codesys Runtime on Raspberry PI stopped after certain time

2022-08-18
2022-08-30
  • richard-wang - 2022-08-18

    Hi All
    I am running Codesys on PI , everything looks good , but after certain time, maybe 30 min, it seems like my codesys runtime stopped and I am not able to log in from my PC anymore, have to reboot to make it work again.
    It seems like my PI went to sleep mode, but I disabled the sleep mode from PI, the problem still there.
    If anyone has seen this problem before, I would much appreciate if you can give me a hint.
    Thanks

     
    πŸ‘
    1
  • w.romiguieres - 2022-08-23

    Hello,

    Is this the same error I have on my PI?
    (see https://forge.codesys.com/forge/talk/Runtime/thread/6dde9a2175/ )

    The Codesys Runtime on my PI stops after 30 minutes to a few hours without any explicit errors in the logs (only "CODESYS Control shutdown...").

    Do you have similar behavior?

    Thanks.

     
    πŸ‘
    1
  • eschwellinger

    eschwellinger - 2022-08-23

    In such cases I would recommend the following:
    stop the plc runtime by login by ssh to the pi(or exceute this local):

    sudo /etc/init.d/codesyscontrol stop

    start the runtime manually by command line to have the debug output (for non multicore runtime)
    cd /var/opt/codesys
    sudo /opt/codesys/bin/codesyscontrol_armv6l_raspberry.bi -d /etc/CODESYSControl.cfg

    in case of multicore runtime use:
    cd /var/opt/codesys
    sudo /opt/codesys/bin/codesyscontrol_armv7l_raspberry.bin -d /etc/CODESYSControl.cfg

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

    Now you should see more information why the runtime stops

    another possibility is:
    sudo nano /etc/default/codesyscontrol (this exists since 4.0.1.0 runtimes) and add the following information:

    DEBUGOUTPUT=1
    .
    .
    DEBUGLOGFILE=/tmp/codesyscontrol_debug.log

    then you could check /tmp/codesyscontrol_debug.log for the additional information

     
    πŸ‘
    1

    Last edit: eschwellinger 2022-08-23
  • richard-wang - 2022-08-23

    Thanks so much for all your help, I followed your instruction, both of you are right, silly me, I forgot to import my License to my unit. Problem solved. Thanks again.

     
  • murdemon - 2022-08-29

    need buy lic.

     
    • w.romiguieres - 2022-08-30

      As I said before, I already purchased and installed "CODESYS Control for Raspberry Pi MC SL" on my PI. Isn't that enough?

      Thanks @eschwellinger, I will take a look at these logs :)

       

Log in to post a comment.