question

Jason P2 avatar image
0 Likes"
Jason P2 asked tannerp commented

Sort Pick By Distance with New AGV 2020 update

I figured out how to use the new AGV offset travel so the AGV stops in front of the item in the rack. I want to know is there any way to sort all the picks on the list so the AGV picks the item in the order in sequence. I tried finding the bay and the slot and sorting the picks but that didn't work. Also tried the getdistance command that also did not work. I attached the model look at the Find SKu in the picking process thands



AGVtest.fsm




FlexSim 20.1.0
flexsim 20.1.0
agvtest.fsm (67.3 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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

@Jason P2, you can really simple get an order of your tokens. You insert a Delay Activity. The delay time is a mulitiplication of token.Bay and a small constant value. The tokens are released in order of lowest bay number first.

· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

delay time for ascending bays:

token.Bay * 0.0001

delay time for decending bays:

(100 - token.Bay) * 0.0001 // I assume number of bays < 100
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel commented ·

If you want to get the distance of stored items in a rack, then it is their location in the rack.

Vec3 locInRack = item.location; 
double xValue = locInRack.x;
0 Likes 0 ·
Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered

@Jason P2 if you have the slot you can ask for the BayID property (token.slot.as(Storage.Slot).bayID). This is actually a simple integer which you can use to sort the products in the right order. I attached a small demo model that might be of use.

demoFlowRack2.fsm


demoflowrack2.fsm (985.7 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.