Specific code snippet command and batch completation time

Specific code snippet command and batch completation time

liany_tn
Not applicable
223 Views
1 Reply
Message 1 of 2

Specific code snippet command and batch completation time

liany_tn
Not applicable

[ FlexSim 19.1.2 ]

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!

0 Likes
Accepted solutions (1)
224 Views
1 Reply
Reply (1)
Message 2 of 2

tanner_p
Not applicable
Accepted solution

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):

23178-array-creation.png

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

23180-array-and-label-assignment.png

23181-array-label-token.png

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:

23182-batch-picks.png

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):

23184-pull-token.png

23183-pulled-item.png

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.

23185-item-pulled-assign.png

23186-creation-rank-item.png

The operator now knows which item to collect.

0 Likes