question

Dewriffic16 avatar image
0 Likes"
Dewriffic16 asked Dewriffic16 commented

switch separator to unpack in FIFO order (vs default)

In the details for the separator it states:

Unpacking Order

When the Separator is in unpack mode, it unpacks the container flow item from back-to-front, meaning it pulls the last item in the container out first, then the second to last, and so on. If you want flow items to be unpacked out in a certain order, then set their rank in the entry trigger.

I'm interested in doing the steps highlighted in green but I'm not sure if this needs to be done at the combiner or at the separator itself? Is this done via a label I have to make, or is there some other easier method? Any help on this would be great, I'm just looking to unpack the item that was packed first (maintain FIFO in and out of a tote.

Thanks in advance!

FlexSim 22.0.16
combinerseperatorfifo
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
1 Like"
Felix Möhlmann answered Dewriffic16 commented

You can use a simple for-loop to reverse the order of items in the tote in the tree.

for(int i = 2; i <= item.subnodes.length; i++)
{     item.subnodes[i].rank = 1; }

This can in theory be done at any point between the combiner having received all items and the separator finishing its process. The separator's entry trigger is a good choice.

separator_fifo.fsm


separator-fifo.fsm (28.1 KiB)
· 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.

Dewriffic16 avatar image Dewriffic16 commented ·
Thank you! This should work perfect.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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