question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked Ryusuke T commented

Number of AGVs on path

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.

FlexSim 22.0.7
agvnetworkagv pathcount
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Ryusuke T commented

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.

· 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.

Ryusuke T avatar image Ryusuke T commented ·

@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 0 ·