question

Claudia P3 avatar image
0 Likes"
Claudia P3 asked Sofia G21 commented

How to define the quantity of the combiner according to the type of container

I have 15 types of container that can enter to the combiner and pack the products. This containers have different capacity, so I need a custom quantity in the combiner according to the container (first port). It is possible?

FlexSim 21.2.2
combinerflowitemcustom combiner
5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Sofia G21 commented

The target quantity is defined by two nodes in the combiners tree. Those are the "componentlist" and "targetcomponentsum" nodes under "variables". The first contains the information how many items have to enter from each port (2-n), the second is the sum of those values.

1631810694397.png

You could change those in the entry trigger, when the container item enters the combiner. The following code works if there is only one port (rank 2) the items enter through. It sets the target quantity to be equal to the label "Capacity" on the container item.

1631810734175.png

CombinerTargetByContainerLabel.fsm


· 4
5 |100000

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

Claudia P3 avatar image Claudia P3 commented ·

Thank you so much Felix! it was just what i needed.

0 Likes 0 ·
Sofia G21 avatar image Sofia G21 commented ·
Hey @Felix Möhlmann , I see your response and it is very clear. However, I am curious... I only see in the Model tree, the two variables for items coming 'From Input Port 2'. How would you change the number of items coming from Port 1 (i.e. the number of containers)? Is that doable?
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Sofia G21 commented ·
No, it isn’t. Port one receives always only one container item.
0 Likes 0 ·
Sofia G21 avatar image Sofia G21 Joerg Vogel commented ·
Thanks Joerg! Appreciate the response.
0 Likes 0 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Claudia P3 commented

Sure, there is an optional property in the On Entry, that does this by a global table. The type label of the first entering item selects the column. The rows are containing the number of items belonging to your recipe. This property replaces the last recipe by the selected new combination.
The main function is in the combiners’ background to collect a total number of items entering the combiner through an entry port number greater than 1. What attributes the collected items have, doesn’t matter. It is only important how many items must enter through any port defined by the components list.

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

Claudia P3 avatar image Claudia P3 commented ·
Hi Joerg, thank you for your answer!
0 Likes 0 ·