question

Fabrizio S2 avatar image
0 Likes"
Fabrizio S2 asked Joerg Vogel edited

CRANE maxspeed (Gantry,Trolley,Hoist) by distancce

I have a CRANEthat must move from A to B an item. I know the total time of the operation (loading, unloading, travel). I would like to calculate and set the maxspeed (hoist_lift, hoist_drop, gantry, trolley) based on the distance. I calculated the distance between resources A and the Crane; I calculated the distance between crane and resource B. So the maxspeed = space / time. Now I would like to set the value to the crane.

FlexSim 20.0.3
craneflexsim 20.0.3distance traveledmax speed
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Benjamin W2 avatar image
0 Likes"
Benjamin W2 answered Joerg Vogel edited

If you double click on the crane, it will open the crane's properties. You should be able to edit the max-speed and acceleration there.


1590695677005.png (145.9 KiB)
· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Fabrizio S2 avatar image Fabrizio S2 commented ·

I wondered how I could change it by code I tried with

crane.attrs.variables.subnodes["cranespeeds"].subnodes["Gantry"].subnodes["Max_Speed"].value

but doesn't work.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Fabrizio S2 commented ·

here is a tree picture. Your path seems to be OK, as long as the starting node fitts.

0 Likes 0 ·
dynamic-crane.png (18.9 KiB)
Fabrizio S2 avatar image Fabrizio S2 commented ·

So for each part i need:

crane.attrs.variables.subnodes["cranespeeds"].subnodes["Gantry"].subnodes["Max_Speed"].value=MAXSPEED;

crane.attrs.variables.subnodes["cranespeeds"].subnodes["Trolley"].subnodes["Max_Speed"].value=MAXSPEED;

crane.attrs.variables.subnodes["cranespeeds"].subnodes["Hoist_Lift"].subnodes["Max_Speed"].value=MAXSPEED;

crane.attrs.variables.subnodes["cranespeeds"].subnodes["Hoist_Drop"].subnodes["Max_Speed"].value=MAXSPEED;

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Fabrizio S2 commented ·

Perhaps it easier to see the structure as a table and set the values accordingly:

0 Likes 0 ·
Fabrizio S2 avatar image Fabrizio S2 Fabrizio S2 commented ·
If I wanted to consider the real movement of the crane (x, y, z) is there a quick way to know the values that flexsim generates to create the movement from point A to point B? So I would have the overall displacement (x, y, x) and I could optimize the simulation. My problem is that I know the time of a crane to go from point A to point B. the fear is that even if I knew the displacement that I have to do, the approximations of the calculation (velocity = space / time) would not allow me to get to correct moment at point B. I thought I would move the cranes to the actual unloading point at point B and stop the crane. Then with a correct sendmessage at correct modeltime i can do crane.resume ()
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Fabrizio S2 commented ·

You have to evaluate the next tasksequence of the crane at the moment he gets available (a trigger). The sequence, how the crane rises, lowers the hook and travels, are part of the properties in the Travel Sequence (L>XY>D). The Location of load and unload are involved parameters of load and unload tasks of the tasksequence. You are able to calculate with this data the sequences of travel, primarily the distances.

Maybe you don’t actually need a visualization of a crane in your model, then don’t use one and replace him with a processor.

As another alternative you can set acceleration and deceleration values to be unlimited or very high. Then you can calculate the speed just by constant values for lift, drop, x,y directions.

Remark: I have edited your last comment, because it is really hard to read a text in a code section. If you want to emphasize a text, there are better formats available than a code block. *bold, italic, underline, setting a color as a html source tag.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.