Some of the 1F universe may know that I wrote a couple macros to make the bit setting automated for tool changes. Similar to Carbide bit setter.
It would be awesome if 1F could add a measure tool button to he Home Screen that would store the length as a variable. So workflow would be probe zero, measure tool, load file and go.
Here’s the code I’m currently running for tool change in settings, Works great but has to measure both tools at tool change. I wrote another one that measure tools at start of program and then only needs to measure the new tool on the M6, but it’s a problem when using the laser.
M70
S0
G21 G40 G49
G17 G90
G53 G0 Z-10
G53 G0 X780 Y50
G92.2
G53 G0 Z-70
M0 (MSG, Wait for the spindle to stop. Attach Probe, Click “Continue”)
G38.2 Z-133 F100
#5000=#<_Z>
G53 G0 Z-70
M0 (MSG, Change Tool, Attach Probe. Click “Continue”)
G38.2 Z-133 F100
#4999=#<_Z>
G92.3
G0 Z25.4
G92 Z[#5000-#4999+25.4]
G53 G0 Z-10
M0(MSG, REMOVE MAGNET!!! Click “Continue”)
G0 X0 Y0
M72
So if a measure tool button were added it could store the #5000 variable before the program loads. Not sure this might require a change in PP to not cancel offsets but shouldn’t as it is a probe command not a TLO.
And code could be modified to the following or tool change in settings.
M70
S0
G21 G40 G49 G17 G90
G53 G0 Z-10
G53 G0 X780 Y50
M0(MSG,Remove Dust Boot, Change Tool, Attach Probe, Click “Continue”)
G92.2
G53 G0 Z-70
G38.2 Z-133 F100
#4999=#<_Z>
G92.3
G0 Z25.4
G92 Z[#5000-#4999+25.4]
G53 G0 Z-10
#5000=#4999
M0(MSG,REMOVE MAGNET!!!, Replace Dust Boot, Click “Continue”)
G0 X0 Y0
M72