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 memory change to ZERO

6 days ago
  • maralani - 2023-09-18

    HI Guys,
    I made code that worked perfect , just add few Retain variable, now I got the problem that some other Retain variable change to zero when I run the code , I am not able to change the value of that retain variable.
    what can be problem?

  • snhatton - 7 days ago

    I think more information is needed to help solve the issue. Can you list the exact steps to reproduce the issue? What version of Codesys are you using? Did you add a persistentVars object to your project? I would recommend browsing all instances of the retain variable to see all possible writes to the variable in question.

  • maralani - 6 days ago

    thanks for help,
    I add some retain variable , then some other variable change to zero , andI was not able to change the value


Log in to post a comment.