Machsupport Forum

General CNC Chat => Share Your GCode => Topic started by: johnnydoughey on January 07, 2013, 05:33:08 AM

Title: G code for slowing Z axis
Post by: johnnydoughey on January 07, 2013, 05:33:08 AM
I  came up with a device for finding the surface height of my material (when bit touches a 1" magnet, it turns on a light).  I've been looking for a gcode which I can use to have the bit "SLOWLY"drop until it touches the magnet.  I could then use the g00z-1.00 to place the bit on the material surface.  What would the code be for ensuring the z goes slow enough to allow me to hit the stop button?
Thanks in advance for the help...
Bill McGuire
Title: Re: G code for slowing Z axis
Post by: Tweakie.CNC on January 09, 2013, 08:41:38 AM
Hi Bill,

If you use G01 then you could set the feed-rate (F) to any speed that suits your purpose.

Tweakie.
Title: Re: G code for slowing Z axis
Post by: Slowdigits on February 24, 2015, 08:55:30 PM
yes you could rapid G0 to say g0z-1.25 then  g1 f1. z-1.   this would be very slow not sure what your using but would you z be z1. insted of a negitave?
Title: Re: G code for slowing Z axis
Post by: tonywads on September 12, 2016, 08:02:28 PM
why would you want to just manualy lower z down to your work leaving the bit loose so it can push it up and down then set and tighten
Title: Re: G code for slowing Z axis
Post by: Graham Waterworth on December 16, 2016, 04:18:04 PM
Why not wire the light output into Mach and use G31 to stop the Z axis when it sees the input.