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
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.
If buffer.numMu = Buffer.capacity then
For MuCount:= 1 to Buffer.capacity loop
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.
I've a similar problem, just let me explain my situation.
I've an oven that starts the job only if it's full (The oven capacity is 2, so i put a parallel proc with 2x1 dimensions)
How i can integrate this behaviour in my simulation?
I've tried to adopt your simtalk lines in buffer entrance control but the are some errors, and i'm not a genius with simtalk language.
If buffer_PF.numMu = Buffer_PF.capacity then
For MuCount:= 1 to Buffer_PF.capacity
Syntax Error :integer