Hello to all!
I am quite new in programming UR-robots but I have more experience in programming robots from other brands.
Right now I would like to know how I can stop the robot movement by an event and how to resume to the speed
which was before this event happened.
Our application is arc-welding, the event would be any fault of the current-source for welding. In this case the robot
has to stop and stay in this position until the current-source is ready again. By pushing an external acknowledge-button,
the robot should continue welding.
I guess I can use the stopl() command in a thread which detects the event. But I don’t know how to resume…
Edit: is there any command with similar function as the “PAUSE”-button on the teach-pendant?
I guess you would have to reissue movel command to get it moving. You have to remember last target. If you were moving in circle, tough luck. It would also be possible, but more complicated.
I think Polyscope is cheating with pause button by setting speed slider to 0 over RTDE. Busted!
If I activate the Input action “Pause the current program” for my input-signal from the current-source (READY-signal),
does it also pause the movement of the robot (while it is moving) or will the program only be paused in the next program-line?
You could either wire an input directly to the power source to use as a pause button, the fastest way to pause the robot, it will pause it almost immediately while in motion, or you can use the input and place it in an event then open a port to the dashboard server and send the pause command to the server. This is slightly slower but still pretty darn quick.
The UR pause occurs mid-execution and will hold all motion in its current position until the robot program is played again, execution will resume from where it was paused
Thanks a lot for this support!
I think I am on the right way now…
Here is a complete example of how-to-do for my case:
This is what I need, my problem is solved