question

Jose_francisco Co avatar image
0 Likes"
Jose_francisco Co asked Ryan Clark commented

Input in a combiner more than one type of a product from the same queue

In the example below it's exposed the main idea.

I want to make the combiner to pull different types of items from one queue.

combiner_example.fsm

FlexSim 21.2.4
combinercombiner itemtype
· 6
5 |100000

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

Begoña Espiñeira avatar image Begoña Espiñeira commented ·

Hi @Jose_francisco Co you are doing it rigth thing with the combiner, but you are changing the value of the label Type On Exit from the Queue2. If you want to change the color of the item depending on it Type label, you just have to apply the option of Color by case.

1639133342061.png

If that was not your doubt, can you explain it in more detail?

I hope it helps!

0 Likes 0 ·
1639133342061.png (9.4 KiB)
Jose_francisco Co avatar image Jose_francisco Co Begoña Espiñeira commented ·

My problem is on this exercise, in the final part where are the two combiners. Thank you both!

Combiner_problem.fsm

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann commented ·

You already have a working solution. But you overwrite the type value that gets assigned in the source with a random value in the exit trigger of the queue. If you remove that trigger you will see that the combiner pulls one item of each type (one through each port).

combiner-example_1.fsm

0 Likes 0 ·
Jose_francisco Co avatar image Jose_francisco Co Felix Möhlmann commented ·

My problem is on this exercise, in the final part where are the two combiners. Thank you both!

Combiner_problem.fsm

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Jose_francisco Co commented ·

In the first combiner ("chassi_travessa") you should use the "On Process Finish" trigger to update the type label. The "On Exit" trigger will only fire once the item is leaving the combiner, which won't happen because the second combiner doesn't pull it due to the wrong label.

"On Process Finish" is evaluated before any send to port or pull logic, so the item will have the correct type to be pulled when the condition is checked.

Also, I believe you mistyped in the pull requirement of the second combiner. Type 5 occurs twice and type 6 is missing.

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark commented ·

Hi @Jose_francisco Co, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their question. 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

A combiner only counts items. He can counts items individually by port. But as long as you don’t restrict item attributes to special ports, you can mix all item attributes from all ports. You restrict attributes mainly in Send to Port in objects releasing items to a combiner. You can pull into a combiner items by matching attributes.

5 |100000

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

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.