Turning Coolant off when tool lifts up
Is there any way in the settings of MasterCAM or maybe in my Post that I can adjust to do this. What I'd like to is weight till my tool gets down to the Z height it's path will start then turn the coolant on and insert an M91. Then I want to turn coolant off before it comes up. I might be able to do it with a Find and Replace function but I haven't had time to experiment just yet.
I'm using a machine I can't really get into but as the tool goes down I'd like to be able to follow that with these commands ie.
G0 Z0.0
M91OUT5
M8
-Insert Tool paths
M9
G0 Z1.0
I'm going to want to do some fancier things like that as times rolls on. Is this adjusted in my post, a setting in MasterCAM or do I simply have to do it by hand afterwards. Obviously this isn't favorable because then anytime I adjust something I'll have to come through and do it.
-JWB
--We Ain't Building Pianos (TCNJ Baja 2008)