Number of AGVs on path

Number of AGVs on path

tsuji_ryusuke
Observer Observer
4 Views
2 Replies
Message 1 of 3

Number of AGVs on path

tsuji_ryusuke
Observer
Observer

[ FlexSim 22.0.7 ]

Hi all,

Is there a way to get how many AGVs exist on the path from tree information, etc.?

I searched but could not find it.

0 Likes
Accepted solutions (1)
5 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Observer
Observer
Accepted solution

You can find which path a task executer on with the code below. But I don't think you can directly go the opposite way and find task executers on a given path.

treenode agvNode = AGV(Model.find("TaskExecuter1"));
treenode travelSection = getsdtvalue(agvNode, "atTravelSection");
if(!travelSection)
{
    travelSection = agvNode.find("/travelPath").first;
}
Object curPath = travelSection.value;
return curPath;

You could look at the allocations of control points on that path, but the accurary will depend on the placement of the points, since they could be allocated before entering the path or still be allocated after leaving it.

For what purpose do you want to read this information? If you just need it for a few paths, you could use way points that increment/decrement a counter on Pre-Arrival of a task executer.

0 Likes
Message 3 of 3

tsuji_ryusuke
Observer
Observer

@Felix Möhlmann ,

Thank you for the information.

This question was asked by a customer and should be asked for information from the customer.

Just knowing that the path detection required code was helpful.

Thank you.

0 Likes