Attached is an example model that simulates a Kiva system.
See Dev Talk: Kiva System Modeling for the steps I took in building the model.
Attached is an example model that simulates a Kiva system.
See Dev Talk: Kiva System Modeling for the steps I took in building the model.
Hey everyone,
Here's the slot assignment code:
Storage.Object current = ownerobject(c); Object item = param(1); Storage.Item storageItem = Storage.Item(item); /**Random Bay, Level, and Slot with Space*/ while (true) { int bayNum = duniform(1, current.bays.length); Storage.Bay bay = current.bays[bayNum]; int levelNum = duniform(1, bay.levels.length); Storage.Level level = bay.levels[levelNum]; int slotNum = duniform(1, level.slots.length); Storage.Slot slot = level.slots[slotNum]; if (slot.isStorable && slot.slotItems.length == 0) { storageItem.assignedSlot = slot; return 0; } }
Note that I've changed it from the model in the video. As some of you have noticed, it causes an infinite loop if you run the model too fast. Unfortunately I myself fell victim to the rotational peculiarities that may come up when using slot.hasSpace(). When you run the model fast, the rotation of the item is dependent on the last window refresh, which may end up being non-zero. This causes slot.hasSpace() to return false always, so you get into an infinite loop. So to solve, I just don't use slot.hasSpace() but just say the slot must be empty.
Thank you for the KIVA system model. Can you post the code for the floor storage slot assignment? line 13 is difficult to read not sure what's after 1aStorable. Thank you.
Anthony,
I'm new to Flexsim and these tutorials are great and very informative. Once again thank you for a great simulation and instructions. My apologies, I was looking at the code on a small screen and it made it difficult to read some of the code which I have now after looking at it on a larger screen. 1aStorable is actual IsStorable and what is after is &&. Best regards and please keep making these tutorials.
** May I suggest a tutorial on AGVs with crabbing capabilities, 90 degree movement without turning. Thank you.
Thanks for the very nice Kiva model (did you know that kiva means nice in Finnish?:) ). Good demonstration of the new features as well as using the lists.
I run the model and noticed that sometimes FlexSim freezes and I have to kill the process. It seems to be connected to the run speed - if the run speed is less than ~50 you can run the model without problems.It also runs with FastForward. Do you know the source of the freezing?
I want to get any other idea or ways to control the AGVs battery level (moving and charging) in KIVA model layout.
A-Star module has not the feature to control the battery level in the AGVs.
For example...
ex1) Replacing A* with AGV path line control using AGV module?
ex2) Using 'total travel distance limit' replacing with Battery level?
ex3) Aor any other way modeling?
Thanks.
There isn't anything really special about the AGV's battery level tracking, and in some cases it can be more restrictive than doing it yourself. I would suggest tracking battery level on your own using a tracked variable label on the AGV, along with using the process flow to change the discharge rate.
Once you've added the tracked variable, you can set its discharge or recharge rate in the process flow. When the rate of change for the battery level changes, (e.g. when you start a travel operation):
current.labels["BatteryLevel"].as(TrackedVariable).rate = -1;
A value of -1 would mean the discharge rate, in units per model time unit. If you're representing the tracked variable in amp hours and your model time unit is seconds, then -1 means you're discharging at 1 amp hour per model second, i.e. 3600 amps. If you're simulating battery level as a percentage, then -1 means one percent battery per second.
Thanks a lot, @anthony.johnson
I will try to do using Tracked Variables for solve my real issues.
Yes. I have the hard project about picking-up the items to the rack-cart and then picking-off to the gravity flow racks by oprators but transporting between them is done using Kiva robot system.
The layout is also some irregular and the AGV robots are self-spinning and there are battery charge points in it.
I will try to do as your guide and then If I will have some questions and issues, I will post it as other independent subject.
Thanks again very much.
我想知道這個模型是否可以在 2020 版本中做同樣的事情
"I wonder if this model can do the same in the 2020 version"
No, it requires functionality that was added to FlexSim version 21.2 in August 2021.
這部分是否僅在版本 21.2 中可用?有沒有辦法使用自定義代碼來完成同樣的事情?
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