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

Python Script MoveL in parallel

#1
Hi
I have a robot with a mechanism that's not synchronised and functionally doesn't need to be synchronised.
For the purpose of simulation I have a python script that is moving both the robot and the mechanism.
The python script is called as part of the robot program
The script is something like...:
robot.MoveL(target)
mechanism.MoveL(target2)

when calling the python script from within the robot program the two moves (robot and mechanism as above) occur in sequence - is it possible within the script to force them to move in parallel such that the second MoveL starts at the same time as the first MoveL?

Regards
Andy
#2
Hi Andy,

You can do the following:


Code:
robot.MoveL(target, blocking=False)
mechanism.MoveL(target2, blocking=False)
while robot.Busy() or mechanism.Busy():
    pause(0.1)
Please read the Forum Guidelines before posting!
Find useful information about RoboDK by visiting our Online Documentation.
  




Users browsing this thread:
1 Guest(s)