Limit the items on a gravity flow rack

Limit the items on a gravity flow rack

Gust_Flex
Not applicable
761 Views
4 Replies
Message 1 of 5

Limit the items on a gravity flow rack

Gust_Flex
Not applicable

[ FlexSim 23.1.2 ]

I want to limit the items in my gravity flow rack. I only want to items per slot in my rack. I tried to customize the code of "Slot Assignment Strategy" but it didn't work:

1712327425506.pngCan someone help me?

0 Likes
Accepted solutions (1)
762 Views
4 Replies
Replies (4)
Message 2 of 5

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

Did you add the "items" label to the slot. Because that's not a default expression. Other than that the code looks like you are trying to count the amount of items of a specific type in the slot. But due to the matching labels condition items with a different type can't be in the slot in the first place, no?

You can check how many items are assigned to a slot through the slotItems property of the slot class. So to limit the total quantity per slot you would just add "slot.slotItems.length < 2" to the condition.

1712333053111.png

0 Likes
Message 3 of 5

Gust_Flex
Not applicable

If I add the "slot.slotItems.length <2" it still doesn't work.. here is my testfile.

test-simulation-flowrack-fm.fsm

0 Likes
Message 4 of 5

FelixMoehlmann
Collaborator
Collaborator

The slot is assigned in Process Flow, so that's where you have to add the condition.

1712336125689.png

0 Likes
Message 5 of 5

Jeanette_Fullmer
Community Manager
Community Manager

Hi @gust-flex, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 comment back to reopen your question.

0 Likes