"Null reference" error in my UR10 program

Hello everyone,

I am encountering an issue with my program developed for a UR10 robot. During execution, halfway through my program, I get the following error: “The reference is null.” However, my variable is correctly associated with a position defined in the Installation → Functions → From a point section.

Context:

  • Robot: UR10 CB3
  • Error: The error occurs when I try to associate a position with a variable: Empilage_var := Empilage.

I have already tried changing the variable and modifying the associated position, but I do not understand why the variable is considered “null” when I am explicitly defining its value.

Questions:

  • What could be other possible causes for this error?
  • Could incompatibilities in installation parameters (TCP, payload, etc.) trigger such an error?
  • Are there any specific checks to perform on the program to identify an incorrect reference?

Thank you in advance for your help and suggestions. If necessary, I can share excerpts of my program or provide more details about the configuration.

Benoit REY