question

wei-ting L avatar image
0 Likes"
wei-ting L asked wei-ting L commented

How do I batch flow items based on incoming orders?

testing5.fsm

So I am trying to build a model that it automatically batches my flow items according to incoming orders (happens at stage 2).

My attached model shows that everything is smoothed before stage 2.

I try to "combine" my "order info" and "number of flow materials" based on incoming orders.

I want my "queue 2" pulls x number of flow items from "standard cpu queue" depending on "standard CPU_order_info's each order information." Combine them together, so it will be a fulfilled order.

So for example, I have an order coming in (standard CPU_order_info) , this order wants 80 qty of flow item. so I want to process this order by combining this "order_info" with 80 qty of flow item, make it a batch. and it will be stored on a rack. This batch will specifics it has 80 qty of flow items in it.

I have been trying many different ways, but I am stuck. I need help here.

Choose One
batch order picking
untitled.png (173.9 KiB)
untitled.png (134.3 KiB)
testing5.fsm (26.1 KiB)
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

@wei-ting L, can you a bit more specific what you tried?

0 Likes 0 ·
wei-ting L avatar image wei-ting L Joerg Vogel commented ·

Thank you for trying to help me out here.

So I have two types of flow item.

1. raw materials

2. order information

I want the system to fulfill my order by grabbing the necessary number of raw materials. And put it together, make it into a batch. So think of the real-world situation. An order comes in, this order wants 50 qty of materials. So an operator will take this one order, and take 50 qty of materials. And make them into a batch (combining one order with 50 qty of materials).

And the order got fulfilled. And take the next order.

untitled.png

0 Likes 0 ·
untitled.png (173.9 KiB)
Joerg Vogel avatar image Joerg Vogel wei-ting L commented ·

The item of the order data will tell the combiner directly, how many items of the raw material will come from another input port. This data is set in the combiner components list. Then you change the data by updating the combiner components list. How you do this, is in the manual. Please read it thoroughly! If you build the necessary input connections, then you are nearly finished. Please read in the manual as I have drawn the path below.

0 Likes 0 ·
Show more comments

1 Answer

·
Joerg Vogel avatar image
2 Likes"
Joerg Vogel answered wei-ting L commented

Please read the manual in FlexSim program: Manual > Reference > 3D Objects > Fixed Resources > Combiner. Read this section completely and several times. You find all answers of your question there. The Batch Size data should be in a global table. The Order is defined by the item label Type. That is the default setting. If you want to change the procedure (item Type, global table, batch size) you have to change the FlexScript code or build a ProcessFlow.

· 4
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 Joerg Vogel commented ·

@wei-ting L, if you want to update the FlexScript code "Update Combiner Component List" to use your label BatchSize replace the code lines 27 to 31.

Table table = Table(tablename);
for(int index = 1; index <= thelist.numRows; index++) {
thelist[index][1] = table[index][item.Type];
inc(thesum, table[index][item.Type]); 
}

by

thelist[1][1] = item.BatchSize;
inc(thesum, item.BatchSize);

Which will update the component list table cell row [1] column [1] by item.BatchSize

0 Likes 0 ·
wei-ting L avatar image wei-ting L Joerg Vogel commented ·

Thanks you !

I finally understand this!

this is really helpful !

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

The video "FlexTips: Update Combiner Components List" describes HowTo change the recipe in the combiner. The steps are similar in FlexSim 18.

  • You find the global tables in the Toolbox bold green plus icon list.
  • The OnEntry trigger is an optional trigger under bold green plus icon of the Triggers tab in the properties of the Combiner.
  • The "itemtype" is now a label called "Type"
0 Likes 0 ·
wei-ting L avatar image wei-ting L Joerg Vogel commented ·

Thanks for the help!

oh, I finally understand it. But this technique only works if I have only a few item types, right?

So I use another technique as you suggested, change the code.

replace line 27 to 31.

Thanks!!! I learn a lot!

0 Likes 0 ·

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.