question

amandaprado avatar image
0 Likes"
amandaprado asked Gustavo Teodoro answered

Load all item

Hello Everyone,

I'm creating a model in which when an item enters the queue, it creates a token in the process flow and this token triggers the transport activity where the AGV must remove the item from one queue and take it to another.

What I would like to do and I'm not able to do is that when an AGV is going to remove an item and at that time another item enters the queue, this AGV already takes everything in the queue and not just one item. What's happening is that each item creates a token and each token is calling a different AGV, which doesn't make sense and excessively increases the use of AGVs.

Is there any way to create logic that would prevent this from happening?
Doubt - Load all items.fsm

FlexSim 24.0.0
processs flowloadagvload
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

Gustavo Teodoro avatar image
0 Likes"
Gustavo Teodoro answered

Hello, one approach for AGVs to collect all the boxes at once would be to implement a control logic. In the process flow, a token was created for each queue. As soon as an item arrives in one of the queues (Wait for Event), one of the AGVs is activated (Acquire Resource) and travels to the queue (Travel).

At the queue, the AGV always loads the first item (command: token.Queue.first) and then passes through a condition check (Decide) to verify if there are any remaining items in the queue that need to be loaded (Conditional Decide: token.Queue.subnodes.length == 0). If there is an item, it is loaded. Otherwise, the AGV proceeds to unload and the same condition is checked to ensure all items are unloaded. The AGV is then released, and the process starts again.

I have attached an example.

FX_Load-all-items.fsm


5 |100000

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