Results 1 to 2 of 2

Thread: Macro and Cutter Comp

  1. #1
    Registered
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    12
    Downloads
    0
    Uploads
    0

    Macro and Cutter Comp

    So I'm attempting to muddle my way thru a macro program on a Haas TM3P. But I totally got stuck trying to use cutter comp in a macro subprogram. Can you call G41/G42 in the main program, then go into the macro thru G65? I also put the cutter comp in the macro subprogram, but that didn't do anything. I ran basically the same g-code just with real numbers in the main program, and it ran fine. But the machine just won't do it when it calls up the macro... Errors out that the Tool is too large, which doesn't make sense mathmatically with the size of the tool I'm using

    Would another way be to call up something like G65 P5997 D___ as a variable to put into the macro subprogram? I attempted to read the Haas manual/Smid's book on that stuff but it went way over my head.

    Hell, I could have just screwed my arithmetic up...

    Heres what I have now:

    (SLEEVE DIA) #100 = 4.075
    #101= [ #100 - 2.5 ]
    (Z-DEPTH) #103 = 1.035
    (2 ROUGHING PASSES FOR SLEEVE)
    T11 (1IN HSS ROUGHING EMILL)
    M06
    G90 G59 G00 X0. Y0.
    S285 M03
    G43 H11 Z2. M08
    Z0.2
    Z - #103
    G65 P5997
    G90 G59 M09
    G00 Z0.2 M05
    G28 G91 Z0.
    M01

    O05997
    G90 G59 G00 X0. Y0.
    G00 G41 D11 X [ [ #101 - 0.08 ] / 2 ] Y0.
    G03 X [ [ #100 - 0.08 ] / 2 ] Y0. R [ [ #100 / 2 ] - [ #101 / 2 ] / 2 ] F10.
    G03 X [ [ #100 - 0.08 ] / 2 ] Y0. I - [ [ #100 - 0.08 ] / 2 ]
    G03 X [ [ #101 - 0.08 ] / 2 ] Y0. R [ [ #100 / 2 ] - [ #101 / 2 ] / 2 ]
    G03 X [ [ #100 - 0.02 ] / 2 ] Y0. R [ [ [ #100 - 0.02 ] / 2 ] - [ [ #101 - 0.08 ] / 2 ] / 2 ]
    G03 X [ [ #100 - 0.02 ] / 2 ] Y0. I - [ [ #100 - 0.02 ] / 2 ]
    G03 X [ [ #101 - 0.02 ] / 2 ] Y0. R [ [ #100 / 2 ] - [ #101 / 2 ] / 2 ] M09
    G00 G40 X0. Y0.
    M99


    I know its ugly and bastardized, but hey its one way to learn.
    Thanks for the help.


  2. #2
    Registered
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    12
    Downloads
    0
    Uploads
    0
    Ha never mind, I made the program easier to read/shortened it and I found a mathmatical error. That would throw everything out


Similar Threads

  1. Cutter Comp
    By Mooser in forum Tormach Personal CNC Mill
    Replies: 17
    Last Post: 03-02-2012, 08:37 AM
  2. Cutter comp on an id hole< cutter diam.??
    By PaintItBlue in forum Haas Mills
    Replies: 5
    Last Post: 05-05-2008, 07:30 PM
  3. cutter comp in eia
    By mrwright in forum Mazak, Mitsubishi, Mazatrol
    Replies: 3
    Last Post: 05-21-2007, 08:53 AM
  4. Cutter Comp.
    By Big"E" in forum General Metalwork Discussion
    Replies: 8
    Last Post: 03-28-2007, 12:05 PM
  5. 18-it cutter comp
    By newcinhypro in forum Fanuc
    Replies: 1
    Last Post: 01-25-2006, 09:00 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.