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

This is where you talk about Plugins. How they are made and how they work, show examples.

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

Postby AutomaticInvest_4 » Tue Nov 19, 2024 11:34 am

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
AutomaticInvest_4
 
Posts: 1
Joined: Fri Dec 23, 2022 8:43 pm

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

Postby cncdrive » Tue Nov 19, 2024 9:05 pm

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.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm


Return to Plugins

Who is online

Users browsing this forum: No registered users and 5 guests