Join us today!

Notifications
Clear all

Declaring variable cause license issue

2 Posts
1 Users
0 Reactions
1,906 Views
Posts: 2
Topic starter
(@twinkitty)
New Member
Joined: 9 months ago
[#431]

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.

Declared new variable
Errors

 

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;


Reply
1 Reply
Posts: 2
Topic starter
(@twinkitty)
New Member
Joined: 9 months ago

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 ?

Variables

Reply
Share: