Slow compiling / How to improve Codesys responsiveness?

joanm
2021-09-30
2023-03-29
  • joanm - 2021-09-30

    Hello all,

    Codesys 3.5 sp15 patch 1.

    I got a new computer recently:

    Thinkpad P14s Gen 2 AMD.
    Ryzen 7 5850U.
    32GB RAM dual channel.
    2TB SSD SAMSUNG EVO PLUS (NVME PCIe 3.0 x4).
    Laptop is plugged and the performance profile is "Maximum performance".
    Windows 10 pro x64.

    Even with that thing, compiling times are slow while the used resources are below 20%.

    Can Codesys responsiveness be improved somehow?

    PS: It can't be a CPU throttling issue as temperatures are low.

    As always, thank you in advance.

     
  • hermsen

    hermsen - 2021-09-30

    Hi, could you please define what you mean with "responisiveness" and "slow"?
    The definition of this differs too much between user experience and hardware.

     
  • joanm - 2021-09-30

    Hi h-hermsen,

    With "improving responsiveness" I mean reducing the time you spend watching the display waiting for the program to end doing silent things.

    When I have written "slow" I meant I fail to see why the processor and resources of my computer are almost idle and I am waiting for the program to do something.

    I am compiling, not trying to connect to a device... so it's only Codesys and the computer what is involved here.

    I guess those compiling operations are sub-optimized, but I wanted to ask in case there would be any kind of setting somewhere that would enable multi-core to compile or similar.

    Hope it is clearer now.

    Thanks for your answer and time.

     
  • hermsen

    hermsen - 2021-09-30

    You could still bump up to SP17, maybe that will make a difference for you.

    Since I run SP17 on a Lenovo P17 workstation with I7 10th gen, the CODESYS compile experience/performance is fast and "smooth".
    I always clear the compiler and then perform a full download on connecting to the PLC( which triggers a build) and I select "Full Download with updated bootproject" in the dialog.

    Hardware makes a huge difference but to be honest, I have no experience with Ryzen & AMD based hardware so I cannot compare it.

     

    Last edit: hermsen 2021-09-30
  • joanm - 2021-09-30

    I wish I could, but the device I am working on now is not compatible with it... persistent area is not working as expected and it gets downsized to an extent I can't use the PLC.

    Clearly it's the device manufacturer's fault but this forces me sticking to SP15. :(

    Looking at raw numbers the AMD processor should be more than enough but who knows.

    Well, thanks again for your posts.

     
  • hermsen

    hermsen - 2021-09-30

    You are mistaking. You can use SP17 on your machine, but you should NOT upgrade you project to SP17 apart from the project container er itself. So you can use SP17 while your target and project settings remain SP15.
    Before upgrading your project container, please back it up and don't blame me if it goes wrong ;-)

     
  • joanm - 2021-09-30

    Sure I will!

    :D:D:D:D

    I really had no idea. I will finish this work and then I will try it.

    Thanks.

     
  • hermsen

    hermsen - 2021-10-01

    1) Install CODESYS SP17.10
    2) install CODESYS Installer option (be very sure to select this!)
    3) After installation you can start CODESYS Installer via Start > Codesys> codesys installer.
    4) in the installer you see that SP17.10 IDE is available. If you wish to install SP15.x next to it (in tandem on the machine) you can do do so without hassle with the button "add installation".
    5) Be very sure to check this new installer out as it is mighty handy πŸ‘Œ
    6) Start CODESYS SP17.10
    7) Open you backup project from 15.x
    8) Do NOT update and skip the update dialog.
    9) Whenever you hit "save" in this project CODESYS asks to update the .project meta container to SP17, it is mandatory to do so.
    10) Ready

    you now have both sp15 and sp17 on a single devbox.

     
  • hermsen

    hermsen - 2021-10-01

    Note to self: Press "post" button once and be patient ;-)

     
    πŸ‘
    2

    Last edit: hermsen 2021-10-01
  • laruso - 2023-03-28

    I also struggle with low performance and long waiting times during compiling while cpu load is around 20 %.

    Fastest is with energy option of 100 % as maximum cpu power, but even then it takes 10-30 seconds.
    Because my internal fan is not good controlled and speeds on every 15 seconds and then throttle down but quite constantly active, I tried to decrease the maximum cpu power in the energy option down to 99 % (constant low fan) and 98 % (fan mostly off or constant low) without any problems with other programms.

    Also it makes a difference if my power supply it attached or not. If maximum cpu is decreased or power supply is not attached, regularly the compiling and archiv saving time is up to 5 or 15 minutes!!!

    Very frustrating to work with and I can't get the issue, even though I'm a computer guy.

    CODESYS V3.5.16 to V3.5.19
    SIMATIC FIELD PG M6

     
  • tvm - 2023-03-29

    I'm using Schneider Machine Expert, which is their brand labelled version of Codesys. I've seen something similar when I open the Library Manager or the Visualization Manager. It just freezes, sometimes as much as 10 minutes. The load on my computer doesn't go up, and I'm not sure what's going on in the background, but there's nothing to do but wait.

     

Log in to post a comment.