04-24-2022, 08:07 PM
Your robot item was set to the rail, not the robot. To solve the problem you should properly retrieve the robot arm. Example:
Alternatively, you can also retrieve the parent robot an axis is linked to by using getLink. 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())