set max wait time for combiners

set max wait time for combiners

truc_c
Not applicable
15 Views
2 Replies
Message 1 of 3

set max wait time for combiners

truc_c
Not applicable

[ FlexSim 22.1.4 ]

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

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

moehlmann_fe
Observer
Observer
Accepted solution

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");
    treenode componentlist = Combiner.find(">variables/componentlist");
    treenode componentsum = Combiner.find(">variables/targetcomponentsum");
   
    componentlist.first.first.value = TypeQtys[2];
    componentsum.value = TypeQtys[2];
}

maxwaittime-combiner-fm.fsm

0 Likes
Message 3 of 3

jonah_kendellR47TC
Autodesk
Autodesk

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