question

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico asked Cass Z commented

Define maximum amount of items in a slot

I have a Floor Storage where the last bay can only be placed boxes at one height, in the penultima bay only boxes at two high, and in the rest at three high. How can I do this?

piramide.png

FlexSim 21.1.4
flexsim 21.1.4floor storagestacking item
piramide.png (105.6 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.

1 Answer

Eric M avatar image
4 Likes"
Eric M answered Cass Z commented

Hi @Omar Aguilera Rico I referenced Jordan's answer to this question. I created a label called MaxContent on the slots using paint slot labels. Then, in the Slot Assignment Strategy I changed one line of code.

1624308682984.png

The mustHaveSpace is a variable that's already set to 1. The second part of the if statement checks if the current slot content is greater than or equal to the MaxContent label. If it's greater, it will continue on in the loop until it finds something with space.

Individual Slot Max Content.fsm


· 3
5 |100000

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

Cass Z avatar image Cass Z commented ·
@Eric M May I ask where do I find the created paint slot label in your model? Thank you. I tried to look it up in the Model Tree, could not find it.
0 Likes 0 ·
Eric M avatar image Eric M Cass Z commented ·

Hi @Cass Z,

First click on Paint Slot Labels in the library.

1654203027698.png

Then the properties will have a Label section. Changing this to "MaxContent" will allow you to see the assigned label values for each slot.

1654203084618.png


2 Likes 2 ·
1654203027698.png (10.8 KiB)
1654203084618.png (433.4 KiB)
Cass Z avatar image Cass Z Cass Z commented ·
Thank you!
0 Likes 0 ·