A couple questions regarding retentive and persistent variables in Codesys v2.3 using the wago 750-841. Cannot seem to find any information in the manual or online.
When I declare var_global retain persistent and give it a preset value like :=4, and I change it in online mode, the value is saved when I'm logged in but not when i'm logged out.
Also, if I were to change the value offline, it will still show me the value that was changed online.
Where is this data stored in the plc and is there a way to access it through codesys? I need someone to explain how the whole retentive memory thing works.
thanks
Martino
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A couple questions regarding retentive and persistent variables in Codesys v2.3 using the wago 750-841. Cannot seem to find any information in the manual or online.
When I declare var_global retain persistent and give it a preset value like :=4, and I change it in online mode, the value is saved when I'm logged in but not when i'm logged out.
Also, if I were to change the value offline, it will still show me the value that was changed online.
Where is this data stored in the plc and is there a way to access it through codesys? I need someone to explain how the whole retentive memory thing works.
thanks
Martino