question

Michael avatar image
0 Likes"
Michael asked Kavika F commented

AGV travels to next parking point

I am trying to get the AGV to get to control point 7 (which is a parking point) when it is open from the other AGV. Right now, If a AGV is parked at control point 51, then it will stay there until work is called. Is there a way to make the AGV go to control point 7 parking point when it is open?Simpllified model add test cells.fsm

FlexSim 23.0.4
parking point
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

Kavika F avatar image
0 Likes"
Kavika F answered Kavika F commented

Hey @Michael, I think I've got a solution that could work for you.

I started by making a subflow that checks to see if Control Point (CP) 7 is available. If it is, then pull it from the "Parking Spots" list and put the current CP (CP 51) back onto the list. I then reassign the "parkPoint" label to the pulled CP7 value.

1677712798945.png

In the Parking section of the AGV template, I modified it to make calls to this subflow. The circles in red are where tokens come to wait for jobs. If a job doesn't come within a certain amount of time (like 1 - 0.5 seconds), it will run the subflow. When the subflow is done, it will return to the top (blue circle). If a new CP was pulled, it will travel there; otherwise, it will stay where it is.

1677712897920.png

I did a similar thing with the Simulation Startup section since the Parking code doesn't get run until after an AGV has completed their first task.

You could refactor some of it so it doesn't make so many calls to charging and capacities.


1677712798945.png (19.7 KiB)
1677712921769.png (57.3 KiB)
· 3
5 |100000

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

Michael avatar image Michael commented ·
Awesome. Thank you
0 Likes 0 ·
Michael avatar image Michael Michael commented ·
could you add this sub flow to the attached file and upload it?


0 Likes 0 ·
Kavika F avatar image Kavika F ♦ Michael commented ·
Unfortunately I cannot due to our academic integrity policies. I do believe I have shared enough to help you understand what you need to accomplish the task.
0 Likes 0 ·