send appliaction files to wago plc (codesys 3.5) via ssh

sigurdrb
2024-05-28
2024-05-30
  • sigurdrb - 2024-05-28

    Hi, I was hoping I could send the two files "application.app" and "application.crc" directly to the directory "/home/codesys/PlcLogic/Application" instead of logging into the device with codesys, downloading the program to the controller and then do the "create boot application", so it will reboot with the correct program running.

    I think i also need to edit the file "eRUNTIME.cfg" located in the "/home/codesys/ folder, because when I create the boot application from the codesys IDE, these lines are added to the file:
    [CmpApp]
    Application.1 = Application

    [SysFileMap]
    /home/codesys/PlcLogic/Application/Application.app=0x212520, 0x2DBC747E, 2DBC747E.app

    I think the "eRUNTIME.cfg" file is the same as CODESYSControl.cfg
    I also dont know the purpose of the hexadecimal numbers etc. that is generated.
    When I tried to replicate what codesys was doing, I placed the same files in the same folder as when codesys generated the boot file. And also added the lines in the eRUNTIME.cfg file:
    [CmpApp]
    Application.1 = Application

    [SysFileMap]
    /home/codesys/PlcLogic/Application/Application.app

    The controller did not boot up with any program, so my method did not work at all.

    I guess these lines tells the controller to run an application and where to find it?

    Could any of you help me with the best way to get the compiled program to the controller without using codesys or wago-software?

     

    Last edit: sigurdrb 2024-05-28
  • paro - 2024-05-29

    Hi, it is enough to copy the files to /home/codesys/PlcLogic/Application and adding the lines
    [CmpApp]
    Application.1=Application

    to the eRUNTIME.cfg, if your Application in your program is also called "Application".

    Reboot -> Bootapp should be loaded. If not please check the log /var/log/runtime.log
    There should be a line which explains why the bootproject is not loaded.

     
    πŸ‘
    1
  • sigurdrb - 2024-05-30

    Okey, I will try this out. Thank you for your answer!

     

Log in to post a comment.