AGV Reroute To a CP After Navigation-Failed Event

AGV Reroute To a CP After Navigation-Failed Event

arunTTT2P
Advocate Advocate
127 Views
2 Replies
Message 1 of 3

AGV Reroute To a CP After Navigation-Failed Event

arunTTT2P
Advocate
Advocate

[ FlexSim 23.0.4 ]

Hi,

I was experimenting with the AGV routing constraint API. In the attached model, I m blocking the AGV movement to CP2. When the token hits the travel activity the navigation error pops up and the on-navigation failed event triggered source releases a token. Due to the navigation error, the AGV doesn't move toward the CP5 which is the alternate agv destination when navigation fails. Is this the right way of modeling this behavior? RoutingConstraint.fsm

Regards,

Arun KR

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

arunTTT2P
Advocate
Advocate

From the pf block which governs the agv movement, I can write a logic to reroute the agv. Curious to know, how the rerouting can be done with the token released from the one navigation failed.

Group x = Group("Group1");// Group of CP's
int Flag =0;

for(int k=1;k<=x.length;k++)
{

AGV.AllocatableObject cp = x;
if(cp.routingConstraint == AGV.RoutingConstraint.Blocked)
{
   Flag++;
}

}

if(Flag == x.length)
{
return 2;
}
return 1;

RoutingConstraint_1.fsm

0 Likes
Message 3 of 3

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Here's one approach. I override the return value of the navigation failed event with 2 (returning 1 crashes the model). I issue a preempting task sequence and also show how to push the AGV to a list without splitting the token or using a push to list with a timeout (which would cause the override to fail).

1680536874041.png


routingconstraint_jl.fsm

0 Likes