question

Troy avatar image
0 Likes"
Troy asked Troy commented

Item get the wrong slot by using find slot

I create some boxes in floor storage. The floor storage was creating by code on run start. Then I want to find slot for boxes using query statement, and move the boxes to right slot, here is my model(I drag boxes to right slot):
1685946245061.png

The red boxes take one slot and they stack according to token.tier. The blue one takes two slots, and address scheme is below:
1685946988134.png

I run the model several times, then get different slots, and the red boxes do not stack:

1685948809363.png

1685948837005.png

1685948908457.png

For now, I have no idea how to fix it. Could anyone help me please? Any help would be appreciated.

floorstorage.fsm


FlexSim 22.2.0
floorstoragefind slot
1685946245061.png (81.6 KiB)
1685946988134.png (33.7 KiB)
1685948809363.png (74.4 KiB)
1685948837005.png (70.8 KiB)
1685948908457.png (66.1 KiB)
floorstorage.fsm (38.5 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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Troy commented

Why are you creating your storage onRunStart?

Some points:

  • An item cannot simply occupy two slots.
  • You're not setting your rack to use the address scheme. For that you would need:
floorStorage.setProperty("AddressScheme","DefaultScheme");

There are bugs with the slot stacking logic - you can change the stacking order to Z+ first and it should perform the correct stack of red items. Unfortunately this version is no longer scheduled for any updates so any fix would be in 23.0 or later.


· 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.

Troy avatar image Troy commented ·

Thanks for your help.

The storage data and quantity came from my database, so I try to initialize them on run start, is there a better way to do that?

How should I set the stacking order by code? I couldn't find the code demo in user manual, some properties, like "AddressScheme", how should I find the property name and parameters?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Troy commented ·

I would initialize the storage space using a script that reads your data - so it will build/configure the space when you request it.

Instead of creating a new rack/floorstorage you can copy one that is already configured how you like it.

Open a property table from the Properties panel and you should see the name of the properties you wish to set:

1685963368981.png

So then you can see to set:

floorStorage.setProperty("SlotStackingAxis1","Z+");
floorStorage.setProperty("SlotStackingAxis2","None");
floorStorage.setProperty("SlotStackingAxis3","None");


0 Likes 0 ·
1685963368981.png (15.4 KiB)
Troy avatar image Troy Jason Lightfoot ♦ commented ·

Thanks a lot, you just save my day!

0 Likes 0 ·

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.