question

Liany TN avatar image
0 Likes"
Liany TN asked tannerp commented

Specific code snippet command and batch completation time

19282-19259-19212-new-warehouse-project-1-autosave.fsm

Hi!

I need to clearly understand the code of the TaskExecuter whose name is BatchBuilding. In this way, I want to know how the code works to let each operator know what the batch is processing, what items each batch contains and what the quantity of each one is. In addition, I need to know how the sequence of the lots assigned to each operator is related to the BatchBulding name code that I mentioned earlier. In addition, I would like to know how I can get the batch completion time of each batch.

To contextualize, the simulation model is a warehouse in which there are two or three operators to which the sequences of the lots to be processed are assigned, which, in this case, corresponds to the global PickerSequence table and is performed in the Process Flow. Considering this, each batch consists of SKU items and certain QUANTIFY quantities shown in the Global BatchData table.

If someone could help me, I'll be so thankful!

Best regards!

Choose One
FlexSim 19.1.2
batch processingwarehouse optimization modelcode snippet
5 |100000

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

1 Answer

tannerp avatar image
0 Likes"
tannerp answered

Hi @Liany TN,

I'm not sure I'll be able to answer all your questions in one go, but we'll give it a shot and see what we can do.

First off, the Batch Building code snippet is essentially a loop that takes the data from the "BatchData" table and assigns it to tokens in Process Flow. Some of the data is added to a label (first loop in code) and other data is added to an array and then a label (second loop in code):

The array and label assignment can be seen with this example of the first row in the "BatchData" table.

Now that the token has that information, it is able to assign the values in the array to a SKU and Quantity label in the second Run Sub Flow activity:

At this point, the tokens have a batch number, SKU, and quantity, so they're ready to pull specific items from a list according to their labels. The Pull from List activity looks for items where the Type label matches the SKU label on the token. Now the token (red box) has a "pulled" item (/A1_1_1/Box):

The "pulled" label references multiple flow items, so a label is assign in the fourth and final sub flow called "item," which is just the pulled items according to their creation rank.

The operator now knows which item to collect.


5 |100000

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