<Dereference of invalid pointer>

jeffyech
2026-06-24
2026-06-26
  • jeffyech - 2026-06-24

    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
  • TimvH

    TimvH - 2026-06-26

    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.

     

Log in to post a comment.