Hello everyone,
I am working on a model of production of three different products. I am trying to keep it simple for now so the products are different only by the color of the Pallet. All the process is actually done but I am struggling at the end to simulate the client section and the orders. For the client I created a random number generator that will create a box that will eventually match with the Pallet from before and then I want to move the client´s box and the product with the same color to another queue.
What I am trying to achieve is a system that on the left produces continuously a set of a Pallet and 4 boxes and on the right, continuously again, random boxes of different colors. Then a third section where the boxes on the right can be matched with the available products on the left and be transported to a queue below them.
The process of creating the products is done and the random box generator is done also but I am having trouble managing to match the boxes and moving the products to the queue below. I tried to use a conditional port and some custom code but it wasn´t successful.
Does anybody have some idea of how can I achieve this? Maybe my explanation was not very good so in case of any doubts I would be happy to explained myself better.
I attached the model in this post