GRBL-Post-Processor icon indicating copy to clipboard operation
GRBL-Post-Processor copied to clipboard

Feature Request: Mist Cooling / M7

Open AustinSaintAubin opened this issue 6 years ago • 2 comments

Request Mist Coolant be added to theGRBL-Post-Processor. GRBL Extended Command Toggle Mist Coolant, M7 turns on, M9 turns off mist & flood.

screen shot 2018-10-31 at 6 38 14 pm

AustinSaintAubin avatar Oct 31 '18 23:10 AustinSaintAubin

Hi, thanks for your request. I looked into it and I think I have added the necessary code. Can you test, as I do not have a machine with coolant..

Remark : you have to enable coolant in the postProcessor parameters : hasCoolant = true

This is the code I've added, I think it is pretty self-explaining

if (properties.hasCoolant)
		{
		if (tool.coolant == COOLANT_FLOOD)
			{
			writeBlock(mFormat.format(8));
			}
		else if (tool.coolant == COOLANT_MIST)
			{
			writeBlock(mFormat.format(7));
			}
		else if (tool.coolant == COOLANT_FLOOD_MIST)
			{
			writeBlock(mFormat.format(7));
			writeBlock(mFormat.format(8));
			}
		else
			{
			writeBlock(mFormat.format(9));
			}
		}

Strooom avatar Nov 16 '18 20:11 Strooom

Testing tonight. Thank-you!

AustinSaintAubin avatar Nov 17 '18 04:11 AustinSaintAubin