question

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

Prevent AGV collision

Suttle.fsmHello, I followed AGV tutorial to build an example for preventing AGV collision. However, when I finished the code, my PF didn't work and the AGV didn't change location to prevent collision.

Hope I can get some advice, thanks!

My flexsim version is 22.1.2


Choose One
agvcollisionproximity agent systempf flow
suttle.fsm (37.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
0 Likes"
Felix Möhlmann answered

The AGVs in your model are not linked to the proximimity system.

You are not sending the "preempttype" variable in the sendmessage() command in the On Proximity trigger.

The travel to location activity should be set to use relative coordinates, so the AGV travels to the left/right relative to its current location, not the global coordinates (+-2, 0, 0).

The tutorial video misses this as well: The task activities should be set to not wait until finished. Otherwise you end up with a lot of 'dead' tokens due to aborting their tasks.

1719216140080.png

suttle_1.fsm


1719216140080.png (14.1 KiB)
suttle-1.fsm (82.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.