Welcome! Log In Create A New Profile

Advanced

Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc

Posted by Jasontwd 
Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc
November 28, 2019 03:51AM
HI Everyone,
Im setting up a new printer with Marlin 2.0.x on a Azteeg X5 GT from Panucatt and 32bit
Im having a problem with Z homing to max endstop.

What ive found so far:
Physical endstop is triggered in the max when moving bed up to endstop, this is confirmed by M119
Reset board, and M114 to return:
Recv: X:0.00 Y:250.00 Z:0.00 E:0.00 Count X:0 Y:25000 Z:0
I can move the bed down via controls on octoprint say 10mm and M114 returns
Recv: X:0.00 Y:250.00 Z:-10.00 E:0.00 Count X:0 Y:25000 Z:-10667
and then back up to 0 at MAX with the endstop triggered with M119.

Then If I home via G28 or Z axis on octoprint.
The bed keeps lowering to the min and rams into floor....?? Does not home to MAX?

Can anyone see an error or possibly know a solution. Configuration.h attached as file
cheers
jason

My settings are all correct for:
"// @section homing

// Specify here all the endstop connectors that are connected to any endstop or probe.
// Almost all printers will be using one per axis. Probes will use one or more of the
// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
#define USE_XMIN_PLUG
//#define USE_YMIN_PLUG
//#define USE_ZMIN_PLUG
//#define USE_XMAX_PLUG
#define USE_YMAX_PLUG
#define USE_ZMAX_PLUG

// Enable pullup for all endstops to prevent a floating state
//#define ENDSTOPPULLUPS
#if DISABLED(ENDSTOPPULLUPS)
// Disable ENDSTOPPULLUPS to set pullups individually
//#define ENDSTOPPULLUP_XMAX
//#define ENDSTOPPULLUP_YMAX
//#define ENDSTOPPULLUP_ZMAX
//#define ENDSTOPPULLUP_XMIN
//#define ENDSTOPPULLUP_YMIN
//#define ENDSTOPPULLUP_ZMIN
//#define ENDSTOPPULLUP_ZMIN_PROBE
#endif

// Enable pulldown for all endstops to prevent a floating state
//#define ENDSTOPPULLDOWNS
#if DISABLED(ENDSTOPPULLDOWNS)
// Disable ENDSTOPPULLDOWNS to set pulldowns individually
//#define ENDSTOPPULLDOWN_XMAX
//#define ENDSTOPPULLDOWN_YMAX
//#define ENDSTOPPULLDOWN_ZMAX
//#define ENDSTOPPULLDOWN_XMIN
//#define ENDSTOPPULLDOWN_YMIN
//#define ENDSTOPPULLDOWN_ZMIN
//#define ENDSTOPPULLDOWN_ZMIN_PROBE
#endif

// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
#define X_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
//#define Z_MIN_PROBE_ENDSTOP_INVERTING true // Set to true to invert the logic of the probe."

and

"// @section homing

//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed

//#define UNKNOWN_Z_NO_RAISE // Don't raise Z (lower the bed) if Z is "unknown." For beds that fall when Z is powered off.

//#define Z_HOMING_HEIGHT 4 // (mm) Minimal Z height before homing (G28) for Z clearance above the bed, clamps, ...
// Be sure you have this distance over your Z_MAX_POS in case.

// Direction of endstops when homing; 1=MAX, -1=MIN
// :[-1,1]
#define X_HOME_DIR -1
#define Y_HOME_DIR 1
#define Z_HOME_DIR 1

// @section machine

// The size of the print bed
#define X_BED_SIZE 250
#define Y_BED_SIZE 250

// Travel limits (mm) after homing, corresponding to endstop positions.
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 200
#define X_MAX_POS X_BED_SIZE
#define Y_MAX_POS Y_BED_SIZE
#define Z_MAX_POS 0

/**
* Software Endstops
*
* - Prevent moves outside the set machine bounds.
* - Individual axes can be disabled, if desired.
* - X and Y only apply to Cartesian robots.
* - Use 'M211' to set software endstops on/off or report current state
*/

// Min software endstops constrain movement within minimum coordinate bounds
#define MIN_SOFTWARE_ENDSTOPS
#if ENABLED(MIN_SOFTWARE_ENDSTOPS)
#define MIN_SOFTWARE_ENDSTOP_X
#define MIN_SOFTWARE_ENDSTOP_Y
#define MIN_SOFTWARE_ENDSTOP_Z
#endif

// Max software endstops constrain movement within maximum coordinate bounds
#define MAX_SOFTWARE_ENDSTOPS
#if ENABLED(MAX_SOFTWARE_ENDSTOPS)
#define MAX_SOFTWARE_ENDSTOP_X
#define MAX_SOFTWARE_ENDSTOP_Y
#define MAX_SOFTWARE_ENDSTOP_Z
#endif"

Edited 1 time(s). Last edit at 11/28/2019 03:52AM by Jasontwd.
Attachments:
open | download - Configuration.h (78.8 KB)
Re: Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc
November 28, 2019 04:08AM
What happens when you set:
#define Z_HOME_DIR -1

Assuming you are using an Hbot or corexy. The bed still homes to Zmin btw. It just moves up instead of down.

If the bed moves to zmax it means the bed would move down. If you home to zmin it would move up

Edited 1 time(s). Last edit at 11/28/2019 04:10AM by Ohmarinus.


http://www.marinusdebeer.nl/
Re: Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc
November 28, 2019 05:38AM
Yes Concurr,
Just came to the same conclusion and BOOM works well.
Thanks for your help.
jas
Re: Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc
November 28, 2019 06:27AM
Quote
Jasontwd
Yes Concurr,
Just came to the same conclusion and BOOM works well.
Thanks for your help.
jas

Ah good to hear! Any place where we can see your printer? smiling smiley


http://www.marinusdebeer.nl/
Re: Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc
November 29, 2019 04:10AM
Thanks, I 've set up a blog, but havnt put any new stuff on there for ages. I'll get some writing and info up there and send you link once ready eh.
You got messanger address and I flick you some images and video of it working just today.
jas
Sorry, only registered users may post in this forum.

Click here to login