diff --git a/configs/atc_sim/macros_sim_inch/extendatc.ngc b/configs/atc_sim/macros_sim_inch/extendatc.ngc index a2108075..b16d6413 100644 --- a/configs/atc_sim/macros_sim_inch/extendatc.ngc +++ b/configs/atc_sim/macros_sim_inch/extendatc.ngc @@ -1,10 +1,16 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; move z to clear height diff --git a/configs/atc_sim/macros_sim_inch/m21.ngc b/configs/atc_sim/macros_sim_inch/m21.ngc index 24de1233..9bffddd1 100644 --- a/configs/atc_sim/macros_sim_inch/m21.ngc +++ b/configs/atc_sim/macros_sim_inch/m21.ngc @@ -3,12 +3,18 @@ o sub ; Move Carousel to the tool change position - OUT ; then unload any tool in the spindle into the current pocket ; Parameter #3991 is used to track the current tool loaded it in the spindle (persistently) -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) (PRINT, o) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif M65 P1 ; switch off carousel in solenoid M66 P1 L3 Q1 diff --git a/configs/atc_sim/macros_sim_inch/m22.ngc b/configs/atc_sim/macros_sim_inch/m22.ngc index 2fc326c7..825713fa 100644 --- a/configs/atc_sim/macros_sim_inch/m22.ngc +++ b/configs/atc_sim/macros_sim_inch/m22.ngc @@ -2,12 +2,18 @@ o sub ; Move Carousel to the home position - IN ; after loading any tool in the current pocket to the spindle -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) (PRINT, o) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif ;M19 R0 Q2 M24 diff --git a/configs/atc_sim/macros_sim_inch/move_head_above_carousel.ngc b/configs/atc_sim/macros_sim_inch/move_head_above_carousel.ngc index 5ece7c2d..8e3834a1 100644 --- a/configs/atc_sim/macros_sim_inch/move_head_above_carousel.ngc +++ b/configs/atc_sim/macros_sim_inch/move_head_above_carousel.ngc @@ -1,10 +1,16 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) -# = -3.1900 +# = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; move z to clear height diff --git a/configs/atc_sim/macros_sim_inch/move_tool_to_carousel_height.ngc b/configs/atc_sim/macros_sim_inch/move_tool_to_carousel_height.ngc index 5bc24192..77215115 100644 --- a/configs/atc_sim/macros_sim_inch/move_tool_to_carousel_height.ngc +++ b/configs/atc_sim/macros_sim_inch/move_tool_to_carousel_height.ngc @@ -1,9 +1,15 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) -# = -3.1900 +# = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; rapid move to above the tool change height diff --git a/configs/atc_sim/macros_sim_metric/extendatc.ngc b/configs/atc_sim/macros_sim_metric/extendatc.ngc index a2108075..b16d6413 100644 --- a/configs/atc_sim/macros_sim_metric/extendatc.ngc +++ b/configs/atc_sim/macros_sim_metric/extendatc.ngc @@ -1,10 +1,16 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; move z to clear height diff --git a/configs/atc_sim/macros_sim_metric/m21.ngc b/configs/atc_sim/macros_sim_metric/m21.ngc index 24de1233..9bffddd1 100644 --- a/configs/atc_sim/macros_sim_metric/m21.ngc +++ b/configs/atc_sim/macros_sim_metric/m21.ngc @@ -3,12 +3,18 @@ o sub ; Move Carousel to the tool change position - OUT ; then unload any tool in the spindle into the current pocket ; Parameter #3991 is used to track the current tool loaded it in the spindle (persistently) -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) (PRINT, o) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif M65 P1 ; switch off carousel in solenoid M66 P1 L3 Q1 diff --git a/configs/atc_sim/macros_sim_metric/m22.ngc b/configs/atc_sim/macros_sim_metric/m22.ngc index 2fc326c7..825713fa 100644 --- a/configs/atc_sim/macros_sim_metric/m22.ngc +++ b/configs/atc_sim/macros_sim_metric/m22.ngc @@ -2,12 +2,18 @@ o sub ; Move Carousel to the home position - IN ; after loading any tool in the current pocket to the spindle -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) (PRINT, o) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif ;M19 R0 Q2 M24 diff --git a/configs/atc_sim/macros_sim_metric/move_head_above_carousel.ngc b/configs/atc_sim/macros_sim_metric/move_head_above_carousel.ngc index 5ece7c2d..8e3834a1 100644 --- a/configs/atc_sim/macros_sim_metric/move_head_above_carousel.ngc +++ b/configs/atc_sim/macros_sim_metric/move_head_above_carousel.ngc @@ -1,10 +1,16 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) -# = -3.1900 +# = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; move z to clear height diff --git a/configs/atc_sim/macros_sim_metric/move_tool_to_carousel_height.ngc b/configs/atc_sim/macros_sim_metric/move_tool_to_carousel_height.ngc index 5bc24192..77215115 100644 --- a/configs/atc_sim/macros_sim_metric/move_tool_to_carousel_height.ngc +++ b/configs/atc_sim/macros_sim_metric/move_tool_to_carousel_height.ngc @@ -1,9 +1,15 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) -# = -3.1900 +# = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; rapid move to above the tool change height diff --git a/configs/atc_sim/vmc_index.ini b/configs/atc_sim/vmc_index.ini index db0714c5..16ca4dcd 100644 --- a/configs/atc_sim/vmc_index.ini +++ b/configs/atc_sim/vmc_index.ini @@ -41,6 +41,10 @@ PATH_APPEND = ./python/python-stdglue/ [ATC] # Carousel image available for 8, 10, 12, 14, 16, 18, 20, 21, 24 POCKETS = 12 +# The Z height you spindle needs to be at to clamp/unclamp a tool form the ATC +Z_TOOL_CHANGE_HEIGHT = -3.9000 +# The Z clearance height you spindle needs to be at to safely clear the ATC +Z_TOOL_CLEARANCE_HEIGHT = -0.1 [RS274NGC] PROGRAM_PREFIX = ~/linuxcnc/nc_files diff --git a/configs/atc_sim/vmc_index_inch.ini b/configs/atc_sim/vmc_index_inch.ini index 843a4e0d..64adec3e 100644 --- a/configs/atc_sim/vmc_index_inch.ini +++ b/configs/atc_sim/vmc_index_inch.ini @@ -43,6 +43,10 @@ PATH_APPEND = ./python/python-stdglue/ [ATC] # Carousel image available for 8, 10, 12, 14, 16, 18, 20, 21, 24 POCKETS = 12 +# The Z height you spindle needs to be at to clamp/unclamp a tool form the ATC +Z_TOOL_CHANGE_HEIGHT = -3.9000 +# The Z clearance height you spindle needs to be at to safely clear the ATC +Z_TOOL_CLEARANCE_HEIGHT = -0.1 STEP_TIME = 500 [RS274NGC] diff --git a/configs/atc_sim/vmc_index_metric.ini b/configs/atc_sim/vmc_index_metric.ini index a4001cf2..9b6661b3 100644 --- a/configs/atc_sim/vmc_index_metric.ini +++ b/configs/atc_sim/vmc_index_metric.ini @@ -43,6 +43,10 @@ PATH_APPEND = ./python/python-stdglue/ [ATC] # Carousel image available for 8, 10, 12, 14, 16, 18, 20, 21, 24 POCKETS = 12 +# The Z height you spindle needs to be at to clamp/unclamp a tool form the ATC +Z_TOOL_CHANGE_HEIGHT = -3.9000 +# The Z clearance height you spindle needs to be at to safely clear the ATC +Z_TOOL_CLEARANCE_HEIGHT = -0.1 [RS274NGC] RS274NGC_STARTUP_CODE = F10 S300 G21 G17 G40 G49 G54 G64 P0.001 G80 G90 G91.1 G92.1 G94 G97 G98 diff --git a/configs/probe_basic/probe_basic.ini b/configs/probe_basic/probe_basic.ini index 1f3f9f42..8c399e6c 100644 --- a/configs/probe_basic/probe_basic.ini +++ b/configs/probe_basic/probe_basic.ini @@ -51,6 +51,10 @@ PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image [ATC] # Carousel image available for 8, 10, 12, 14, 16, 18, 20, 21, 24 POCKETS = 12 +# The Z height you spindle needs to be at to clamp/unclamp a tool form the ATC +Z_TOOL_CHANGE_HEIGHT = -3.1900 +# The Z clearance height you spindle needs to be at to safely clear the ATC +Z_TOOL_CLEARANCE_HEIGHT = -0.1 STEP_TIME = 500 [RS274NGC] diff --git a/configs/probe_basic/subroutines/extendatc.ngc b/configs/probe_basic/subroutines/extendatc.ngc index a2108075..b16d6413 100644 --- a/configs/probe_basic/subroutines/extendatc.ngc +++ b/configs/probe_basic/subroutines/extendatc.ngc @@ -1,10 +1,16 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; move z to clear height diff --git a/configs/probe_basic/subroutines/m21.ngc b/configs/probe_basic/subroutines/m21.ngc index 2d6ca4fc..17152078 100644 --- a/configs/probe_basic/subroutines/m21.ngc +++ b/configs/probe_basic/subroutines/m21.ngc @@ -3,12 +3,18 @@ o sub ; Move Carousel to the tool change position - OUT ; then unload any tool in the spindle into the current pocket ; Parameter #3991 is used to track the current tool loaded it in the spindle (persistently) -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) (PRINT, o) # = -3.1900 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif M65 P1 ; switch off carousel in solenoid M66 P1 L3 Q1 diff --git a/configs/probe_basic/subroutines/m22.ngc b/configs/probe_basic/subroutines/m22.ngc index 96931cab..3150f732 100644 --- a/configs/probe_basic/subroutines/m22.ngc +++ b/configs/probe_basic/subroutines/m22.ngc @@ -2,12 +2,18 @@ o sub ; Move Carousel to the home position - IN ; after loading any tool in the current pocket to the spindle -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) (PRINT, o) # = -3.1900 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif ;M19 R0 Q2 M24 diff --git a/configs/probe_basic/subroutines/move_head_above_carousel.ngc b/configs/probe_basic/subroutines/move_head_above_carousel.ngc index 5ece7c2d..5c2fd1cd 100644 --- a/configs/probe_basic/subroutines/move_head_above_carousel.ngc +++ b/configs/probe_basic/subroutines/move_head_above_carousel.ngc @@ -1,10 +1,16 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) # = -3.1900 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; move z to clear height diff --git a/configs/probe_basic/subroutines/move_tool_to_carousel_height.ngc b/configs/probe_basic/subroutines/move_tool_to_carousel_height.ngc index 5bc24192..c07eb35b 100644 --- a/configs/probe_basic/subroutines/move_tool_to_carousel_height.ngc +++ b/configs/probe_basic/subroutines/move_tool_to_carousel_height.ngc @@ -1,9 +1,15 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) # = -3.1900 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; rapid move to above the tool change height diff --git a/configs/probe_basic_lathe/subroutines/extendatc.ngc b/configs/probe_basic_lathe/subroutines/extendatc.ngc index a2108075..b16d6413 100644 --- a/configs/probe_basic_lathe/subroutines/extendatc.ngc +++ b/configs/probe_basic_lathe/subroutines/extendatc.ngc @@ -1,10 +1,16 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; move z to clear height diff --git a/configs/probe_basic_lathe/subroutines/m21.ngc b/configs/probe_basic_lathe/subroutines/m21.ngc index 24de1233..9bffddd1 100644 --- a/configs/probe_basic_lathe/subroutines/m21.ngc +++ b/configs/probe_basic_lathe/subroutines/m21.ngc @@ -3,12 +3,18 @@ o sub ; Move Carousel to the tool change position - OUT ; then unload any tool in the spindle into the current pocket ; Parameter #3991 is used to track the current tool loaded it in the spindle (persistently) -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) (PRINT, o) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif M65 P1 ; switch off carousel in solenoid M66 P1 L3 Q1 diff --git a/configs/probe_basic_lathe/subroutines/m22.ngc b/configs/probe_basic_lathe/subroutines/m22.ngc index 2fc326c7..825713fa 100644 --- a/configs/probe_basic_lathe/subroutines/m22.ngc +++ b/configs/probe_basic_lathe/subroutines/m22.ngc @@ -2,12 +2,18 @@ o sub ; Move Carousel to the home position - IN ; after loading any tool in the current pocket to the spindle -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) (PRINT, o) # = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif ;M19 R0 Q2 M24 diff --git a/configs/probe_basic_lathe/subroutines/move_head_above_carousel.ngc b/configs/probe_basic_lathe/subroutines/move_head_above_carousel.ngc index 5ece7c2d..65e68cdf 100644 --- a/configs/probe_basic_lathe/subroutines/move_head_above_carousel.ngc +++ b/configs/probe_basic_lathe/subroutines/move_head_above_carousel.ngc @@ -1,10 +1,17 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) -# = -3.1900 +# = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif + G0 G53 Z# ; move z to clear height diff --git a/configs/probe_basic_lathe/subroutines/move_tool_to_carousel_height.ngc b/configs/probe_basic_lathe/subroutines/move_tool_to_carousel_height.ngc index 5bc24192..77215115 100644 --- a/configs/probe_basic_lathe/subroutines/move_tool_to_carousel_height.ngc +++ b/configs/probe_basic_lathe/subroutines/move_tool_to_carousel_height.ngc @@ -1,9 +1,15 @@ o sub -; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (adjust to your needs) -; # is the clearance height you spindle needs to be at to safely clear the ATC (adjust to your needs) +; # is the height you spindle needs to be at to clamp/unclamp a tool form the ATC (Set via INI [ATC]Z_TOOL_CHANGE_HEIGHT) +; # is the clearance height you spindle needs to be at to safely clear the ATC (Set via INI [ATC]Z_TOOL_CLEARANCE_HEIGHT) -# = -3.1900 +# = -3.9000 +o101 if [EXISTS[#<_ini[atc]z_tool_change_height>]] + # = #<_ini[atc]z_tool_change_height> +o101 endif # = [#<_ini[AXIS_Z]MAX_LIMIT>-0.1] +o102 if [EXISTS[#<_ini[atc]z_tool_clearance_height>]] + # = #<_ini[atc]z_tool_clearance_height> +o102 endif G0 G53 Z# ; rapid move to above the tool change height