How to obtain the travel time of the AGV between 2 control points?

How to obtain the travel time of the AGV between 2 control points?

pinakin_k2
Not applicable
934 Views
6 Replies
Message 1 of 7

How to obtain the travel time of the AGV between 2 control points?

pinakin_k2
Not applicable

[ FlexSim 18.2.2 ]

I want to measure the time of travel between 2 control points on an agv network. Is there a way to obtain that?

0 Likes
Accepted solutions (1)
935 Views
6 Replies
Replies (6)
Message 2 of 7

joshua_s
Not applicable
Accepted solution

Use this command

cpdistance (obj fromControlPoint, obj toControlPoint)

to get the distance from one control point to another. The rest is just calculating the travel time based on the distance and the max speed of your AGV

Message 3 of 7

pinakin_k2
Not applicable

Thanks for help!

In my model, the agv input is acceleration, I do not have speed as an input. the max speed is "infinity", the acceleration and deceleration are the only inputs to the agvs. So cannot use this method.

I am trying a method where, when the agv starts its travel, one of the label is given the value of time when it started its travel and when it arrives at the next control point, the another label is given the value of the time when it arrived. And then I take the difference of this.

But this is very inefficient method

0 Likes
Message 4 of 7

joshua_s
Not applicable

If you are trying to get the time of travel after you have already traveled, your method sounds like the best way. What are you trying to do with the data after gathering the travel time that this method seems inefficient?

0 Likes
Message 5 of 7

pinakin_k2
Not applicable

The agv stops for a certain amount of time at each control point. But the time it waits for depends on the travel time it takes to get to that control point.

I have differential acceleration and constant distance. So I have to find out how much time would it stay at the control point with a different accelerations. That is the data we want as an output of the model

Hope it is clear!

0 Likes
Message 6 of 7

joshua_s
Not applicable

Hopefully your acceleration and deceleration are the same, or you will have to do some extra solving. You can use the basic equation below

image0.png

where you would use the distance from the code given before, use the equation for half the distance and the acceleration you gave it, then multiple the time you got by 2 to account for deceleration, and then you have the time it will take to go from one CP to another.

0 Likes
Message 7 of 7

joshua_s
Not applicable

@Pinakin

Here's an example where you can calculate it beforehand in the script window, then run the model and see the output of the time it took for the taskExecuter to reach it's destination, and it checks out.

acceleration-example.fsm