question

Ravi Vengadam avatar image
0 Likes"
Ravi Vengadam asked Ravi Vengadam commented

How to make an AGV select a path based on flow item type?

In my AGV network simulation, I'd like my AGVs to select one out of 2 or more paths whenever they come to control points that have multiple paths emanating from a single path. I want to override the default path based on the shortest distance. This is what happens in my model, the AGV irrespective of the type of flow item always takes the shortest path. This results in only one path being used and leads to congestion.

agv network
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

Arun Kr avatar image
0 Likes"
Arun Kr answered Ravi Vengadam commented

Hi@Ravi Vengadam,

Here is a simple model which I have made. Pls check it. Mainly I used waypoint logic to define the routing based on the flow item type.

Object CP1 = model().find("ControlPoint4");
Object CP2 = model().find("ControlPoint3");
if(te.subnodes.length>0)
{
  Object item = te.subnodes[1];
  if(item.Type==1)
  {
	agv.redirect(CP1,REDIRECT_AS_FINAL);		
  }
 else
 {	
	agv.redirect(CP2,REDIRECT_AS_FINAL);	
 }
}

agv.fsm

Regards,

Arun KR


agv.fsm (19.9 KiB)
· 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.

Ravi Vengadam avatar image Ravi Vengadam commented ·

@ArunKR

Thanks, Arun! I'll take a look.

Regards,

Ravi

0 Likes 0 ·