update probe basic

This commit is contained in:
2026-06-23 09:12:27 +02:00
parent 3b8e11d127
commit 3a1aa86fb3
105 changed files with 8568 additions and 13453 deletions

View File

@@ -1,6 +1,6 @@
(author: Chris P)
(version: 0.2)
(date: 06/27/24)
(version: 0.3)
(date: 01/28/26)
(load tool in spindle safety macro)
; This is called form the Tool page
@@ -15,8 +15,7 @@ o<load_spindle_safety_2> sub
#<load_spindle_tool_number_2> = #1 ; this is the value form the TOOL tab
#<probe_tool_number> = #3014
; default to a 12 pocket ATC (matching DynATC Widget behaviour), then update based on INI settings
#<number_of_pockets> = 12
; Update atc pocket count based on INI settings
o101 if [EXISTS[#<_ini[atc]pockets>]]
#<number_of_pockets> = #<_ini[atc]pockets>
o101 endif
@@ -26,12 +25,15 @@ o101 endif
o110 while [#10 LT #<number_of_pockets>]
#10 = [#10+1]
o120 if [#<load_spindle_tool_number_2> EQ #[4000 + #10]]
(DEBUG, the tool you are trying to load is already stored in carousel pocket %d#10)
o111 if [#<load_spindle_tool_number_2> EQ #[4000 + #10]]
#11 = 1
o120 endif
o111 endif
o110 endwhile
o120 if [#11 EQ 1]
(abort, Tool %d#<load_spindle_tool_number> is already stored in carousel, not loading into spindle)
o120 endif
o130 if [#11 EQ 0]
M61 Q#<load_spindle_tool_number_2> G43 H#<load_spindle_tool_number_2>
#3991 = #<load_spindle_tool_number_2>