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

Retain variable help

mehrab
2014-06-14
2014-06-14
  • mehrab

    mehrab - 2014-06-14

    Hello
    Writing a program to Ormec Smlc 160

    I have variables in "Retain"
    Variables like pump speed and temperature set points

    When I reset the PLC, all the values come back.
    Doing cold reset through codesys also same thing
    But when I power down (manually), the variables don't come back.

    Why is that?

    I've tried putting the variables in "Retain Persistent" and still the same thing.

    Under target settings I have checked load boot project automatically

    What else can I try?

    This is very important as I don't think the PLC will be able to recover from a power outage without an operator being present and certain pumps need to be on at all time

    Thanks

    Sent from my iPhone using Tapatalk

     
  • eschwellinger

    eschwellinger - 2014-06-14

    Hi,

    never used 'Ormec Smlc 160' so probably I would recommend to ask the
    manufacturer of this plc if there is a NVRAM inside this plc.
    This is needed to have the retain feature available.
    BR
    Edwin

     

Log in to post a comment.