question

Tomasz MG avatar image
0 Likes"
Tomasz MG asked José Antonio MD answered

Animation STOP

Hello, Everybody I have small problem

1. When my AGV approaches a certain distance to a machine it has to stop working. My machine is a Basic FR and its operation is mapped with an animation. Is it possible to stop the animation when the AGV approaches and start it again from the same moment it departs?

2. I have also tried slowing down the model to a value where the animation movement is not noticeable and speeding up the AGV accordingly however then jumps occur.


jump.gif


I have included the model below.

Example.fsm

The AGV routes have to be on travel to loc blocks and I have to use kinematics for rotation


Best Regards

FlexSim 23.0.1
agvanimationsstop
jump.gif (599.2 KiB)
example.fsm (34.3 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

José Antonio MD avatar image
0 Likes"
José Antonio MD answered Tomasz MG commented

Hello @Tomasz MG,


You can calculate the distance between AGV and the station and just when it is smaller than the target, use this code::

current.animations["Animation"].stop();

Later, when you exceed that distance imply use this code:

current.animations["Animation"].resume();


I hope I've been helpful

5 |100000

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