question

shanice.c avatar image
0 Likes"
shanice.c asked Felix Möhlmann answered

Task executer redirect via Direct Reference

I'd like taskexecuter spend some delay time before turning direction, this is a delay for rotating task executer itself.

I would like to use Wait for defined delay time and Redirect via Direct Reference at this question https://answers.flexsim.com/questions/57502/how-to-make-agv-stop-at-each-control-point-for-spe.html

While in Redirect via Direct Reference trigger, I have problem what to fill in to the Destination field. Because in my TaskExecuter network and process flow, I don't use the connections( such as NextWorkPoint and WorkForwarding), I tell task executer a control point to go directly. Using above method, task executer would delay at this point, but how could I let it start travel again if I don't use any connections in model.

In attached model, I use cpconnection(currentCP, "WorkForwarding", 1) as destination, but this is not easy to control when it's going another way, the parameter 1 is invalid. Because there are many chance to rotate and the rotatating control point mostly has 2 options. Such as picture below, if the destination is asked to go to green queue, then TE should go to CP B, while go to CP A.


a.png


I have another method that use path radius and speed to let task executer spend 8 seconds(the desired delay time for rotating itself) travel through every curve path, but I have problem define curve path radius under given travel speed.


1209.fsm

FlexSim 21.2.0
agv redirect
a.png (312.4 KiB)
1209.fsm (132.5 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.

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

It seems that because the AGV has an active task sequence from the process flow, the "Wait and delay" function won't actually cause it to wait at the waypoint as the travel to the destination of the task sequence will resume immediately. This also means a redirection is not needed.

The easiest way to have the AGV wait at the waypoint is to simply stop it in the trigger and resume it once the trigger gets called again after the delay time. The state it enters when stopped can be set to state it was in before to prevent any issues when measuring the utilization.

1639122429597.png

1639122476083.png

The marked code lines are added to stop and resume the agv.

1209_1.fsm


1639122429597.png (12.7 KiB)
1639122476083.png (29.3 KiB)
1209-1.fsm (133.0 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.