question

Mauricio R23 avatar image
0 Likes"
Mauricio R23 asked Kavika F commented

Tracking staytime of a flowitem that exits the model attached to a pallet

Considering the Warehouse demo, I need to track the cycle times of all the boxes (I have +100 types), from when they are created in the model until the are moved moved to the exit conveyor. How can I do that? I don't know how to trigger the exit event for each box since they are attached to the pallet

FlexSim 22.1.2
palletsboxescycle timepalletizing
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @Mauricio R23, was my or Jordan Johnson's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Kavika F avatar image
0 Likes"
Kavika F answered

Going off of what Jordan said, I modified the Warehouse Demo to do something close to what you wanted. First I added some labels to the Process Flow so when a flowitem is created it adds the "timeCreated" to the item (0 for the initial inventory, other times for the Inbound items).

1654285890571.png

Next, when the pallet was being loaded to the conveyor, I set a second label to each flowitem for the stayTime which is just the current model time minus the timeCreated label from earlier.

1654285971025.png

I made a Statistics Collector to keep track of the Staytime of each item as the pallet enters the conveyor. From there I made a Calculated Table to calculate the average of the Staytimes partitioned by the SKU. Then I made a graph to display the stats.

1654286159680.png

flowitem-staytime.fsm


1654285890571.png (46.2 KiB)
1654285971025.png (34.8 KiB)
1654286159680.png (101.4 KiB)
flowitem-staytime.fsm (164.9 KiB)
5 |100000

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

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

You need a custom statistics collector for this, but it's fairly straightforward. I think you can still listen to the OnEntry of the exit conveyor. The trick is to specify something like

data.item.subnodes.toArray()

as the Row Value. When the Row Value field gets an array, it updates all the rows associated with that field. In this case, you're telling the stats collector to update the row for all items inside the pallet, rather than for the pallet (which likely doesn't have a row in the first place).

Let me know if that makes sense, or if you need more guidance.

5 |100000

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