question

Sachin T avatar image
0 Likes"
Sachin T asked Felix Möhlmann answered

toggle SLUG on-off dynamically based on conditions.

SLUG on off.fsmhello,


I am trying to toggle the slug building on and off based on certain conditions. its working for first few instances and then not working. Can you please help? attaching a small model.

FlexSim 23.2.2
slug buildingtoggle slugs
slug-on-off.fsm (44.2 KiB)
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

I doubt changing the slug building mode during the runtime is properly supported. It might be fine if it's done while the conveyor is empty. But turning the slug building off while there is a slug waiting will very likely always break the logic.

You might have more success by implementing your own custom slug building logic (Process Flow is probably easiest). You can use a decision point or photo eye as the point where the items wait, and stop arriving items depending on the current mode. Then use the "On Item Bump" event in Wait for Event or Event-Triggered Sources to collect a slug.

5 |100000

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