question

Peter avatar image
0 Likes"
Peter asked Peter edited

Flowitem in and out of storage using list goes wrong

Hello, I have a model where item go into a storage. They go in by 3 conveyors and are then placed by an ASRS. To keep track of what is in storage I used a list ('Wagons in Storage'). For the out flow I always pick on item from the list (correct type and clean) and want to send this out. However, the ASRS always seems to pick the same box. What di I do wrong?


FlexSim 23.2.0
storage systemlist pull from list
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

You should delete the sources in the process flow that are giving exceptions, and remove the Vognbuffer's transportdispatcher entry for the same reason.

At what time does the incorrect selection take place, for which type and from which 'storage' object? You have used Wagons in Storage for everything so it's not clear which action is incorrect.

Note also that you have no indicator to say which item is pickable - ie. at the end of a conveyor or at the front of the rack.

1 Like 1 ·
Peter avatar image Peter Jason Lightfoot ♦♦ commented ·

Yes, sorry that I still had some other error in there. I must say I do not really know what this line means:

time: 0.941611 exception: FlexScript exception: Array index out of bounds at MODEL:/Vognbuffer>variables/transportdispatcher

I think at one point I used a dispatcher but I recall I removed it, how can I pinpoint based on the error line where the actual error is? (again I cant find a dispacther in my model)

The actual problem that occurs happens during the outflow. (around minute 10).

At ~minute 11 the ASRS picks up the one box that has already went through the exit conveyors.

Additionally (starting at 12:20) the ASRS puts down the box at the conveyors and then picks up the same box while the operator is carrying it. This is then repeated so that always the same box leaves the storage through the conveyor over and over again.

Thank you for the help, I am a beginner.


0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Peter commented

"time: 0.941611 exception: FlexScript exception: Array index out of bounds at MODEL:/Vognbuffer>variables/transportdispatcher"

The error message relates to the transport reference field of the Vognbuffer. It tries to access the first centerport-connection. Since there is no such connection (the centerObjects array has 0 entries), you get the "Array index out of bounds" error.

1693223002270.png

This error is actually the only thing that even keeps the items in the rack. It still has output port connections and is set to send its items to the first available (deactivate the "Use Transport" option to see what I mean). If you want to control the output through Process Flow, you should remove those connections or set the buffer to not release items in the Send to Port option.

As for your actual question: You have checked the option to leave pulled entries on the list. Due to that, each token is pulling the same entry off the list.

1693223217172.png


1693223002270.png (3.7 KiB)
1693223217172.png (22.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.

Peter avatar image Peter commented ·
This solved my problems and also helped my understand the errors! Thank you!
0 Likes 0 ·