Coolant not writing in post

This widget could not be displayed.

Coolant not writing in post

Anonymous
Not applicable

This isn't a major issue, but I would like to be able to activate/deactivate coolant automatically in code without having to either manually turn it on/off at the controller each time or having to manually enter M7 or M9 respectively at each point in the gcode.

 

I've attached a snippet post of something I was working on.  I'm trying to get AIR (M7) to automatically write during post.

 

I've looked at the post configuration but don't understand it near enough.  I can read the syntax but no clue how to read it out of context and how I would fix this.

 

I've also attached the post processor I use.

0 Likes
Reply
Accepted solutions (1)
480 Views
3 Replies
Replies (3)

paul.clauss
Alumni
Alumni

Hi @Anonymous 

 

Thanks for posting! While I would recommend reaching out on the HSM Post Processor Forum for assistance with post customizations, I did want to point out that you can disable coolant for certain operations in Fusion 360.

 

The coolant type selection field is in the "Tool" tab for all toolpaths as shown below: 

disablecoolant.png

I hope this helps! 

Paul Clauss

Product Support Specialist




0 Likes

gaurav.firake
Alumni
Alumni
Accepted solution

Hi @Anonymous ,

 

Thank you for posting!

You will get the coolant codes output in NC codes after adding the line "setCoolant(tool.coolant);" at end of the function onSection{} within the post. Please refer the image below:

 

coolant_on.png

I hope this helps!



Gaurav Firake

4 Likes

Anonymous
Not applicable

Appreciate the help and especially the visual lol.  My code was a little bit different so helped to be able to see the image of the code segments.

 

I added in the line you recommended and it did indeed add my M7 and M9 codes.

0 Likes