09-25-2023, 07:28 PM
Hi,
I'm currently using RoboDK's python API to move my Fanuc robot. I'm running two MoveC commands in a for loop to create a circle. However, is it script to wait to execute until the robot motion is done?
For instance:
for i in range(2):
robot.MoveC(target1, target2)
print("done with move")
# update target 1 and 2
This prints two sets of "done with move" even before the robot finishes the first MoveC command.
Is there a way to monitor the motion status of the robot and wait for the motion to finish before moving on to the next line of code?
Best,
Joshua
I'm currently using RoboDK's python API to move my Fanuc robot. I'm running two MoveC commands in a for loop to create a circle. However, is it script to wait to execute until the robot motion is done?
For instance:
for i in range(2):
robot.MoveC(target1, target2)
print("done with move")
# update target 1 and 2
This prints two sets of "done with move" even before the robot finishes the first MoveC command.
Is there a way to monitor the motion status of the robot and wait for the motion to finish before moving on to the next line of code?
Best,
Joshua