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

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

yesid_anacona
Not applicable
42 Views
9 Replies
Message 1 of 10

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

yesid_anacona
Not applicable

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

0 Likes
Accepted solutions (1)
43 Views
9 Replies
Replies (9)
Message 2 of 10

kari_payton
Not applicable

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

0 Likes
Message 3 of 10

jeff_nordgren
Not applicable
Accepted solution

@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?

Message 4 of 10

yesid_anacona
Not applicable

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

6483-imagen-ayuda.jpg

0 Likes
Message 5 of 10

jeff_nordgren
Not applicable
@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
Message 6 of 10

yesid_anacona
Not applicable

6518-figura-1.jpg

6519-figura-2.jpg

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
0 Likes
Message 7 of 10

jeff_nordgren
Not applicable
@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
Message 8 of 10

yesid_anacona
Not applicable

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
Message 9 of 10

wang_z2
Not applicable

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
Message 10 of 10

Ben_WilsonADSK
Community Manager
Community Manager

@Wang Z2's question above is posted as its own question here:

https://answers.flexsim.com/questions/61513/stop-the-model-when-items-go-through-the-simulatio.html

It's generally not best practice to post a new, standalone question to a long-answered and dormant Q&A, unless it furthers the original conversation. Introduction of new questions to an answered Q&A should be avoided.

Please see this community's best practices for more tips.

0 Likes