question

Henry Paipa avatar image
0 Likes"
Henry Paipa asked Henry Paipa commented

How to stack in the floor storage according to product Type?

How can I define the quantity of objects to be stacked in the floor store, depending on the type of product?

I need to stack three types of products (Type 1, Type 2 and Type 3) but each of them only allows one degree of stacking, like this:

Type 1, only 3 units can be stacked (one on top of the other).

Type 2, only 2 units can be stacked.

Type 3, only 2 units can be stacked.

Unexpected result.

resultado-no-deseado-f.png


Expected result.

resultado-deseado-f.png

In this answer I found a code that allows to limit the number of units to stack in general, equally, my limit is 3 and that could be adjusted on the z-axis of the object (floor warehouse) but I need the stacking to be subject to the type of product in each slot.

                 
  1. storageItem.assignedSlot =
  2.     Storage.system.findSlot("WHERE slot.slotItems.length < 8 ");

In a reply I found this code, where they employ a bay positioning code to limit the number of pallets to 5 per bay (which can change). That just checks to see if the bay is full and then finds the next bay that has room to place the item.

Really, I looked at several options and answers, but I couldn't find anything closer. I appreciate the support.

Thank you for your support in advance.


Stacking in floorstorage V1.fsm

FlexSim 23.1.1
warehousingfloorstoragewarehouse optimization model
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

Felix Möhlmann avatar image
2 Likes"
Felix Möhlmann answered Henry Paipa commented

This is easier if you create the pallets in the model first, then search for a slot. And then move the pallet into the storage if a slot was found. Otherwise you also run the risk of moving a pallet into the storage when it is already full.

In the Storage System properties, add a slot label that will be used to assign a slot to a fixed type once the first pallet enters the slot. Its default value should be set to a value that doesn't occur as an actual valid value for the type.

1683268923800.png

Write the maximum amount of allowed stacks to a label on the token. (Not mandatory but means the query to find a slot doesn't get overly long.

1683269035078.png

Then set up a Find Slot activity with two queries. The first looks for a slot that already has a type assigned to it and still has space available. If this query is not successful, the second query will be used and search for an empty slot (so no type assigned yet). If this query finds a slot, the On Sucess trigger assigns the pallets type value to the slot's label, blocking it for other types.

1683269184170.png

The slot's label has to be reset when it becomes empty again. A good way to do this is the On Slot Exit trigger of the storage object.

Creating the pallets outside of the floor storage first also means that the size adjustment can take place before they are moved into it.

1683269364332.png

stacking-in-floorstorage-v1-fm.fsm


· 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.

Henry Paipa avatar image Henry Paipa commented ·

Thank you a lot, your answer is amazing, practical and very convenient. I appreciate your support! @Felix Möhlmann

1 Like 1 ·