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:

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.

Joerg Vogel avatar image Joerg Vogel commented ·

@Wang Z2,you know when the rack is full. Then you send a delayed message. The receiving object stops the model.

0 Likes 0 ·
Wang Z2 avatar image Wang Z2 Joerg Vogel commented ·

Thanks,But

It’s not that the model is stopped after the rack is full. I want to stop the model when the warehousing task is completed(items all entry the rack).

0 Likes 0 ·

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.

Wang Z2 avatar image Wang Z2 commented ·

The number of my items is uncertain,so, I can't set a trigger that listens to the content of the rack.

I tried the trigger "On Finish Task",but it didn't work,The AGV triggers the trigger command before the task is completed.

And can you describe the second solution? I don't understand very well.I have two AGV ,each of them use the same processing flow ,so I don't know how to set it.

0 Likes 0 ·
tannerp avatar image tannerp Wang Z2 commented ·

After reviewing your question, I realized that what you're looking for happens automatically. When all the items have moved through the model, the model stops on its own. In your model, this happens at time 118.27.

Is there something different you'd like to happen?

2 Likes 2 ·