question

Chitra J avatar image
0 Likes"
Chitra J asked Joerg Vogel answered

How to send same itemtype to more than one queues if first queue is full?

I want to send items to multiple queues based on their type.

Also I want to allocate multiple destinations for one type of item which can be send on first available basis. but it should be send to first destination until it is full then should be send to next to second queues.

Sent_to_Port_by_Case.fsm

Attached model generates 3 type of parts.

  1. Type 1 should be sent to Queue 1. When Queue 1 is full it should be sent to Queue 1_2.and when Queue 1_2 is full it should be sent to Queue 1_3
  2. Type 2 should be sent to Queue 2.
  3. Type 3 should be sent to Queue 3

Help to achieve this routing using operator

FlexSim 21.0.2
flexsim 21.0.2send to port
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

You can build a source code or logic for this. But in my opinion that involves to much work.

You place another queue (A) at port 1. This queue (A) has got a capacity of 1 and the output ports are connected to Queue1, Queue1_2 and Queue1_3 In this order. Queue (A) is set to send items by first available port. It is the default option. The Queue (A) will distribute items as you describe it above.

5 |100000

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

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.