Welcome! Log In Create A New Profile

Advanced

Homing with Marlin Firmware

Posted by vmv 
vmv
Homing with Marlin Firmware
November 29, 2020 12:58PM
My issue is that I'm trying to home at the left front corner on my printer but when I home it goes to the right rear corner.
My end stops for the X and Y are Max end stops and the end stop for Z is Min. I'm not sure what setting I'm missing.
Some help would be greatly appreciated. I've attached my configuration.h file.
Attachments:
open | download - Configuration.h (90.6 KB)
Re: Homing with Marlin Firmware
November 29, 2020 01:16PM
The Left Front corner is Min End-stop on my 3D Printer.

This should be configured
// 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


// The size of the print bed
#define X_BED_SIZE 240
#define Y_BED_SIZE 160

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

Unless you end-stops allow nozzle to over shoot the bed Front Left corner.

Edited 1 time(s). Last edit at 11/29/2020 01:20PM by Roberts_Clif.


Computer Programmer / Electronics Technician
vmv
Re: Homing with Marlin Firmware
November 29, 2020 01:58PM
The only issue I have with this
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1

Is that my end stops for the X and Y are at the MAX location.
I was trying to have the printer go trigger the max end stops and move the the front left corner of the print bed.
Re: Homing with Marlin Firmware
November 30, 2020 08:26AM
This looks like you are homing to a Min end-stop on the Max side of the bed.
Is this Correct?
Then you may not need this
#define X_MIN_POS -240
#define Y_MIN_POS -160

// Sets direction of end-stops when homing; 1=MAX, -1=MIN
// :[-1,1]
#define X_HOME_DIR 1
#define Y_HOME_DIR 1
#define Z_HOME_DIR -1

You would need to make sure your end-stop is plugged into the X-Max pin on your board.
#define X_BED_SIZE 240
#define Y_BED_SIZE 160

// Travel limits (mm) after homing, corresponding to end-stop positions.
#define X_MIN_POS 0 // This should only need adjusting if you over or under shoot the front left corner.
#define Y_MIN_POS 0 // This should only need adjusting if you over or under shoot the front left corner.
#define Z_MIN_POS 0
#define X_MAX_POS X_BED_SIZE
#define Y_MAX_POS Y_BED_SIZE
#define Z_MAX_POS 160

Edited 4 time(s). Last edit at 11/30/2020 09:05AM by Roberts_Clif.


Computer Programmer / Electronics Technician
vmv
Re: Homing with Marlin Firmware
December 01, 2020 01:03PM
My endstops are at the max position for X and Y. When done homing I want it to move to 0,0 on my print bed.
I will try those settings to see what happens.
Re: Homing with Marlin Firmware
December 03, 2020 02:57PM
"Home" does not mean "move to 0,0". "Home" means "find out where 0,0 is". If you want to move to 0,0 after homing you need to add an explicit "G0 X0 Y0" command after you home.
Sorry, only registered users may post in this forum.

Click here to login