I have a program which calls a structure. while online with the PLC, I get: <dereference of="" invalid="" pointer=""> in the declaration values area. What are the causes of this? Can it be solved?</dereference>
Yes, this can be fixed by setting the correct reference to the structure.... But by only the given information it is impossible to say what you did wrong. Maybe you can start by first creating an instance of the structure within the program to see how this works.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a program which calls a structure. while online with the PLC, I get: <dereference of="" invalid="" pointer=""> in the declaration values area. What are the causes of this? Can it be solved?</dereference>
Version 3.5 of codesys.
Last edit: jeffyech 2026-06-25
Yes, this can be fixed by setting the correct reference to the structure.... But by only the given information it is impossible to say what you did wrong. Maybe you can start by first creating an instance of the structure within the program to see how this works.