603,807 active members*
2,514 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Posts
    214

    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
    Join Date
    Mar 2005
    Posts
    214
    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:http://www.cnczone.com/forums/showthread.php?t=70366
    www.harryhamilldesigns.com
    CAD sculpting and services

  3. #3
    Join Date
    Nov 2007
    Posts
    2466
    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 IMG_3425.JPG   IMG_3429.JPG  
    James McGrew CAMaster 508 ATC
    www.mcgrewwoodwork.com http://dropc.am/p/EJaKyl

  4. #4
    Join Date
    Nov 2007
    Posts
    2466
    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. #5
    Join Date
    Mar 2005
    Posts
    214
    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. Toolsetter problems
    By inertialabs in forum Haas Mills
    Replies: 6
    Last Post: 10-23-2008, 08:51 PM
  2. Probe and toolsetter suggestions?
    By REVCAM_Bob in forum Uncategorised MetalWorking Machines
    Replies: 15
    Last Post: 01-01-2008, 01:12 AM
  3. Building Touch Probe and Toolsetter...
    By REVCAM_Bob in forum CNC Machine Related Electronics
    Replies: 9
    Last Post: 05-23-2007, 12:43 PM
  4. Mazak / Yasnak MX3 control toolsetter
    By soszi1950 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 1
    Last Post: 02-10-2007, 03:24 PM
  5. Replies: 0
    Last Post: 03-10-2005, 07:46 PM

Posting Permissions

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