visose / Robots

Create and simulate ABB, KUKA, UR, and Staubli robot programs.
MIT License
306 stars 127 forks source link

Using a message from the UR5 Pendant to pause the programme #56

Closed vsardenberg closed 3 years ago

vsardenberg commented 3 years ago

Hello, Robots people!

I am working on a pick and place project where I need to screw parts of an aggregation. We will use a 2 finger gripper to pick and place slats in specific positions and humans will screw them together. Because we don't know exactly how much time it will take, we would like to implement on the program an instruction to pause it and send a message box to the pendant asking if you want it to continue. Is it possible to do it?

Thanks a lot!

Victor

Yonahel commented 3 years ago

Hello Victor,

Disclaimer - I don't work with the Robots team, but I have been experimenting with the plugin for a few weeks.

There's a Wait DI command that comes with the plugin, that seems to have some of the functionality you're looking for. You could set up the program to do a Pulse DO, to tell your pendant it's reached that point in the program, then Wait DI. The message box would awaken with the Pulse DO, and then, on continue, send a digital out back to the UR controller which triggers the Wait DI.

That should do what you're asking for, although I don't know if you know how to interface your pendant's message box with digital in and out signals. If not, this might not be what you're looking for.

robin-gdwl commented 3 years ago

@vsardenberg this is easily possible with the Robots-Plugin For UR-robots you can add a Custom Command with a popup command that blocks the robot until you press continue on the pendant. Check the UR-script reference under "popup" (page 35) for more information.

This is how you add it in grasshopper using this plug-in: start confirmation ur-pendant

This should be what you are looking for. Alternatively you could also use a wait for Digital Input with a button wired to the robot: