question

MINGYU L avatar image
0 Likes"
MINGYU L asked MINGYU L edited

How to make intersection logic using waypoint for agv?

Hello.

I'm trying to make agv system by modifying the process flow.

And, I am having a hard time making intersection logic.

I want to make it like the description below. I would be grateful if you give me a good comment on how to make it. Thanks in advance
To get to the point,
When an event occurs, the entrance to AGV # 1 that entered in 1 Direction is blocked.

After that, AGV # 2 arriving at 1 moves to 2 through the bypass and then resumes 1Direction AGV # 1.

(Please trigger the event at random)

And, I want to create the logic in the A zone(image-2) in the attached file.

FlexSim 20.0.3
agv travel directionwaypoint
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

tannerp avatar image
0 Likes"
tannerp answered MINGYU L edited

Hi @MINGYU L,

I have been working with your model and trying to create a piece of logic that would do what you're asking, but unfortunately, there's something wrong with your source activities. They consistently create 6 tokens when I am only asking them to create 1. Is this something you've intentionally set up? Maybe I'm missing something else?

Before I explain the logic, I wanted to point out that you need to make the paths designated in your attached picture "two-way" paths as shown below. This will allow AGV travel in both directions along the same path.

To explain the logic I started building: I was using a random source to generate a token and then split that token into two tokens. One of the tokens would listen for Pre-Arrival at ControlPoint242 and then assign the arriving AGV to a label. Then, using that label, you can create a new task sequence to preempt the existing task sequence that tells the AGV to travel down path C. Likewise, you can create a task sequence with the other token that tells the AGV arriving at ControlPoint194 to stop and wait for the other AGV to finish crossing path C. Once the AGV clears path C, the second AGV can continue on its path. You might try saving the existing task sequence (maybe use gettasksequence to save it) and then create a new task sequence and insert the original task sequence in so the AGV finishes what it was doing. I'm not sure exactly how to set this up, but it's a suggestion that you can look into. I've built some of the logic and it can be seen in the image above.

agv-event-interrupt.fsm


· 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.

MINGYU L avatar image MINGYU L commented ·

Hi @tanner.p

First of all, I am sorry for the late response, and thank you for your kind response.

I think using the split you mentioned will solve the problem.

===================================================

But, I have an additional question.

what should I do to get a detour through the C path for a period of time? It was difficult to make it happen for a certain period of time because it was only based on events using split.

And, I answer your question[They consistently create 6 tokens when I am only asking them to create 1], the reason is expected to be as follows.

Perhaps it is because of the Main Control Loop logic I changed. My Main Control Loop logic does not go through all of the Next Look for, but goes directly to the destination. In the process, it seems that 6 tokens are generated as many as the number of AGVs in the process because the token only searches the destination.

0 Likes 0 ·