584,837 active members*
5,552 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2007
    Posts
    26

    Programming a tool setter to check tool height

    I need to use Gcode to activate a tool height setting.

    Can anyone show me a sample code that will position the tool above the toolsetter, initiate the downward move, and reset the tool height offset?

    The tool will have already been touched off, but this is to double check the engraving tip and make any adjustments needed while in a loop program doing multiple parts. I'm building a single part changer so I can mind my other machine while this machine is engraving.

    I'm thinking something like this:

    G1 X___ Y___ Z___ F 50. (Go to position above toolsetter)
    G31 Z-.1 F15. (Does this initiate a move to the toolsetter?)(I have not been able to find real instructions, so I don't know what happens after it trips the toolsetter switch)
    G10 L1 Z0. (reset T1 height offset???)

    I appreciate any help or leads to someone who knows how to do this.
    Thanks!

  2. #2
    Join Date
    Sep 2007
    Posts
    26

    Gcode recommended

    I got a reply from a machine company rep who said they don't normally recommend Gcode or programming, but he made a one-time exception and said to try this. It may take me a few days to work it into my schedule, but below is what was recommended. Like him, I'm not responsible for anyone who tries it and I plan to hand trip the toolsetter the first time to test it.

    1. Set up your toolsetter on the table

    2. Select a work offset coordinate system that you don’t plan on using for your part program, e.g. G58

    3. Remove any tool from the spindle and type ‘0’ in the tool dro (this cancels TLO)

    4. Remove the collet or tighten the drawbar to the point where the collet no longer protrudes past the spindle face. We will be touching the spindle face off on the toolsetter

    5. Use the “Move and set work offset” button on the Z probe screen. This will move the spindle face down until it touches off on the top of the toolsetter, and set the G58 Z position to Zero right at the triggered position of the toolsetter

    6. Then, in your g code program, use the following code (I’ll assume you’re in G54 and measuring tool 1 for this example):

    a. G49 (Cancel TLO)

    b. G58 (Switch to work offset G58)

    c. G0 X--- Y--- (move the tool over the toolsetter)

    d. G31 Z-10 F15 (probe tool down till it touches the toolsetter)

    e. G10 L1 P1 Z#2002 (set the tool length offset value to the G58 Z position where the probe tripped)

    f. G0 Z3 (move up to safe distance)

    g. G54 (reapply old work offset coordinate system)

    h. G43 H1 (apply new TLO for tool 1)

Similar Threads

  1. variaxis tool height setter
    By r1cht in forum Mazak, Mitsubishi, Mazatrol
    Replies: 10
    Last Post: 06-13-2018, 10:05 PM
  2. Tool Length Offset Tool Setter
    By CNCneeds in forum News Announcements
    Replies: 0
    Last Post: 01-03-2014, 06:27 PM
  3. Tool Setter Macro for M-V60C and Metrol Setter
    By mitshack in forum Mazak, Mitsubishi, Mazatrol
    Replies: 1
    Last Post: 02-02-2013, 12:08 PM
  4. Wireless tool height setter
    By cd_edwards in forum DIY CNC Router Table Machines
    Replies: 0
    Last Post: 02-10-2012, 02:01 PM
  5. Tool setter macro for M-V60C and Metrol setter
    By mitshack in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 10-06-2008, 02:38 PM

Tags for this Thread

Posting Permissions

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