Can VARINFO be used within a library?
VAR Info: __SYSTEM.VAR_INFO; TestVar: BOOL; END_VAR Info:= __VARINFO(TestVar);
Code works in a program, as soon as I move it to a function block in a library I get the following:
C0032: Cannot convert type 'Unknown type: 'MEMORY_AREA.MEM_LOCAL'' to type 'MEMORY_AREA' C0046: Identifier 'MEMORY_AREA' not defined
Log in to post a comment.
Can VARINFO be used within a library?
Code works in a program, as soon as I move it to a function block in a library I get the following:
C0032: Cannot convert type 'Unknown type: 'MEMORY_AREA.MEM_LOCAL'' to type 'MEMORY_AREA'
C0046: Identifier 'MEMORY_AREA' not defined