question

Ajay M avatar image
0 Likes"
Ajay M asked Ajay M commented

How to make AGV wait and load untill a processor finish a batch of items

Hello all,

I'm using process flow and AGVs to carry out some batch loading and unloading activities.

AGV doesn't wait for the entire batch to be processed before delivering a batch of items to a processor. I also used the "wait for event" command, selected the processor's output queue, and then the AGV picked only a few items before moving on to the next queue. For a better understanding, refer to the attached image.

1670932546144.png

I'm seeking for a solution that should allow the AGV to wait until the entire batch has been processed, loaded into the AGV, and then unloaded into the following connected queue.

Here is the Model Batching logic.fsm

FlexSim 22.2.3
agvprocess flowbatchingwaitforevent
1670932546144.png (112.7 KiB)
batching-logic.fsm (48.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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Ajay M commented

There are a number of ways to approach this and simplest 'fudge' is to batch the tokens (in the 'sync' activity attached).

Really each step should be a subflow since then the parent token waits until all child tokens are completed.


batching-logic_jl.fsm


· 5
5 |100000

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

Ajay M avatar image Ajay M commented ·

@Jason Lightfoot Thank you very much for your solution, it works well. I really appreciate your quick responses.

I would like to ask one more question. When I run the above logic with a simulation speed of seconds and minutes, it works fine, but when I try to run the same simulation with a simulation speed of hours and days, my model does not work and my AGv remains frozen. I want to cycle through the process flow activities and examine the simulation outcomes over a time period of hours and days. Is that even possible?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Ajay M commented ·
You're suggesting one or two things:
  • The model doesn't repeat when running fast
  • The model doesn't run long enough

As I said in my answer - I think you really need have one token move through each step which is in turn a run-subflow activity in order to guarantee the coordination instead of the two that you have currently.

0 Likes 0 ·
Ajay M avatar image Ajay M Jason Lightfoot ♦♦ commented ·

Hi @Jason Lightfoot

Actually, both of these things are occurring in my model. When I change the simulation speed from minutes to hours, it does not repeat. Also, despite increasing the simulation speed to hours, the token stays dead, indicating that it has been stopped in a specific sub-flow. In my model, I developed a sub-flow for each processor-based task (such as loading at queue 1, processing an item at processor 1, and unloading at queue 4). Similarly, if there is another new processor, I want to repeat the process with a new sub-flow for each new processor activity. I'm not sure if I'm doing it correctly, but I was able to generate my desired model with corresponding job activities in the end.

Also forgot to mention, when I set the batch size to 10 or 20 units then I am not facing any problem with the simulation run but when I set the batch size to 400 or 500 units I am addressing this issue.

Do you mean I should join all the processors and their activities into a single sub-flow? like in the image attached. If not please correct me.

Thank you in Advance

1671043468334.png


0 Likes 0 ·
1671043468334.png (27.9 KiB)
Show more comments