question

yoni A avatar image
0 Likes"
yoni A asked Joshua S edited

flow by expression stopped by some reason

schedule.pngcontainers.png

I have the scheduled depicted below several item types, the items go thru a processor and then they are packed in two combiners 1 RH and 1 LH, after packed a container with each item type goes to a specific queue, item types 1.1,1.2,1.3,1.4 go to Altima right isde queue and items 2.1,2.2,2.3,2.4 go to altime left side queue as you can see in containers image the queues are filled, when the processor continues sending more item types based on the sequence 3.1, 4.1, 3.2,4.2, etc, the items stop being combined in the totes as you can see they start accumulating before the combiners. why did it work for the first 8 items types and not for the remaining?

FlexSim 18.2.2
flowitem
schedule.png (36.8 KiB)
containers.png (327.4 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.

Joshua S avatar image Joshua S commented ·

Could you upload your model so we can see the logic of the system?

0 Likes 0 ·
yoni A avatar image yoni A Joshua S commented ·
0 Likes 0 ·
molding-area.fsm (2.9 MiB)

1 Answer

·
Joshua S avatar image
1 Like"
Joshua S answered Joshua S edited

First there are errors being thrown because you didn't assign an item type to your totes that go through the RH/LH Side Mirrors, so they are going by default to their port 1.

So it is stopping because in Queue5, your Send To Port is sending to the port based of Item type. Since Ports are integers, it is converting your 2.1-2.4 Types to a whole number 2. so when you get to item types greater than 2, it stops because it doesn't have a port 3+ to send the items to.

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

yoni A avatar image yoni A commented ·

how do I cause the queue 5 to keep sending item types greater than 2 to the subsequent queues? @Joshua S

0 Likes 0 ·
Joshua S avatar image Joshua S yoni A commented ·

@yoni A

See if this change works for you, add this code to your send to Port expression

(item.Type+1)%2+1

0 Likes 0 ·
pic1.png (17.9 KiB)

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.