question

Kleopatra A avatar image
0 Likes"
Kleopatra A asked Ryan Clark commented

Storage based on SKU's

Hello,

I am building a model where i have 100 different SKU's. I am trying to fill the racks based on the SKU. Because i have the 19.2.4 version of flexsim, i dont have the command "Find item" in process flow. I understant the logic behind the process flow but since i am new to this, i cant figure out how to write the script in order this to work.

I have also attached the model in order to see that it is not properly working.

;;;;.fsm

FlexSim 19.2.4
storage slotskus
file.fsm (229.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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Ryan Clark commented

Warehousing was introduced into FlexSim in Version 19.2. Then there have been only some Templates available in custom Code activities. But you find a whole bunch of Text in Manual about it.

finditem is a method of warehousing flexscript class called Storage.

https://docs.flexsim.com/en/19.2/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.System.html#Method-findItem

· 6
5 |100000

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

Kleopatra A avatar image Kleopatra A commented ·

Thank you for your reply!

I've done some searching and found this code in another example. I tried to adjust it to my model but it is not running. I cant figure out where is the mistake. Could you please check it out?

στιγμιοτυπο-οθονης-2022-02-27-160213.png


Thanks!;;;;.fsm

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel commented ·

This Code returns an Output Port of assigned Slot Rack Object or of Port 4. If you haven't got Connections to Object that are racks or at least an Object is connected as 4 th Object then this Code return Value runs into Problems.

0 Likes 0 ·
Kleopatra A avatar image Kleopatra A commented ·

I have already conntected an output 4, and the error is this:

FlexScript exception: Label property Type retrieved on /Queue1/Pallet. Label does not exist. at MODEL:/Queue1>variables/sendtoport

I have checked, and i have a label "Type". Here is the model if you could just take a look.Thank you again for your help!

;;;;.fsm

0 Likes 0 ·
file.fsm (241.3 KiB)
Ryan Clark avatar image Ryan Clark Kleopatra A commented ·

Hi @Kleopatra A,

I looked at your model, and part of the problem is that you're assigning the "Type" label to the boxes but not to the pallet that is containing all of the boxes. That is why the "Type" label cannot be accessed on the Pallet.

In addition, the Storage System didn't have the "Type" label set up properly. So I went to Storage System in the Toolbox and added a Type label in the "Slot Labels" tab, and then it was able to work properly. See image below for reference: screenshot-2022-03-01-163638.png

file-rc.fsm

I hope this helps!

0 Likes 0 ·
Kleopatra A avatar image Kleopatra A commented ·

Hello,

Thank you so much for your time, you were all very helpful!

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark Kleopatra A commented ·
No problem! Glad to help!
0 Likes 0 ·