Welcome! Log In Create A New Profile

Advanced

Setting X/Y Origin in Firmware

Posted by atheimer 
Setting X/Y Origin in Firmware
February 11, 2016 10:25AM
Hello,

I'm struggling to get my print area setup in the Marlin firmware. I know there are several ways to do this and I would prefer to have it hard-coded in the configuration.h file.

In the following picture, I have just homed both X and Y and their respective endstops are triggered:



To navigate the printhead from this "endstop triggered" position to the true origin corner of my bed would take G1 X10 Y20

From what I've read setting this in the config file should be easy, I set the x_min and y_min with negative values like so:

// Travel limits after homing
#define X_MAX_POS 180
#define X_MIN_POS -10
#define Y_MAX_POS 180
#define Y_MIN_POS -20
#define Z_MAX_POS 160
#define Z_MIN_POS 0

What should I be doing to test that my origin is actually setup correctly?
1) G28 home all things
2) G1 X0 Y0
= the printhead goes to the true corner of the bed?

What should my GUI software show for coordinates 1) when the x/y are at the "endstop triggered" position 2) when the x/y are at the true corner of the bed? 0 for alls?

Lastly if I'm on the right track with the config specs above and my bed is 200x200 should the min + max values = 200? so -20 for x_min goes with 220 for x_max?

Thanks so much for any advice on this,

Andy
VDX
Re: Setting X/Y Origin in Firmware
February 11, 2016 11:47AM
... I have this settings in "Configuration.h" for my paste-dispenser:

// Travel limits after homing (units are in mm)
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define X_MAX_POS 145
#define Y_MAX_POS 200
#define Z_MAX_POS 45


... and:

// The position of the homing switches
#define MANUAL_HOME_POSITIONS // If defined, MANUAL_*_HOME_POS below will be used

// Manual homing switch locations:
#ifdef MANUAL_HOME_POSITIONS
#define MANUAL_X_HOME_POS 0
#define MANUAL_Y_HOME_POS 0
#define MANUAL_Z_HOME_POS 45
#endif


... so after homing "M114" shows "X:0.00 Y:0.00 Z:45.00", and "G0 X0 Y0 Z0" moves the Z-axis 45mm down


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Sorry, only registered users may post in this forum.

Click here to login