question

Cyrine S avatar image
0 Likes"
Cyrine S asked Clair A commented

Send items to ports according to 300 types

Hi ALL! I want to send items (i have 300 type of items) from a conveyor to 10 different Queues according to their types (maximum content of a queue is 16). Example : If I have 13 items on my conveyor with the types : (1,2,3,4,5,60,80,260,200,160,30,50,60) I want to send the 10 first items to 10 different queues and then send the 2 items type 30 and 50 to a tampon queue so that I dont block the conveyor and then put the item number 13 (type 60) in the queue number 6. Items are released from the queues if a variable called "last one" (an item variable =0 or =1) is equal to 1. The empty queu is then ready to receive the next available (on the conveyor) type of item.

Do youy please have any ideas how to realize this?

Thank you in advance.

FlexSim 18.0.10
queuesportssortsend itemsby expression
· 2
5 |100000

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

Clair A avatar image Clair A commented ·

Could you please attach a sample model to illustrate your question ? Even if the model is not working, we could use it as a starting point to better understand where you are blocked and help you.

0 Likes 0 ·
Cyrine S avatar image Cyrine S Clair A commented ·

Thank you for your response. Here is my model for a better understanding modelv2.fsm

0 Likes 0 ·
modelv2.fsm (563.9 KiB)

1 Answer

·
Clair A avatar image
0 Likes"
Clair A answered Clair A commented

Thanks for the model @Cyrine S this was helpful to better understand your question.

I think that a starting point to solve your question would be to use the pick option Matching Item Types in the ExitTransfer.

In the attached model 2019-07-30-matching-item-types.fsm, the 10 first products are dispatched to the 10 first queues. Queue 6 received one more product of type 60.

In the last line of the code behind the Matching Item Types option, I typed:

return 11;

This sends to the output port 11 (Queue11) all items which did not find a queue with a matching item type, ie in this example products from types 30 and 50.


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

Cyrine S avatar image Cyrine S commented ·

@Clair A Thank you very much for your response. This works very will to dispatch items to the different queus, but when i used the same logic to dispatch items from the Queue11 to the other queues later-on to match item type, I remarked that different item types are being dispatched to same queue.. Do you have any idea where this comes from ?

Thank you in advance for your response.

0 Likes 0 ·
Clair A avatar image Clair A Cyrine S commented ·

Can you attach your modified model please ?

0 Likes 0 ·
Cyrine S avatar image Cyrine S Clair A commented ·
0 Likes 0 ·
Show more comments

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.