question

Jason V2 avatar image
0 Likes"
Jason V2 asked Jason Lightfoot edited

Packed Pallets in Racking

When packing boxes on a pallet with a combiner and then sending them to a rack, the pallets stack on top of each other in the slots rather than moving to a new slot. It's like the function to check if there is room in the slot is only checking for the pallet dimensions rather than the dimensions of the contents as well.

Interestingly, I've had it randomly work the way I would expect, but have not been able to find a logical explanation for why.

Is it possible to have the slot assignment strategy be First Empty Slot rather than First Slot with Space?

I've attached a simple sample that mimics the issue.

Thanks in advance for any help!

racking-small-pallets.fsm

FlexSim 20.0.0
palletsrackingslot assignment strategy
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

Jason V2 avatar image
0 Likes"
Jason V2 answered Jason Lightfoot edited

Apparently being stuck at home in a blizzard leads to me solving my own problems :D

I updated the Slot Assignment Strategy code as follows:

  1. Storage.Object current = ownerobject(c);
  2. Object item = param(1);
  3. Storage.Item storageItem = Storage.Item(item);
  4. /***popup:SlotByCondition*/
  5. /**First Slot with Space*/
  6. for (int i = 1; i <= current.bays.length; i++) {
  7. Storage.Bay bay = current.bays[i];
  8. for (int j = 1; j <= bay.levels.length; j++) {
  9. Storage.Level level = bay.levels[j];
  10. for (int k = 1; k <= level.slots.length; k++) {
  11. Storage.Slot slot = level.slots[k];
  12. if (slot.slotItems.length == 0) {
  13. storageItem.assignedSlot = slot;
  14. return 0;
  15. }
  16. }
  17. }
  18. }
  19.  
  20.  

Attached is an updated model that works correctly.

racking-small-pallets-fixed.fsm


· 10
5 |100000

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