update probe basic
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
(author: Chris P)
|
||||
(version: 0.2)
|
||||
(date: 06/27/24)
|
||||
(version: 0.3)
|
||||
(date: 01/28/26)
|
||||
|
||||
(Probe calibration offset using defined width square pocket)
|
||||
(Start probe position is over left side edge of pocket wall)
|
||||
@@ -25,7 +25,9 @@ o<probe_cal_square_pocket> sub
|
||||
#<probe_mode> = #3030 (=0)
|
||||
#<x_cal_width> = #3034 (=0)
|
||||
#<y_cal_width> = #3035 (=0)
|
||||
#<sq_cal_axis> = #3036 (=0)
|
||||
#<xy_cal_axis> = #3048 (=0)
|
||||
#<x_cal_axis> = #3049 (=0)
|
||||
#<y_cal_axis> = #3050 (=0)
|
||||
|
||||
(Cancel G92 offsets)
|
||||
G92.1
|
||||
@@ -38,13 +40,10 @@ o<probe_cal_square_pocket> sub
|
||||
|
||||
(clear current probe calibration offset)
|
||||
#3032 = 0
|
||||
(DEBUG, EVAL[vcp.getWidget{"calibration_offset_3032"}.setValue{#3032}])
|
||||
|
||||
(Probe Tool Safety Check)
|
||||
o100 if [#5400 NE #<probe_tool_number>]
|
||||
(DEBUG, Specified probe tool %d#<probe_tool_number> not in spindle, aborting)
|
||||
M50 P1
|
||||
o<probe_cal_square_pocket> return
|
||||
(abort, Specified probe tool %d#<probe_tool_number> not in spindle, aborting)
|
||||
o100 endif
|
||||
|
||||
(Probe Diameter)
|
||||
@@ -147,17 +146,14 @@ o<probe_cal_square_pocket> sub
|
||||
#<new_y_cal_offset> = [#<y_cal_error>]
|
||||
o120 endif
|
||||
|
||||
#<new_avg_cal_offset> = [[#<new_x_cal_offset> + #<new_y_cal_offset>] / 2]
|
||||
#<new_xy_cal_offset> = [[#<new_x_cal_offset> + #<new_y_cal_offset>] / 2]
|
||||
|
||||
o130 if [#<sq_cal_axis> EQ 0]
|
||||
#3032 = [ABS[#<new_avg_cal_offset>]]
|
||||
(DEBUG, EVAL[vcp.getWidget{"calibration_offset_3032"}.setValue{#3032}])
|
||||
o130 else if [#<sq_cal_axis> EQ 1]
|
||||
o130 if [#<xy_cal_axis> EQ 1]
|
||||
#3032 = [ABS[#<new_xy_cal_offset>]]
|
||||
o130 else if [#<x_cal_axis> EQ 1]
|
||||
#3032 = [ABS[#<new_x_cal_offset>]]
|
||||
(DEBUG, EVAL[vcp.getWidget{"calibration_offset_3032"}.setValue{#3032}])
|
||||
o130 else
|
||||
#3032 = [ABS[#<new_y_cal_offset>]]
|
||||
(DEBUG, EVAL[vcp.getWidget{"calibration_offset_3032"}.setValue{#3032}])
|
||||
o130 endif
|
||||
|
||||
#<x_zero> = [#<x_center_probed> + #<workspace_x>]
|
||||
|
||||
Reference in New Issue
Block a user