Results 1 to 5 of 5

Thread: Help with Gcode for toolsetter

  1. #1
    Registered
    Join Date
    Mar 2005
    Location
    usa
    Posts
    214
    Downloads
    0
    Uploads
    0

    Help with Gcode for toolsetter

    I'm using an electronic tool touch off setter so I can maintain an accurate local Z zero when changing tools on my benchtop mill. It's wired into WinCnc and functions as a switch.

    Here's the scenario I'd like to have happen. I have a Z zero position I use for my rotary axis a known distance (-28.65mm) above the top of the toolsetter. After a tool change, I'd like to touch off on the toolsetter and reset local Z at -28.65 and return to local X0Y0 so I'm ready to run the next program.

    I can send the spindle to the toolsetter, manually touch off and trip the switch, G92 Z-28.65 and it works fine.

    If I run this:

    G53 Z0 [Lift Z Head]
    G53 X276 Y125 [Move to XY position of tool measure switch]
    L91 G0 Z-100 [Move down the rapid distance]
    L91 G1 Z-250 M28 F20 G31 [Move down to tool switch]
    g92 z-28.65 [set LZ at TOOL SWITCH HEIGHT]
    G53 Z0 [Lift Z Head]
    G0X0Y0 [RETURN TO LOCAL XY ZEROS]

    It runs but doesn't set a new Z position, Z zero remains whatever my previous local Z zero was.

    What am I missing?

    Thanks,

    Harry
    www.harryhamilldesigns.com
    CAD sculpting and services


  2. #2
    Registered
    Join Date
    Mar 2005
    Location
    usa
    Posts
    214
    Downloads
    0
    Uploads
    0
    Got this to work, it might not be totally right, but it's a start:


    G53 Z0 [Lift Z Head]
    G53 X276 Y125 [Move to XY position of tool measure switch]
    L91 G0 Z-98 [Move down the rapid distance]
    L91 G1 Z-15 M28 F20 G31 [Move down to tool switch]
    G92 Z-28.65 [set LZ at TOOL SWITCH HEIGHT]
    L90 G0Z65 F800 [Lift Z Head AND RESTORE FEEDRATE]
    L92Z [CANCEL G92 RESTORE]
    L90 G0X0Y0 [RETURN TO LOCAL XY ZEROS]

    More info here:Tool length setter
    www.harryhamilldesigns.com
    CAD sculpting and services


  3. #3
    Registered
    Join Date
    Oct 2007
    Location
    usa
    Posts
    2388
    Downloads
    0
    Uploads
    0
    harry i have several macros for the (as we call it) "touchtop"

    will be in shop today and will post for you later


    jim
    Attached Thumbnails Attached Thumbnails Help with Gcode for toolsetter-img_3425.jpg   Help with Gcode for toolsetter-img_3429.jpg  
    James McGrew CAMaster 508 ATC
    www.mcgrewwoodwork.com http://dropc.am/p/EJaKyl


  4. #4
    Registered
    Join Date
    Oct 2007
    Location
    usa
    Posts
    2388
    Downloads
    0
    Uploads
    0
    this is a touchtop mac which is placed in the ini file, it is in inches but i have used it over 8 months now i hold my aluminum pad up off the table and test, this will give time to abort if there is a problem!!

    i can email the file so pm me if you want it

    jim


    l92 [Remember G92 Setting]
    l91g1z-10f10m28g31 [Touch Distance]
    l90g92 z.503 [Enter Thickness of Switch Plate]
    l92

    l90g0 z.75 [Clearence Height]
    l91g1z0f50 [Set Default Feedrate]
    g0
    James McGrew CAMaster 508 ATC
    www.mcgrewwoodwork.com http://dropc.am/p/EJaKyl


  • #5
    Registered
    Join Date
    Mar 2005
    Location
    usa
    Posts
    214
    Downloads
    0
    Uploads
    0
    Thanks Jim! I'll check it out.

    I can just copy it from here so no need to email it to me. Thanks for the offer though.

    Harry
    www.harryhamilldesigns.com
    CAD sculpting and services


  • Similar Threads

    1. Need Help!- Toolsetter problems
      By inertialabs in forum Haas Mills
      Replies: 6
      Last Post: 10-23-2008, 03:51 PM
    2. Probe and toolsetter suggestions?
      By REVCAM_Bob in forum General Metal Working Machines
      Replies: 15
      Last Post: 12-31-2007, 07:12 PM
    3. Building Touch Probe and Toolsetter...
      By REVCAM_Bob in forum General Electronics Discussion
      Replies: 9
      Last Post: 05-23-2007, 07:43 AM
    4. Mazak / Yasnak MX3 control toolsetter
      By soszi1950 in forum Mazak, Mitsubishi, Mazatrol
      Replies: 1
      Last Post: 02-10-2007, 09:24 AM
    5. Replies: 0
      Last Post: 03-10-2005, 01:46 PM

    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.