Hello Guest it is April 19, 2024, 05:47:23 AM

Author Topic: Zero a display  (Read 2829 times)

0 Members and 1 Guest are viewing this topic.

Zero a display
« 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

Offline Tweakie.CNC

*
  • *
  •  9,198 9,198
  • Super Kitty
    • View Profile
Re: Zero a display
« Reply #1 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.
PEACE

Offline Graham Waterworth

*
  • *
  •  2,672 2,672
  • Yorkshire Dales, England
    • View Profile
Re: Zero a display
« Reply #2 on: July 08, 2013, 03:30:13 AM »
You could just do a G92 A0

Without engineers the world stops