Cancel
Showing results for 
Search instead for 
Did you mean: 

How to move all MUs from buffer

Pioneer
Pioneer

Hello.


I’d like to simulate below situation but I don’t have any idea how to do it. I’d like to have a buffer which moves all of the MUs to the next station but only when buffer is full.


Thanks for help

2 REPLIES

Re: How to move all MUs from buffer

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hi WD,

 

I can't see anything below but from your description I think I can answer your question.

 

Just put this code in the entrance control of the buffer you want to move items from and it should work. In my example I will be moving items from Buffer to Buffer1.

 

is
     MuCount:integer;
do
     If buffer.numMu = Buffer.capacity then
         For MuCount:= 1 to Buffer.capacity loop
             Buffer.cont.move(Buffer1);
         Next;
     End;
end;

 

You will have a problem if the next station is just for example a SingleProc as you won't be able to move them all at once. In this case I would use the attribute ExitLocked for the Buffer (have it locked when first items enters) and only open it when the buffer is Full (After If above). Also you could maybe you the EntranceLocked attribute of the buffer to ensure nothing enters when you are doing this.

 

Regards

 

Ollie

Oliver MacFarlane
Simulation Engineer
web: www.simsol.co.uk
e-mail: oliver.macfarlane@simsol.co.uk

Re: How to move all MUs from buffer

Pioneer
Pioneer

Thank You very much, that's exactly what I need