question

Steven Chen avatar image
1 Like"
Steven Chen asked Alessio Merlo commented

Triggering the "Travel to home" trigger will cause the model to stop.

Hello there,

I have a question.

I execute Source for 200 seconds to create the project output to sink, agv triggers "On Resource Available" to run "Travel to Home", but the model stops at 105.98 seconds.

Can you help me see what happened?

Because triggering the "home" trigger will cause the model to stop.

Help me solve this problem.

problem

FlexSim 20.1.2
flexsim 20.1.2travel to home
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

·
Phil BoBo avatar image
3 Likes"
Phil BoBo answered Alessio Merlo commented

The issue is on line 20 of the pickoption's code. It is passing a 1 for var2, which has specific meaning to the Network Navigator.

In earlier versions of FlexSim, var2 was not used by the AGV Navigator, but now it specifies a target offset distance. So the TE is traveling 1 meter ahead of the control point, which is far enough away that the check on line 17 continues to be true and he thinks he hasn't arrived at his home location. Thus, he continues to try to travel to that spot, but he's already there, so he gets into an infinite loop of creating task sequences to go to the point where he already is.

You can fix it by changing the parameters on line 20 from:

ts.addTask(TASKTYPE_TRAVEL, dest, NULL, 0, 1);

to:

ts.addTask(TASKTYPE_TRAVEL, dest, NULL, 0);

I'll add a case to the dev list to update this pick option to account for the AGV Navigator's new behavior.


1590598285157.png (294.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.

Alessio Merlo avatar image Alessio Merlo commented ·

Thanks Phil!

I noted the same issue yesterday. I will waiting the fix in the next release!

0 Likes 0 ·

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.