question

TTL avatar image
0 Likes"
TTL asked Andrew O commented

Allocating Control Area vs Control Points

WS Queue Alloc.fsmHello,

Is there a way to treat a control area differently than a control point on path allocation. I currently have some custom code for AGV logic that allocates all necessary points in a path on AGV Build Travel Path. I want to try using a control area to trigger a re-evaluation of path and make the AGV query if a further position is free. In a sense, directing the AGV to an intermediate position and having it be triggered by the control area to re-evaluate if its final queue position would be available. I am not sure if I am attempting to use control areas in a way they are not intended for though, as they seem to be used mostly for traffic control and excluding too many AGV's from a certain area rather than being bounds for triggering path logic?


In the file I have attached, my intention is to have the AGV be directed to control point 5 or 6, but upon entry to the control area, check if control point 10 is available and redirect to there if it is.

FlexSim 23.0.0
agvagvcontrolcontrol area
ws-queue-alloc.fsm (42.4 KiB)
· 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.

Andrew O avatar image Andrew O commented ·

Hi @TTL, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

There is no event that marks an AGV "entering" a control area. You can detect when the area is acquired, though depending on the placement of control points around it that might happen quite some time before the AGV actually arrives at the area.

Going by your description I believe you could try to use the Waypoints mechanic of the AGV network. Add the control points inside the area to a waypoint and redirect the AGV when it (pre-)arrives at one of them. Since you allocate the entire path at the start, the AGV will only resume its travel if the destination control point is available, so detecting whether it is allocated or not might not be necessary.

1673940958481.png

Though that is possible by checking if the "allocations" node in the control point's attribute has any subnodes or not.

1673940930939.png

ws-queue-alloc_1.fsm


1673940930939.png (10.4 KiB)
1673940958481.png (20.5 KiB)
ws-queue-alloc-1.fsm (134.4 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.