question

ADRIANA GL avatar image
0 Likes"
ADRIANA GL asked zacharyh commented

Sorting a labeled box ?

problema.pngIn my process i have two processors, 1 inspection and 2 adjustment. inspection sends 90 per cent of all boxes to a queue named accepted, then i have a queue to reject the other 10 per cent, it is connected to adjustment to re adjust but if it is rejected again, the box must go to a third queue named scrap.

FlexSim 19.1.0
sorting boxbox sorlabel arrangement
problema.png (43.2 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.

zacharyh avatar image
1 Like"
zacharyh answered

Create a label from at the Source so that it can keep track of being rejected. This label's value can be changed at the queue after being rejected. Write code in the processor that will look for the label "Rejected" and send it to port 3. (First create an 'A' Connection from inspeccion to scrap.)


5 |100000

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

ADRIANA GL avatar image
0 Likes"
ADRIANA GL answered zacharyh commented

thank you, and almost finished.

But now we must sort the boxes already labeled with value 1 and send 90 % of those already rejected ones to accepted and 10 % of those already rejected ones to scrap.

· 1
5 |100000

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

zacharyh avatar image zacharyh ♦ commented ·

You could reuse the Percentage code used on lines 15 thru 20 within the if statement on lines 9 thru 12, but make sure not to send to port 2 but rather to port 3.

0 Likes 0 ·

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.