Modifying the maximum robot speed does not take effect

I can’t change the robot’s maximum speed using Python but it will work if I type it manually

Are you trying to interrupt or alter an ongoing motion? That is generally not supported.

It works fine when I set the speed to 0.00001, but it doesn’t work fine when I set the speed to the value of the maxSpeed variable

stop.vcmx (1.4 MB)