question

MPeyman avatar image
0 Likes"
MPeyman asked Felix Möhlmann commented

Distance calculator

Dear All, I created a model with specific nodes and when I run the model and get the total distance traveled by the AGVs (Operators), its not the same as calculating the distance of node coordinate.

for instance here the total distance should be 8.8 but in model is 12.65.

list1 is start from node 1(x=10.50, y=14.40) to 28(8.90, 13.60) to 32(11.20, 14.10)

list2 is start from node 1(x=10.50, y=14.40) to 28(11.40, 12.00) to 32(11.20, 14.10)

peyman-flex-model-original.fsm

distance.png

FlexSim 23.0.8
distance traveled
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

·
José Antonio MD avatar image
0 Likes"
José Antonio MD answered Felix Möhlmann commented

Hello @MPeyman,

The problem is in the configuration of the trasnport. "Operator" not only travels to the nodes, it also makes an OffsetTravel to Load and Unload the boxes. You can select the option "Do not travel offset for load/unload tasks"

1706007735001.png

Look at this exmpleExample_Distance.fsm

I hope I have been helpful.


· 4
5 |100000

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

MPeyman avatar image MPeyman commented ·

dear @José Antonio MD , thanks for your answer. I have another concern why while I set the node on model based on defined x and y from table but the nodes x, y are not exactly like the one in the table and in model the coordinate is slightly different?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann MPeyman commented ·
"object.location" sets the origin point (upper left corner of bottom face) of the object to the given coordinates. Network nodes do have a finite and the properties window by default shows the location of the center of the bottom face. So seeing an offset of 0.005m is normal.

A quick test confirms that the origin point coordinates are used for travel task, so your model should work correctly, as far as the coordinates are concerned.

0 Likes 0 ·
MPeyman avatar image MPeyman Felix Möhlmann commented ·

Dear @Felix Möhlmann, how would I do that?

"object.location" sets the origin point (upper left corner of bottom face) of the object to the given coordinates"

0 Likes 0 ·
Show more comments

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.