Find edges - XY Probe
Hello. I use the repetier firmware in my cnc. I have made some changes to the code to improve my usability.
Laser mode. I can control the laser intensity using parameter S of commands G0 and G1.
CNC mode. I can control the spindle speed using parameter S of commands G0 and G1.
4th Axis. I used the Extruder 1 driver to drive the 4th axis motor.
A new need has now emerged and I am unable to continue with this development. I need to identify the edges of an object in X and Y. Just as the Z Probe works, I need to use the function on the other axes. Can you help me with some code or direction for this function?
Thank you.
Comments
Problem is that xy moves only test xy end stops during probing. Only z will test z probe in z probe mode. So in first place you need to make xy trigger on z probe signal so the movement stops.
Part of the problem must be solved in Endstops::update() - only problem is you have no flag that you are z probing. So add a flag and make xy trigger min or max depending on the direction you probe and make it stop then. Next problem might be that we only count remaining steps so you need to measure distances from this on how much you moved. No problem for cartesian printer.