X-Y axis auto homing problems
June 11, 2014 10:30PM
I hope to add the X-Y axis auto homing function to Tantillus. I had put a small micro switch at the X and Y axis corner as the end stop, and modify the firmware for the "G28" routine as follow.
The X_ENDSTOPS_INVERTING and Y_ENDSTOPS_INVERTING also change to "false", but, it only homing the Z-axis when execute the G28 command (same response as those before modification)
What I am missing ?


home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])));
if((home_all_axis) || (code_seen(axis_codes[X_AXIS])))
{
HOMEAXIS(X);
}
if((home_all_axis) || (code_seen(axis_codes[Y_AXIS]))) {
HOMEAXIS(Y);
}

if((home_all_axis) || (code_seen(axis_codes[Z_AXIS]))) {
HOMEAXIS(Z);
}

if(code_seen(axis_codes[X_AXIS]))
{
if(code_value_long() != 0) {
current_position[X_AXIS]=code_value()+add_homeing[0];
}
}

if(code_seen(axis_codes[Y_AXIS])) {
if(code_value_long() != 0) {
current_position[Y_AXIS]=code_value()+add_homeing[1];
}
}

if(code_seen(axis_codes[Z_AXIS])) {
if(code_value_long() != 0) {
current_position[Z_AXIS]=code_value()+add_homeing[2];
}
}
Re: X-Y axis auto homing problems
June 11, 2014 11:18PM
In the Tantillus branch of Marlin there are a few changes to Marlin.pde that effect the way it homes. [github.com]


FFF Settings Calculator Gcode post processors Geometric Object Deposition Tool Blog
Tantillus.org Mini Printable Lathe How NOT to install a Pololu driver
Re: X-Y axis auto homing problems
June 12, 2014 10:35PM
Can I just remove this routine to enable the axis homing for X and Y axis?

+#ifdef TANTILLUS
+
+ feedrate = 0.0;
+ home_all_axis = !(code_seen(axis_codes[0]));
+
+ if((home_all_axis) || (code_seen(axis_codes[Z_AXIS]))) {
+ HOMEAXIS(Z);
+ }
+
+ if(code_seen(axis_codes[Z_AXIS])) {
+ if(code_value_long() != 0) {
+ current_position[Z_AXIS]=code_value()+add_homeing[0];
+ }
+ }
+#else
Re: X-Y axis auto homing problems
June 13, 2014 12:21AM
Re: X-Y axis auto homing problems
June 13, 2014 05:33AM
Thanks, now it is working fine.
Sorry, only registered users may post in this forum.

Click here to login