Hello Guest it is November 16, 2019, 04:02:17 PM

Author Topic: Zero a display  (Read 2024 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

*
  • *
  •  8,000 8,000
  • Super Kitty
    • View Profile
    • Tweakie.CNC
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.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline Graham Waterworth

*
  • *
  •  1,906 1,906
  • 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