question

shanice.c avatar image
0 Likes"
shanice.c asked Felix Möhlmann commented

How to specify the rack to unload?

I'm using Find a Storage Slot in Warehousing in custom code. I went through the manual, there are many classes used to look for a slot. But if I want to specify which rack to go first, where I could write which rack is going to because I have two racks in my example.

1635300997204.png1635301261601.png


two racks.fsm

FlexSim 21.2.0
rackasrs vehicle
1635300997204.png (78.5 KiB)
1635301261601.png (10.3 KiB)
two-racks.fsm (53.5 KiB)
· 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.

Nathan B14 avatar image Nathan B14 commented ·

Hi @Fiona C was Felix's answer 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

So you can use "slot.storageObject = <referenceToRack>" in your query to only find slots inside a specific object. Due to the way the process flow activities create the query the reference should be a label on the token or item.

I would also suggest to use the "Find Slot" activity, rather than using the option in the "Assign Labels" one. It lets you assign the found directly to the item, instead of needing an extra custom code activity to do that. It also offers a max wait timer option similar to the "Pull from List" or "Acquire" activities.

two-racks_1.fsm


two-racks-1.fsm (53.7 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.

shanice.c avatar image shanice.c commented ·

@Felix Möhlmann Thanks you for your reply.I have tested without specifying which rack to find a slot, it unload to rack1 first, and then I change the rank of rack2 to be higher than rack1 in the tree, it still unload to rack1 first. May I ask what is the Flexsim defaulted way to choose a rack when not specifying a specific rack?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann shanice.c commented ·

The order in which the storage objects are queried should depend on the order of the coupling nodes in the "Storage System" object in the tools section.

1635400818285.png

0 Likes 0 ·
1635400818285.png (9.6 KiB)