question

Jouky D avatar image
0 Likes"
Jouky D asked Jouky D commented

AGV: Delete task to idle state.

How can I cancel a travel task in AGV? I destroy the subnode of activetasksequence, however, sometimes, when I want the AGV travel again, it does not work. Sometimes it returns there is no possible route (however, if I Show Rout Accessibiility between the 2 CPs, it shows a route). The unique difference when I destroy the activetasksequence subnode between one AGV that works and another that does not are these:

AGV Travel Works:

originCP: NULL

curAmps: 1

traversals.kinematicIndex: 1

accumTraversals: size = 1

leadAccumTraversal: AGVNetwork>variables/agvs/AGV/accumTraversals/1


AGV Travel don't work:

originCP: ControlPoint74

curAmps: 10

traversals.kinematicIndex: 3

accumTraversals: size = 2

leadAccumTraversal: AGVNetwork>variables/agvs/AGV/accumTraversals/2

The cpdistance and distancetotravel calculation is Ok in both cases. Some ideas why is not working? Is there a way to put an AGV to a full idle state forgetting all the tasks?

Thank you!


FlexSim 23.1.2
agvagvnetworkactivetasksequence
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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jouky D commented

Deploy a preempting task sequence with the preempt option PREEMPT_AND_ABORT_ACTIVE

· 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.

Felix Möhlmann avatar image Felix Möhlmann commented ·

Here's an example that demonstrates this both through code and via the Process Flow activities.

abort_task_fm.fsm

Yes, this will also lead to the deletion of the current task sequence node but also allows the program to properly end the task execution.

If the task executer does not work afterwards something else must be wrong, which is hard to diagnore without seeing the model.

1 Like 1 ·
abort-task-fm.fsm (34.3 KiB)
Jouky D avatar image Jouky D Felix Möhlmann commented ·

Thank you!

0 Likes 0 ·
Jouky D avatar image Jouky D commented ·
it didn't work. It worked as my option (destroying the activetasksequence subnode)
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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