question

moein avatar image
0 Likes"
moein asked Logan Gold commented

how AGV can wait for 3 pallet for load ?

Hi. I have a question regarding to the AGV's logics . in my project, there are 2 AGVs that loading boxes from 2 Queues. AGVs can load the boxes from queue1 only when 3 boxes are available. for the Queue3 they can load 3 pallets or 1 and 2 pallet after 10 minutes. and they should unload their boxes before loading new boxes. but now sometimes they are moving with two boxes or decide to loading their 3th box from another queue. and sometimes after waiting in one of the queue moves to another queue without any loading.screenshot-2024-09-03-181344.png

FlexSim 24.1.1
agv loadconditionalwaiting
· 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.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @moein, was Jesús Padilla's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jesús Padilla avatar image
0 Likes"
Jesús Padilla answered

Hi Moein,

Apparently it was a timing issue. When the very first 3 boxes arrive to Queue1, the Dispatcher checks that AGV1 is occupied (loading) and sends the task to pick up the third box to AGV2. So the tasks are sent item by item to the AGVs so if one is free when the other one is loading the dispatcher will mix up the order of the AGVs. Just changing the setting "Pass to" -> Pass to the object closest to the destination seems to solve the problem as a "quick fix".

wait-for-3-pallet-for-load_SOLUTION3D.fsm


Working in Process Flow makes it way more flexible and easy to customize/understand. Here I leave attached another solution using Process Flow. There is not anymore the need of A connections between the queue or the Dispatcher object.


1725437753777.png


Here we have two sources of tokens (items in this case) that are created whenever an Item arrives to each of the queues, then these are batched (3) and whenever a batch is ready we ask with the acquire resource if an AGV is available and then start the travel-load-travel-unload process, when it is finished the AGV is released back again and can be acquired in any of the two pick up Queues.


wait-for-3-pallet-for-load_SOLUTIONPF.fsm


Just to point out, this Process Flow solution is a simple and general one and it can be done even more scalable and flexible.


- Jesús


5 |100000

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