question

yesid anacona avatar image
0 Likes"
yesid anacona asked Ben Wilson commented

How do i make the model stop when all the items go through the simulation?

I have this model of simulation but it does not go all items, and at the end the model does not to continue running in time but the process is stopped without passing all by the model. I need all the items to go through the model and that when they are finished the model is automatically stopped.

Thank you very much

modelo-zenu-4-18-2017.fsm

Choose One
stop
· 1
5 |100000

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

Kari Payton avatar image Kari Payton commented ·

@yesid anacona at what time does the model stop currently and what needs to be completed before the model should stop?

0 Likes 0 ·
Jeff Nordgren avatar image
2 Likes"
Jeff Nordgren answered Ben Wilson commented

@yesid anacona,

The reason your model doesn't stop when it runs out of flowitems is because of the time tables that you have set up. Even though all the flowitems have been processed, those time tables are still creating and executing events. As long as there are events for the model to process, the model will continue to run.

Is there some condition that happens in the model that would let you know it is complete? Do you have a fixed number of flowitems that are processed? If you know what condition exists when the model should finish, you could put code in at that point to stop it. Or is there an object or objects in your model that are being starved of flowitems and would continue to run if not starved? I guess what I'm asking is, is there a "natural" stopping point for your model or is it just being starved of flowitems from some process in you model?

· 4
5 |100000

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

yesid anacona avatar image yesid anacona commented ·

The condition is that all flowitems that originate in the source "sausages" all come in the band, as shown in the figure. When these arrive all the model should stop and stop running in time. In order to determine the precise time it took to process all flowitems. Thank you

0 Likes 0 ·
imagen-ayuda.jpg (321.5 KiB)
Jeff Nordgren avatar image Jeff Nordgren yesid anacona commented ·
@yesid anacona

I've looked quite a bit and I wish I had more details about how this model works, it would make things on my end easier.

So if I'm understanding this correctly, flowitems come from chorizos and are then combined onto a pallet. Then that pallet goes somewhere else for processing. And then that pallet ends up combined with something else, is that correct?

I've figured out how to add a label on the last flowitem entering the model from chorizos. But if that specific flowitem isn't going to be the one that enters either of the Sinks, exactly how would you tell if that last flowitem has left the model, and then stop? Not understanding the flow of items in the model, I'm not sure how or where or on what to place another label so that I can tell if that items leave the model. Because if I understand what you said, you want to stop the model when the last item created in chorizos leaves the model or rather goes to one of the two sinks, is that correct?

So maybe I just need some more information about where that last flowitem created from chorizos ultimately ends up or rather what it might be contained in when it exits the model.

0 Likes 0 ·
Wang Z2 avatar image Wang Z2 Jeff Nordgren commented ·

In my model,I made a multi-layer shuttle car ware model

I want stop the model when items go through the simulation.Now ,When the items are all on the rack, the model does not stop and the process seems to be still working.

I know that I can use the code to stop my model:

stop();

But I don't know when and where to trigger it.

It's my model,thanks for your helpstock-in.fsm

0 Likes 0 ·
stock-in.fsm (107.5 KiB)
Show more comments
yesid anacona avatar image
0 Likes"
yesid anacona answered yesid anacona commented

What you say is correct

what I want to simulate in the model is an Area separate from the process of chorizo, to this area arrive the sausages stuck in long strips as shown in figure 1 , these strips of sausages ranging subject in a rod, and the rods are subject to a small car as shown in figure 2.

nce loaded the cars according wings specifications units of sausages per stick and, according to the units of rods per car, entering the area separately ( the area colored orange in the model), an operator (oper 1) take the carts full and pushes it up to the waiting area, there are 2 operators are responsible for receiving the cars, these down rods and unload the strips of chorizo in the tables (Mesa 1- Mesa 2). Then the operators that are located in each of the machine separator ( INO 11, TOW 10, TOW 200, TOW 13 THESE ARE THE NAMES OF THE MACHINE SEPARATOR, WHAT THEY DO IS to SEPARATE INDIVIDUALLY EACH ONE OF THE STRIPS OF CHORIZO ) are the ones who are in charge of introducing the strips of chorizo in the separator, once the sausages pass through the machines separator is collected in a plastic box at the end of each separator. Then the operators (operator 2, and operator 9) take the plastic boxes filled with chorizo separated individually and sent by a conveyor belt this is the full process.

Note:

1. in the Source the initial (chorizos ) is believed 19 references of sausage, are as brand sausage .

2. The table globe specifies the speed with which it works each machine separator, and in addition specifies the amount of units contained in each Rod, each car and each plastic box for each reference of sausages.

3. What I want to know is how long it takes to process all of the 19 references of sausages with their respective quantities created in the Source of Chorizos, that is why it is important that the model stops automatically.

Le agradezco si interés por colaborar.

Proceso

figura-1.jpg (18.6 KiB)
figura-2.jpg (1.7 MiB)
· 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·
@yesid anacona

The thing I'm still trying to figure out for myself is, do you want the model to stop when the last flowitem leaves the Source or the model. And if it's the model, how do I know where and what it ends up in when it is sent to the Sink? If I don't know where that last item ends up or what it ends up in, how would I know when it goes to the sink?

0 Likes 0 ·
yesid anacona avatar image yesid anacona Jeff Nordgren commented ·

The model stops when the last flow of the model comes out, but if it can help me to stop when it leaves the source it will also serve me.

Muchas Gracias

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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