Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Error: Object reference not set to an instance of an object

kmckinney
2017-08-23
2017-08-23
  • kmckinney - 2017-08-23

    My co-worker and i keep coming across this issue in SoMachine 4.1 SP2.

    We have 1 controller file for the customer's PLC. Sometimes after we (either of us) login to the PLC, specifically when viewing structured text we get the aforementioned "Object reference is not set to an instance of an object" error. If we try to access local variables in the watch window we get the object reference error. We can't view any local variables in the variable declaration area of the POU. And EVEN WORSE The structured text appears as if it we aren't logged in at all THEREFORE we cannot see any of the variable values in the structured text window. The only view we can see "live data" in, is ladder logic.

    This makes it extremely difficult to support our customers and we have no clue what could be causing this. Obviously, we could perform a fresh download but that will not allow us to troubleshoot the customer's issue.

    HEEEELLLLPPPP!!!

    IMG: Object Ref.png

     
  • josepmariarams - 2017-08-23

    Hi.

    Could be that your action doesn t run?

    The actiin is called from anywhere assigned to a task?

     

Log in to post a comment.