Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Mist Cooling / M7 #19

Open
AustinSaintAubin opened this issue Oct 31, 2018 · 2 comments
Open

Feature Request: Mist Cooling / M7 #19

AustinSaintAubin opened this issue Oct 31, 2018 · 2 comments

Comments

@AustinSaintAubin
Copy link

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

@Strooom
Copy link
Owner

Strooom commented Nov 16, 2018

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));
			}
		}

@AustinSaintAubin
Copy link
Author

Testing tonight. Thank-you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants