Codesys build time - EXCEEDINGLY long

Ulvis
2022-07-05
2022-07-05
  • Ulvis

    Ulvis - 2022-07-05

    Hello, good fellows!

    What are your compile/build times for real-world sized projects?

    I am seeing build times of 1-2 minutes for a 20++ mb size project.
    And the wait is really straining....
    Not to mention that the build seems to be double up. First, 'generate code', and then as one wants to go online the whole build appears to take place again...
    Anyway, this is the summary:
    and the project info that I could find:
    I do not know how to find the number of compiled lines. So I did a pdf print of the whole project. It is 956 pages!

    What do you think? Is this long build time to be expected?

    (PC: Dell Precision 3560 i7 2.8gHz, 16gb RAM. Not the beefiest thing, but it runs ok.)

     
  • fajean - 2022-07-05

    I cannot say if what you are observing is to be expected, but I can share my experience. The image attached is for one library (our biggest). After a "clean all", it compiles in less than one second. That is on a quite beefy desktop with an SSD and more than enough memory, but nothing really special.

    Our projects, which use a decent number of mostly internal libraries, compile within a couple of seconds after a "clean all", but going online and doing a full download probably takes around 10 seconds. Our projects have only one device.

    Looking at your screenshots, my hunch is what you are experiencing might be due to the number of devices rather than the amount of code.

     
  • Ulvis

    Ulvis - 2022-07-05

    Thanx for sharing!
    I do not quite see why the project info lists 14 devices. I have only 2 PLC devices, one of which is just a dummy to hold the network configuration for that device. In reality there are 2 PLC devices in use, in redundant mode, but they get the same project code.
    I guess there are sub-devices representing interfaces and IO card slots, but these are not in use. All interfaces are used by protocols beeing defined in ST/FBD code. All IO is placed on RIO devices (that are not part of the Codesys project).

    This is the project tree, where the 2nd device just has an empty application:

     

Log in to post a comment.