question

Troy avatar image
0 Likes"
Troy asked Troy commented

AGV choose route dynamic

In my case, I tried to let TE2 reach the CP6

1689064308472.png

but when I run the model, it was like this:

1689063781444.png

how to let TE2 reach the CP6?

Any help would be appreciated.


agv-route.fsm

FlexSim 22.2.0
agvroute planning
1689063781444.png (40.3 KiB)
1689064308472.png (69.7 KiB)
agv-route.fsm (37.5 KiB)
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 Troy commented

The path routing only looks at the distance (or rather the path cost) to find the path the AGV will take. Allocations or accumulation rules are not taken into account. As such, if you tell the AGV to travel to CP6, it will choose the path with the lowest cost, which means the one that traverses CP4.

You can either experiment with changing the path cost before redirecting the AGV.

Or you use REDIRECT_AND_CONTINUE_AS_PREARRIVAL as a sort of travel via X condition. The issue there is that the task sequence is telling the AGV to travel to CP4. So you can't use this flag, as the 'continue' would have the AGV try to reach CP4 again. So in your current model you'd first have to redirect the AGV to CP5 'AS_FINAL' and then, once it took the other branch on the intersection again redirect it to CP6.

Lastly, and most importantly, you should not put any actual logic that influences the models behaviour into Draw/PreDraw triggers. The framerate (or the fact whether the 3d view is even open) having an effect on the model logic will invariably lead to issues with repeatability.

Either use the control points triggers (as in the attached model) or use the Waypoint tab in the AGV network properties.

agv-route-fm.fsm


agv-route-fm.fsm (37.2 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.

Troy avatar image Troy commented ·

This really help me, thanks a lot.

0 Likes 0 ·