Haas (Pre NGC) Post process Edit - Coolant on location

Haas (Pre NGC) Post process Edit - Coolant on location

james97MS
Observer Observer
343 Views
3 Replies
Message 1 of 4

Haas (Pre NGC) Post process Edit - Coolant on location

james97MS
Observer
Observer

Hi, 

 

I am looking to move the location of my M08 coolant code within my post processor to save me manually re-typing it every time. I am looking to put the coolant on and off at my retract height. I am using the Haas (Pre NGC) post.

 

Can someone help?

 

Thanks in advance

0 Likes
344 Views
3 Replies
Replies (3)
Message 2 of 4

seth.madore
Community Manager
Community Manager

It looks like it's already turning off immediately after the retract move. To have it turn on right at the first clearance move, you need to move  

var coolantIsOutput = (tool.coolant != currentCoolantMode) || operationNeedsSafeStart;
  setCoolant(tool.coolant);

To line 3075, so it looks like this:

 writeBlock(gMotionModal.format(0), x, y, z);
      var coolantIsOutput = (tool.coolant != currentCoolantMode) || operationNeedsSafeStart;
  setCoolant(tool.coolant);
      forceFeed();

 

Result:

N45 G1 X3.1496 Y-0.9596 F500.
N50 G0 G43 Z0.5906 H1
N55 T2
N60 G0 Z0.1969
N65 M8
N70 G1 Z-0.0394 F39.37

Seth Madore
Customer Advocacy Manager - Manufacturing


Message 3 of 4

james97MS
Observer
Observer

Thank you for getting back to me. 

 

Now that I have moved that section of code, there is no longer a M09 at the return to my safe retract position once the machining has been completed. See below processed code;

 

N260 X165.279 Y16.829 I-23.8 J0.
N265 G1 G40 X148.45 Y21.213
N270 G0 Z100.

(ROUGH RECESS)
N275 M1
N280 T2 M6
N285 S1800 M3

 

What I am also after is for after line N270 Z100. I would like here to be as follows;

 

N275 M09

N280 G53 Z0

N285 M1

 

Then the next tool change. 

 

Hopefully this makes sense. 

 

Can you please point me in the correct direction?

 

Thanks again

 

0 Likes
Message 4 of 4

programming2C78B
Advisor
Advisor

I posted about this before

https://forums.autodesk.com/t5/fusion-360-manufacture/changing-coolant-start-position/m-p/11677522#M...

Please click "Accept Solution" if what I wrote solved your issue!
0 Likes