by Carboncnc » Sat May 04, 2024 7:20 am
First of all I want to setup the M31 macro, so that I can use my topcom.cz touchprobe to measure the tool lenght. I have edited the macro with machine cordinates but I always get a "softlimit" error when activating the probe command when it retracts the Z all the way up as I want it to do, it moves the Z axis up and just stops due to the softlimit.
I have my probe at the machine X0 so the Y axis doesnt matter at all as I have a moving table on my machine and the probe is mounted on the frame of the machine and not the table.
here is my edited M31 part here I have the Y axis set to 150 just to testing.
//M31 probing macro
double probeX = 1;
double probeY = 150;
double Zmin = -10;
double FeedrateFast = 300;
double FeedrateSlow = 50;
double SafeZ = 100;
double retractheight = 5;
double retractforsecondmeasurement = 1;
bool domoveXY = true; //Enable XY movement
bool dodualcycle = true; //Do probing from 2 cycles, first with Fast and second with Slow feedrates
Wouldnt it be better to have G53 Z0 as safeZ instead of a variable value in this macro ?