Cancel
Showing results for 
Search instead for 
Did you mean: 

Time in a Buffer

Experimenter
Experimenter

Hi,

 

I'm simulating a hot forging plant.

There's a buffer where hot blanks waits when the press fail (or the worker isn’t available, etc…)

This blanks can be used in the process if the waiting time is no longer than 2 minutes.

If the blank stay in the buffer more than 2 minutes, it needs to be discarded (because of the temperature reduction).


How can I define an exit strategy that sends the blank to the press or to the discard box according to the time it spent in a previous buffer?

If the blank stay more than 2 minutes it must be sent immediately to the discard.

 

1 REPLY

Re: Time in a Buffer

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You can use a exit control (front) in the buffer for this. The MU stores the entrance time in the buffer (<mu>.entryTime), so you can calculate in the exit control the waiting time for each MU.

Connect the buffer with the press via connector. The exit control of the buffer may look like this:

 

is
do
 if eventcontroller.simTime - @.entryTime > 120 then
  @.move(discard);--more than two minutes
 else
  @.move;
 end;
end;
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net