question

Johann avatar image
0 Likes"
Johann asked Jeanette F commented

How to load a queue with an AGV by adding conditions linked to a global table ?

Hello,

I'm currently working on a model in which I'm loading several different parts into different queues. The agv has to load the queues according to the production order (found in the global table "OrderHistory"). For "ORDER_1", the agv must load the queues from "Poste 1", for "ORDER_2", the agv must load the queues from "Poste 3", and finally for "ORDER_2", the agv must load the queues from "Poste 2". But I don't know how to add a condition to the queues to make it work. Do you have any idea of the exact syntax? Attached is the flexsim template. Otherwise, I had thought of creating a label that increments each time a part is created, but I didn't succeed.
v13.fsm

FlexSim 23.0.10
agvagv loadunload itemsload unloadagv queue
v13.fsm (227.7 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Johann, was Felix Möhlmann'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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The first advice I would give you is to not use the AGV template for this. It implements a behaviour where an AGV 'patrols' along a route and picks up anything that needs to be moved which it finds along the way.

To model more targeted behaviour you will have more success by constructing your own Process Flow. If you haven't done so already, I would suggest you take a look at the tutorial linked below (1.2 - 1.4).

https://docs.flexsim.com/en/24.0/Tutorials/TaskLogic/Tutorial1TaskLogicTools/1-2TasksProcessFlow/1-2TasksProcessFlow.html

Some additional pointers for your model:

- You can use a single global list to hold all items that are available in the queues but partition it by the queues. That way you can pull items from a specific partition/queue depending on the order.

- When building a Process Flow, first decide what 'Point of View' to take. Do the tokens represent the orders that acquire the AGV or vice versa? In this case the first might make more sense. You could consolidate all information for the order onto a single token, acquire the AGV and have it run tasks until the order is finished. This will make controlling the order of operations somewhat easier.

5 |100000

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

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.