Open TheRealJAnderson opened 4 years ago
I wrote a little macro that can handle tool-length-offsets for me. Maybe this will help:
Basically you run it when you start the cnc and then you run it when you have put in a new bit.
You need to install a fixed probe. I just use a normal button (repeatability is +-0.01mm).
This macro uses G92 offsets and the G59 work coordinate system, so you can not use them for your normal cnc work. You need to set G59 zero points over your fixed probe button. Thats how you configure the position of the probe.
G92.1;
G90;
G53 G0 Z0 F3000;
G59;
G0 X0Y0;
G0 Z0;
G91;
G38.2 Z-90 F300;
G0 Z2;
G38.2 Z-10 F30;
G4 P.25;
G38.4 Z10 F20;
G4 P.25;
G38.2 Z-10 F10;
G4 P.25;
G38.4 Z10 F5;
G4 P.25;
G92 Z0;
G0 Z5 F3000;
G90;
G53 G0 Z0 F3000;
G54;
It just uses normal gcode so it should really run in any gcode sender. Honestly this should maybe be a built in feature. That way you might not have to lose G92 and G59.
Feature request
I want to use a tool offset probe with my CNC with UGS as the controller and don't find that UGS supports M6 tool changes and tool offsets. Does it and I just don't know about it? I know CNCJS does here.