question

bnh-flexsim-for-masterthesis avatar image
0 Likes"
bnh-flexsim-for-masterthesis asked bnh-flexsim-for-masterthesis commented

Traveller AGV with proximity detection will not continue travelling

Dear All,


I have currently created a simple intersection modell with agent proximity detection. It seems fine, the AGVs stop at the defined proximity thershold, but in some cases, the AGV will not move again after exiting the proximity threshold of other AGVs, causing a blockade of the intersection.

I am not sure what causes this issue, so please find the modell attached.


Thank you and kind regards


First_Intersection_AMR.fsm

FlexSim 23.0.3
a starproximity agent system
· 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.

Ralf Gruber avatar image Ralf Gruber ♦ commented ·
Hello Bjarne,

you should at least explain the functionality you try to achieve and put explanatory comments in your source code on the Behavior tab triggers to motivate people to help you ;)


0 Likes 0 ·
bnh-flexsim-for-masterthesis avatar image bnh-flexsim-for-masterthesis Ralf Gruber ♦ commented ·

Dear Ralf,


I took the source code from the TwoPhaseAGVSystem.fsm in the Agent Module Example Models by anthony johnson in an article from the FlexSim community under the following link and implemented the code in my model.

https://answers.flexsim.com/articles/84495/agent-module-example-models.html
I am aware that the code is not fully applicable to my model, but i took it as a first idea to get my model running.

For my specific requirements it need some adjustments for sure.

What i am trying to achieve is a proximity functionality which detects all AGVs entering the proximity boundary of an AGV.

If an AGV enters the boundary between 0° and 90° (in which 0° should be the direction of driving and 90° should be the right side of the AGV), the current AGV (1) needs to stop, until the AGV entering the boundary (2) has left.

proximity-boundary.png



kind regards :)

0 Likes 0 ·

1 Answer

·
Ralf Gruber avatar image
0 Likes"
Ralf Gruber answered bnh-flexsim-for-masterthesis edited

It seems, you have a timing issue:

at roughly 45s TE5 fires the Broad Phase Proximity Entry trigger at TE1

at roughly 46s TE6 fires the Narrow Phase Proximity Entry Trigger at TE1

at roughly 48s TE5 fires the Broad Phase Proximity Exit Trigger at TE1

This switches off Narrow Phase behavior for TE1 and therefor TE6 leaving the Narrow Phase is not detected and TE1 is stuck in STATE_UTILIZE

Your logic does not consider more than 2 TEs overlapping.

Good Luck

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

bnh-flexsim-for-masterthesis avatar image bnh-flexsim-for-masterthesis commented ·

Thank you Ralf,

is it possible to add a counter to the logic? so that the Narrow Phase behavior only gets switched of if number of exits match the number of entries?

additionally, there might be a situation in which two TEs come to a deadlock.
they are facing eachother at 90° angle and stop, because none of them has a priority.
Is there a way to correct that issue?


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.