From fac64313c5f3c31a51ea7414ac1252634ef47749 Mon Sep 17 00:00:00 2001 From: bartoolina Date: Thu, 11 Dec 2025 11:18:24 +0100 Subject: [PATCH] dodany debug switch --- qt_auto_probe_tool.ngc | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/qt_auto_probe_tool.ngc b/qt_auto_probe_tool.ngc index 2988553..ebfa855 100644 --- a/qt_auto_probe_tool.ngc +++ b/qt_auto_probe_tool.ngc @@ -46,6 +46,8 @@ o sub ; --- Begin Initial data gathering ---- ; ------------------------------------- +# = 1 + # = # # = # # = #<_x> @@ -219,11 +221,14 @@ G43 ;G10 L1 P# Z[#] ; <----- CODE MODIFICATION -------> -(DEBUG, %fProbe Height: #<_hal[qtversaprobe.probeheight]>) -(DEBUG, %fBlock Height: #<_hal[qtversaprobe.blockheight]>) -(DEBUG, %fProbe Result [without offs]: #) -(DEBUG, %fProbe Result [with offs]: #) -(DEBUG, %fZ Axis Offset [Z zero]: #) +o3 if [# EQ 1] + (DEBUG, %fProbe Height: #<_hal[qtversaprobe.probeheight]>) + (DEBUG, %fBlock Height: #<_hal[qtversaprobe.blockheight]>) + (DEBUG, %fProbe Result [without offs]: #) + (DEBUG, %fProbe Result [with offs]: #) + (DEBUG, %fZ Axis Offset [Z zero]: #) +o3 endif + (DEBUG, %fCalculated 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: # , # , #) +o4 if [# EQ 1] + (DEBUG, Return to original tool-tip position using new z-offset: # , # , #) +o4 endif + G53 G0 Z[#<_ini[VERSA_TOOLSETTER]Z_MAX_CLEAR>] ; now use original (modal)coord system to go over to xy ;G0 X[#] Y[#]