I too want to control a relay that will turn on/off, but I want it to be through a macro. Say M28-ON & M29-OFF (or another set of numbers not used).
I may want the HotKey assigned as well.
My plans are to turn on a red revolving ight when the mill is cutting and off when finished (or a buzzer when finished), but that doesn't really matter what I want to use it for. I just cant' figure out how to assign the pin to an M-code.
I have no plans to use my mill in counter-clockwise rotation so I tried to use the M4 and changed the output # on the Spindle tab, and the pin configuration to match, but it still turned on the spindle. I did not however restart Mach afterwards. I'd still prefer some other set of M code as stated above.
Any help would be appreciated. Long holiday weekend and I've been wanting to finish up my control box, etc. while I'm off work.