How to use Traffic Signal Logic in AGV Network

How to use Traffic Signal Logic in AGV Network

athodupunoori
Participant Participant
5,137 Views
11 Replies
Message 1 of 12

How to use Traffic Signal Logic in AGV Network

athodupunoori
Participant
Participant

[ FlexSim 21.1.5 ]

Is there any way that traffic signal logic can be implemented on agv 2 way aisle.


lets say we have a agv path as shown in below picture.

1655247521396.png


when forward going vehicle reaches the 2-Way aisle, they should check the traffic signal logic should apply and if its red then forward going vehicles should stop at a place where it marked blue.

1655247901634.png

Then it should wait until traffic lights turn green, until then the 2-way aisle should allow vehicle flowing left.


same logic should apply for the vehicles moving left side.


0 Likes
Accepted solutions (1)
5,138 Views
11 Replies
Replies (11)
Message 2 of 12

SimFlex_support
Advisor
Advisor

@Ankith T If you use 'Control Area' object in two-way zone, you can solve your issue.

0 Likes
Message 3 of 12

patrick_zweekhorst
Collaborator
Collaborator

Hi @Ankith T ,

Maybe this old post has some information for a possible solution for this. The question looks very similar to yours.

Claim two-way AGV path for one direction - FlexSim Community


0 Likes
Message 4 of 12

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

My suggestion would be to add the signal control points as agv waypoints. The attached logic can then have the agvs wait based on a label value on the control point.

1655280338912.png

In the attached model, the 'state' label shows if the signal is currently green or red. If it is red, a second label 'greenTime' shows the model at which it will turn green again. This is used to determine for how long the agv should wait.

The switching of states is done in a simple process flow.

trafficlogic.gif

TrafficLightTest_fm.fsm

0 Likes
Message 5 of 12

athodupunoori
Participant
Participant
thanks for the solution this helps a lot, but can i know 2 things,

1. how are you able to allow multiple agv on 2-way aisle without using control points over there?

2. how those traffic lights are changing?

0 Likes
Message 6 of 12

FelixMoehlmann
Collaborator
Collaborator

1. The first control points after the path splits again are set to allow up to 8 simultaneous allocations.

1655300674064.png

2. That is also part of the process flow. The second activity in each block updates the labels on the respective control point. The last one changes the color of the object next to them.

1655300711003.png

0 Likes
Message 7 of 12

athodupunoori
Participant
Participant
thank you so much, this helped me a lot
0 Likes
Message 8 of 12

athodupunoori
Participant
Participant
how can i change the traffic light time, as of now lights are changing every 15 seconds, what if i want it to be 30 or 60, what are the parameters i have to change to achieve that.
0 Likes
Message 9 of 12

FelixMoehlmann
Collaborator
Collaborator

The delay times in the process flow.

1655839822050.pngThe text is the state of the system for the delay time next to it. The name of the two activities after the delay describes the change afterwards (starts with 'west green', after 15s west switches to red so then the state is 'both red' and so on).

1655839647876.png

0 Likes
Message 10 of 12

athodupunoori
Participant
Participant

thank you, i have one more question, can you explain what those triggers means in waypoints. just want know how thus whole logic is working what those commands means.1656009226404.png

0 Likes
Message 11 of 12

FelixMoehlmann
Collaborator
Collaborator

Both of those are pre-defined options you can choose from the dropdown menu.

The first 'Wait For Defined Delay Time' stops the agv at the waypoint for a specified amount of time. In this case this is bound to the condition that the 'state' label on the control point has the value 'red'. If it was 'green' the this function will not fire. To determine the delay time, the 'greenTime' label on the control point is used. This label stores the time at which the the traffic light will turn green again.

(I seem to have forgotten to mention this in the previous comment: When changing the delay times in the process flow, the value assigned to that value also has to be adjusted so it coincides with the token continuing)

The delay time should be the time until the agv can continue, so it is calculated as 'time at which light turns green (greenTime) - current time in the model (Model.time)'. The small offset of 0.001s is there so the agv definately only continues after the light turned green.

The second part just sets the agv to continue to its previous destination after it was delayed.

0 Likes
Message 12 of 12

Student590
Not applicable
Hi Felix, will you be able to guide me on how to create this traffic flow?
0 Likes