Hello everyone,
I have a water-cooled spindle and would like to implement the following scenario:
When I turn on my spindle with the M5 command, my coolant pump (24V) should automatically start to cool the spindle. In addition to controlling the spindle speed and turning it on and off, I want to turn on a pump as well.
It is important that the coolant pump continues running for about one minute after the spindle is turned off (M5), before it completely shuts down. Is there a way to implement this with some logic or an output signal?
M950 R0 C"e0heat+e1heat" Q1000 L24000 ; Configure spindle on e0heat + e1heat, PWM at 1000 Hz
; Tools and Spindle
M563 P0 R0 S"Spindle" ; Define Tool 0 as spindle
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
M568 P0 F6000 ; Set tool 0 default RPM
Thank you in advance for your support!