Dear all,
As I couldn’t find (maybe I am to dumb for searching) a simple description on how to setup a touchplate, I wrote something together to help others!
As you may know, I am running my MPCNC with Dual-Endstops and it works great.
For the time being, I didn’t use any Z-Endstop or touchplate yet and I always set my worksurface manually.
Today, I had a bit of spare time and I attached two wires to the Z- endstop pin and GND.
I went into the firmware configuration.h and set
Z_MIN_ENDSTOP_INVERTING =true,
I flashed and tested by initiating a Home Z from a save height and then connecting the wires. Z-Homing worked as expected.
Now I attached one wire to the endmill and one to a 2.1 mm thick flat piece of metal.
Then I went to the firmware configuration.h again and uncommented
#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
and
#define FIX_MOUNTED_PROBE
After that, I set
#define X_PROBE_OFFSET_FROM_EXTRUDER 0
#define Y_PROBE_OFFSET_FROM_EXTRUDER 0
#define Z_PROBE_OFFSET_FROM_EXTRUDER 2.1
This will automatically compensate for the 2.1mm thickness of my touch plate. If your plate is thicker, change this value accordingly.
Now I flashed the firmware again.
VERY IMPORTANT!!
After MPCNC boots up, go to Configuration -> load factory defaults
This sets the correct probe-offset! If you forget this step (like I did), you won’t have the correct Z-height after homing with your touchplate.
I homed Z, took the touch plate away and checked the actual Z-position on the display. It showed 2.1 as expected.
Done!
Using my joystick-controlbox https://www.v1engineering.com/forum/topic/manual-joystick-control-fro-mpcnc/, I now can do the complete setting for a new job without using the screen and rotary knob. Love it!
Another hint:
I used a pair of very long, almost untwisted 28 gauge wires to hook up to Z-min.
I faced the issue that my gantry only came down 1-2cm and the went up again. Homing failed. Turned out that I caught noise in the wires which prevented correct homing. First I twisted the wires which helped a bit. Then I went to the firmware again and enabled
#define ENDSTOP_NOISE_THRESHOLD 3
This totally solved the issue for me.
So I hope this helps people to easily get the touchplate going!
Cheers
Armin