Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Trigger method after ther's no more parts to arrive at buffer

Hello, I have a model with a buffer "RackFinal" that has an entrance control method. Currently, I set the source of MUs to produce 50 parts, the capacity of the buffer to 50 and the entrance control method starts with

if RackFinal.NumMU = RackFinal.Capacity

because I want it to be triggered once there's no more parts to arrive. But I want to make it independent of the buffer capacity or the number of parts produced so I need to replace the code above for something that translates to "start after there's  no more parts to arrive". 

Please let me know if the problem isn't very clear or if you need me to attach my model.

 

5 REPLIES 5

Re: Trigger method after ther's no more parts to arrive at buffer

Phenom
Phenom
How does the model know, that there are no more parts to arrive ?

One way is to count the number of parts (created by the source, as you did)

Or by a defined time out.

Re: Trigger method after ther's no more parts to arrive at buffer

That's what I'm trying to do. Currently, it doesn't know ther's no more parts to arrive, but it works because I set the number of parts produced and the buffer capacity to be the same. I want it to work for any number of parts produced, provided it is in the range of the buffer capacity.

Re: Trigger method after ther's no more parts to arrive at buffer

Gears Phenom Gears Phenom
Gears Phenom

IF your source simply produces a limited amount of parts then this should work:

if Buffer.NumMU = Source.Number then
___________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Re: Trigger method after ther's no more parts to arrive at buffer

Solution Partner Legend Solution Partner Legend
Solution Partner Legend
It depends on how the source produces MUs (the settings in the source).

Do you use a interval in the source? What is the MU selection?
Post a screenshot of the settings in the source you currently use and tell us exactly which settings you want to be able to change in the source. Then it is possible to create some code that will always work.

Re: Trigger method after ther's no more parts to arrive at buffer

Thanks, it worked!