question

Ngc_khanh P avatar image
0 Likes"
Ngc_khanh P asked Ngc_khanh P answered

Flowitem distribution

Hi All,

I'm facing a problem with the flowitem distribution.

FYI, the red and green item will go through 3 phases: green processor -> pink processor -> yellow processor. At most of the "out queues" (blue), the priority of the port connection is always the "in queue" within the same tower. If no queues are available, the robots will send the item to "BF for PMIC" queue.

The blue item will go through only 2 phases: green processor -> yellow processor. If no "in queues" are available, send the item to "BF for RF" queue.

The problem is after reaching the "out queue", the item doesn't go to the output port according to the connection order. For example, in the picture below, the red item is supposed to go to "in1_2" (same tower) but it's never. All the "in queues" in front of the pink processor are empty, but the item is sent to "BF for PMIC" queue, then sent back to "in1_2".

I'm not sure what is wrong with the model. I rlly appreciate u'all help. Thanks so muchhh!!

I've attached the model too.

Current state model.fsm


1639906894962.png


FlexSim 20.1.3
flowitemsend to portsend itemsport connection
5 |100000

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

Eric M avatar image
0 Likes"
Eric M answered Felix Möhlmann commented

Hi @Ngc_khanh P looks like your "Pending" labels are strings instead of numbers which is why you aren't getting the outcome you're expecting. The best thing to do would be to delete the existing "Pending" labels on the queues and replace them with a new "Pending" label that's a number label instead. That way your "Send to Port" code should work as expected.

1640038722310.png


1640038722310.png (9.0 KiB)
· 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.

Ngc_khanh P avatar image Ngc_khanh P commented ·

Hi @Eric M, I've changed to the number label but it only worked for the first item. Afterward, the same issue happens again :((

Current state model.fsm

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Ngc_khanh P commented ·

The trigger on the "in" queues is wrong. It needs to reset the "Pending" label on the queue (current), rather than the item.

1640269532206.png

0 Likes 0 ·
1640269532206.png (13.6 KiB)
Ngc_khanh P avatar image
0 Likes"
Ngc_khanh P answered

Hi all, the model works well now. Thanks so much for the help!!!


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.