question

Marcos MNA avatar image
0 Likes"
Marcos MNA asked Ben Wilson commented

Two Quality Controls in a process

Hi mates,

I want to create a process with 4 processors and 2 quality controls, 1 after the 2nd process and 1 at the end of the 4th process. How can I do to be able of detect "bad pieces" at those quality controls in order to send them to the 1st processor or to the 3rd depending on where this "bad piece" has been detected?

Thank you!

FlexSim 20.2.0
flexsim 20.2.0control pointsquality
· 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 @Marcos MNA, was Jörg Vogel'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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

Output ports are ordered by number. Send To Port function on Flow tab returns the number, where the item is going to leave the object. If you add a method to change this return value then you can send a part of your processed items to an output port which is connected to first or third processor. I suggest you set a label value at the items on Process Finish event trigger to distinguish which port the item is going to be released to, Send to Port function evaluates this label value and returns the output port number directly or by case.

· 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.

Marcos MNA avatar image Marcos MNA commented ·

Thank you for your answer. Maybe I have not explained my idea really well. I want to do two probabilistic quality controls after those processors and re-work those products in order to have them as "good products". I do not know how to add this "probability" and how to work with it. Thank you again!

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Marcos MNA commented ·

You described it very well. But maybe I had expected that you already know how to get discrete numbers from a statistical distribution. In your case I suggest you start with dempirical. If your output port one is connected to a next down stream processor then all good items must be returned to this output port number. If your upstream processor is connected to output port number two, all bad items are going to this port number.

0 Likes 0 ·