Cancel
Showing results for 
Search instead for 
Did you mean: 

PickAndPlace: wait until movement is finished

Valued Contributor
Valued Contributor

Hi,

 

How can i wait until a movement with a PickAndPlace is finished ?

The problem is that i don't know if there is an MU in it. Before i always did something like this:

 

Source.MU(1).move(PickAndPlace);
PickAndPlace.setDestination(SingleProc);        
waituntil PickAndPlace.empty prio 1;

 

but now i need something like this (independent from MUs):

 

is 
do    
PickAndPlace.setDestination(SingleProc);    
waituntil PickAndPlace.CurrentPosition = SingleProc prio 1;
-- go on with some other code
end;

 

thx for you help Smiley Happy

1 REPLY

Re: PickAndPlace: wait until movement is finished

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you can use resWorking, to observe the rotation, while rotation resWorking is true 

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net