I have found this code below which stacks by level:
Storage.system.findSlot("WHERE slot.slotItems.length < 1 ORDER BY slot.levelID ASC")
I can't get it to work if I have more than one rack in the model!
Can anyone help me?
I have found this code below which stacks by level:
Storage.system.findSlot("WHERE slot.slotItems.length < 1 ORDER BY slot.levelID ASC")
I can't get it to work if I have more than one rack in the model!
Can anyone help me?
I deactivate pull option in rack objects. I assign slots in On Creation Trigger of one source and deleted the second one. Now the Send to Port function gets executed the item has already got a slot assigned. I need to get the ouput object of the rack connected to the source to divert the item to the right rack where the slot is assigned to.
The ORDER BY clause defines now how the levels, bays and slots gets items into the rack:
Alternating rack, bay, slot starting with first level:
"WHERE slot.slotItems.length < 1 ORDER BY slot.levelID, slot.bayID, slot.slotID ASC "
How to stack sequence with more racks? Quite simple answer a slot must be assigned before the item enters a rack! Then you must evaluate, where the slot is in your warehouse to send it to the right rack object.
If you want to understand where the source codes are:
No, it works with more sources, too. You must enhance the findSlot query to limit or identify the racks that are connected to the source!
What if I use other object to link the source and the rack?
What trigger should I use??
attached optimized model!
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