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

0 Members and 1 Guest are viewing this topic.

Offline johnnydoughey

  • Active Member
  • Posts: 14
    • View Profile
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

  • Global Moderator
  • *
  • Posts: 7,646
  • 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.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline Slowdigits

  • Holding
  • Posts: 1
    • View Profile
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?

Offline tonywads

  • Active Member
  • Posts: 41
    • View Profile
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

  • Administrator
  • *
  • Posts: 1,837
  • West Yorkshire, England
    • View Profile
    • Autovalues Engineering
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.
G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England