question

Daniel C avatar image
0 Likes"
Daniel C asked Joshua S commented

Combining by Type and InputPort

I'd like to Combine a certain number of boxes to a pallet. The amount varies depending on the Type of the pallet (1, 2 or 3). In this example I have 12 different locations and I want the combiner to open a fix number of input ports. The amount depends on the pallet type (and the amount varies as well).

So for example. Type 1 pallet enter the combiner, it turns out this type needs 7 boxes (can be from 5 to 7 for this particular type). The combiner then needs to open 7 different ports to pull one box from each queue or pull 2 boxes from the same queue but the total for this entry stays the same, 7 boxes. How can it be done?

I have the hunch that by using the Update Combiner Component List can be done but I don't know for sure how to split this 7 entries between the 12 inputs i.e (1-1-1-0-0-1-0-1-1-0-0-1) or (1-2-0-0-0-1-0-1-2-0-0-0).

File example: cheat-depende-de-tipo-abre-racks.fsm

FlexSim 18.2.2
combinerportstype
· 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.

Daniel C avatar image Daniel C commented ·

Update 1: I manage to do the first part of the problem. It opens the port where the Update Combiner Component List has a value different than 0.

The last thing I'm missing is how to split the 5to7 entries between the 12 inputs I have i.e (1-1-1-0-0-1-0-1-1-0-0-1) or (1-2-0-0-0-1-0-1-2-0-0-0) and then changing with the next entry. The number for the entry means the quantity of parts I want to pull from each queue. The last entry for my combiner is always a value between 1 or 2 so that's not a problem.

open-ports-using-tables.fsm

0 Likes 0 ·
Joshua S avatar image Joshua S Daniel C commented ·

On your trigger for your combiner you could have it so it changes multiple entries in your table to duniform(0,max) based of the Type label of your pallet. That way you get your min and max.

0 Likes 0 ·

1 Answer

Joshua S avatar image
1 Like"
Joshua S answered

Here's an example, see if this helps.15040-cheat-depende-de-tipo-abre-racks-autosave.fsm


5 |100000

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