question

Rafael Andrade avatar image
0 Likes"
Rafael Andrade asked Joerg Vogel answered

Processor pulls from some queues a list of items

How to make an order list from a processor using the INPUT option of FLOW ?. Example: 3 queues are connected to the processor, which pulls 2 elements of the input port1 (queue 1), 3 of the input port 2 (queue 2) and 1 of the input port 3 (queue 3) @Matthew Gillespie

Inside the model, there is a global table (item list) that shows the qty of items required by input port, according the item type that arrives to the combiner beyond the proccesor (the global table "item type" saves the item type number).

model-pull-item-list.fsm

FlexSim 18.2.2
processorlist pullinput port
· 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.

Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered Rafael Andrade commented
@Rafael Andrade

It seems you are trying to use a Processor object when you should be using a Combiner object. Attached is your model with the changes that I made. I added a new container flowitem that is produced from Source1. It is used to hold all the other flowitems collected from the queues. In the OnEntry trigger of Combiner1, is where you can specify the Global Table for the number of flowitems to enter from each input port based on the item type of the new container flowitem. In Source1, I create container flowitems with a Type from 1 to 3 (to match the number of columns in the Global Table).

Is this what you were looking to accomplish?

Thanks.

model-pull-item-list-jn1.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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

You are choosing in a down stream object of your flow the recipe which will be responsible for the order of items that you process in your up stream objects. As long as the recipe hasn't been chosen you have to prevent the upstream objects to do anything. After the recipe is set you choose the products you need to process in your up stream objects. Then you stop your up stream objects again until you know, which recipe is the next one. You can accelerate this if you know the order of recipes processed in your production line.

You copy the recipe of your recipe table to a partitioned list and you pull the list entry when a needed product enters your production line.

In other words you try to find a match of a product attribute that is on a partitioned recipe list with a product that is on list of available products in your queues. You batch the needed products and then you start the processing in the production line.

At combiner get Recipe > get number of products > setting needed attributes from the recipe> pull available items or mark them as unavailable> batch items > start processing > combine

5 |100000

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