603,388 active members*
2,673 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2005
    Posts
    4

    Z axis zero indicator switch

    Hello all

    I´m trying to get Mach3 work with a zero tool indicator with a built in switch that connects to the Mach 3 inputs. I want to slowly lower the Z axis util it touches a plate and triggers the microswitch. Then it should back off until the switch opens again (like homing) and write this value plus the hight of the zero indicator device directly into the Z DRO. This will give me z zero between tool changes. Preferably it should do three "probings" on a row, calculate the mean value and use this for setting the Z DRO. Using G31 will write the values to a file, and it doesn´t back off like homing does. Is there a way to do this? Many thanks ye all!

    :banana:

  2. #2
    Join Date
    Mar 2003
    Posts
    35494
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Jun 2005
    Posts
    4

    yes

    It work a treat! Thanks!
    Just have to do some additioal lines to get it to touch a couple of times. Haven´t figured out yet how to store three measurements and do the average of them, but i think that will be solved soon.

    manyhanks for your quick reply!

    Pete

  4. #4
    Join Date
    Feb 2005
    Posts
    578
    Pete,

    Please share your solution once you got it all figured out.

    Steve

  5. #5
    Join Date
    Mar 2003
    Posts
    35494
    Instead of using SetDRO, I think there's a GetDRO that will let you get the current Z position. Store it in a variable, and repeat two more times and take your average. Now how does the average relate to the switch?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •