question

Monte123 avatar image
0 Likes"
Monte123 asked Monte123 commented

Sequencing Mixed-Entry Products

Hello,

I’m simulating a production line where some products start at Processor 1 and others join the flow mid-process at Processor 2. All tokens are released simultaneously at time 0 from a Scheduled Source, but I need to enforce the following sequence:

Processor 2 entrants

  • I split the flow in a Decide block: products that start mid-process bypass Processor 1 and go directly to Processor 2.
  • However, these mid-process products must wait and only enter Processor 2 after the first (Processor1) product has arrived in InQueue2 (the queue for Processor 2).

My goal is to respect the original schedule order—releasing all tokens at once, but then gating them so:

  • Type A products enter Processor 1 one by one,
  • Type B products enter Processor 2 one by one, only after the preceding Type A or Type B product reaches InQueue2.


How can I set up my Process Flow, so that both routes maintain the correct sequence?
Mixed-Entry Products.fsm

FlexSim 24.2.1
schedule sourcesequenceroutes
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 Monte123 commented

My idea would be to have the tokens wait until a variable assumes a specific value (matching BatchID for example). Setting the variable to these values could be done by the "main"-tokens. In the attached model they enter a zone one-by-one, set the variable to their batchID and then wait until all their child tokens have passed the 'gate' activity.

mixed-entry-products-fm.fsm


· 3
5 |100000

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

Monte123 avatar image Monte123 commented ·

Hi @Felix Möhlmann ,

Thank you so much for your help! I was able to implement your suggestion into my simulation, and it worked exactly as intended. However, after making these changes, I ran into a new issue.

At some point during the simulation, it suddenly stops running and closes by itself before reaching the end. Do you have any idea what might be causing this? And how could I go about troubleshooting or fixing it?


new-innision-simulering-2_autosave - Copy - Copy_autosave_recovery_autosave.fsm

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Monte123 commented ·

I would suggest you start by fixing the plethora of small issues that cause all the error messages in your model. ;)

- The "Change Visual" activities in blue still have a for-loop despite only one item being created.

- The setup time in "Lakk_Støp" uses a label called "OPLAKK/STOP1". Due to the "/" you have to use the alternate syntax to read this label. Otherwise it gets interpreted as a mathematical operator. ("item.labels["OPLAKK/STOP1"].value")

- The rest seem to be wrong table/label names in various "Assign Label" activities and processing/setup times.

0 Likes 0 ·
Monte123 avatar image Monte123 Felix Möhlmann commented ·

It worked! Simply fixing the Change Visual function solved the problem. I’ll continue working on the next issues. Thank you so much for your help!

0 Likes 0 ·