question

XiomaraG avatar image
0 Likes"
XiomaraG asked Jeanette F commented

Loading one item per slot according to the type and dispatching items by time

I'm working on a warehouse model. In this ocassion I need to place just one item per slot according to the type. The label of the item is "Cliente" and it goes form 1 to 12:

1701017804161.png


I checked a example here but it doesn't allow the floor storage to be a fixed resource, however I'm also working on the dispatch of these items by time and to do that, I need the floor storage to be a fixed resource.

1701019277321.png

Also, when I diselect this option and follow the provided code in the example, it still doesn't work.

1701017812817.png1701017820462.pngThat's why I would like to know if there is another alternative to place items as I need, keeping the floorstorage fixed.

FlexSim 22.2.0
warehousefloorstorageoneitemperslot
1701017804161.png (236.6 KiB)
1701017812817.png (25.2 KiB)
1701017820462.png (38.6 KiB)
1701019277321.png (119.2 KiB)
· 2
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 ·
@XiomaraG, maybe you have painted bays to hold items of same slot label value. Then you haven’t got enough available free slots to store in more than one level. You should order your query then by bayID instead of levelID.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @XiomaraG, was one of Jason Lightfoot's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 0 ·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered

If you have multiple racks that have slots with matching attributes the query isn't sufficient since it can return a slot in any rack. Add the clause to find a slot in this rack:

...." AND slot.storageObject=$2" 

while passing in current as the second parameter.

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
0 Likes"
Joerg Vogel answered

You don't need to order by level or bay, because you have painted available slots by label value already:

Storage.Slot slot = Storage.system.findSlot("WHERE slot.myLabel = $1.Type AND slot.slotItems.length < 1",0,item);
if (slot){     storageItem.assignedSlot = slot;     return 0; }

findslot_by_slotitems_length_and_label.fsm this example works as fixed resource.


5 |100000

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.