question

Milan U3 avatar image
0 Likes"
Milan U3 asked Milan U3 commented

Order by distance issue

Hello guys, I would like to ask you for help. I need to do quite simple thing in Flexsim, but even I tried everything, I can´t find the answer.

I need to pull from list the closest tote to Operator to load item from it. I don´t know what is wrong. It doesn´t work, token always gets stuck in the "pull from list" block.

Thanks in advance, all the best.


volvo_JIS_relocation.fsmorder-by-distance-1.png

FlexSim 23.1.2
distanceorder bypuller
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

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Milan U3 commented

Hello @Milan U3,

This is because you define the puller as the operator but the operator does not have the label mat_index. I changed your assign labels activity to assign the label to the operator and then the query works. You will want to review if the mat_index label can be written to just the operator of if it also needs to be written to the token.

volvo-jis-relocation_JF.fsm


· 4
5 |100000

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

Milan U3 avatar image Milan U3 commented ·
Hello Jeanette, thanks a lot. Unfortunately, there are not any changes in the file You attached- please, could You send me it once more? I would like to try it. Thanks
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Milan U3 commented ·

Just duplicate the assign labels and and set to to token.op to add the the mat_index to the operator.

You're model is going to crash soon afterwards in the delete_rows activity - you should add this clause or actually populate the label with table structured data.

if (virtualtable.numRows)
    virtualtable.deleteRow(rowsqty);

Your model will appear to stop/lock 424.16 as the token in PartsCollecting loops continually in zero time.

0 Likes 0 ·
Milan U3 avatar image Milan U3 Jason Lightfoot ♦ commented ·

Thanks @Jason Lightfoot . I did It like in the picture, but there is still "puller required". Operator does work, but ORDER BY query doesn´t work. What is the reason? Thanksorder-by-distance-5.jpg

0 Likes 0 ·
Show more comments

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.