question

John M12 avatar image
0 Likes"
John M12 asked Ben Wilson commented

How to create two labels with bernoulli in a processor

Hello community,

I am working on a project, which has following permissons: I have three processor (they working paralell). Afterwards all boxes are landes in one que and will be checked by a processor "quality checked". 20% (bernoulli) will be going back to the first que and the rest will move forward.


My question is how could install the labels in the processor and how can i say that just the "right" parcell moving forward and the "broken" boxes will go back.


Please see in the file my current project. production.fsm

FlexSim 20.2.1
flexsim 20.2.1set label
production.fsm (28.1 KiB)
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @John M12, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button on 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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

You can use by percentage on the send to port and change the connections to match your description. (model with changes attached).

production_jl.fsm


1605988762358.png (14.4 KiB)
production-jl.fsm (27.3 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.

John M12 avatar image John M12 commented ·

But how can I do it with Bernoull?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ John M12 commented ·
return bernoulli(80,1,2,getstream(current));

or direct in the field

bernoulli(80,1,2,getstream(current))

Model attached.production_jl2.fsm

0 Likes 0 ·
production-jl2.fsm (27.2 KiB)

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.