Welcome! Log In Create A New Profile

Advanced

Homing Z-axis before disable steppers

Posted by Rigor_M 
Homing Z-axis before disable steppers
October 27, 2014 09:45AM
Hi,

Hope i'm the right section of the forum :-)

I have a belt-drive Z-axis and when the steppers are disabled and the bed is up, it slams down causing current to drive back to the stepper controller.
I'm using the Marlin firmware and i'm looking at modding the code so the Z-axis goes home before disabling the steppers.

i've tried a couple a things.. first modifying the "M84" (to start and see if it works) and added 2 lines at the top of case statement,

enable_stepper(true);
HOMEAXIS(Z);

that works in part.. the trouble is, if I try to raise the bed again, it tries to go the other way (G1 Z100) slams even more onto the endstop switch at the bottom ( mind here that the switch is a Z206.30 & hotend is Z0).


The main goal is to modify the disable_z() function is marlin.h but when I tried that, I got a "Z not defined). I can't remember the exact words has of this writing.

Anyone could help out or get me going in the right direction ?

I know this would benifit a community that uses belt-drive beds :-)

Thanks,

J-F
Re: Homing Z-axis before disable steppers
October 29, 2014 03:01PM
You should be able to add a "post print" code where it homes the z axis.


greghoge.com

HUGE 3D PRINTER PARTS SALE!!!
Re: Homing Z-axis before disable steppers
October 29, 2014 03:40PM
Yes, that's not the problem
I do have a G28 Z0 and then a M84

I mean, when the bed is up and after a certain amount of time (stepper timeout) it will slam the bed..

I want to change this behavior in the firmware.

Thanks anyways smiling smiley
Sorry, only registered users may post in this forum.

Click here to login