Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting "preferred orientation" or "teach" button using python api
#1
I'm running into an issue where we have to "teach" the preferred tool x axis orientation otherwise we have some issues later down the line. Is there an easy way to automate this "clicking" of the teach button by python api?

I have a script with a for loop that updates some other basic items for all of the programs that id like to use for this teach.
#2
Yes, you can provoke the Teach button in a robot machining project using the API. 

This example shows how to do it:
Code:
from robolink import *
RDK = Robolink()

# Choose your robot machining project:
pathsettings = RDK.ItemUserPick("Choose a robot machining toolpath", ITEM_TYPE_MACHINING)

# Provoke the Teach action:
pathsettings.setParam("Orient", "Teach")
#3
Excellent! Thanks for the information.
  




Users browsing this thread:
1 Guest(s)