Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: guynamedbathgate on July 28, 2013, 11:57:21 AM

Title: zero an axis "in program" ??
Post by: guynamedbathgate on July 28, 2013, 11:57:21 AM
I am using Mach3 to run a 3D printer. the extruder is run off the A axis and is set up to be a linear axis. I'd like to set up the gcode so the controller automatically re- zero's the A axis at the end of a program so that if I forget to manually zero it, it does not try and back up 3000 millimeters of filament at the start of the next program. Is there an easy way to do this with simple G-code, or will this require a custom macro?

again, all I want is is for the software to zero the A axis at the end of a program.

Thanks for any help.

Title: Re: zero an axis "in program" ??
Post by: BR549 on July 28, 2013, 12:52:23 PM
Use either the G92 or G52 Gcode to reset the axis to Zero. Check the manual on their uses.

(;-) TP
Title: Re: zero an axis "in program" ??
Post by: guynamedbathgate on July 28, 2013, 01:39:49 PM
Beautiful, thats exactly what I was looking for, g92 will work perfectly. I figured there was something, but I am a little rusty these days.

Thanks

CB