question

Ruben Mariduena avatar image
0 Likes"
Ruben Mariduena asked Ruben Mariduena commented

How can use a dispatcher in a process flow to dispatch a task sequence to created task executers that are part of a AGV path?

pfdispagv.fsm

Please see the file attached for an example of the case I'm trying to find a solution to. I'm using transports to deliver boxes from one queue to another through an AGV. Since I have more than one TE, I'm using a dispatcher to send the task sequence to first available. The task sequence is a subflow I created and that is referenced in the queue to use that task sequence to deliver the packages. The task executers are created and connected on simulation start using a process flow (I need it to be like this for my case). How can I assign the task sequence in the subflow to the TE that are connected to the dispatcher? When I put "current" in the subflow, instead of dispatching it to the TE it dispatches it to the dispatcher itself

FlexSim 16.2.0
agvdispatchersubflowcreate object
pfdispagv.fsm (31.5 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.

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

After reading through your question and looking at your model. I feel that you could accomplish what you're trying to do by using the the AGV Process Flow template. Have you already gone through the template and tried implementing it?

0 Likes 0 ·
Ruben Mariduena avatar image Ruben Mariduena Sam Stubbs ♦ commented ·

I haven't, but looking at it right now since you mentioned it looks like it could work. My problem is that my actual model (and not the example that I posted earlier) is very complex and it contains very large process subflows that are being used by different queues throughout the model to give task sequences to transports. Implementing this change will take me a long time and I have a few deadlines I have to meet in the coming week. Is there a way to implement my current model idea and distribute subflow task sequences to TE in a AGV using a dispatcher? I will look into implementing the AGV process flow as a long term solution to my issue

0 Likes 0 ·

1 Answer

·
Matt Long avatar image
0 Likes"
Matt Long answered Ruben Mariduena commented

First off, it appears there is some kind of bug that isn't placing the AGV on the control point when you create him there. We'll have to stick that on the dev list.

As for why the Dispatcher isn't dispatching the task sequence to the AGV, this has to do with how you're dynamically connecting them to the dispatcher, rather than connecting it up and then hitting reset. All you need to do is tell the AGV that he is available to receive task sequences by calling:

openallip(TE);

after you call the contextdragconnection().

· 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.

Ruben Mariduena avatar image Ruben Mariduena commented ·

Thank you Matt it worked.

0 Likes 0 ·

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.