1. #1
    Hi can anyone tell me what I'm doing wrong or missing out please.
    Iím trying to set up my Auto tool zero in Mach 3, for some reason itís decided not to function correctly anymore.

    When i select the Auto tool zero button the Z axis starts to lower itís self and stops when it make contact with the tool sensor.
    It then raises 10 mm and stops.
    When i select the GOTO switch the Z axis only lowers 10 mm and doesn't take into account the sensor thickness.

    This is the Script in my VB editor.

    'chengdu xhc tec. probe z surface macro
    FeedCurrent = GetOemDRO(818) 'Get the current settings, OEM DROs (818)=Feedrate DRO
    ZCurrent = GetOemDro(802) 'OEM DROs (802)=Z DRO
    GageH = GetOEMDRO(1001) 'OEMDRO(1001)=Gage Block Height
    ZNew = ZCurrent - 300 'probe down 20 mm

    Code "G90F200" 'slow feed rate to 100 MM/MIN
    SetOemDRO(818,200)
    Rem Code "G4 P1" 'Pause 1 second to give time to position probe plate
    Code "G31 Z" &ZNew
    While IsMoving()
    Sleep(10)
    Wend
    Call SetDro (2,GageH) 'DRO(2)=Z DRO

    FinalMove = GageH + 10
    Code "G0 Z" &FinalMove
    Code "F" &FeedCurrent 'restore starting feed rate
    SetOemDRO(818,FeedCurrent)

    Thank you
    Kev

  2. #2
    Ger21's Avatar
    Lives in Detroit, United States. Last Activity: 10 Hours Ago Has been a member for 6-7 years. Has a total post count of 567. Received thanks 77 times, giving thanks to others 0 times. Referred 1 members to the community.
    Are you entering the sensor thickness into the gauge height DRO?
    Gerry
    ______________________________________________
    UCCNC 2017 Screenset

    Mach3 2010 Screenset

    JointCAM - CAM for Woodworking Joints

  3. #3
    Hi Gerry thank you for the reply.
    I have tried to enter the sensor thickness in the DRO (Z axis) on the front screen but it cancels out when i select the GOTO button.
    I also tried entering it in the VB Script “Call SetDro (2,GageH) 'DRO(2)=Z DRO”
    To be honest i don't have a lot of knowledge in the subject

  4. #4
    I've Manged to work out the issue.
    The sensor thickness in the Offset colum didn't save the thickness reading.

    Thank you
    Kev

  5. #5
    Ger21's Avatar
    Lives in Detroit, United States. Last Activity: 10 Hours Ago Has been a member for 6-7 years. Has a total post count of 567. Received thanks 77 times, giving thanks to others 0 times. Referred 1 members to the community.
    I have tried to enter the sensor thickness in the DRO (Z axis) on the front screen but it cancels out when i select the GOTO button.
    No.
    The macro is looking in the Gage Height DRO for the sensor thickness. If you don't have it entered there, it's not going to work.
    Gerry
    ______________________________________________
    UCCNC 2017 Screenset

    Mach3 2010 Screenset

    JointCAM - CAM for Woodworking Joints

  6. hi you can use this

    FeedCurrent = GetOemDRO(818) 'Get the current settings, OEM DROs (818)=Feedrate DRO
    ZCurrent = GetOemDro(802) 'OEM DROs (802)=Z DRO
    GageH = GetOEMDRO(1001) 'OEMDRO(1001)=Gage Block Height
    ZNew = ZCurrent - 20 'probe down 20 mm

    Code "G90F100" 'slow feed rate to 100 MM/MIN
    Rem Code "G4 P1" 'Pause 1 second to give time to position probe plate
    Code "G31 Z" &ZNew
    While IsMoving()
    Sleep(10)
    Wend
    Call SetDro (2,GageH) 'DRO(2)=Z DRO

    FinalMove = GageH + 10
    Code "G0 Z" &FinalMove
    Code "F" &FeedCurrent 'restore starting feed rate

  7. #7
    Quote Originally Posted by stepmores View Post
    hi you can use this

    FeedCurrent = GetOemDRO(818) 'Get the current settings, OEM DROs (818)=Feedrate DRO
    ZCurrent = GetOemDro(802) 'OEM DROs (802)=Z DRO
    GageH = GetOEMDRO(1001) 'OEMDRO(1001)=Gage Block Height
    ZNew = ZCurrent - 20 'probe down 20 mm

    Code "G90F100" 'slow feed rate to 100 MM/MIN
    Rem Code "G4 P1" 'Pause 1 second to give time to position probe plate
    Code "G31 Z" &ZNew
    While IsMoving()
    Sleep(10)
    Wend
    Call SetDro (2,GageH) 'DRO(2)=Z DRO

    FinalMove = GageH + 10
    Code "G0 Z" &FinalMove
    Code "F" &FeedCurrent 'restore starting feed rate

    Thank you for the reply, i've managed to get it working now but i will keep it for futher refence.

    Cheers
    Kev

Similar Threads

  1. WANTED: Boxford or Denford Lathe Auto Tool Changer
    By DagnW in forum Items Wanted
    Replies: 1
    Last Post: 27-03-2017, 09:45 PM
  2. Help Please With Auto Tool Height Mach 3 Problem
    By howser37 in forum Probing, Digitizing & Scaning
    Replies: 26
    Last Post: 12-06-2014, 06:55 PM
  3. Replies: 11
    Last Post: 01-01-2014, 08:01 PM
  4. What Spindle / Auto Tool Changer?
    By Chaz in forum Tool & Tooling Technology
    Replies: 11
    Last Post: 01-08-2013, 09:35 PM
  5. how to make auto tool changer on mach3
    By m.vekariya in forum Artsoft Mach
    Replies: 1
    Last Post: 13-03-2013, 07:48 PM

Bookmarks

Posting Permissions

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