Cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt about Container

Valued Contributor
Valued Contributor

Good afternoon.
In my project I have a 'container' that is loaded with a quantity of plates for transport. When arriving at the destination I can not take these plates the 'container'. Does anyone know how to proceed?

6 REPLIES

Re: Doubt about Container

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

What is your approach, what is the error-message? Can you post your method?

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

Re: Doubt about Container

Valued Contributor
Valued Contributor
I'm using only one 'for' to iterate:

plates:= @.numMU;
for local i := 1 to plates loop
@.cont.move;
next;

The iteration progresses, but none piece is removed from the 'container' (@).

Re: Doubt about Container

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

what is the destination of the MUs? And how do you call this method?

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

Re: Doubt about Container

Valued Contributor
Valued Contributor
The container is on a 'SingleProc'. The method is executed in onExit event. I need the plates to be moved to a 'buffer'.

Re: Doubt about Container

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

If you want to move to a buffer, then you should include a little delay, so that the MUs can step foreward. Move without a destination works only, if the location of the mu is directly connected with the destination, so try this:

 

plates:= @.numMU;
for local i := 1 to plates loop
@.cont.move(buffer);
wait(0.001);
next;
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Doubt about Container

Valued Contributor
Valued Contributor
It's work.
Thanks.