dodany debug switch

This commit is contained in:
2025-12-11 11:18:24 +01:00
parent 097fe1e2ca
commit fac64313c5

View File

@@ -46,6 +46,8 @@ o<qt_auto_probe_tool> sub
; --- Begin Initial data gathering ----
; -------------------------------------
#<debug> = 1
#<tool> = #<selected_tool>
#<pocket> = #<selected_pocket>
#<local_start_x> = #<_x>
@@ -219,11 +221,14 @@ G43
;G10 L1 P#<tool> Z[#<z_touch>]
; <----- CODE MODIFICATION ------->
(DEBUG, %fProbe Height: #<_hal[qtversaprobe.probeheight]>)
(DEBUG, %fBlock Height: #<_hal[qtversaprobe.blockheight]>)
(DEBUG, %fProbe Result [without offs]: #<touch_result>)
(DEBUG, %fProbe Result [with offs]: #<z_touch>)
(DEBUG, %fZ Axis Offset [Z zero]: #<zworkoffset>)
o3 if [#<debug> EQ 1]
(DEBUG, %fProbe Height: #<_hal[qtversaprobe.probeheight]>)
(DEBUG, %fBlock Height: #<_hal[qtversaprobe.blockheight]>)
(DEBUG, %fProbe Result [without offs]: #<touch_result>)
(DEBUG, %fProbe Result [with offs]: #<z_touch>)
(DEBUG, %fZ Axis Offset [Z zero]: #<zworkoffset>)
o3 endif
(DEBUG, %fCalculated Offset: #<calculated_offset>)
; -------------------------------------
@@ -235,7 +240,10 @@ G43
; -------------------------------------
; return to original tool-tip position, but using new z-offset
(DEBUG, Return to original tool-tip position using new z-offset: #<local_start_x> , #<local_start_y> , #<local_start_z>)
o4 if [#<debug> EQ 1]
(DEBUG, Return to original tool-tip position using new z-offset: #<local_start_x> , #<local_start_y> , #<local_start_z>)
o4 endif
G53 G0 Z[#<_ini[VERSA_TOOLSETTER]Z_MAX_CLEAR>]
; now use original (modal)coord system to go over to xy
;G0 X[#<local_start_x>] Y[#<local_start_y>]