question

Łukasz E avatar image
0 Likes"
Łukasz E asked Łukasz E commented

Pull from one queue to combiner based on a GlobalTable

I want to pull different type of items from one queue on a combiner.

I know I have to use the trigger update combiner component list. Also I know that I can use many queues - one for each item Type. And I know I can use many ports from 1 queue to combiner. But it is annoying, because I will have 100 or maybe 1000 item Types. And one small change with one item Type will destroy the model.

So I have to have 1 queue for all item Types.

And I think:

I have to have the trigger update the component list on combiner. To search for the acquired column in GlobalTable.

Then I think I have to have the pull strategy to pull it from one queue. Mamy I have to use global variables for each item Type?

so for example:
pallet Type 10 enter the combiner -> search in global table for components, and there is info:
2x: item Type 5
7x: item Type 48
1x: item Type 159
So pull these items from items queue, if there is no item of this type wait until it appears on the queue.

I will be really gratefull for your help

I tried to do it like this:

one-combiner-one-queue-pull-from-global-table.fsm

FlexSim 19.1.2
queuecombinerflexsim 19.1.2pullglobaltable
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 Łukasz E commented

The attached model updates the number of total items of a recipe. Then it creates an array of types for this recipe. Each element is one type of one item to be pulled.

A queue is an unlimited source of available different types of items for every recipe. Whenever a Type is sent, the same Type is replaced.

Runtime problems are resolved by diverting functions over some triggers and messages.

Recipes are columns of a global table.

update_component_list_total_and_Pulling_items_of recipe.fsm


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

Łukasz E avatar image Łukasz E commented ·

Wow! thank you very much!

0 Likes 0 ·
Aida Chaikh avatar image
0 Likes"
Aida Chaikh answered

Hello @Łukasz E,

If you use a GlobalTable to combine items with different types, you need to have one input port for the pallet (input 1) and one input port for each type of item (input 2 = type 1, input3 = type 2, input4 = type 3,...) on the combiner and one row in the Global Table per type of item (row 1 = type 1, row 2= type 2, row 3= type 3,...) .

I attach your model with this modifications.

I hope it helps!


5 |100000

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