Update combiner target quantity by code, when the last item of one type entries

Update combiner target quantity by code, when the last item of one type entries

victor_alejandro_ht
Not applicable
16 Views
2 Replies
Message 1 of 3

Update combiner target quantity by code, when the last item of one type entries

victor_alejandro_ht
Not applicable

[ FlexSim 18.2.3 ]

Hello all,

In my model I have a production plan assigned to a source.

21120-items.png

I have 2 production lines made of 1 processor and 1 combiner. The combiner component list target quantity updates every time an item entries the combiner, I need different component combiner quantities based on item.type defined in a global table (The components come from the input port 2, the item.Typle label is attached to the boxes not the pallet I need it in that way). I made this with code in the on entry trigger of the combiners.

21121-batch-type-table.png

I need that when the last item of an item type entries the combiner, this starts processing no matter if the target quantity is not reached yet. I need it because I can not mixed different item types in one single pallet. Right now my model mixes different item types in one pallet as shown in the image.

21123-combiners.png

How can I do that? I have tried inserting queues before combiner and using the on end collecting triggers but it is not what I am looking for. Any suggestion/solution is welcomed I attached the model.

combiner-component-list-by-item-type.fsm

Thanks in advance.

Alejandro

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

zac_higleyQBKLZ
Autodesk
Autodesk
Accepted solution

@Victor Alejandro HT

I believe I may have accomplished what you are looking for by adding a Global Table with the quantities that the source is outputting. Then referencing that table at an On Exit trigger at the processors and also within another if statement at the On Entry triggers at the Combiners. Take a look and let me know if this is what you were wanting.

combiner-component-list-by-item-type.fsm

Message 3 of 3

victor_alejandro_ht
Not applicable

Thank you very much @Zac H this works well.

0 Likes