question

Muneer I avatar image
0 Likes"
Muneer I asked Jeff Nordgren commented

decision point : Item with multi labels to achieve one decision,

3.fsmAt the decision point DP1 the item has to achieve the following conditions in regards to the item will level the conveyor loop.

  • Item with Labels
    • Item.Type == 1 and Item.Loop == 3 // Then the item leave DP1 to sink and the rest of the item stay in the loop
    • Item Type == 2 and Item.Loop == 6 // Then the item leave DP1 to sink and the rest of the item stay in the loop
FlexSim 20.2.1
decision pointsflexsim 20.2.1
3.png (574.1 KiB)
3.fsm (87.2 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.

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Jeff Nordgren commented

@muneer.i,

Attached is your model with the changes that I've made. I changed the Decision Point Type code on DP1. That was pretty much it. I believe it is working as you describe now.

Take a look at the model and see if something like this would work for your particular situation. If you have any questions or problems, please let us know.

Thanks.

3-JN1.fsm


3-jn1.fsm (85.5 KiB)
· 2
5 |100000

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

Muneer I avatar image Muneer I commented ·

Thank you, @jeff.nordgren

it will be great support finding a solution for the following case

the system will be block with the item and I would like to stop and delay loading the items to the system when rack 1 and rack 2 reaching a capacity of 70% or any condition avoiding blocking the system.

keep me posted

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren Muneer I commented ·

@muneer.i,

I'm not sure I understand what you are wanting in your last question. It is a question, right? I'm not exactly sure what you are asking.

The reason the model stops (Sources becoming blocked) is because of your code in the OnCreation triggers of both of your Sources. When the Sources reach a certain output number, they are stopped from outputting any more flowitems. Is this the blockage that you are referring to?

Thanks.

0 Likes 0 ·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

If I understand what you're trying to do you just need to change the code in the On Arrival trigger of DP1 to be like this:

if (item.Type == 1 && item.Loop == 3 || item.Type == 2 && item.Loop == 6) {
    Conveyor.sendItem(item, current.outObjects[2]); // Exit Loop
} else {
    Conveyor.sendItem(item, current.outObjects[1]); // Stay In Loop
}

3_1.fsm


3-1.fsm (101.8 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.