Flowitem distribution

Flowitem distribution

ngc_khanh_p
Not applicable
29 Views
4 Replies
Message 1 of 5

Flowitem distribution

ngc_khanh_p
Not applicable

[ FlexSim 20.1.3 ]

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


0 Likes
Accepted solutions (1)
30 Views
4 Replies
Replies (4)
Message 2 of 5

eric_m3
Not applicable
Accepted solution

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

0 Likes
Message 3 of 5

ngc_khanh_p
Not applicable

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
Message 4 of 5

moehlmann_fe
Observer
Observer

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
Message 5 of 5

ngc_khanh_p
Not applicable

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


0 Likes