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

Very slow downloading of a project which has 10 000 function blocks

berendej
2018-03-02
2018-03-05
  • berendej - 2018-03-02

    A project has 10 000 function blocks each of which is mapped onto output channel.
    Compilation is quite fast ( Build -> Rebuild )

    1 - I initiate downloading ( Online -> Login )
    2 - A message box "Application 1000_points does not exists on
    device 'Device' do you want to create it and proceed with download ?
    3 - I click OK.

    4 - Status bar has a string "locate global data" for about 25 minutes.
    5 - A message box "No connection to the device, Please rescan your device" appears.
    6 - I click OK.

    7 - Status bar has a string "Generating code I104_GVL_1__GVL__INIT" for about 2 minutes
    8 - A message box "No connection to the device, Please rescan your device" appears.
    9 - I click OK.
    10 - At this stage, if I will do nothing, then nothing will ever happen.

    11 - I do: Online -> Login again.
    12 - A message box "Application 1000_points does not exists on
    device 'Device' do you want to create it and proceed with download ?
    13 - I click OK.
    14 - After 2 minutes application starts.
    15 - After 3 minutes dialog box "OutOfMemoryException" appears. I click OK.
    16 - Application continues its work.

    If I do "Remove application" from controller - it removed quite fast.
    If I download it again, then application starts quite fast ( approx. 45 seconds )
    I can do several cycles "Remove application" -> "Download (Online->Login)
    and always it starts quite fast.

    But if I close CoDeSys IDE, and start it again then the same application
    will download slowly again as described above from paragraph 1.

    The project with 5000 same function blocks starts in 1 minute.
    With 10 000 function blocks in 30 minutes. So every 5000 f.b. multiply
    download time in 30.

    IMG: OutOfMemory.jpg

     
  • dFx

    dFx - 2018-03-02

    What happens if you separate compiling to downloading ?

    Step 1 : Clean All
    Step 2 : Generate Code
    Step 3 : Online
    Step 4 : Download (via message box after online)

     
  • berendej - 2018-03-05

    After I click "Generate code" - "locate global data" hangs for about 25 minutes.

     
  • eschwellinger

    eschwellinger - 2018-03-05

    Hi,
    which CODESYS version is this?
    I would propose to send this project to improve/investigate to the support as a bug report.
    Login to the CODESYS store and -> 'my question'
    add the projectarchive ad this detailed steps to reproduce in our post above.

    BR
    Edwin

     

Log in to post a comment.