I'd like to write a code to get a storage slot for a Item. I can't get the syntax right. Why the following gives me an error:
Slot MySlot; // This gives an error: "Unknown type Slot in declaration of variable MySlot"
Slot = getSlot("1--01-1-1");
I'd like to write a code to get a storage slot for a Item. I can't get the syntax right. Why the following gives me an error:
Slot MySlot; // This gives an error: "Unknown type Slot in declaration of variable MySlot"
Slot = getSlot("1--01-1-1");
Hi Tomi,
The class name is actually Storage.Slot. Unfortunately FlexSim highlights Slot so it seems like valid code but it should actually be
Storage.Slot MySlot = getSlot("1--01-1-1");
Thanks for the answer. I was able to get the syntax right but still i can't get the model right. I'd like to route all Items to certain slot thru ProcessFlow. How do I do that? I don't know what there should be in the Unload-Station field.
Pls see the attached model
For the unload station, you should use the rack that the slot belongs to. Since the slot is a reference to a variable in the Rack's attribute tree, you can simply use
ownerobject( token.Slot )
as the station:
However, just calling getSlot doesn't assign the item to the slot. It's better if you use the Find Slot activity from the Warehousing section of the library, as that will make a reservation:
As in this updated model: asrs-test-MS.fsm
12 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved