question

Enrique Elizaga avatar image
0 Likes"
Enrique Elizaga asked Felix Möhlmann answered

querying storage system with storage locations as resources

Hi. I am using floor storage locations as a resource, to take advantage of the quantity of resources as a variable.

1642615972409.png

When I try to use "find slot" to store product, the query does not consider the resource (storage location in this case named RUMBA) children. How can I deal with this?


resourcestorage systemresource count
1642615972409.png (189.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.

Hi @Enrique Elizaga,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

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

The copies that are created by setting the resource quantity are not automatically added to the storage system (this might be a bug).

Either create all floorstorages manually (copy/paste or using the template feature), add them to a group and reference that group in the process flow resource.

Or add the copies to the storage system after they are created by running the following code for each one:

Object FloorStorage = Model.find("FloorStorage");    // Adjust to actual name
treenode FS_var_link = FloorStorage.find(">variables/system").subnodes.add();
treenode Storage_link = Model.find("Tools/StorageSystem>variables/storageObjects").subnodes.add();
FS_var_link.dataType = DATATYPE_COUPLING;
Storage_link.dataType = DATATYPE_COUPLING;
nodejoin(FS_var_link, Storage_link);

Link_to_storagesystem.fsm


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.