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.
Go to Solution.
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:
isdo if eventcontroller.simTime - @.entryTime > 120 then @.move(discard);--more than two minutes else @.move; end;end;
If the response to your question is satisfactory, please do not forget to ‘Accept’ the solution.
Your Forum Administrator