question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

BUG Cannot getSlot from Address in 2021.0.6

Can not getSlot from Address in FlexScript in 2021.0.6. The following code emits error.

Storage.Slot slot = Storage.system.getSlot("1-1-1-1");

The same logic works for 2020 Update1. Could you give us workaround to solve this issue in 2021.0.6 since Japanese version is released in this build? getSlot_Test_2020Update1.fsm

getSlot_Test2021_LTS6.fsm


capture002.jpg

FlexSim 21.0.6
flexscriptstorage systemfloorstorage
· 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 ·

The method getSlot occurs twice

  1. for the storage system. Parameter is the address string
  2. for a rack object. Parameters are Bay ID , Level ID and Slot ID
0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Ryosuke S commented

Ok, there is something strange with your object of LTS6 and an adjusted default scheme. The address output is missing the aisle ID. After I have added a new scheme and other floor storage racks, I could switch back to the default scheme and it worked. I did the test with LTS0.

I had such a strange behavior before. But then I inserted a new scheme and got around the problem. console-output-floorstorage-21lts0.pnggetSlot_test2021lts0.fsm


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

Ryosuke S avatar image Ryosuke S commented ·
@Joerg Vogel Thank you! As you said inserting new scheme solved the problem.
0 Likes 0 ·