585,715 active members*
3,870 visitors online*
Register for free
Login

Thread: drilling

Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2006
    Posts
    28

    drilling

    I would like to know if anybody has come up with a macro or some sort of subprogram combination that will allow me to start drilling near the bottom of the hole but retract all the way out of the piece after each peck. The control is Fanuc 16 i-M.

    Any help is very much appreciated.

    Goran

  2. #2
    Join Date
    Mar 2008
    Posts
    638
    I'm not a macro expert but I made this for deep drilling after first drilling a shallower hole:



    %
    O01112
    (VARIABLE PECK DRILL)

    G00 G17 G40 G49 G80 G90 G98


    N7
    G103 P15 (CANCEL LOOK AHEAD 15 LINES)
    #101= 0 (START DRILL DEPTH)
    #102= 0.015 (PECK AMOUNT)
    #103= #101 + #102 (PECK + START)
    #104= 1. (TOTAL DRILL DEPTH)
    #105= 1. (Z CLEARANCE)
    #106= 1.2 (FEEDRATE)

    (3.6MM DRILL)
    T7 M06
    G00 G90 G55 X0 Y0 S900 M03
    G43 H07 Z1. T8
    M08
    Z#105
    G00 Z - #101
    G01 Z - #103 F#106
    G00 Z#105

    N222
    G103 P9
    G04 P0.1
    #101= #103 - 0.05
    #103= #103 + #102
    IF [ #103 GE #104 ] THEN #103= #104
    G00 Z - #101
    G01 Z - #103 F#106
    G00 Z#105
    IF [ #103 NE #104 ] GOTO222

    M05
    G00 Z1. M09
    G53 Y0. Z0.

    M30
    %

    Good luck,
    Chris

    edit- this is for a Haas VF-2ss

  3. #3
    Join Date
    Feb 2007
    Posts
    314

    Smile

    If you need frequently this kind of function here is wath i think it is the best. You can call a macro with a G code. Choose a G code that is not used. Suppose that it is G77. Parameters 6050 to 6059 call custom macro program 9010 through 9019. So if you set parameter 6050 to 77, each time you have G77 in your main program, custom macro program 9010 is called, parameter 6051 is the G code that call custom macro 9011, parameter 6051 is the G code that call custom macro 9012...


    Then, you have to define argument of your G77
    I think it could be like this:
    G77 X(x coordinate) Y(y COORDINATE) Z(z coordinate at bottom of hole) I(start of drilling) J (clearance) Q (cut increment) R (retract) F(feed)

    For example, I want to drill a hole at X 2.0 Y2.0 Drilling start at Z-.750 and finish
    at Z-1.5 with cut increment of .175 I want to retract at Z.250 after each peck and i want a clearance of .02 at each approach. Feed is 6.5
    Once the macro is written, you just have to program this:
    G77 X2.0 Y2.0 Z-1.5 I-.750 J.02 R.250 F6.5

    Into macro the value of X in the block of G77 become #24, Y=#25, Z=#26, I=#4, J=#5, Q=#17, R=#18, F=#9

    Now here is the macro
    O9010
    #101=#4-#17 (Z coordinate to reach)
    #102=0 (number of cycle)
    G00 X#24 Y#25 (position)
    N5 Z[#4+#5-[#102*#17] (Z approach)
    IF [#101 LE #26] GOTO 10 (IF THERE IS LESS THEN CUT INCREMENT TO DRILL)
    G01 Z#101 F#9
    G00 Z#18 (RETRACT TO R VALUE)
    #102=#102+1 (INCREMENT NUMBER OF CYCLE)
    #101=#101-#17 (NEW Z TO REACH)
    GOTO 5
    N10 G01 Z#26 F#9 (FINAL PASS)
    G00 Z#18 (RETRACT TO R VALUE)
    M99

    This macro is not tested and could contain some error. Be carefull.
    Let me know if there is something you don't understand

  4. #4
    Join Date
    Feb 2007
    Posts
    314
    i think it s the right way do to that but i'm not an expert. Maybe somebody knows a better way. If so, i want to know!

  5. #5
    Join Date
    Mar 2008
    Posts
    638
    Looks cool. Next time I need that chip clearing deep hole process I'll try it. Very compact after you make the sub. Then just leave the tiny subroutine permanently loaded and you're ready anytime you need it. Very cool.

  6. #6
    Join Date
    Jun 2008
    Posts
    1511
    Try this.
    A=3.(CLEARANCE PLANE #1)
    K=81.(G-CODE FOR DRILL CYCLE #6)
    Q=0(PICK SIZE FOR DRILL CYCLE #17)
    W=.1(STARTING DEPTH #23)THIS IS WHAT YOU CHANGE TO START IN THE HOLE. -VALUE GOES INTO PART + VALUE ABOVE
    T=15.(TOOL NUMBER BEING USED #20)
    Z=1.0(FINAL DEPTH OF HOLE #26)
    X=2.5(X COORD. OF HOLE #24)
    Y=1.5(Y COORD. OF HOLE #25)


    O8000(DRILL EQ. SPACED HOLES 5/20/08)
    M6T#20
    G90G80
    G55G0X#24Y#25Z#1M3
    G#6X#24Y#25Z-#26R#23Q#17M8
    G80M9
    M99

    You can set this up how ever you want. Use the variables to set up with standard subprogram call M98. Or use the alpha word usage to call a macro G65. This should work being the initial R-plane is being set before the canned drill cycle and the starting depth(r-plane) being set to negetive number in the cycle. Then will clear back to inital R-plane. I chopped the macro down for just 1 hole. Most of mine are set up for bolt circles and standard X,Y on VMC. If you could use that let me know.

    Stevo

  7. #7
    Join Date
    Mar 2008
    Posts
    638
    Goran P. wrote "I would like to know if anybody has come up with a macro or some sort of subprogram combination that will allow me to start drilling near the bottom of the hole but retract all the way out of the piece after each peck."
    Stevo1, it doesn't look like using a standard drill cycle (even one called out by macro) is going to start deep and still retract all the way out each peck. Am I missing something? Easy for me to do.

  8. #8
    Join Date
    Jun 2008
    Posts
    1511
    I apologize I over looked the fact that he was asking to return to the R-plane when peck drilling. I have not proven this out but try this to see if it works. I added a starting depth of ("B" #2) unless you prefer to rapid. The program will feed to this depth but the R-plane in the canned cycle is still above the part and should return to this point when peck drilling. When it is done it will first move to the Z of value B because it was your initial point before the canned cycle but at the end of the program it will return the clearance plane.

    A=3.(CLEARANCE PLANE #1)
    B=.75(STARTING DEPTH OF HOLE #2)MORE + GOES DEEPER
    K=83.(G-CODE FOR DRILL CYCLE #6)
    Q=.1(PICK SIZE FOR DRILL CYCLE #17)
    W=.1(R-PLANE #23)
    T=15.(TOOL NUMBER BEING USED #20)
    Z=1.0(FINAL DEPTH OF HOLE #26)
    X=2.5(X COORD. OF HOLE #24)
    Y=1.5(Y COORD. OF HOLE #25)


    O8000(DRILL EQ. SPACED HOLES 5/20/08)
    M6T#20
    G90G80
    G55G0X#24Y#25Z#1M3
    G1Z-#2F75.
    G#6Z-#26R#23Q#17F3.M8
    G80M9
    G0G90Z#1
    M99

    Stevo

Similar Threads

  1. Where is a how to on drilling?
    By MrWild in forum Dolphin CAD/CAM
    Replies: 7
    Last Post: 02-15-2008, 01:46 PM
  2. 1mm or 0-80 drilling in al
    By star1280 in forum MetalWork Discussion
    Replies: 10
    Last Post: 12-19-2007, 05:07 AM
  3. Drilling on the TL-1
    By DivMechDes in forum Haas Mills
    Replies: 9
    Last Post: 11-02-2006, 07:46 PM
  4. drilling and drilling cycles tutorial
    By wmorre in forum MetalWork Discussion
    Replies: 0
    Last Post: 10-19-2006, 12:30 AM
  5. q about drilling o1
    By eaven in forum Composites, Exotic Metals etc
    Replies: 3
    Last Post: 08-06-2005, 02:20 AM

Posting Permissions

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