question

Nicholas M avatar image
0 Likes"
Nicholas M asked Nicholas M edited

How to create alternate routes for different products?

I am pretty far with developing a model for a manufacturing line, and have had great success with importing 100+ unique parts and their routing into a global table (it is organized with their part number in the left column, and each following column being the next processor it is assigned to go to). Unfortunately due to IP I cannot post the actual file I'm working on.


My issue comes with certain part numbers being able to be run on a set of machines. Due to how I set all the routings up, the table only allows for one location per part. I had the idea to create a separate queue for these specific parts (for example; if Part #1 could go to either MachineA or MachineB depending on which is available, it will be sent to A_BQueue).

1642539385434.png


I'm not sure where to go from here to make the queue send items to their respective machines based on which is available. Should it involve a Conditional Send-to-Port using machine states? I am open to any suggestions!

FlexSim 21.1.5
global tablequeuerouting
1642539385434.png (3.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.

Jeanette F avatar image
1 Like"
Jeanette F answered Nicholas M edited

Hello @Nicholas M,

If you are wanting the Queue to send product based on availability then would setting the Send to Port to First Available work? If Machine A and Machine B are busy then the items stay in the Queue. Once, one of those machines is available the queue will send the item to it.

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

Nicholas M avatar image Nicholas M commented ·

Wow I was really overthinking this! Since all my routing logic was through the table, I had wrongly assumed that the Queues couldn't do anything. Setting the ports to Machine A and Machine B and making it First Available seems to have solved my dilemma. Thank you!

0 Likes 0 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Nicholas M commented

Try this approach

https://answers.flexsim.com/questions/106086/i-need-help-with-global-tables.html

instead of pointer or names I had suggested Output ports at this approach

But you can try to translate pointer into port numbers by array method indexOf, if you convert the outObjects property into an array.

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

Nicholas M avatar image Nicholas M commented ·
I may do this down the line when I want to grow the simulation to other areas, however at the moment Jeanette's answer is more in line with the current iteration. Thank you though!
0 Likes 0 ·