question

Victor Alejandro HT avatar image
0 Likes"
Victor Alejandro HT asked Victor Alejandro HT commented

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

Hello all,

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

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.

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.

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

FlexSim 18.2.3
combinercodingcomponent list
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

·
zacharyh avatar image
1 Like"
zacharyh answered Victor Alejandro HT commented

@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


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

Victor Alejandro HT avatar image Victor Alejandro HT commented ·

Thank you very much @Zac H this works well.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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