question

Ryosuke S avatar image
1 Like"
Ryosuke S asked Ryosuke S commented

Making AGV take alternate route without using ProcessFlow

Is there anyway to make the agv take the alternate route without using ProcessFlow in such layout below? I tried the method in this post (https://answers.flexsim.com/questions/89223/let-agv-automatically-choose-other-available-path.html), but doesn't seem to work. I know we can do it with ProcessFlow, but wanted to ask if there is anyway without using it.

flexsim_6.fsm

FlexSim 20.1.3
flexsim 20.1.3agv pathresolve route
capture011.jpg (68.7 KiB)
flexsim-6.fsm (99.1 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Ryosuke S, was @Phil BoBo's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Ryosuke S commented

The method in that post uses AGV Way Points. Your attached model doesn't have any way points. It doesn't have anything that even resembles you trying to redirect the AGV down that path.

Use the AGV.redirect() method to redirect the AGV to a control point on that path. Whether you use Process Flow, AGV Way Points, or some other custom code doesn't matter. Just redirect the AGV down that path if you want the AGV to be redirected down that path.

Unless you add logic to the contrary, the AGVs will just take the shortest path to their destination.

· 10
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryosuke S avatar image Ryosuke S commented ·

@Phil BoBo Thank you for your reply. I'm attaching the layout file with waypoints defined. I'm puzzled with the behavior.

1. TE1 takes the longer route instead of going to Queue2 (Shorter route and Flowitem destination)

2. The very first time TE2 travels to CP7, after arrival, it jumps back CP6.

What could be the cause?

flexsim_6.fsm

0 Likes 0 ·
flexsim-6.fsm (38.8 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Ryosuke S commented ·

1. The problem is the Control Point 7 is closer to Control Point 6 than control point 2 - it's only looking at the distance to the next control point, not distance to there, and then on to the final destination.

If you move Control Point 7 around the arc it works, as this is then the search result:

New CP7 location.


1 Like 1 ·
1608552263168.png (4.0 KiB)
1608552233920.png (4.2 KiB)
1608552333144.png (75.8 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Jason Lightfoot ♦♦ commented ·

You could also try to add a condition so that you don't always use that search, only when you need to.

0 Likes 0 ·
Show more comments
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Ryosuke S commented ·

Another solution is to make the distance the total distance as per this changed ORDER BY clause:

0 Likes 0 ·
1608575303186.png (25.6 KiB)
Ryosuke S avatar image Ryosuke S Jason Lightfoot ♦♦ commented ·

@jason.lightfoot I tried your solution, but facing a little problem. When TE2 takes the shorter route, when it arrives at CP2, it jumps backward out of the path. It happens around 500 - 535 sec. What could be the cause? It also happened in 2020 Update2.

flexsim_6.fsm

0 Likes 0 ·
flexsim-6.fsm (38.9 KiB)
Show more comments