question

jaehwans avatar image
0 Likes"
jaehwans asked Kavika F commented

How decide destination on resource available

Hello, in the model, I am trying to decide where the AGV would go to charge the battery during 'on resource available.'

The charge stations are the gray cylinders in the model.

When the AGV is on 'resource available,' I would like the AGV to go to the closet charge location that is in the direction the AGV will go since the AGVs go in one direction.

Thank you.

1651823925619.png

20220506_Charge Station Destination Question.fsm

FlexSim 21.1.5
agvdecidebattery chargedestination
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @jaehwans, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

I added a group for the charge points and a list with that group as the initial values.

Then I added an expression to the list, for the AGVdistance between control points of the AGV and each charge point.

In the resource available trigger I pull from the list (leaving it on the list - not sure how you want to handle availability) and if it's not the location of the AGV create a travel task for it to go there.

20220506-charge-station-destination-question_jl.fsm


5 |100000

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

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.