How to upload application file to remote controller (offline) ?

alrcastro
2020-04-06
2024-02-16
  • alrcastro

    alrcastro - 2020-04-06

    I had some problems to connect the IDE to a remote controller, and something came to mind: How to do this task offline, by sending some file to someone who can paste it to the appropriate place ?

    Soon or later, I will need to pereform a lot update, sending the same executable file to several controllers, spread along distinct locations having particular network issues.

    More exactly, I need to know what is the folder/file which I have to copy, and where should I paste it ?

    HW:
    x64
    OS:
    Windows 10

     

    Last edit: alrcastro 2020-04-06
  • Ingo

    Ingo - 2020-04-06

    This video was made for Linux, but the process is the same for windows:

    https://youtu.be/ylKzuGzoEes

     
  • eschwellinger

    eschwellinger - 2020-04-07

    Hi,
    nowadays I would use CODESYS Automation Server to do this task. Due Corona crisis the decision was made make it for free available for 2020.
    Even if you just enable the EdgeGateway for the update/deploy process.
    Just give it a try.

    If you want to update it by hand you need to copy the generated files to
    c:\ProgramData\CODESYS\CODESYSControlWinV3x64\2DAFFB2B\PlcLogic
    additional it is needed to point to your application in configuration file in (applicatin section)
    c:\ProgramData\CODESYS\CODESYSControlWinV3x64\2DAFFB2B\CODESYSControl.cfg

    [CmpApp]
    ..
    ..
    Application.1=Application
    ..
    Application is the name of the application in the device tree

    But as I said, give the Automation Server a try this is exactly to use case to use it ( beside others ....)

    BR
    Edwin

     
    πŸ‘
    1

    Last edit: eschwellinger 2020-04-07
  • alrcastro

    alrcastro - 2020-04-07

    Hi Edwin,

    Many thanks, this is what I was looking for.
    I would only remark that you missed the subdirectory Application, the actual folder is rather:

    c:\ProgramData\CODESYS\CODESYSControlWinV3x64\<Some Number>\PlcLogic\Application
    

    Regards,

     
  • eschwellinger

    eschwellinger - 2020-04-07

    Hi,
    for the bootproject yes, but if your application contain visu / composer/ cnc / receipe whatever and other features you should copy the whole PlcLogic directory!

    BR
    Edwin

     
    πŸ‘
    1

    Last edit: eschwellinger 2020-04-07
  • ewi04 - 2024-02-05

    Hi, I am looking for a good way to update a decice remotely.

    The devices are distributed worldwide and have normally no connection to the internet.
    The CODESYS Automation Server can't help here. So I want to update the decices via USB stick.

    I have written my own code* to update the files that are created with β€˜Create boot application’. But sometimes strange things happen:

    • visu elements are present, but are not found
    • the application is no longer registered and therefore no longer starts

    I have not yet found out why these errors occur.

    Has anyone had similar problems or found a better way?
    Is there perhaps a CODESYS library or something else?

    Many thanks!

    *the code deletes the directories on the device and copies the new directories from the USB stick while the system is running (goes without saying)

     

    Last edit: ewi04 2024-02-05
  • alrcastro

    alrcastro - 2024-02-12

    I'm no longer working with this PLC brand, but if I were you, I would try to stop all related Codesys services before the copy and restart them after that.

     
  • ewi04 - 2024-02-16

    Thank you very much for your time and replay! Sounds like a good idea. Unfortunately, I have no other option to run the code from the running plc. So, I can’t stop any services.

    If anyone has the same problem, I've gotten a little closer to understanding it:

    Sometimes the copied files are empty after the restart. The update code checks if there are any empty files. Before I turn off the device, everything is okay. But after starting, some files are suddenly empty and that cause the problems. I don't know why this happens.

     

Log in to post a comment.