Here is a thread that is so close to what I need,but that scripting just gets me all confused.

http://www.cnczone.com/forums/bobcad...t-coolant.html