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)
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our YouTube Channel.
  




Users browsing this thread:
1 Guest(s)