Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: Pmenuez on July 06, 2013, 12:06:40 PM

Title: Zero a display
Post by: Pmenuez on July 06, 2013, 12:06:40 PM
Is there a code (G or M or ?) that will zero out an axis without traveling to zero?

I am using the 4th axis as an extruder (3D printer) and when the print is done I want to zero out the display, but I don't want the motor to move. 

I know I can do this manually which is great until I forget to zero and I unwind my filament when I start the next print.

Thanks,

Pete
Title: Re: Zero a display
Post by: Tweakie.CNC on July 07, 2013, 02:49:35 AM
Hi Pete,

Welcome to the forum.

There is always more than one way but this is perhaps the easiest…

Create a macro (in your Mach3, macros, [your profile (typically Mach3Mill)] folder called M999.m1s (this is typically a Word Pad document with an .m1s file extension)
Enter into the macro the commands of your choice.

For example: A M999.m1s macro containing the command   DoOEMButton(1008)   will zero the X axis DRO whenever the Code   M999   is called within your program.

More info on macros and the OEM Button codes can be found in this document http://www.machsupport.com/wp-content/uploads/2013/02/Mach3_V3.x_Macro_Prog_Ref.pdf

Tweakie.
Title: Re: Zero a display
Post by: Graham Waterworth on July 08, 2013, 03:30:13 AM
You could just do a G92 A0