question

cristian R2 avatar image
0 Likes"
cristian R2 asked Sebastian Hemmann commented

How to push an item from a list?

I'm really quite confused with the next thing, I need to send a batch of boxes at the beginning (20) that I could already do, but when one box arrives at my queue2 another must enter, my question is how can I send from a single box after having sent a lot?

p3111.fsm

FlexSim 19.1.0
wait for eventpush to listopen and closed ports
p3111.fsm (754.3 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joseph Gillespie avatar image Joseph Gillespie commented ·

@cristian R2

Are you saying you want the queue to release a batch of 20 boxes, then release another one? Or do you want to keep releasing items after that? Could you describe in more detail what you are trying to do?

2 Likes 2 ·
cristian R2 avatar image cristian R2 Joseph Gillespie commented ·

That's right, you must first enter 20 into the closed system and when one goes out you must enter another because you must always have 20 inside the closed system

0 Likes 0 ·

1 Answer

Sebastian Hemmann avatar image
0 Likes"
Sebastian Hemmann answered Sebastian Hemmann commented

Sorry could not figur out in what area your limitation should work. Thatswhy I´ve created an example model to show what I would do.

So I´m using two Sources. One is sending 20 Boxes right as soon as simulation run starts. The second tries to send Boxes continuously but has a closed output.

As soon as one Box arrives the last Queue a message is send to the second source and opens the output for exact one Box.

Is this what you are looking for?

21282-p3111-sh.fsm


21282-p3111-sh.fsm (755.2 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

cristian R2 avatar image cristian R2 commented ·

It is similar, but when a box comes out of the process and reaches the last queue, one more box must be sent and 20 again in the process. And so on when one goes out enters another.

0 Likes 0 ·
Sebastian Hemmann avatar image Sebastian Hemmann cristian R2 commented ·
@cristian R2

so does my solution work for you or not? And if not, what is not working as expected?

0 Likes 0 ·