Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Working with External Rail using Python API

#2
Your robot item was set to the rail, not the robot. To solve the problem you should properly retrieve the robot arm. Example:
Code:
# Get a named robot in your cell
robot = RDK.Item('Fanuc R-2000iB/165F', ITEM_TYPE_ROBOT)

# Print the robot name
print(robot.Name())


Alternatively, you can also retrieve the parent robot an axis is linked to by using getLink. Example:
Code:
# Get the first robot in your cell
robot = RDK.Item('', ITEM_TYPE_ROBOT)

# Get the parent robot of an external axis if it is synchronized
机器人= robot.getLink (ITEM_TYPE_ROBOT)

# Print the robot name
print(robot.Name())


Messages In This Thread
RE: Working with External Rail using Python API - byAlbert- 04-24-2022, 08:07 PM



Users browsing this thread:
1 Guest(s)