Crane speeds are stored in a table found in the Crane object's tree structure:
and can be manipulated with writing a little bit of code. For example, if you wanted to change the Gantry speed during something like the Crane's OnLoad event, you could edit the code of the OnLoad trigger to include this line:
Table(getvarnode(current, "cranespeeds"))["Gantry"]["Max_Speed"] = 5;
The above sets the gantry speed to 5 when the code is executed. Note the use of getvarnode() to get a reference to the speeds table so that You can access its cell values using standard table bracket [] notation.
Substitute any of the Row names ("Gantry", "Trolley", "Hoist_Lift", "Hoist_Drop") and column names ("Max_Speed", "Acceleration", "Deceleration") to change the value in any of the table cells.
If the event that changes the speed isn't an event that belongs to the Crane, you would need to substitute the word 'current' in my example code to a valid reference to the Crane gained either through use of the model's "find" method or using a port connection from another object to get to the Crane.
7 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