Retain memory change to ZERO

maralani
2023-09-18
2023-09-19
  • 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 - 2023-09-18

    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 - 2023-09-19

    Hi,
    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.