Hello,
I`m trying to keep the "hook" of the crane to unload and stay low until it goes to the next position to pick up the next item that way it doesn`t waste time going back up while is empty. Is that possible?
Thank you in advance,
Hello,
I`m trying to keep the "hook" of the crane to unload and stay low until it goes to the next position to pick up the next item that way it doesn`t waste time going back up while is empty. Is that possible?
Thank you in advance,
You could change the lift height of the crane to 0 in an On Unload trigger with the following code:
current.setVariable("liftheight", 0);
If the crane can pick up multiple items at the same time, you should first check whether it was the last item that got unloaded, so the code becomes:
if(current.subnodes.length < 2) { current.setVariable("liftheight", 0); }
Then you reset it in an On Load trigger, when the crane picks up an item the next time:
current.setVariable("liftheight", 4);
(4 is the default value, you can of course choose another value if you like)
Thank you for your answer! Is this the right way? because is not working
That's because you set the lift height twice. The second time was the typical height so you wouldn't see any change.
Move the second lift height code to the load trigger code like the Felix suggested to you.
17 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