Results 1 to 5 of 5

Thread: Z axis zero indicator switch

  1. #1
    Registered
    Join Date
    Jun 2005
    Location
    Sweden
    Posts
    4
    Downloads
    0
    Uploads
    0

    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!



  2. #2
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,289
    Downloads
    0
    Uploads
    0
    This might get you started.
    Z axis touch plate
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  3. #3
    Registered
    Join Date
    Jun 2005
    Location
    Sweden
    Posts
    4
    Downloads
    0
    Uploads
    0

    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
    Gold Member spalm's Avatar
    Join Date
    Feb 2005
    Location
    USA
    Posts
    578
    Downloads
    0
    Uploads
    0
    Pete,

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

    Steve


  • #5
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,289
    Downloads
    0
    Uploads
    0
    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

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  • Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.