Null Pointer exception when saving the program

Any help with this? Very stuck

Are you running the latest version of PolyScope? Check version in upper right corner menu and About.
Also, have you tried to redo the Pallet node? :slight_smile: Might help.

Yes I’ve got the latest polyscope and re done the pallet node

Are you using subprograms in there? If so I’ll add your post to my list of others with the same problem.

No sub programs, but two palletising setups. I was going to seperate them into sub programs but maybe not after what you’ve said.

I have this same issue just using 4 pallets in my program. The program will run fine have way through then the UR misses its palletized position. I put the UR back to its home position then that same Exception occurs. This is with 5.17 and all updated urcaps files. If anyone has any insight that would be great too.

SAME SAME here

Universal Robots, do you have a solution for this BIG problem?

Can you send a screenshot of your code? Or maybe the whole .urp program and .installation file? :slight_smile:

Here is the program and installation files…

We have tried to make new pallets, so there may be more than normally…

Feel free to call me for further information.

(Attachment Metrology.installation is missing)

(Attachment Metrology.variables is missing)

(Attachment 290M510v2.txt is missing)

(attachments)

290M510v2.script (147 KB)
290M510v2.urp (68 KB)

I´m not allowed to attach the other files…

I can’t redo the error with just those files, but have you tried to identify/isolate the issue yourself?
Like remove the script-calls within the Pallet node? :slight_smile:

New folder.zip (100.9 KB)
I have tried to Zip the files…

We could see that the problem comes when we make a new pallet, with the same waypoints as the old pallet. If we move the robot up in Z and just make the four corners randomly then we don´t have the problem…

Hi
What is the status?
For info, it is all our robots that have/might have this issue…
The robot that i sent you the program is standing still, and we need it up running asap…

I’ve found the work around for my specific problem, but it’s not really a solution. It needs fixing in the code with Universal Robots pallet node.

It only happens when the tcp is set to something else the pallet doesn’t use. So as long as the tcp is set correctly before progressing to the pallet node it works.

You could have a set tcp in before start so the program always starts with the correct starting tcp and then the pallet node is happy

Let me know if this works for you.

But a proper solution needs to be done by UR

I’ve been dealing with this same issue. We power the robot up and load the program we wish to run. When we hit the play button to start the program we get the same alarm even though the first line in the program is setting the TCP before start. To get around this we simply highlight the set command in the program and hit test, setting the appropriate TCP. Without a way around this issue, the robot must be left in manual, giving access to the program for the work around. Any advise?

In my opinion, I’ve seen a lot of issues surrounding the pallet nodes. UR just has problems they aren’t addressing there. Unless you’re doing something really fancy with it, I would just write your own palletizing script. At the end of the day all you need to do is teach all your moves to a Feature and then shift that Feature in the direction you need it to go. You can use a combination of division (/) and modulo (%) to get which row and column of a “grid” or pallet you’d need to move to. Aside from doing it yourself you’ll likely be at the mercy of UR to fix the pallet node, and it’s been reported to be broken for quite a while now