question

yangyang lan avatar image
2 Likes"
yangyang lan asked yangyang lan edited

How can I acquire the distance between a traveling AGV and a fixed resource object in the AGV system?

How can I find the distance between a traveling AGV and a fixed resource object in the AGV module? The AGV is traveling on the path, and the fixed resource object is connected to a control point on the path.

FlexSim 16.1.2
agvagv pathdistancefixed resourcefixed resourc
5 |100000

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

Adrian Haws avatar image
2 Likes"
Adrian Haws answered

This is a somewhat difficult thing to find. There is a forum post here with a model that does something similar to finding the location of the AGV on a network. The difference is that it's finding the distance between two AGVs on the network. Some of the logic would have to be changed.

· 1
5 |100000

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

yangyang lan avatar image yangyang lan commented ·

Thank you so much! I will try it later.

0 Likes 0 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

All the travel is based on kinematics and you can query the kinematic node to get the information of the travel distance to its destination. There are three conditions to be fulfilled. Firstly the kinematics to the destination you wish to query has to be created, secondly you need the time you like to get the distance and thirdly you have to know which node stores the kinematics. Maybe someone from Flexsim can give us a hint where we can find the node where the kinematic is stored. The command itself is well documented in the manual and the command manual.

5 |100000

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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Adrian Haws commented

Here a not tested command: cpdistance(start object, destination object). But I think this command works only stationary objects and not traveling objects. Perhaps you can test it in a small model and tell us your results.

· 1
5 |100000

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

yangyang lan avatar image yangyang lan commented ·

Thanks for answering. This command does not work well. Do you have any other solutions?

0 Likes 0 ·