Page 1 of 2 12 LastLast
Results 1 to 12 of 13

Thread: Parametric Looping problem

  1. #1
    Registered
    Join Date
    Jun 2008
    Location
    USA
    Posts
    66
    Downloads
    0
    Uploads
    0

    Parametric Looping problem

    I'm counterboring a .843 dia hole at .490 deep "rough".There is always a hole in these parts that very. In this case the thru hole is .283.The depth finishes at .500 and is constant. So I need a variable that I can change for the thru hole which can be changed and I need to LOOP the last .01 at .002 each pass to create a very sharp edge at the intersection of the bore and the bottom of the .5 face.The boring bar needs to cut up from the inside of the bore to the .843 dia..I've created this loop b4 but for some stupid reason I'm knockin my head against the walls...............Help would be appreciated.....Thx....


  2. #2
    Registered
    Join Date
    May 2010
    Location
    usa
    Posts
    30
    Downloads
    0
    Uploads
    0
    Is this a fanuc controlled machine?


  3. #3
    Registered
    Join Date
    Jun 2008
    Location
    USA
    Posts
    66
    Downloads
    0
    Uploads
    0
    Yes fanuc 21i On a hardinge conquest gt


  4. #4
    Registered
    Join Date
    May 2010
    Location
    usa
    Posts
    30
    Downloads
    0
    Uploads
    0
    you can use #500 or what ever variable is free for your through hole diameter. you can set the variable in the controller or set the variable in the program(#500=.25.
    G0 X#500;
    G0 Z____;
    G1 X.843;

    for the loop you can do this many different ways. I hope this jogs you brain.

    (FINISH CYCLE)
    #510=-.490(Z START)
    #511=.010(FINISH DEPTH)
    #512=.002(DEPTH OF CUT)
    #513=[#511/#512](MATH FOR # OF PASSES)
    #514=0
    WHILE[#514LT#513]DO1
    #514=[#514+1]
    G0X#500
    G0Z-[.490+[#514*#512]]
    G1X.483
    G1Z-.490
    END1

    G0X#500
    G0Z.1

    I WORTE THIS ON THE FLY SO THERE MAY BE A MISTAKE PLEASE DOUBLE CHECK ME.

    I hope this helps


  • #5
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1275
    Downloads
    0
    Uploads
    0
    For a simple application such as this, you can even use G94 five times (in this case).
    You would need to vary only start X for G94, to suit different initial bores, for which you can use a variable.

    The posted macro looks ok, but would not work when the number of passes comes out to be a fractional value (not in this case, of course). And, read G1X.483 as G1X.843.


  • #6
    Registered
    Join Date
    May 2010
    Location
    usa
    Posts
    30
    Downloads
    0
    Uploads
    0
    I knew I messed up somewhere. I guess I have never used a G94 before. Is G94 a face turning cycle?


  • #7
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1275
    Downloads
    0
    Uploads
    0
    Yes.
    It has some similarity with G90 cycle.
    G90 is used for diameter turning / taper turning.
    G94 is used for facing / taper facing.
    This is for G-code system A.


  • #8
    Registered
    Join Date
    Jun 2008
    Location
    USA
    Posts
    66
    Downloads
    0
    Uploads
    0

    looping macro

    Haven't worked much on looping macro but going to today. I've got it to loop but keep getting an error when it goes to retract. Any help?


  • #9
    Registered
    Join Date
    May 2010
    Location
    usa
    Posts
    30
    Downloads
    0
    Uploads
    0
    Didn't quite understand that last post. Are you using the macro or the g94?


  • #10
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1275
    Downloads
    0
    Uploads
    0
    You can even use G94 inside a macro.
    My advice is, first try to master the canned cycles. In many cases, these would serve the purpose, and the program would be simple. Macro programming should be the next step.


  • #11
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1509
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by gtrrpa View Post
    Haven't worked much on looping macro but going to today. I've got it to loop but keep getting an error when it goes to retract. Any help?
    Can you tell us the alarm number and possible post the code in which you are getting the alarm??

    Stevo


  • #12
    Registered
    Join Date
    Jun 2008
    Location
    USA
    Posts
    66
    Downloads
    0
    Uploads
    0

    Looping program

    Sorry guys,My 1st statement was wrong. I'm not using a Macro (G65) I'm trying to use a looping program like houstonsamuel wrote. Sorry, I'm still having problems with having it retract? Hmmmmm I'll send you alarm and program...Thanks all


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Looping command?
      By rigo430 in forum Haas Lathes
      Replies: 1
      Last Post: 04-11-2010, 06:35 PM
    2. Using an IF statement inside a While looping
      By ggborgen in forum Parametric Programing
      Replies: 6
      Last Post: 06-23-2009, 01:40 PM
    3. LOOPING? with Camsoft??
      By nelZ in forum CamSoft Products
      Replies: 15
      Last Post: 10-15-2008, 04:56 PM
    4. Program Looping
      By Bohemund in forum CamSoft Products
      Replies: 7
      Last Post: 05-26-2007, 12:08 PM
    5. Sub Looping
      By murphyspost in forum Daewoo/Doosan
      Replies: 8
      Last Post: 12-27-2006, 11:28 AM

    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.