question

Anna Kamphaus avatar image
0 Likes"
Anna Kamphaus asked Anna Kamphaus commented

No slot was assigned to item - how to handle when no slot is found

I am using process flow to have a transporter pickup a pallet and put it on a shelf. When it runs out of the room I get an exception but it doesn't stop the model. I am wondering how I can add code to handle this exception to redirect everything else to an overflow queue instead.


1714056645256.png


1714056742234.png

It's not clear if allowing it to assign the slot in the unload is the correct approach.

This may be overall the wrong approach to allow it to select the slot in this way. I tried to use the "Find Slot" block but I wasn't sure how to then direct the unload to use that slot without getting a NULL for the station.
Store in racking slot exception.fsm1714056977858.png

FlexSim 24.0.2
processs flowstorage systemrack storagestorage slot
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·
Add under Query in FindSlot a Where (Filter) condition called "Slot with Space"
0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Anna Kamphaus commented

Activate Use Max Wait Timer in FindSlot activity

Template of On Max Wait Timer: Release token to second Destination.

Add another connection from findslot activity to an assign label activity.

Insert an assign label activity between findslot and load activity. In each of added assign label activities you add a label for an individual destination. Both must be connected to load activity.

Unload activity reads as destination the new assigned label for a destination.

second-destination-findslot.jpg


· 4
5 |100000

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

Anna Kamphaus avatar image Anna Kamphaus commented ·

Do I need to use token.slot in the destination rack?


1714068240906.png

0 Likes 0 ·
1714068240906.png (37.6 KiB)
Anna Kamphaus avatar image Anna Kamphaus Anna Kamphaus commented ·

this didn't work either

1714069269784.png

1714069305152.png

0 Likes 0 ·
1714069269784.png (21.8 KiB)
1714069305152.png (22.1 KiB)
Felix Möhlmann avatar image Felix Möhlmann Anna Kamphaus commented ·
To get the rack object (unload destination) use " token.slot.as(Storage.Slot).storageObject".
0 Likes 0 ·
Anna Kamphaus avatar image Anna Kamphaus Felix Möhlmann commented ·
Thanks, that did it!
0 Likes 0 ·