Hi, I have a library function block within a library function block. When I originally implemented this everything seemed to be fine. I made it a VAR_OUTPUT
Then when I closed and reopened AS, every time I build the project again, I am having
“field ‘fbA’ has incomplete type ‘FunctionBlockA’”
and
“field ‘fbA’ has incomplete type” and it all points to the Temp folder.
As example shown the screenshot.
The user library “General” has a function block with a internal variable which is a function block from the library “brsystem”. To always compile correctly and not based on luck the dependency should be defined in the property of your user library.
If you start to mix C and IEC programs, this behavior will start to occur. A header file DoorLib.h cannot be automatically generated for C programs when there’s a non-zero starting index array.
You could either revise the scope of your data type to not be global, or include a starting index of 0.