(author: Chris P) (version: 0.2) (date: 06/27/24) (Probe Ridge in Y Axis to find center and z 0 position) (Start probe position is over center of stock in the Y axis) (within max z distance, ensure all settings have been) (set properly according to help diagrams) o sub (uses NGCGUI style arg spec) # = #3014 # = #3015 # = #3016 # = #3017 # = #3018 # = #3019 # = #3020 # = #3021 # = #3022 # = #3023 # = #3024 # = #3028 # = #3029 # = #3030 # = #3032 (Cancel G92 offsets) G92.1 (Cancel Feedrate Override) M50 P0 # = #[5202 + [20 * #5220]] # = #[5203 + [20 * #5220]] (Probe Tool Safety Check) o100 if [#5400 NE #] (DEBUG, Specified probe tool %d# not in spindle, aborting) M50 P1 o return o100 endif (Probe Diameter) # = #5410 (Probe Radius) # = [# / 2] (Probe Centerline Offset) # = [# - #] (remove probe tip diam and cal offset from probed width calculations) # = [# - [# * 2]] # = [# + # + #] (Call sub "probe_z_minus_sub" to Probe top of Workpiece) o call [#3014][#3015][#3016][#3017][#3020][#3021][#3030] (Probe Y Positioning Move, Y hint/2 + Step Off Width) G91 F[#] G38.3 Y-[[#/2] + #] (Probe Y Positioning Move, to Probing Depth) F[#] Z-[#] (Call sub "probe_y_plus" to Probe y+ side of Workpiece) o call [#3014][#3015][#3016][#3017][#3018][#3019][#3032] # = #5062 (first side Probe Completion Move to Z Clearance Plane) G91 F[#] G38.3 Z[#] (Positioning move in Y, Y Hint + Step Off Width at Rapid Speed) F[#] G38.3 Y[# + #] (Probe Y Positioning Move, to Probing Depth) F[#] Z-[#] (Call sub "probe_y_minus" to Probe y- side of Workpiece) o call [#3014][#3015][#3016][#3017][#3018][#3019][#3032] # = #5062 (probed center calulation) # = [[# + #] / 2] (calculate Y Width Probed) # = [# - #] (Completed probed width calculations) # = [# - #] #1003 = # (DEBUG, EVAL[vcp.getWidget{"y_probed_width"}.setValue{#1003}]) #1004 = # (DEBUG, EVAL[vcp.getWidget{"y_center_probed"}.setValue{#1004}]) (Probe Completion Move to Z Clearance Plane, and X Zero) G91 F[#] G38.3 Z[#] G90 F[#] G38.3 Y[#] (probe mode rules for WCO or probe position measuring only) o110 if [# EQ 0] (Record Y Zero in selected WCO) G10 L2 P#5220 Y[# + #] (Probe Completion Move to Z Clearance Plane, and X Zero, Y Zero) o110 endif (Reinstate Feedrate Override) M50 P1 o endsub M2 (end program)