Before switching to Codesys, I used another IDE based on IEC 61131-3 (non-Codesys) that had such a feature, which is why I am trying to find out if it is also available here.
In that case, whenever I compiled the code, some kind of inference was made by the compiler, in order to superimpose the new program on the PLC controller, while respecting the content of the variables that were already present in the program.
It was very useful, because on the case of upgrading the code on each PLC on field, local configurations would not be lost. Ok, I know that there are alternatives to overcome the issue by storing critical contents in file, but I was wondering if it is available a more convenient way to do that, such as mentioned above.
Is such a feature possible in Codesys?
[UPDATE]
After further research, seems like just declaring the variable within 'PersistentVars' object as PERSISTENT RETAIN suffices, if no significant changes are made either in amount, order and types on the variable list.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Before switching to Codesys, I used another IDE based on IEC 61131-3 (non-Codesys) that had such a feature, which is why I am trying to find out if it is also available here.
In that case, whenever I compiled the code, some kind of inference was made by the compiler, in order to superimpose the new program on the PLC controller, while respecting the content of the variables that were already present in the program.
It was very useful, because on the case of upgrading the code on each PLC on field, local configurations would not be lost. Ok, I know that there are alternatives to overcome the issue by storing critical contents in file, but I was wondering if it is available a more convenient way to do that, such as mentioned above.
Is such a feature possible in Codesys?
[UPDATE]
After further research, seems like just declaring the variable within 'PersistentVars' object as PERSISTENT RETAIN suffices, if no significant changes are made either in amount, order and types on the variable list.