question

Filippo A avatar image
0 Likes"
Filippo A asked Filippo A commented

Is it possible to combine by different quantities?

Hi everyone,

I have a process where, for each arrival are created more than 1 flowitem (defined in Source Arrival Schedule - Quantity) and they are set in a queue after creation.

After the queue i placed a combiner, because i would like to combine all those items that are defined with the same Order in Source's Arrival Schedule.

Once the same order's items are combined i would like them to flow on a processor with a cycle time that varies accordingly to the ItemName as well defined in Source Arrival Schedule.

So now my questions are:

1. Is it possible to combine different flowitems belonging to the same "Order" from a single input?

2.How can i define a Process Time for the Processor1 that varies accordingly to the item Type and Quantity?

I tried to define three different Process Times PROCESSTIME in a global macros respectively for Type 1, 2 and 3) but I don't know how to how to allocate them properly. I thought about using a for {if{..}...} but it didn't work.

(i.e. Process Time = PROCESSTIME * item.Quantity, where process time gets first the Type to access correctly.)

Thank you very much.

I'm uploading here below the model i have

split-and-combine.fsm

combinerseparator
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

José Antonio MD avatar image
1 Like"
José Antonio MD answered Filippo A commented

12838-split-and-combine-solution.fsm

Hello @Filippo A,

I attached a model with the solution.

You can't create a combiner connected to a single port if you want to do something especial (in the manual it explains).

You should use two ports and play with the amount of the second (Combiner>Properties>Triggers>On Entry).

The Quantity is referred to the number of items that are created in a Source, so I created another label called "Option".

I have define the process time with a "By case", I think it is much simpler for your case.

I hope I've been helpful.


· 6
5 |100000

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