Z Axis Probe Installation on MKS Gen L V1.4

Hello, This new forum is great :slight_smile:
I look into this forums and many videos but I could find the exact wiring position, I have a MKS Gen L V1.4 (using Marlin/Ray firmware) and a cheap probe I bought for 5 bucks, the probe has two wires (probe and Alligator clip) the board has a Z- and Z+ slots with (S - +) pins, I have the stop end all in connect to (S and -).
1- Which pins and slot should I use Z- or Z+ ?
2- Probe and Alligator in which pin?

I got this code in the forum/thingiverse link so I have to insert this in the beginning of the g-code of the project? Z19.3 is the hight of the probe. It means every time I run a g-code I have to insert this lines?

M0 S1
G38.2 Z-50
G92 Z19.3
G0 Z30 F1000
G0 X50 F2000
G0 Z0 F1500
M0 S3
G0 Z30

2

1 Like

Z-, (-) and (s) pins. Don’t connect to (+) or you can damage the board.

For G38.2 to work, I think you need to enable that in the firmware.

Check with M119 first to see that this is working.

1 Like

Hi Jeffeb3, where should I find in the firmware G38.2 ? The M119 is to check if G38.2 is working? I could not find this command related to G38.2 in reprap webpage.

http://marlinfw.org/docs/gcode/G038.html

Looks like G38_PROBE_TARGET.

1 Like

Hi there, back to home I install the probe in the Z (-/S) and I deleted the comments on this lines on the Dual End stops Firmware and got the errors below while compilation.

Blockquote

#define G38_PROBE_TARGET
#if ENABLED(G38_PROBE_TARGET)
#define G38_PROBE_AWAY // Include G38.4 and G38.5 to probe away from target
#define G38_MINIMUM_MOVE 0.0275 // (mm) Minimum distance that will produce a move.
#endif

Blockquote

When try to compile there are the bed error.

Blockquote

In file included from sketch/src/inc/MarlinConfig.h:41:0,
from sketch/src/Marlin.h:24,
from sketch/src/Marlin.cpp:31:
sketch/src/inc/SanityCheck.h:1677:6: error: #error “G38_PROBE_TARGET requires a bed probe.”
#error “G38_PROBE_TARGET requires a bed probe.”
^~~~~
In file included from sketch/src/HAL/HAL_AVR/…/…/inc/MarlinConfig.h:41:0,
from sketch/src/HAL/HAL_AVR/MarlinSerial.cpp:39:
sketch/src/HAL/HAL_AVR/…/…/inc/SanityCheck.h:1677:6: error: #error “G38_PROBE_TARGET requires a bed probe.”
#error “G38_PROBE_TARGET requires a bed probe.”
^~~~~
In file included from sketch/src/HAL/HAL_AVR/…/…/inc/MarlinConfig.h:41:0,
from sketch/src/HAL/HAL_AVR/HAL_spi_AVR.cpp:38:
sketch/src/HAL/HAL_AVR/…/…/inc/SanityCheck.h:1677:6: error: #error “G38_PROBE_TARGET requires a bed probe.”
#error “G38_PROBE_TARGET requires a bed probe.”
^~~~~
In file included from sketch/src/HAL/HAL_AVR/…/…/inc/MarlinConfig.h:41:0,
from sketch/src/HAL/HAL_AVR/HAL.cpp:29:
sketch/src/HAL/HAL_AVR/…/…/inc/SanityCheck.h:1677:6: error: #error “G38_PROBE_TARGET requires a bed probe.”
#error “G38_PROBE_TARGET requires a bed probe.”
^~~~~
Multiple libraries were found for “U8glib.h”
Used: /Users/manolo/Documents/Arduino/libraries/U8glib
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

Blockquote

I think you need to configure the z probe. There’s a ton of information here:

But I think you really just need to enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN and FIX_MOUNTED_PROBE.

Hi Jeffeb3, just return… I uncomment both lines in Marlin, I was looking in other topics and found one with your answer:

you wrote ‘‘G92 Z1.4’’ for the height of the probe, in my case is 19.3mm. I can’t figure out where should I insert this value in Marlin?
Try to find youtube videos but no one specific to MPCN.

G92 Z19.3 is what you want.

2 Likes

@barry99705, yes I understand, but where should I put this? I can not find in the firmware. Maybe is not in the firmware, sorry I am completely lost :frowning:

Have a look at the milling basics page. I have an example starting gcode in there. You can do it in the firmware but I prefer being able to easily change it per job.

1 Like

I wii take a look, what you say is that I should put this in the g-code instead of the firmware everytime?

You have options, I prefer Gcode.