question

Monte123 avatar image
0 Likes"
Monte123 asked Monte123 commented

Consecutive Product Skipping Process After “Move Object” in Simulation

new-innision-simulering-2_autosave - Copy - Copy_autosave_recovery_autosave.fsm
Hi everyone,

I’m working on a simulation that handles multiple products, each following different routes. I’ve encountered an issue with a specific product type: during one of the processes, I use a “move object” function to direct the product to the correct process. However, in some cases, the subsequent product (the one that enters the system right after) skips its intended process step and instead follows along with the first product. This behavior is particularly noticeable when going through OFM 2 with the first two products.

I’ve tried using zones to solve this problem, but it hasn’t worked so far. Any guidance or suggestions on how to address this would be greatly appreciated.

Thank you in advance for your help!
new-innision-simulering-2_autosave - Copy - Copy_autosave_recovery_autosave.fsm

FlexSim 24.2.1
moveobjectzones
· 1
5 |100000

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

Lars Jacobsen avatar image Lars Jacobsen commented ·
Please add a screenshot where you highlight the problem area
0 Likes 0 ·

1 Answer

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

When the previous batch exits the AOI2 zone, it has not yet vacated the output queue. The movement of the two batches happens in parallel. Because the Wait for Event activity waits for the content to arrive at the target value, it also triggers when the content decreases to that value. So because the first batch is larger than the second, the token is released prematurely while the previous batch is exiting.

capture1.png

There are multiple options of how to fix this: Have the previous batch exit the queue before it exits the zone (which is what I though was your goal). Or change the Wait for Event activity to only trigger when the content increases to the target value. Or use a different entirely, namely the entry of the last item in the batch into the queue.

In you current Process Flow the tokens first have to enter the AOI zones before they exit the OFM zones. Later on they exit the zone as soon as the process finishes though. You should maybe streamline this so the behaviour is always the same (?)

The issue with exiting the previous zone only after a token entered the next one is that the zone needs to "remember" what the previous zone was. I build an example to showcase how this could work. In it I also use a single zone with partitions instead of multiple zone activities. This allows to use the same activity block for each station as a subflow.

batch-processing-1.fsm

In the second version below, the tokens exit the zone as soon as the batch is processed and don't wait until they can move on. This simplifies the logic, but allows the case the multiple different batches can be present in an output queue at the same time (see OutQueue2).

batch-processing-2.fsm


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

I used the second version in my current simulation, and it worked perfectly! I attached my simulation to show how I integrated it. Next, I plan to continue with the third version you mentioned in another question.

Thank you again Felix for all your help—I really appreciate it!
new-innision-simulering-2_autosave - Copy - Copy_autosave_recovery_autosave.fsm

0 Likes 0 ·