Welcome! Log In Create A New Profile

Advanced

G38 (Probe Target) does not work

Posted by Plasmacut 
G38 (Probe Target) does not work
September 15, 2025 06:36AM
I'am making a CNC desktop machine based on Marlin 2.0 and Atmega2560+Ramps 1.4.
All the main functions work. The machine moves according to the program and jog by LCD board encoder.
I want to do PCB milling. To get a height map, I want to use a simple contact Z-probe. I tried to make the necessary settings in the Configuration.h and Configuration_adv.h files:
===================
Configuration.h

#define Z_MIN_PROBE_PIN 44 (because it is more convenient to connect than pin32 RAMPS)
#define FIX_MOUNTED_PROBE

===================
Configuration_adv.h
#define G38_PROBE_TARGET

====================
I use CNCjs to get a workpiece height map.

When the program execute the G38.2 target search command, the machine stops.
The Z axis does not move down and nothing happens.

The same thing happens if I send G38.2 Z-2 through the terminal. I only see answer "OK" in the terminal screen.

It seems I did some mistakes in Configuration.h and Configuration_adv.h

Any help and advice is welcome
Attachments:
open | download - Configuration.h (90.7 KB)
open | download - Configuration_adv.h (145.1 KB)
Re: G38 (Probe Target) does not work
September 15, 2025 08:43AM
What does M119 tell you regarding the probe, perhaps logic is reversed.
Re: G38 (Probe Target) does not work
September 15, 2025 09:11AM
Dear Dust, I already checked this. Z-min probe was closed. I've changed it to OPEN and machine started to work with G38.2
I talked that use CNCjs. Unfortunately it's been tested for GRBL only. Their AUTOLEVEL option does not work correctly with my Marlin machine. Maybe you can give an advice how to sense height map for each PCB and add this data to G-code milling? I mean special software or Marlin own capabilities.
Sorry, only registered users may post in this forum.

Click here to login