Yes could be done using a Brain which watches the Z axis and if goes negative turns Ouptut ON and if Positive OFF. Most rapid moves are Positive and most cuts are Negative so should work well.