question

Fabio O4 avatar image
0 Likes"
Fabio O4 asked Felix Möhlmann commented

Queue item type switch choose based on quantity

Hello, below i attached my model. The idea is to have an automatic warehouse, releasing items to process and then realod it into the warehouse. The project is working good but i want, that the six output queue of the warehouse can contain only 1 item to process and 1 processed item at the same time. I thinked about a token to create for switch the item types input of the queues but i'm not familiar with the process flow chart of flexsim. Spaggiari.fsm

FlexSim 22.1.3
queueflowchart
spaggiari.fsm (176.8 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.

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

Instead of using the process flow to influence the 3D logic, it might be easier to have it control the item flow directly. (It would be tricky to hit the right timings to change the allowed types of the pull requirement).

In the attached model the rack pushes all items with 'Lavoro < 10' onto a list instead of sending them through a-connections.

1658222616667.png

In the process flow, two tokens are created for queue, one in the upper flow and one in the lower.

1658222461322.png

The upper flow pulls unprocessed items from the list and has the ASRS move them into the respective queue the token belongs to. The tokens then wait until that item has left the queue again, so there can never be more than one non-processed item in the queue at a time.

1658222788579.png

The items are send to the processors by the 3D-logic. But like the rack, the processors also push the items back onto the list when they finish processing. The tokens of the lower part of the process flow then pull these processed items. To demonstrate a different approach, the transport is not controlled through the process flow there. Instead, the process flow tells the processor to release the item through the connections corresponding to the token's queue.

For this, an array label that contains all connected processors is added to the token. The correct connection can then be determined by the position of the processor in that array.

1658222801040.png

spaggiari_fm.fsm


Finally I would like to add: The simplest solution here would likely be to just have two queues at each position instead of one; one for the unprocessed items going in and one for the processed items coming back.


1658222461322.png (23.0 KiB)
1658222616667.png (10.1 KiB)
1658222788579.png (11.8 KiB)
1658222801040.png (9.5 KiB)
spaggiari-fm.fsm (184.1 KiB)
· 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.

Fabio O4 avatar image Fabio O4 commented ·
Thanks you so much for the response, was very helpful and fixed the problem. For the other queues of the project can i use the same logic changing the range of the label "Lavoro"?


Sadly i can't use two different queue for the processed and non-processed items. The project must simulate the pick and the realocation on the same bay of the automatic warehouse.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Fabio O4 commented ·
Yes, you should be able to change the query in the upper flow to pull other item types ('WHERE Lavoro > 3 AND Lavoro < 7', for example) and the rest should still work as long as the connections are set up the same way as they are for Queue1 and Queue2.
1 Like 1 ·
Sara Bonansea avatar image
1 Like"
Sara Bonansea answered

Hi @Fabio O4,

to solve your problem, I was thinking of splitting each queue into two different queues. For instance, "Queue1" can be split into "Queue1_IN" and "Queue1_OUT" with maximum content of 1 each. "Queue1_IN" will receive only not processed items from the rack and send them to the processors, according to their labels. Once the items have been processed, they will be sent to "Queue1_OUT" which will send them back to the rack. Logically it should be the same thing you were asking for.

I send attached the model with these adjustments made for Queue1 and Queue2. I hope this can help you!


spaggiari_1.fsm


spaggiari-1.fsm (175.8 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.

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.