question

Libby avatar image
0 Likes"
Libby asked Libby commented

destroy AGV object

When using AGV to simulate trucks, after unload cargo task done, truck will travel to a control point that leave warehouse.I want the truck will be destroy and relaese the leaving control point.

When using destroyobject to delect AGV, output console will continue throwing error message.How to delect AGV correctly

FlexSim 18.2.3
agvdestroy objectdestroyobject
5 |100000

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

gilbert jerald avatar image
0 Likes"
gilbert jerald answered

@Libby

Instead of redirect the truck via custom code. Use Travel activity in process flow to move the truck to the leaveCP location.

agv-truck-support.fsm

Thanks


5 |100000

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

tong avatar image
0 Likes"
tong answered Libby commented

Before you using destroyobject to delect AGV, please ensure there is no task in the AGV. The attachment is a demo for your reference.detroy-agv-in-agv-mode-v20182en.fsm


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

Libby avatar image Libby commented ·

destroyagv.fsm

Thanks for your reply,but my case is a bit different from yours.

I need to add AGV and delete AGV dynamically.

After destroy AGV, the error message show like this:

0 Likes 0 ·
destroyagv.fsm (24.7 KiB)
errormessage.png (13.4 KiB)
tong avatar image tong Libby commented ·

The attachment is a demo for your question. 19793-destroyagv.fsm

1 Like 1 ·
Libby avatar image Libby tong commented ·

Thanks a lot. I got it.

0 Likes 0 ·