I have the USB compact cnc signal generator and need help with how to control an external device. I recently added a water cooled spindle and would like to automate the on/off of the water pump. I noticed that the controller has a two prong plug named RELAY on the back of the controller. Can i use this to wire up a relay to turn the spindle cooling pump on and off? If so could someone give instruction on the best way to achieve this? Also, How is that relay controlled in the G-code? Ideally I would like to turn the cooling pump on when i hit the start button in flashcut to start cutting and when the G-code ends I would like the cooling pump to turn off.

Thanks,

Ronnie