question

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

Sort token after enter zone

Hi there,
At 1261.17, TE1 carries a red (send to station2) and blue (send to station3) box,
in real environment, TE1 should unload red box when it passed by station2, but it will travel to station3 first as the token first entered zone.

Is there any way to sort the token according to station value in ASC, such that TE1 will drop redbox at station2 first then drop blue box at station3.

I found this question might help to achieve what I need, but I need some help on the snippet code ><

Thanks for any assistanceSortzone.fsm

FlexSim 18.1.2
processflowzonezone partition
sortzone.fsm (54.2 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Emily K commented

Optimizing the task order by distance isn't quite to easily done. To achieve the lowest travel distance the AGV might have to unload the first item before loading the second for example.

To optimize the task order, you should check which position (either the load or unload position of either item) is closest to the current position of the AGV and then do the respective task first. (This works well as long as the network is a single loop without any branches.)

taskorder-fm.fsm

Using the AGV Process Flow template would actually result in almost the same logic.


taskorder-fm.fsm (53.8 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.

Emily K avatar image Emily K commented ·

Thanks for your prompt reply!

0 Likes 0 ·