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

Memory Problems

RBS
2017-11-25
2017-11-25
  • RBS - 2017-11-25

    Hi There,
    I am working with Codesys 3.5.10 SP2 and I am having some issues with the memory on my Industrial PC/////

    CPU: on-board Intelยฎ Celeronยฎ Quad Core processor J1900 processor,
    up to 2.42GHz, 2M L2 cache
    ยŒยŒ BIOS: AMI BIOS
    ยŒยŒ System memory: 2 x 204-pin DDR3L SO-DIMM socket, 4GB DDR3L
    (default), support up to 8GB DDR3L-1066/1333, non-ECC and
    un-buffered
    ยŒยŒ Storage device:
    1 x external locked CFast socket
    1 x hard drive bay: optional 1 x 2.5" SATA HDD or 1 x SATA DOM

    Good enough right, ok but here are the messages that I get from 3.5
    and 2.3, same program with same PLC.
    In Codesys 2.3 as you see, there is no problems only on 3.5;
    Please can someone tell me what could be the problem?
    This is a huge program that I have written that contains more than 18 structures, 18 FB's, 25 Functions, 4 PLC_PRG's, thanks in advance for your help!

    IMG: CODESYS 2.3.PNG

    IMG: OversizedPrg.PNG

     
  • eschwellinger

    eschwellinger - 2017-11-25

    Hello,
    guess the main question is missing you probably are asking for
    how to save retain/persistent data on this system, ist that right?

    for using retain memory you need to have an UPS on your industrial pc or additional hardware (non volatile ram โ€“ NVRAM)
    This is needed for CODESYS V2.3 and CODESYS V3.

    For using retains a proper shutdown of the plc/pc is needed (the plc runtime does save the retain/persistent variables on this shutdown to the retain file and restore them on next bootup)
    This is the way it works (V2.3 RTE and Version 3 Control RTE)
    If you have additional hardware in your PC NVRAM โ€“ then this proper shutdown of windows is not needed you could only which off because the retains are written cyclic.

    That is the whole story for the retains. Some industrial pc manufacturer provide a NVRAM (pci express I guess) card to do this in CODESYS Control RTE V3 as hardware add on (you need to ask your pc manufacturer if the have it for this pc)
    But not sure if this works in V2.3. For Control RTE V3 it is for sure possible.

    Now you need to decide:

    1. Add a UPS to your system (maybe it is already there?)
    2. Add NVRAM card to your system

    See the description how to use them here in the online help:

    https://help.codesys.com/webapp/cds-var ... n=3.5.11.0

    maybe the third option in combination with UPS, you could use the persistence manager from application composer.
    There is the description in the online help too for doing this.

    BR
    Edwin

     

Log in to post a comment.