question

Rafael de Assis avatar image
0 Likes"
Rafael de Assis asked Joerg Vogel commented

How to control tugger AGV?

Hello everyone!

I intend to improve the AGV model with a tugger AGV, were aways the AGV drags two wagon whose:

First wagon:

- just loads flowitens with label 1 (gray collor) and unloads only in queue "buffer linha de motores"

- the capacity of this wagon is 16 flowitens

Second wagon:

- loads the flowitens 22, 320, 4100 and 5 (blue, orange, green and white respectively) and unloads only in queue "buffer expedição"

- the capacity of this wagon is 5 flowitens


general rules:

- The AGV pick up the flowitems in queue "buffer de saída" when the capacity for one of the wagons is full. In this moment the AGV pick up every flowitens for each wagon and unload the flowitens in respective queue.

- in queue "buffer linha de motores" the "operator 1" disconected the first wagon.

- in queue "buffer expedição" the "operator 2" disconected the second wagon

- the addictionals wagons is avaiable in "buffer de vagões" and aways that AGV leave the queue "buffer de saída" the operator "ajudante" drags the wagon for the "buffer de saída".

- After each trip of the loaded AGV, the AGV makes an empty trip to pick up the empty wagons and leave them in the "buffer de vagões". so the model have 4 wagons.

I'm young in simulation and I have no idea how to start.


Modelo situação AGV rebocador.fsm



FlexSim 21.1.5
agvtugger
· 4
5 |100000

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

Kavika F avatar image Kavika F ♦ commented ·

Hey @Rafael de Assis, what is the nature of this project? Is it a homework assignment for a class or is it a project for research in a graduate study?

0 Likes 0 ·
Rafael de Assis avatar image Rafael de Assis Kavika F ♦ commented ·
Hello!

Pos graduation.

I did a real situation without AGV, with a simple AGV and now I'm trying to make a tugger AGV... but I don't have idea how to start.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Rafael de Assis commented ·

@Rafael de Assis, wagons are by default first of all items. They have some restrictions like, they get destroyed on reset. You can prevent this by setting a flag. But I suggest you start with the API of Flexscript Class AGV. Think of a waggon as an loaded item. You tell then Flexsim in a trigger or an event that this item is upon now a wagon. Later on you want to load items on this wagon (still an item), then you move this last received item in this wagon. You build a structure of a container(still an item) and subnodes to this container as transported items. Unload items in a simple way is easy, because your Taskexecuter still executes tasksequences to unload items. Such tasksequences tell an item, wherever it is, to move into the destination.

Edit: AGV Class

0 Likes 0 ·
Show more comments
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

This is an example to start with: attach_trailer_by_code.fsm. I think you get an idea to go on with your request yourself. Please look into source code of triggers in "Queue attach trailer" (green queue) and TaskExecuter1


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

Rafael de Assis avatar image Rafael de Assis commented ·
Interesting!

Thank you! I Hope that is a good start.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Rafael de Assis commented ·
@Rafael de Assis, please investigate the process flow AGV template, too! There are some hints in this template to adjust its behavior for user conditions. And it reduces much work to do.
0 Likes 0 ·
anon-user avatar image
0 Likes"
anon-user answered Joerg Vogel commented

You can use an AGV Network function called "Attach Loads as Trailer" which is under AGV Types at the end of the properties.


If you want something more personalized, you can use flexscript or an initial process flow to create objects inside the AGV and use them as wagons. For the Process Flow you can use the Create Object and Change Visual activities.

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

Joerg Vogel avatar image Joerg Vogel commented ·
anonymous user, by default this option attaches all loaded items as trailers. In cases where you want to get trailers and load items on them as a mixture, you need to distinguish their behavior.
0 Likes 0 ·