Join us today!
Declaring variable cause license issue
Hi All,
I am getting a very strange and challenging issue.
I have a fully working PLC software that has been running for a long time no issues. Working in the field all operating 100%.
In MAIN, I have maybe declared variables (as can see several hundreds of variables currently working without issues) of BOOL, INT, REAL etc. No issues.
But
As soon as I add any new variable declaration (i.e. as highlighted in the picture) and then click the button to "Activate Configuration", the code etc uploads but then the PLC goes into configuration mode and give the errors as in pictures.
The Errors seems to point to licensing issues which makes no sense. Nothing else changed in the working programme. Literally just declared a new variable:
bSuffMassflowToStandardise:BOOL;
After some further investigation if I remove a variable / reduce its size in volatile section and then add a new variable same size as the reduced size, the code compiles and PLC programmes.
But, it seems as if the changes in volatile memory section that precedes persistent variable section causes the first or so variable in persistent variable section to be override/changed.
Any ideas ?
- 17 Forums
- 410 Topics
- 1,111 Posts
- 1 Online
- 1,193 Members



