question

Carlos C18 avatar image
0 Likes"
Carlos C18 asked Carlos C18 commented

Combiner by label


Hi ! I'm in trouble...

This is my model, Through the first processor GM there are 2 types of flow items (Label 1,2), through the second P there is just one (Label 3), In the Combiner I need to pick any item type from any of the processors and add just one element from the source attached. ( Flow items from the processors never join) I tried to use a Global Table with the "Update Combiner Component List" Trigger on Entry, but since the source is always available I can't read its label to make sure that it will be always be joined with one of any of the other Flow items.

What can I do ?

Sorry if this is a silly question! I'm just a newbie.

(Sorry for my english)

Thanks! I would provide any extra info if needed.

PROYECTO FINAL.fsm


FlexSim 20.2.1
global tablecombinerflexsim 20.2.1combiner itemtype
1600527747053.png (373.0 KiB)
1600528748101.png (70.9 KiB)
proyecto-final.fsm (74.3 KiB)
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Carlos C18 commented

You need not the table row named "Type". Please erase this row completely.

Replace the source at input port 1 of the combiner with a queue. Create an item in this queue, whenever an item finishes processing in the processors GM and P. This item must have a label called Type to change the recipe of the combiner. I have done this with a source code in the On Process Finish trigger of the processors.

Object container = createcopy(Model.find("Tools/FlowItemBin/Pallet/Pallet"),model());
container.labels.assert("Type",item.Type);
moveobject(container,Model.find("Queue2")); 

proyecto-final-jv.fsm

Version 20.1


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

Carlos C18 avatar image Carlos C18 commented ·
Thanks! Works perfect !
0 Likes 0 ·