question

Michael O'Connell avatar image
1 Like"
Michael O'Connell asked Michael Kramer answered

Is there a "trigger-like" capability with Control Areas like Traffic Control?

FlexSim 16.1

Traffic Control has triggers for OnEntry and OnEntryRequest, but Control Areas don't have anything similar. I want to be able to provide acceptions to the Max Allocations based on the states/directions of AGVs.

If I have a Control Area with Max Allocations of 1 and AGV1 is in the area and traveling its length, then no others can enter. But if AGV2 is trying to enter simply to cross over, I might allow it if AGV1 has already passed that crossover point.

I'm sure I can change the Max Allocations with code, but I don't know how I would trigger execution of that code.

FlexSim (other - please specify)
FlexSim (other)
agvcontrolallocations
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

Michael Kramer avatar image
2 Likes"
Michael Kramer answered

@Michael O'Connell, I ran into an issue where I needed more customized traffic control and I ended up using Process Flow after having help implementing a code and 3D model based control. I declared a global variable and anytime an AGV reached a control point it would increment that variable (entering the control area), and when it left it would decrement the variable (leaving the control area). Anytime an AGV entered that "area", it would need to check the value of that variable and either wait until it decremented to/below a certain allocation value, or just drive through (at/below the required allocation value). The cross-traffic could work on a totally different set of allocation values on other control points so you wouldn't need to be restricted by the cross-traffic.

5 |100000

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