question

Marc K avatar image
0 Likes"
Marc K asked Joseph Gillespie commented

4-Way Intersection,

I have a 4-Way intersection where forklifts travel down one hallway and personnel cross that traffic to travel down another hallway. I need the staff to stop and wait for the area (4-way) to be safe to cross. I have tried barriers and process flow without success. Is there a simple way to have an intersection with parameters.

,

FlexSim 19.0.1
4-way intersection
· 3
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

Benjamin W2 avatar image
1 Like"
Benjamin W2 answered

Hi @Marc K,

There are several ways to do this. One of the easiest is with process flow.

On a high level:

  • Drag out a Resource activity in process flow.
  • You will need to build in some logic to trigger a token creation when an entity is about to go into the intersection. In the sample model, I have both task executers travelling on a network. Every time they are about to enter the intersection, a token is generated using an Event Triggered Source activity.
  • Whenever a task execute is about to enter an intersection, it will try to acquire the resource using an Acquire activity. If the resource cannot acquire the activity, then use the Max Wait Timer in the Acquire activity to tell the object to stop.
  • When the task executor successfully acquires the intersection, resume the task executor using a Custom Code resume object command.
  • From there, you can use a Wait for Event activity to wait for the task executor to clear the intersection, then use a Release activity to make the intersection available again.

This is one way to accomplish this. However, your model may have specifics that will require modification. Here is another way to do it using PLC emulation:

https://docs.flexsim.com/en/19.1/Tutorials/AdditionalTools/Tutorial3Emulation/3-2AddAreaRestrictionPLCLogic/

I hope this helps!

intersection.fsm


customcode.png (11.7 KiB)
intersection.gif (869.7 KiB)
intersection.fsm (39.3 KiB)
5 |100000

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