In the before start section of the program have an assignment that uses operator input. You can choose Yes/No as the option and then it will make the variable either True or False, then simply use an if statement to choose how to handle.
If you want it to be automatic, you can simply determine where in space you are in the machine, get the actual TCP position and then when you are past that position in space do your homing routine. You can access the x, y and z coordinates of the current tool position by assigning it to a variable and then referencing the variable with bracket notation, i.e
var currPose = get_actual_tcp_pose()
var actX = currPose[0]
if (actX > 0.100)
Do your homing routine
end
Hope that helps
Hello
I am trying to create a homing sequence for a UR10 robot and have done so using way points and not the get_actual_tcp_pose() function as it needs to find its way out of a molding machine.
My question is how do i get this function to run after an e stop or protective stop has occurred ?
So when clearing the e stop and pressing play, how do i get this homing function to run through a pop up which asks "Do you want to home the robot ?"
Sorry for being a bit vague.
Thanks in advance.