question

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico asked ·

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.4floor storagestacking item
piramide.png (105.6 KiB)
5 |100000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
Eric M avatar image
4 Likes"
Eric M answered ·

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


5 |100000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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