How to Stop and Resume Robot in simulation? (Don't stop the simulation)

Hi, all:

I want to stop the Robot in a simulation which is running(Don’t stop the simulation, only pause and resume the robot) us C# .NET.

I try the function just like IRobot.Executor.Freeze() / IRobot.Executor.Continue() ,but it not work actually.

Has anybody an idea how to deal that or already experiences?

Best regards


Hi benson,

The Freeze method is not definitely what you are looking for. That’s for client-simulation communication purposes.

I believe that in any case it’s not possible to stop a robot in middle of a statement execution, but between statements it might be…

I don’t have now time to test it but it might be worth trying to disable the executor with “IRobot.Executor.IsEnabled = false” and then enable it again and use IRobot.Executor.Continue() method.



IRobotExecutor.IsEnabled = false will not pause a robot program. It is used to define if the executor will execute its program. If the program is already executing, there is really no way to stop it within simulation.

Hi benson!

I’ve made something a while ago, what you might could use.

It stops the Robot on a Collision, and continue to run on a signal, but the problem with it, was that the Robot forgets the last location it was heading towards.

I stopped working on it, but if you can improve it I would be happy to see the result.

Best regards


My_block.vcmx (28.6 KB)