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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok the creation process is pretty clear, but I don't know what is the folder on the target system where I should paste these files. Either source and target operational systems are Windows.
I followed steps on the Codesys Online Help, but there misses the target folder to where these files should be placed:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
more posts ...
This video was made for Linux, but the process is the same for windows:
https://youtu.be/ylKzuGzoEes
Ok the creation process is pretty clear, but I don't know what is the folder on the target system where I should paste these files. Either source and target operational systems are Windows.
I followed steps on the Codesys Online Help, but there misses the target folder to where these files should be placed:
https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_creating_a_boot_application/#creating-boot-applications-in-offline-mode
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
Last edit: eschwellinger 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:
Regards,
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
Last edit: eschwellinger 2020-04-07
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:
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
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.
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.