question

Aaupadhye avatar image
0 Likes"
Aaupadhye asked Natalie White commented

Combiner target quantity taking variable quantity of items from two queues?

Hi all,


I was wondering how I would be able to update the combiner components list dynamically based off of how many items are in a specific queue. For example, if 5 items are routed to the queue, I want the combiner to have a target quantity of 5 items before it is passed through. If 7 items are routed to the queue, I want 7 items to be the target quantity. I tried using global table to accomplish this but either I completely misinterpreted how to use it or it is the wrong solution to this problem. Any help would be appreciated. For reference, I always want one box and x clothes items (spheres) in my model. I will attach my model.


WCOC Simulation Project.fsm

FlexSim 23.0.8
combinertarget quantity
· 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.

Natalie White avatar image Natalie White commented ·

Hi @Aaupadhye, was Julie Weller's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Julie Weller avatar image
0 Likes"
Julie Weller answered Julie Weller commented

Hi @Aaupadhye! I took a look at this and the best (and likely only) way to do it would be to swap your combiner with a processor and use process flow! Here's a few posts that can help explain more about why that is and other methods of achieving your end goal:
https://answers.flexsim.com/questions/38747/how-to-update-the-combine-based-on-the-output-quan.html

https://answers.flexsim.com/articles/133869/example-model-opportunistic-combiner-process-no-po.html

I ended up just doing a simple list. On your Packing Station A I disconnected the 'A' connection (so if you still wanted to use the operator to transport you would need to add a task sequence) and swapped the combiner for a processor.

Next I had all items that arrived at the Packing Station A get pushed onto a new global list that I made called ClothingItems using the On Entry trigger like this:

1687364682451.png

After that in process flow I added an Event Triggered Source activity that was triggered by a pallet entering the new processor (also I swapped your boxes for a pallet just because pallet and totes's are packable/combinable but boxes aren't). In that source I assigned a new label to that token called pallet (this allows us to reference the pallet location later on):

1687364827499.png

I created a Global Table that just has this code snippet in it:

1687364876124.png

This allows us to get the current number of items in the queue to combine.

I then pulled from the ClothingItems list and referenced that table like so:

1687364945960.png

It's important to use a Max Wait time on this activity because it allows the pallets (which are doing the pulling so to speak) to move on if there's nothing to pull. Which is the same reason I changed the destination on the trigger for the time to send those tokens straight to a sink (destination #2)

1687365007596.png

Then I moved the token(s) I pulled into the pallet that was assigned at the beginning.

I may have messed up your Packing Station B logic so you might want to look at it, but here's the whole model!

wcoc-simulation-project (2).fsm

Does that answer your question?


· 8
5 |100000

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

Aaupadhye avatar image Aaupadhye commented ·
Hi Julie, this was great! I am also curious about the "task sequence" that you mentioned. If I wanted the operator to take each individual item from Packing station A and put it on the pallet before it is ready to be sent out, how would I do this?
0 Likes 0 ·
Aaupadhye avatar image Aaupadhye Aaupadhye commented ·
Just wanted to add, I want the pallets to stay in packing station B and have the operator only bring one of them to the processor, and after that have the operator then individually take the items from packing station A to the processor to be joined with the pallet and have the operator return back to their original position after all clothing items are combined with the pallet.
0 Likes 0 ·
Julie Weller avatar image Julie Weller Aaupadhye commented ·

Hmm for that I would probably just work through the task sequence tutorial. They're pretty easy to implement and that would probably give you the most detailed explanation!

https://docs.flexsim.com/en/23.1/Tutorials/ProcessFlow/Tutorial2TaskSequences/TaskSequencesOverview/TaskSequencesOverview.html

0 Likes 0 ·
Show more comments