question

Wang K avatar image
0 Likes"
Wang K asked Wang K commented

AGV Travel to a Home Location?

Hi!

I'm the begginner of the simulation, currently i need to simulate the factory that move item by AGV, the problems is that i want the AGV back to home after finsih the task so i add the trigger on its propertiy, but i want to add the condition that idle time > 5 minute ,then AGV will back to home. How do i do this? Thank you for your help!

FlexSim 18.0.10
agv
擷取.png (22.7 KiB)
project18.fsm (208.5 KiB)
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

·
Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered Wang K commented

@Wang K If you use process flow, you can use the eventriggered source when the onresource available is fired, then have him wait 5 minutes, then check if the status is still idle and then send him home.

If you use only 3D, first select the option to travel to a home location on the onresourceavailable trigger so that you know what code to copy. Then forget about this code and use a senddelayedmessage on the onresource available trigger and then on the onmessage you have to check if the AGV is still idle and when it is, you use the code that you looked at first.

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

Wang K avatar image Wang K commented ·

@steven.hamoen Thanks very much, since i use 3D model but i have no ideal to do the code, could you give some example about the code? Thanks again

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen Wang K commented ·

@Wang K

Here is the sample model. I actually used the Unload trigger because if I used the onresourceavailable trigger it would also fire after the parking move was finished and you create unnecessary events. If you use step you can see very good what the model does.

5minutewait.fsm

0 Likes 0 ·
5minutewait.fsm (22.5 KiB)
Wang K avatar image Wang K commented ·

@steven.hamoen

Thank you very much, it really helpful. But i have one last question, how do i let AGV follow the AGV path to go back? because if i use the code, it wont follow the AGV path to go back.

Once again, thank you very much.

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen Wang K commented ·

@Wang K

Can you post the model to show my what you have tried?

0 Likes 0 ·
Wang K avatar image Wang K commented ·

@steven.hamoen

I add the code by your model but i find out that when the car travel home its wont follow the AGV path, its just go straight line.

I add the code at car1 to car4.

Thanks

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen Wang K commented ·

@Wang K The travel task was a TRAVELTOLOC and that doesn't use the network. So I changed it into a TRAVEL task and that one follows the network. Only thing is that we have to have a destination where it should travel to so I made a group with the 4 parking positions and I gave every car a label with a number and then it will travel to a parking position

agvmodelwangk.fsm

0 Likes 0 ·
agvmodelwangk.fsm (211.6 KiB)
Wang K avatar image Wang K commented ·

@steven.hamoen

Thank you very much, this is exactly what i want to do.I truly appreciate your help on this matter.

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.