Hello Guest it is October 20, 2019, 12:22:29 AM

Author Topic: G code for slowing Z axis  (Read 9026 times)

0 Members and 1 Guest are viewing this topic.

G code for slowing Z axis
« 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

Offline Tweakie.CNC

  • *
  •  7,950 7,950
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: G code for slowing Z axis
« Reply #1 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.

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: G code for slowing Z axis
« Reply #2 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?
Re: G code for slowing Z axis
« Reply #3 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

Offline Graham Waterworth

  • *
  •  1,889 1,889
  • Yorkshire Dales, England
    • View Profile
Re: G code for slowing Z axis
« Reply #4 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.
Without engineers the world stops