Page 1 of 1

UC.Stop() not stopping all axis moving if macro is running

PostPosted: Tue Nov 19, 2024 11:34 am
by AutomaticInvest_4
Hello

I have a plugin where I call UC.Stop(); to stop axis moving, but if a macro M3xx is running then only the current G01 running inside the M3xx macro is stopped..

So if the macro is something like

G01 ..
..
G01 ..
..
G01 ..

and the UC.Stop() is called while the second G01 is running inside the macro then it is stopped but the machine continues to execute the third G01

regards

Re: UC.Stop() not stopping all axis moving if macro is runni

PostPosted: Tue Nov 19, 2024 9:05 pm
by cncdrive
You can check the exec.Ismacrostopped variable before executing motion commands to skip those commands or any other commands if the Stop() function was called meanwhile executing the macro code.