question

guoyi avatar image
0 Likes"
guoyi asked guoyi commented

How to pull a crane from a list based on distance

study-crane.fsmAs shown in the question, I want to pull the crane closest to the event trigger point from the list. I tried the method in the old post, but it doesn't seem to work. Can you help me take a look?And pushing the list seems to have only input but no output, what is the reason for this

1685025248596.png

1685025437762.png

1685025344825.png



FlexSim 23.1.2
cranelist pull from list
1685025248596.png (19.6 KiB)
1685025344825.png (16.1 KiB)
1685025437762.png (22.3 KiB)
study-crane.fsm (50.4 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

Jonah K avatar image
0 Likes"
Jonah K answered guoyi commented

Your puller is incorrect in the Pull from List activity. Looking at the distance calcluation from the puller (box) to the cranes, it gives very small values (3-11 meters). This is because the box is in a different coordinate space (the queue's space) than the cranes (the global space). By changing the puller reference to be token.item.up (the queue containing the item), I was able to get a more accurate distance calculation.

2023-05-25-14-40-35.gif

In this model, I set the puller reference to be token.item.up and added a breathe so I could test the distance calculation.

study-crane_JK.fsm


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

guoyi avatar image guoyi commented ·

Thank you very much for your reply, my problem is completely solved, wish you have a nice day

0 Likes 0 ·