question

Sung Kim avatar image
0 Likes"
Sung Kim asked Sam Stubbs commented

BUG?? Visual Change as unload on to Queue

After I discussed with FlexSim Tech Support, I was suggested to post the issue here to share what we learned and to report the issue so that we can get developer's further help.

To demonstrate the issue, I attached the testing model that tests executing set location command for the flowitem when it is loaded and unloaded.

In the testing model, an operator travels to Queue1, loads flowitem, travels to Queue 2, unloads the flowitem, delays some time, and loads again the flowitem and travels to Queue3.

When the operator loads the flowitem from Queue1, it changes the flowitem's Z location, so that it looks like dragged on the floor (minus Z)

When the operator unloads the flowitem at Queue2, the Y location is supposed to be changed, so that it looks like kicked to the side. (plus Y)

By the way, I use Task Sequence just because I use it in my original model.

The issue is..

Z location change works fine as operator loads it from a queue. However, Y location change doesn't work as it is unloaded onto a queue.

The interesting behavior is that... the Y location change WORKS WITH BREAKPOINT. If you put a breakpoint just in front of the Y set location command and step through, it works.

Now, what we discovered is that if we use BasicFR, or other objects other than Queue, it also works. So, if BasicFR can replace the Queue in the original model, problem is solved. Whatever the reason, if Queue must be used, it would have some trouble.

FlexSim Tech also tried using ProcessFlow to test this issue, and same results are found.

I hope this would be a little helpful tip for members, and hopefully FlexSim developer would take a look on this. If it is already known issue, and reported somewhere, please take my apology not to read or check the report :)

Thanks!

setloctest.fsm

locationsetloc
setloctest.fsm (17.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.

1 Answer

·
Matt Long avatar image
0 Likes"
Matt Long answered Sam Stubbs commented

The Queue has built in logic for how to position flowitems that are inside of it. If you want to override this logic, you have to tell the Queue not to execute this logic. This can be done by opening the Queue's properties and setting the Item Placement to Do Nothing.


itemplacement.png (13.9 KiB)
· 3
5 |100000

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

Sung Kim avatar image Sung Kim commented ·

Hi, @Matt Long

Thank you for the answer! Yes, you are right. When I set to "Do nothing", it works fine with QUEUE. I didn't think about that option. It is not a bug, it is legit behavior indeed for the queue object then!

One thing still makes me puzzled though is that why STEPPING THOUGH works without the "Do Nothing" option. Maybe stepping through the logic automatically overrides the placement option??

Thanks much again for your explanation!

0 Likes 0 ·
Matt Long avatar image Matt Long Sung Kim commented ·

The queue updates its item locations when the queue is drawn. By running the debugger the draw code is probably being fired differently, though I'm not 100% sure why its doing that.

0 Likes 0 ·
Sam Stubbs avatar image Sam Stubbs ♦ Matt Long commented ·

Thanks Matt! Definitely helpful!

0 Likes 0 ·

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.