question

Saud A2 avatar image
0 Likes"
Saud A2 asked Joerg Vogel commented

Help in an Advance option for Separator

I have created 3 different sources, each labeled by numbers from 1 to 3, each have a different target quantity before the Combiner starts to operate:

My issue lies in when I need to unpack the item in the separator, I only know how to use the Round Robin method, is there any way to unpack and send each individual item to its rightful path?

The result of using the round-robin method made the items get separated randomly. For context, the target quantity for each item is 1 handler, 140 steel, and 3 wheels, and each has its own unique shape.

FlexSim 19.0.0
flexsim 19.0.0custom combinercustom seperatorcombine by quantityseperator by specific source
1617387507856.png (70.7 KiB)
1617388187638.png (296.7 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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

You need an attribute to distinguish between the different types, typically a number label. On Flow tab of the separator you can set a Send To property Port By Case. There you evaluate the label and set the output port number the item must be sent to.

· 5
5 |100000

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

Saud A2 avatar image Saud A2 commented ·

I managed to label the sources by numbers from 1 to 4, and i labeled the queue object that would receive the items from the separator also by numbers from 1 to 4 :

so if im correct, in the port section, numbering them like how i did means it will be sent to the ports respectivley from above from 1 to 4, what i cant figure out what i should type in the case setup and the case function.

This is how i did the labeling also:

0 Likes 0 ·
1617453069691.png (308.7 KiB)
1617453243834.png (323.8 KiB)
Joerg Vogel avatar image Joerg Vogel Saud A2 commented ·

Ok, perhaps you understand it better by a video.

Send to port by label.

getlabelnum(item,“port“) is now item.port
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Saud A2 commented ·

I recommend strongly you do some more tutorials, because there are only some topics you need to understand fully to build successfully models:

  • connections and edges,
  • labels at flowitems, tokens and objects,
  • send to port,
  • port numbering or their ranks, have you got right.
0 Likes 0 ·
Saud A2 avatar image Saud A2 Joerg Vogel commented ·
ill try to understand the video because I tried searching for videos that may be relevant to mine just could not find any, even this video is kind of not the type of "send to port" i need, in this video the source randomly assign items for value 1 or 2, and the belt sends items to either first or second belt, if I understood it correctly, in my case, the number label assigned should be singular item no either of two, and color option is not needed, and for the separator, while unpacking, I can use the same option which sends my expression?
0 Likes 0 ·
Show more comments