Select range of output ports based on item label value.

Select range of output ports based on item label value.

ABarranco
Not applicable
534 Views
2 Replies
Message 1 of 3

Select range of output ports based on item label value.

ABarranco
Not applicable

[ FlexSim 23.1.3 ]

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,

0 Likes
Accepted solutions (1)
535 Views
2 Replies
Replies (2)
Message 2 of 3

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

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

Message 3 of 3

ABarranco
Not applicable

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

0 Likes