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

Download failed: Not enough memory on device

leandroct
2020-10-08
2020-10-09
  • leandroct - 2020-10-08

    I'm trying to download my program (Control Win MC 3.5.16.10) and Codesys says that: "Download failed: Not enough memory on device". The available memory of my PC is bigger than the program size. Is that a limitation of the Control Win? Why I'm having this problem?

     
  • eschwellinger

    eschwellinger - 2020-10-08

    Check the persist/retain data in your project..

     
  • leandroct - 2020-10-08

    What do you mean? I have some Vars defined as retain persistent, but it's a few bits e few values. Do you mean a kind of bug that I cannot use this kind of variable?

     
  • leandroct - 2020-10-08

    I solved it, but I don't know the cause of the problem. I have the older version of my program. I made all changes again, by control-c/ control-v from the newer version to the older, and it worked. Thanks!

     
    • Morberis

      Morberis - 2020-10-08

      I'm glad you got it fixed. I'm kinda putting this here in case anyone else has this happen, as it did me several years ago. I don't have any info on why the windows or linux versions would have that problem. On the PLC's I've worked on I only got that error when the internal storage was full.

      What I had seen was that some old files were still on the PLC. Image files that were no longer part of the project etc. As you can guess I had the issue because I was trying to pictures that were in aggregate too large and found that merely removing them from the project didn't fix the issue.

      On other PLC's like Eaton's XV103 the easy solution is wipe everything in the installed folder. Eaton's codesys has a option of upgrading the firmware and installing a newer version of codesys. One of the toggleable options is to wipe existing PLC files. That's an easy way. The other way was going in with an ftp program and manualling deleting all the files and folders in the codesys directory and then re-installing. If you wanted to make a copy of some or all of the files first that was a good option.

       

      Last edit: Morberis 2020-10-08
      • leandroct - 2020-10-09

        I had tried the "Clear All" in the menu, I had tried to delete the project directory manually and it not worked. The only way I got it was the redo the changes in an older program.

         
  • i-campbell

    i-campbell - 2020-10-09

    Hi @leandroct, I know you have already solved this some other way, but in your original screenshot you had almost 1GB of application size. I can reproduce your issue by trying to download an application with 1GB of data. That is too big for 32-bit windows applications, as Windows only gives you 1GB by default. Sure there might be some programming and windows settings that would allow CODESYS runtime to use slightly more than that (3GB maybe?) but the Control Win x64 runtime can handle much more than that, much more comfortably. And... I do not see many 1GB PLC applications.

     
    • leandroct - 2020-10-09

      I started to develop in 32 bits because I was using a 32 bits embedded PC. After that, my application started to run in a virtual machine in a big Xeon server. Then, I tried to change my program to 64 bits but several functionalities stopped to work with unexplained exceptions too (I don't remember what was the problems). I was losing too much time with it, then I gave up trying. So, if there is anything to do to rise up the Control Win memory possibility, I would appreciate very much! Thanks!

       
  • leandroct - 2020-10-09
     

    Last edit: leandroct 2020-10-09

Log in to post a comment.