question

Julian R2 avatar image
0 Likes"
Julian R2 asked Ben Wilson commented

If-then-else - conveyor decision point

Hey,

I´m a beginner in FlexSim and I'm modeling a conveyor system. I defined a label for my two types of boxes. First type has value set on "1", second type on "2".

In one decision point, 89% of my boxes with value "1" and 57% of my boxes with value "2" should be separate on another conveyor.
My idea was to create something like a "if-then-else"-logic like:

"If item.Kartonytyp==1, bernoulli(89,1,0)

else bernoulli(57,1,0)"

I´m absolutely not sure about the syntax. Can anyone help me with that or does anyone have a better solution for that?

Thanks!

Julian

FlexSim 18.1.1
conveyorifelsethen
· 5
5 |100000

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

David Seo avatar image David Seo commented ·

Upload your model to your question.

0 Likes 0 ·
AI-curry avatar image AI-curry commented ·

This is the model I made with version 2016.2, I hope it can help you

v20162.fsm

0 Likes 0 ·
v20162.fsm (36.4 KiB)
David Seo avatar image David Seo commented ·

@AI-curry

Your model looks good result but it is difficult to check if it is right. So I changed your model so easy checking it as visual.

I added one decision point and then changed source and DPs trigger.

v20162-seo.fsm

Why did you upload it as 2016? Do you use 2018 up 1? Anyway I uploaded it as 2016 version for you.

0 Likes 0 ·
v20162-seo.fsm (19.0 KiB)
AI-curry avatar image AI-curry commented ·

Bingo!!! you know how to solve my problem well

0 Likes 0 ·
Julian R2 avatar image Julian R2 commented ·

Hey,
thank you for your answers!

Maybe I need to be more precise....and this time I uploaded my model.

I have three sources - one of them produces boxes with Label (Label Name is "Kartontyp) "1", the others produces boxes with label "2".

In the first decision point, 89% of the boxes with value "1" and 57% of my boxes with value "2" should be separate on another conveyor line.

It does not work and I don´t know why.

Thank you so much for your help!

0 Likes 0 ·
kartonage.fsm (58.5 KiB)

1 Answer

·
David Seo avatar image
0 Likes"
David Seo answered Ben Wilson commented

@Julian R2

You should connect the conveyors with accuracy. If they are connected with accuracy, the rectangular small box remark appears in connected point and the decision point object should be drag and dropped on the conveyors. They also show the cross line in the center and so the decision point is valid.

Your model looks like good. I did not look carefully other parts and only fixed the curved conveyor and decision point and the positions of them.

14304-kartonage-seo.fsm


· 3
5 |100000

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

Julian R2 avatar image Julian R2 commented ·

@david.seo - tank you with that!


Could you also help me with the rest? In your model, ALL bigger boxes (Label value "1") change on the other line. I need a trigger that defines that 89% of them change.

I tried to describe the logic like "If the item Label value is 1, then bernoulli (89,1,0)". The other case is, that the box has value "2". And that case 53% of the boxes should change the line.
I have no clue how to combine these to functions

Do you know what I mean?

0 Likes 0 ·
David Seo avatar image David Seo Julian R2 commented ·

Your previous question is same with this. Then I upgraded the model to this. Please study the model of v20162-seo.fsm. This model has the answer of your issue.

1) set a label like 'part' to TWO box and and set the bigger box's part label to '2' and small box to '1'.

2) in the case of 'part' == 1, Type = bernoulli (53, 1, 2)

3) in the case of part == 2, Type = bernoulli(89, 1, 2)

4) send to port according to the Type value.

You can do it!

1 Like 1 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Julian R2,

Were you able to resolve your question? If David's help and advice were able to solve your problem, please Accept his answer above.

Or if you have any follow-up questions, please comment back.

Thanks

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.