(author: Chris P) (version: 0.3) (date: 06/27/24) (programmable coolant subroutine for aiming the coolant nozzle) (settings for setup are displayed on probe basic setting page) (in the programmable coolant constants container.) (calculations assume coolant nozzle is located on the right side of the spindle) o sub (PRINT, o) # = #3000 # = #3001 # = #3002 # = #3003 o100 if [# EQ 0] o100 return o100 endif # = #5403 # = #5410 # = [# / 2] # = [# - #] # = [[#] + [#]] # = [ATAN[#] / [#]] # = [[#] + [#]] #1000 = # (DEBUG, EVAL[vcp.getWidget{"coolant_final_angle"}.setValue{#1000}]) M68 E0 Q[#] (PRINT, o endsub) o endsub M2 (end program)