40
« on: March 16, 2023, 03:34:27 PM »
Mach4 uses it's own internal m3, m4, m5, m30 ect... unless you add one of these to the profiles's macro folder. I make my own m30 when we get a machine going, that way I can turn on a stack light and buzzer when the part is finished.
There is a thread on here somewhere with me asking that very question and one of the Mach4 developers said you needed to be sure certain things were in the macro, I can't remember what they are right off the top of my head. However, the machine I'm working on does the following:
Turns off the spindle; turns off the coolant; calls a G40 with an mdiexecute api command and then I turn on my buzzer and stacklight.
I have made custom m3 and m5 commands as well.
Like I said, just make a macro and save it in the macro folder of your profile that you are working with. Mach4 --> Profiles --> your profile --> macros. Save it as m3, m5, or m30. It will replace whatever the stock commands are.