question

Truc C avatar image
0 Likes"
Truc C asked Jonah K commented

set max wait time for combiners

Hi all,

I want to set max wait time for combiner so that if wait time higher than 35s, the container will go.

I tried to set process flow and it's oke but the Combiner didn't stop, then cause so many blank container.

Can anyone help me to stop releasing the container if there is no more token?

By the way, is there any faster way to set if I have 7 combiners = 7 item type and each type have specific qty packed in combiners?

Hope anyone can help.

Thank you so much.

maxwaittime_combiner.fsm

1683266939744.png

FlexSim 22.1.4
combinerstopmax wait timer
· 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.

Jonah K avatar image Jonah K ♦ commented ·

Hi @Truc C, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Would it be an option to wait until the first item has entered through port 2 before the wait time starts? That way, no empty totes would be released.

The component list of the combiners is saved in its attribute nodes. You can set those using code but you need some way to know which combiner belongs to what type/quantity. (You can find the necessary code in the Entry trigger option that changes the components based on the type of the container item.

capture1.png

capture2.png

The code below assigns values from a global table to the combiners in the order in which they appear in the Combiner group for example.

Table TypeQtys = Table("TypeQtys");
for(int i = 1; i <= Group("Combiner").length; i++)
{
    Object Combiner = Group("Combiner")[i];
    treenode componentlist = Combiner.find(">variables/componentlist");
    treenode componentsum = Combiner.find(">variables/targetcomponentsum");
   
    componentlist.first.first.value = TypeQtys[i][2];
    componentsum.value = TypeQtys[i][2];
}

maxwaittime-combiner-fm.fsm


capture1.png (7.8 KiB)
capture2.png (1.5 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.