Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Cant reach Codesys after download

2015-05-16
2018-08-15
  • Torsten Wagner - 2015-05-16

    Hey there,

    i`ve a problem with an xrdp connection to my raspberry Codesys System.
    I do an download to the Codesys Control with an xrdp serverbut after i Disconnect the Raspberry I cant
    reach the Codesys System animore.

    I can reach the Raspberry with a Remote Desktop control but not with Codesys.

    Does anyone know this problem or has anyone the same problem

    Greetings
    Torsten

     
  • eschwellinger

    eschwellinger - 2015-05-17

    Hi Thorsten,

    are you using current Version?
    Runtime 3.5.6.20?
    1.use 'top' via ssh Connection (putty) to check if the runtime is started.
    2. try do delete your bootapplication on the target via ssh (putty)
    How:
    sudo -s
    cd /root/
    rm Application.*

    reboot the Pi then check if you see it again by scanning it in CODESYS:
    BR
    Edwin

     
  • jinx - 2015-05-30

    Hi,
    I have the same problem. After download, RPi is out of reach for codesys development - scanning can't find my RPi.
    I tried and deleted Application files as described. Did not help.
    I did some stopping and starting service. ```

    sudo /etc/init.d/codesyscontrol start

    I see codesyscontrol takes 100% of CPU and after a minute or so service disapears (is obviously shut down). Then I also used

    sudo /etc/init.d/codesyscontrol stop

    ```
    I have purchased a licence and installed it (few weeks ago). I have a backup of licence in my computer.

    1) Attached is a log file.
    In start I see message it is running in demo mode!

    Then I see

    Zitat:
    1432959731: Cmp=CmpCodeMeter, Class=16, Error=1, Info=0, pszInfo= Error occurred activating license of ProductCode=0
    1432959731: Cmp=CmpCodeMeter, Class=16, Error=1, Info=0, pszInfo= Error occurred activating license of ProductCode=603001

    at the end of file hundrets of messages:

    Zitat:
    SysMemIsValidPointer[250]: Invalid pointer: 0x769d7000

    2) Where is the location of restore folder to put in my backed-up licence file with winSCP?

    BR, Gregor

    logfile rpi.TXT [23.1 KiB]

     
  • eschwellinger

    eschwellinger - 2015-05-30

    Hi Gregor,

    this is not a license problem,
    seems that your applciation I2C_Test_grega lead to a Crash.
    You could remove it by deleting in /root/ the file with the extention *.app
    Then restart the runtime, it will not crash again.
    Then you need to solve the problem in the application (uncommend parts step by step till it does not crash again to figure out where the Problem is)

    For the restore of the license (which is not needed in that case, i'm almost sure - this demo message in the log is standard then it switch after a Minute to licensed) you find the restore directory under /root/restore.
    See my screenshot in case of a running pi you could use the CODESYS Filebrowser.

    BR
    EDwin

    IMG: CODESYSFileBrowser.png

     
  • jinx - 2015-05-30

    Hi Edwin,
    deleting .app helped.
    It looks there was a problem because I enabled Watchdog (set as two times cyclic timer). in two tasks...

    Thank you.
    Gregor

     
  • yusuf - 2018-08-15

    Dear Edwin

    "1.use 'top' via ssh Connection (putty) to check if the runtime is started."

    Please could you give some sample how we see runtime status.
    In a way you explain not expertize person

    Thank you in advance

     
  • eschwellinger

    eschwellinger - 2018-08-15

    Hi,
    which Version are you on?

    You could use Update Raspberry Pi command to check. ( See screenshot -> Systeminfo)

    If it is running use the IP address of the pi and add gateway and use his to scan the Pi

    https://faq.codesys.com/display/CDSFAQ/Raspberry+-+FAQ

    BR
    Edwin

    IMG: Check_if_plc_runs.png

     

Log in to post a comment.