Page 1 of 3 123 LastLast
Results 1 to 12 of 31

Thread: Auto tool zero

  1. #1
    Registered
    Join Date
    Dec 2005
    Location
    USA
    Posts
    415
    Downloads
    0
    Uploads
    0

    Auto tool zero

    What does the "Auto Tool Zero" button do in Mach3? I don't seem to be able to find any thing about it in the Mach3 manual.


  2. #2
    Registered
    Join Date
    Oct 2004
    Location
    US
    Posts
    118
    Downloads
    0
    Uploads
    0
    It is a button that you can add VB code too...
    You can enter in code like this:
    Zmove = 1.5 'amount the tool will move down to hit the probe
    Zpos = GetDRO(2)
    Tool = GetDRO (24)
    ZOffset = .5 'enter height of probe here

    OldZpos = Zpos
    ZPos = Zpos - ZMove
    Code "G31 Z" & ZPos & " F20.0"
    While IsMoving()
    Wend
    Zpos = GetVar (2002)
    If Zpos = OldZpos - ZMove Then
    responce = MsgBox ("ERROR! The tool did not hit the probe and DRO was not set" , 4 , "Probe ERROR!" )
    Else
    SetDRO (2,ZOffset)
    End If

    Code "G00 G53 Z-.1"



    This will set the Z to the right height over the part

    Thanks
    Brian


  3. #3
    Registered
    Join Date
    Jul 2006
    Location
    England
    Posts
    236
    Downloads
    0
    Uploads
    0
    This will set the Z to the right height over the part
    I am really interested in getting this working on my CNC setup
    Quick question.....
    When the Z axis comes down and the bit touches the plate (3mm Thick for instance), the Z axis then backs up a set distance, say 10mm
    You can then remove the plate and wire clip and press cycle start??
    Does the VB code then add some sort of tool compensation so it knows that the Z axis is 13mm above the actual material???

    TIA

    Andy


  4. #4
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22212
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Normsthename View Post
    Does the VB code then add some sort of tool compensation so it knows that the Z axis is 13mm above the actual material???

    TIA

    Andy
    It resets the DRO to the correct Z height when it hit's the plate ( SetDRO (2,ZOffset)). Then when it moves up 10mm, it's just a normal 10mm Z move.
    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)


  • #5
    Registered
    Join Date
    Jul 2006
    Location
    England
    Posts
    236
    Downloads
    0
    Uploads
    0
    Then when it moves up 10mm, it's just a normal 10mm Z move.
    I understand that it resets the DRO, but do I need to change 'Z' origins in my CAD package to tell it that the tool is actually 13mm above the material??

    Thanks

    Andy


  • #6
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22212
    Downloads
    0
    Uploads
    0
    No, the origin (Z=0) is still the top of the workpiece. When Mach3 moves up 10mm, it knows it's 10mm above the work.
    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)


  • #7
    Registered
    Join Date
    Dec 2005
    Location
    USA
    Posts
    415
    Downloads
    0
    Uploads
    0
    Is the 13mm you refer to the height of your touch probe? If so, it would appear that you would alter the previously posted VB code and update the touch probe height.

    Could someone post a reference to one of these electronic height probes? I have seen mechanical ones but not electrical ones that could be interfaced to a computer. I assume they have some mechanism for handling overshooting. The VB code looks like it probes at 20ipm and I know my setup would overshoot at that speed.


  • #8
    Registered
    Join Date
    Jul 2006
    Location
    England
    Posts
    236
    Downloads
    0
    Uploads
    0
    s the 13mm you refer to the height of your touch probe?
    The 13mm was just a 'test' figure which equated to a 3mm thick touch plate, and then the Z axis moves up 10mm to equal 13mm in total
    Hope this helps.
    Could someone post a reference to one of these electronic height probes?
    All it consists of is an output wire from your breakout board, which you attach one end to a steel plate, and the other end you fit a crocodile clip or similar. You then put the touch plate under the bit, and attach the clip on to bit.
    When the Z axis lowers and makes electrical contact, the VB code then does the rest.
    You need to assign the output to the digitiser probe....I think.........

    I will have a go at getting this working tomorrow.
    No, the origin (Z=0) is still the top of the workpiece. When Mach3 moves up 10mm, it knows it's 10mm above the work.
    Thanks GER21 for all your input

    Andy


    Andy


  • #9
    Registered
    Join Date
    Dec 2005
    Location
    USA
    Posts
    415
    Downloads
    0
    Uploads
    0
    A potential problem with this approach may occur if the Mach debounce and G31 feed rate high enough that before Mach reports the contact as real the tool has over shot. The mechanical ones that I have seem allow for overshooting (basically they are a fancy dial indicator). The steel plate would not be as forgiving. When I use an electronic edge finder I change the debounce to a low value and feed very slowly (1ipm). It would be really slick to be able to feed down fast and measure the overshoot. Perhaps with an electronic dial indicator?

    Here is a DIY version of the mechanical height gauge.

    http://www.industrialhobbies.com/how..._gauge_pt1.htm


  • #10
    Registered
    Join Date
    Jul 2006
    Location
    England
    Posts
    236
    Downloads
    0
    Uploads
    0
    A potential problem with this approach may occur if the Mach debounce and G31 feed rate high enough that before Mach reports the contact as real the tool has over shot.
    Other Mach users are using with no problems, I will try it and see!

    Andy


  • #11
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22212
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by wildcat View Post
    A potential problem with this approach may occur if the Mach debounce and G31 feed rate high enough that before Mach reports the contact as real the tool has over shot.
    As you mentioned, you can set the feedrate in the VB script. It doesn't have to be 20. Set it low, and just jog down close before you run the Script.
    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)


  • #12
    Registered
    Join Date
    Jul 2006
    Location
    England
    Posts
    236
    Downloads
    0
    Uploads
    0
    Today I made up the touch plate, and wired this into Pin 15 on my breakout board, and the other wire to a earth on the breakout board.
    Finally I assigned the probe to this signal.
    Everything works fine when I touch the crocodile clip to the plate, I get a probe signal showing on the diagnostics screen in Mach3
    Problem is when I actually clip the crodile clip onto the router bit, I get an intermittent signal flashing on the probe signal display
    I would guess the intermittent signal is flashing approx. twice every second. It is very random flashing signal.
    The router is powered off at the electrical socket. As soon as I unclip the wire from the router bit, the flashing signal stops???
    I thought that it could be picking up noise from the Stepper motors, so I positioned the plate very near to the stepper motors with the clip off the router bit, and no flashing??
    I tried altering the debounce setting, and it made it better, but I have to have a large value (2000+) before it is usuable.
    Its very odd, Anyone know why I am getting this.
    I have temporally altered the VB script so I now lower the router bit manually while watching the diagnostics screen, and when the probe signal is solid, I press the auto tool zero button.
    It then records the thickness of the touch plate, and then moves the Z axis back upto 15mm
    This works fine, but I would like to know why I get the flashing signal.

    TIA

    Andy


  • Page 1 of 3 123 LastLast

    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.