I am making a mill turn post that turns live tooling on with M43 and off with M40. usually M40 is used right before the gohome move, but if the user doesn't have a gohome move then it has to outputted once somewhere else and only if M43 is active.
I would like know if I can create an m code for M40 to output if M43 was called in the operation. Much like with coolant or with the spindle . I can do it with custom commands, but I am hoping there is a simpler way to do this.