question

Borja Lorenzo avatar image
0 Likes"
Borja Lorenzo asked Felix Möhlmann commented

Area Control in Astar with Label Filtering

Hello everyone,

Could a label be used to apply in the control area?

In the simplified scenario, I have four AGVs: two with the string label "planta" and two with the string label "tren."

What I want to achieve is that AGVs with the label "planta" are not affected by the control area, but the control should apply to AGVs with the label "tren" and among those with the label "tren."

In other words, when an AGV with the label "tren" enters the control area, it should not allow anyone else to pass, regardless of the label, whether it is another with the label "tren" or different (in this case, "planta").

On the other hand, if an AGV with the label "planta" enters the control area, it should allow anyone with the label "planta" to enter but not anyone with the label "tren.


Simplificacion control area in Astar.fsm

FlexSim 24.1.1
agvlabelastar navigatorcontrolarea
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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Felix Möhlmann commented

You can manually allow or deny allocations by overriding the return value of the "On Request" event. So you'd store which type of AGV is currently in the area and make a decision whether to allow a request or not based on that.

simplificacion-control-area-in-astar_1.fsm

(In the attached model I changed one of the TEs type to better showcase the logic. Their order is now tren, planta, planta, tren)

I used the same approach in this post where I also explain the thoughts behind it in a little more detail.


· 6
5 |100000

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

Thank you very much. With the Process Flow, it is much more visual. I was configuring code for the OnRequest trigger of the Control Area. I was also setting the value of a Mode label in the control area to be dynamic based on allocation and deallocation. This simplification could work.

But if I wanted to refine it a bit more... How could I make it so that when the Control Area allows AGV with the plant, it also allows only one train? After this train enters, the described logic would follow. It would not allow any other train or plant to enter. Thank you very much in advance.


0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Borja Lorenzo commented ·

So it would be any number of plant + one train? Since the mode is updated for every new allocation this would simplify the return value code for the OnRequest event down to the following (if train wait, otherwise enter).

1738144652961.png

1 Like 1 ·
1738144652961.png (17.4 KiB)
Borja Lorenzo avatar image Borja Lorenzo Felix Möhlmann commented ·

This is what I really wanted. It works like a charm.

Thank you very much.
I am attaching the simplified model with this update in case it can be useful to someone else. I have added Rules A navigation so that each mandatory path is linked only to one type of AGV. I hope it is useful for others. Felix's contribution is very good.

simplificacion-control-area-in-astar-1_2.fsm

0 Likes 0 ·
Show more comments