Codesys 2.3 Cross-references in ST
Hello,
I have a problem that in cross-references dialog of my Codesys POU written in ST language there are missing some occurences of variables. I noticed that it is only if the variable is inside of IF..THEN statement and not in all projects!!! For example :
***************************************************************
VAR1 := VAR2 + 1;****************read
IF VAR2 > 100 THEN***************read (missing in cross-reference)
VAR2 := 0;********************write
ELSE
VAR2 := VAR2 + 1;**************read, write
END_IF;
***************************************************************
my VAR2 is in cross-reference window only as Declaration, Read, Write, Read, Write but one Read that is as a condition of IF statement is missing. Can anybody tell me why? I tried to Build or Rebuild All but nothing. It is very strange and I lost a lot of time to find one variable in quite a big project.
Thanks
Voted best answer
Hi
I have tested this and I get a full cross reference. With var2 described in 6 places.
See attachment.
What are you version of codesys? There might have been some updates...
I'm using version 2.3.9.40 at the moment.
Add new comment