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

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));
}
}
Testing tonight. Thank-you!