question

Jason P2 avatar image
0 Likes"
Jason P2 asked Ben Wilson commented

AGV Task Sequence shortest distance

I want to use this logic in a bigger model so I mad a quick example. I have a list of tasks (picks from a rack) that I am pushing to a list. I want the AGV to pull the tasks from the list but I want the AGV to pick the task with the shortest distance first. I am also using the new AGV travel offset because I do not want to put nodes in front of every bay on the rack


thanks


AGVDistance.fsm

FlexSim 20.2.2
agvflexsim 20.2.2
agvdistance.fsm (61.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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @jason.p2, was benjamin.w2's answer helpful? If so, please click the red "Accept" button on 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 or comment back to reopen your question.

0 Likes 0 ·

1 Answer

Benjamin W2 avatar image
0 Likes"
Benjamin W2 answered

Hi @jason.p2,

Unfortunately the distance field in your list will only point to the box's parent object, which is the rack. You can see this when I set TaskExecuter1 to the puller:

One way to get around this is to set the task's priority to the bay the box resides in. In the "Create TS" activity, it should look like this:


Then, add a priority field in your list:

Then you can query by the priority in your pull from list:

This is how it looks when it is done:

Essentially, you won't be able to order by distance if you care about the exact location of the item in the rack. However, if you have multiple racks, you could order by distance to get the closest rack, then order by bay again to get the closest bay.


agvdistance.fsm




1599060277787.png (30.8 KiB)
1599060328545.png (34.3 KiB)
1599060357942.png (31.8 KiB)
1599060362107.png (31.8 KiB)
1599060400459.png (33.6 KiB)
orderbybay.gif (586.3 KiB)
agvdistance.fsm (49.8 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.