question

Stefano Crotti avatar image
0 Likes"
Stefano Crotti asked Stefano Crotti commented

AGV Routing Problem

Hi everyone,

I am getting a strange behavior in my current model. After a while, I get this message:

1661259343047.png


This is the part of the network where the error occurs:


1661259392896.png


I checked the AGV network and it is correctly designed. I also tried with the cpdistance command and it works. Considering that the network has some orientation rules, I checked also that the path is feasible, and it is.

I discovered a strange behavior: the AGV cannot resolve the route only after a specific simulation event/time.

In fact, if I launch this script at the beginning of the simulation run or before the specific event/time, the AGV can resolve the route.

Object agv = Model.find("AGV 4");
Object cp = Model.find("ControlPoint4439");//AGV(agv).currentCP;
Object cpDest = Model.find("ControlPoint4779");

// Set preemption of the previous task sequence to 0
TaskSequence ts = agv.as(TaskExecuter).activeTaskSequence;
if(ts) 
    ts.preempt = 0;

// Override the previous ts with a new one
TaskSequence newts = TaskSequence.create(agv, 0, PREEMPT_AND_ABORT_ACTIVE, 0)
newts.addTask(TASKTYPE_TRAVEL, cp, NULL, 0);
newts.addTask(TASKTYPE_TRAVEL, cpDest, NULL, 0);
newts.dispatch();

The script stops working just when the agv, during one if its previous missions, travels towards another control point and it passes over the “problematic” ControlPoint4439.

Since then, the script doesn’t work and if I continue running the simulation, I encounter the problem.

What could be the cause of this error?

Also, I noticed that the model “stops” (freezes) for several seconds every time I edit/refresh the network and press reset and run. This behavior happens only at the first reset performed after the change of the network: If I don’t change the network again, it will not occur.

This behavior happens also in other models that work fine. The stop time increases with the complexity of the network.

What could be the cause of this behavior?


Thank You

Stefano


FlexSim 22.0.7
agv network
1661259343047.png (28.7 KiB)
1661259392896.png (173.0 KiB)
· 7
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

a7a519ec-d3e8-4889-a873-3e1beb14d7a4.jpegFrom your picture I see a rounded corner on your path pointing in opposite direction then intended red drawn arrow line. An AGV path system can be bi- or single directed. Are you absolutely sure, your AGV is able to reach his destination along your path system by red drawn line?

0 Likes 0 ·
Stefano Crotti avatar image Stefano Crotti Joerg Vogel commented ·
Hi Joerg,

Yes, I am sure the AGV can reach the destination. In fact, If I execute the script at the beginning of the simulation, the AGV can reach the destination.

0 Likes 0 ·
anthony.johnson avatar image anthony.johnson ♦♦ commented ·
It's hard to figure out the issue without and actual model. Could you send the model?
0 Likes 0 ·
Stefano Crotti avatar image Stefano Crotti anthony.johnson ♦♦ commented ·

Hi Anthony, I sent the model and the custom module to our local FlexSim distributor. I think they will send the files to you.
Thank you for the support.

Stefano

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Stefano Crotti commented ·
Hello @Stefano Crotti, Have you received the help you needed from your local distributor? Can we close out this question?
0 Likes 0 ·
Show more comments
Stefano Crotti avatar image Stefano Crotti commented ·

The model works with the 22.0.8, thank you! @anthony.johnson @Jeanette F

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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