Disable Coolant does not work on Tormach post

Disable Coolant does not work on Tormach post

Eli_Dexter
Advocate Advocate
1,559 Views
9 Replies
Message 1 of 10

Disable Coolant does not work on Tormach post

Eli_Dexter
Advocate
Advocate

In the operation under tool I have selected disable coolant. But, the G-code is still show M8 at the beginning of every operation.

Changing Coolant to Flood or Mist does change the code to M8/M7 as appropriate. But disable coolant does not have any affect.

 

Seems like a bug...

 

Thanks

0 Likes
Accepted solutions (1)
1,560 Views
9 Replies
Replies (9)
Message 2 of 10

ivan.stanojevic
Advisor
Advisor
Accepted solution

@Eli_Dexter

 

Open your postprocessor and search for setCoolant function.

You should be able to find these blocks of code:

 

 // Smart coolant is not enabled
  if (!properties.smartCoolEquipped) {
    previousCoolantMode = 8;
    coolCodes[0] = mFormat.format(previousCoolantMode);
  
	if (coolant != COOLANT_FLOOD) {
      warning(localize("Unsupported coolant setting. Defaulting to FLOOD"));
    }

try with changing it to this:

 // Smart coolant is not enabled
  if (!properties.smartCoolEquipped) {
	  
	  if (tool.coolant == 0){
		   }
	  else{
    previousCoolantMode = 8;
    coolCodes[0] = mFormat.format(previousCoolantMode);
	}
	
    if (coolant != COOLANT_FLOOD) {
      warning(localize("Unsupported coolant setting. Defaulting to FLOOD"));
    }


Ivan Stanojevic


Message 3 of 10

Eli_Dexter
Advocate
Advocate

Did it and it did not help. Still getting "N70 S7500 M3 M8" code...

 

Tried adding the following:

if (tool.coolant == 0){
previousCoolantMode = 9;
coolCodes[0] = mFormat.format(previousCoolantMode);
}

and

if (tool.coolant == 0){
previousCoolantMode = 0;
coolCodes[0] = mFormat.format(previousCoolantMode);
}

 

Nothing help. still getting the same output with M8.

0 Likes
Message 4 of 10

ivan.stanojevic
Advisor
Advisor
I just tested it with the changes that I provided and it is working.
What software are you using?


Ivan Stanojevic


0 Likes
Message 5 of 10

Eli_Dexter
Advocate
Advocate

HSM Express running on the SolidWorks

0 Likes
Message 6 of 10

Eli_Dexter
Advocate
Advocate

Now it start working... I guess before all my changes to config file were not picked up by the HSM.

How to force HSM to reload new (updated) post configuration file?

0 Likes
Message 7 of 10

ivan.stanojevic
Advisor
Advisor

@Eli_Dexter

When you make changes to postprocessor, be sure that you save it. And when you are looking at the postprocessing window just hit F5 button to refresh it. HSM should be able to pick up the edited postprocessor file automatically. 

Now that you have changed the generic postprocessor I advise you to save it to some other location rather than in the default post folder.

 

@AchimN

If you disable coolant in an operation using the generic Tormach post, it still outputs M8 code.

This should be fixed.

 



Ivan Stanojevic


0 Likes
Message 8 of 10

Eli_Dexter
Advocate
Advocate

I always work from my custom folder. In this way I have there only 2 posts (one for machine and one for setup sheet). When I need to switch it is much faster to find the post I am looking for...

 

I did not know about F5 referesh in the post screen.

 

Thanks

0 Likes
Message 9 of 10

sharmstr
Enthusiast
Enthusiast

 

For those of you using SmartCool, you'll also have to change that block of code.

 

This really does need to be fixed in the default Tormach processor though.

 

0 Likes
Message 10 of 10

Anonymous
Not applicable
0 Likes