question

joey avatar image
0 Likes"
joey asked Matthew Gillespie edited

Sort items that have the same type

Hello All !

As attached below ,Two different source send item to Queue1 ,Then Queue1 send to Racks.I want to set that items enter each Rack is the same type.Now the problem is items entered each Race are mixed type,there're both yellow and white boxes in single Race.

That is my sample model 90-autosave.fsm

Thanks,

FlexSim 17.1.6
sort
90-autosave.fsm (41.9 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.

Raja Sekaran avatar image
0 Likes"
Raja Sekaran answered tannerp commented

@joey S

In the attached model, I have set the "Type" label to the created items in OnCreation trigger of each source. Then I have used ByExpression in the Send To Port parameters in the Queue's flow property tab.

itemtype-support-1.fsm

Hope this helps,

Thanks


screenshot.png (21.8 KiB)
· 4
5 |100000

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

joey avatar image joey commented ·

Thanks for your helping .But I wonder when first two racks are fulled why Queue doesn't send boxes to rack 21 .What cause this? How can I solve ?

Thanks,

0 Likes 0 ·
tannerp avatar image tannerp joey commented ·

Hi @joey S,

The queue sends items to a rack based on the item type. The queue looks at what type of item it is, then matches that with the number of output port.

Rack 21 is connected to output port 3 and so Queue1 cannot send items to Rack 21 because there aren't any items that are Type 3.

If you wanted to send items to that rack, you'd have to either create Type 3 items or change your logic.

0 Likes 0 ·
output-port-3.png (43.1 KiB)
joey avatar image joey tannerp commented ·
@Tanner Poulton

Thanks for your detail explaining .In case If I still want Rack 21 can gets the boxes either type 1 or type 2 .How can I set that or change the logic ? Can you make a change to achieve this ?

Thanks,

0 Likes 0 ·
Show more comments
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

I would let the racks pull the items. When the first item of an empty rack is pulled, the item type value is stored to a label at the rack. Then the rack pulls only items matching this item type until the rack is empty again. Then the rack pulls every available item. This defines the next Type in the rack. And so on.

5 |100000

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