Cancel
Showing results for 
Search instead for 
Did you mean: 

Lathe Coolant Codes (Internal & External)

Creator
Creator

Im trying to output an internal and external coolant code on my Mazak Lathe.

I have at my start of path:

uplevel #0 {
set mom_sys_coolant_code(HIGH) "169"
}

To output the internal high pressure code. But i also need to have an M08 come out at the same time without adding another UDE.

Any suggestions?

Gary Knybel
CNC Programming Manager
CAD/CAM System Manager
PCX Aerostructures
Newington, CT
5 REPLIES

Re: Lathe Coolant Codes (Internal & External)

Gears Phenom Gears Phenom
Gears Phenom

Gary,

We do this on our mills.

Add an M08 block with a output condition

 

 

coolant.JPG

 

global mom_coolant_status


if { [ info exists mom_coolant_status ] && $mom_coolant_status == "THRU" } {
   return 1
   } else {
   return 0
   }

 

 

You can modify this for your application

John Joyce, Manufacturing Engineer,
Senior Aerospace Connecticut
www.senioraeroct.com
Production: NX11.0.2.7, Vericut 8.0.3
Development: Tcl/Tk
Testing NX12.0

Re: Lathe Coolant Codes (Internal & External)

Creator
Creator

Hi John

 

How do i add a block with an output condition?

Gary Knybel
CNC Programming Manager
CAD/CAM System Manager
PCX Aerostructures
Newington, CT

Re: Lathe Coolant Codes (Internal & External)

Gears Phenom Gears Phenom
Gears Phenom

Add the M08 block where you need it

then Right click on it to select output condition - New

 

out-cond.JPG

John Joyce, Manufacturing Engineer,
Senior Aerospace Connecticut
www.senioraeroct.com
Production: NX11.0.2.7, Vericut 8.0.3
Development: Tcl/Tk
Testing NX12.0

Re: Lathe Coolant Codes (Internal & External)

Creator
Creator

Thanks John!

Gary Knybel
CNC Programming Manager
CAD/CAM System Manager
PCX Aerostructures
Newington, CT

Re: Lathe Coolant Codes (Internal & External)

Gears Phenom Gears Phenom
Gears Phenom

you can also do this with your idea:

in start of the program put:

set mom_sys_coolant_code(HIGH)  "8 M169" 

(uplevel is not necessary)

Enlarge coolant ude with another option - "High"

Use STRING format in M_coolant word.

 

(Or just remove M_coolant and make your new ude for cooling.)

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Learn online





Solution Information