question

Wang Z2 avatar image
0 Likes"
Wang Z2 asked tannerp answered

stop the model when items go through the simulation

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:

  1. stop();

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

It's my model,thanks for your help!stock-in.fsm

FlexSim 18.2.2
process flowstop model
stock-in.fsm (107.0 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.

1 Answer

tannerp avatar image
0 Likes"
tannerp answered

If you are using an operator or AGV, you could maybe use the trigger called, "On Finish Task."

Otherwise, it appears that you're pulling tasks, so whenever you push the completed task back to the list, you could use the stop() command then.

Or, like @Jörg Vogel explained, if you know how many items need to enter the rack, you can set a trigger that listens to the content of the rack. For example, when the rack reaches 150 items, the trigger will fire and stop the model.

· 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.