question

ABarranco avatar image
0 Likes"
ABarranco asked ABarranco commented

Select range of output ports based on item label value.

Hi, I would need some help with this model as I can't get it to work correctly.


I need products to flow to a group of machines based on the value of a label.

flexsimquestion-2.png

With the statement "case" I have been able to do this by selecting specific ports, but I would need a similar logic that allows me to select a range of ports.


I have tried to do some code in FlexScript but it does not work correctly as it does not handle correctly the situation where all the ports in the range are not available.


To use intermediate buffers is not an option because I don't want to add extra WIP to the model.


Regards,

FlexSim 23.1.3
conditional 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

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered ABarranco commented

Sadly there isn't an easy way to get a "First Available out of X" functionality in the Send to Port option. What you can do however, is to utilize the Pull option on the downstream processors. Processor0 would just be set to "First Available" and you define Pull Requirements on the other processors that only allow them to pull the correct types of items.

capture1.png


capture1.png (7.3 KiB)
· 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.

ABarranco avatar image ABarranco commented ·

Thank you, it works perfectly like that, I hadn't thought about it the other way round.

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.