Run a macro on Feedhold and Stop?
Posted: Mon Mar 06, 2017 3:44 am
I had someone request an option to goto Safe Z when hitting the Stop button, like Mach3 has.
I thought I could do it in a macro, but I can run a macro from a button while g-code is running. And further, I don't like UCCNC's SafeZ, in work coordinates.
I'd also like a little more power.
Some industrial routers, will lift the spindle during a Feedhold, which would be a nice feature.
So here's my idea.
Can we have UCCNC run a macro in 3 different cases.
1) Macro 1, when feedhold is pressed, and motion stops. I'd like to use this to stop stop the spindle, and lift it up.
2) Macro 2, when feedhold is pressed, before motion begins. This would let me restart the spindle and lower it back down.
3) Macro3, after Stop is pressed. This would allow me to lift the spindle on stop.
Rather than hard code these features, this would allow other users to do other things as well, like turn off coolant during feedhold, or who knows what else?
What do you think?
I thought I could do it in a macro, but I can run a macro from a button while g-code is running. And further, I don't like UCCNC's SafeZ, in work coordinates.
I'd also like a little more power.
Some industrial routers, will lift the spindle during a Feedhold, which would be a nice feature.
So here's my idea.
Can we have UCCNC run a macro in 3 different cases.
1) Macro 1, when feedhold is pressed, and motion stops. I'd like to use this to stop stop the spindle, and lift it up.
2) Macro 2, when feedhold is pressed, before motion begins. This would let me restart the spindle and lower it back down.
3) Macro3, after Stop is pressed. This would allow me to lift the spindle on stop.
Rather than hard code these features, this would allow other users to do other things as well, like turn off coolant during feedhold, or who knows what else?
What do you think?