Welcome! Log In Create A New Profile

Advanced

Marlin 1.1.6 z-probe connected to Z-MAX as endstop not working

Posted by wormie_dk 
Marlin 1.1.6 z-probe connected to Z-MAX as endstop not working
November 29, 2017 05:36AM
I have been using Marlin 1.1.0 RC-8 for a while without big problems, but thought I would upgrade to 1.1.6 for some of the new bed-leveling and auto-reporting features. I have an Arduino mega and the RAMPS 1.4 driver board.

I have a Z-probe which is used as a Z-min endstop, and is connected to the Z_MAX pin as I blew my Z_MIN pin. No matter how I configure marlin 1.1.6 I cannot get it to use my Z-probe for homing.

I have enabled :
#define Z_MIN_PROBE_ENDSTOP
and disabled:
//#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN

Which seems to be the correct configuration for a Z_probe connected to Z_MAX_ENDSTOP.

However I always get the same respons for the Z_probe no matter if it is triggered or not:
SENDING:M119
Reporting endstop status
x_min: open
y_min: TRIGGERED
z_min: open
z_probe: open


I tried adding
#define Z_MIN_PROBE_PIN 19
which makes the z_probe work:
SENDING:M119
Reporting endstop status
x_min: open
y_min: TRIGGERED
z_min: open
z_probe: TRIGGERED

However PrintRun does not respect the Z_probe when homing and It seems as if Marlin still thinks theres BOTH a Z_min endstop AND a Z_probe.

If I revert to 1.1.0 RC8 I get the expected output:
SENDING:M119
Reporting endstop status
x_min: open
y_min: TRIGGERED
z_min: TRIGGERED

I have attached my configurations for 1.1.6 (configuration_1.1.6.h) and 1.1.0 RC8 (configuration.1.1.h).

Edited 2 time(s). Last edit at 11/29/2017 05:43AM by wormie_dk.
Attachments:
open | download - Configuration_1.1.6.h (62.8 KB)
open | download - Configuration.1.1.h (55.1 KB)
Re: Marlin 1.1.6 z-probe connected to Z-MAX as endstop not working
November 29, 2017 06:59AM
Your best option is probably to edit pins.h and swap the pins used by Zmin/Zmax
Re: Marlin 1.1.6 z-probe connected to Z-MAX as endstop not working
November 29, 2017 08:45AM
As I see it you should enable for Z_probe when homing

Enable
//#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN


Change
#define X_BED_SIZE 200 //220
#define Y_BED_SIZE 200 //210
Re: Marlin 1.1.6 z-probe connected to Z-MAX as endstop not working
November 29, 2017 12:51PM
Doing what you both suggested was the solution. I read the documentation as if I could change the z-min-pin within configuration.h but apparently the the pins.h is imported after configuration.h and overwrites it. I think the text inside the configuration file could be more clear.
Sorry, only registered users may post in this forum.

Click here to login