Z offset macro with stallguard
-
Hello there! I would like to use the stallguard of Z axis in order to calculate with a macro the offset of the probe (super pinda). The problem is that the macro doesn't allow to use variables, and so that become a bit difficult. I won't change the endstop mechanism and i wanna use the super pinda for mesh level and homing, i just wanna use a macro in this way, go homing and then down untill the probe detect the plate, after that continue slowly untill the stallguard hit gently the plate and return the value inspected (so later you can use the G31 command). I would like to have a macro like this, becouse i change plate continously, and a macro that helps me with the z offset would be pretty nice. Any suggestion on how i can do without using variables?