585,717 active members*
4,120 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Fanuc drill macro with variable depth and fixed retract point
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2007
    Posts
    11

    Fanuc drill macro with variable depth and fixed retract point

    At our shop we have a lengthy program that especially causes issues on our gildemeister lathe as it lacks memory to keep using it and keep your programs stored. I assume as it was written with CAM, and it rapids to .02 clearance above last peck, drills to a certain depth every time, and rapids back to .1 out of the part, and repeats. It's a royal pain to have to edit the program to get the desired depth each time, and eats a ton of memory. I'm currently reading up on macros, but haven't yet discovered if it was possible to create a macro that could be called up like the regular cycle, but rather than retract .020 above then peck more, could one be written to do like the lengthy program does, but remain flexible enough to easily change the depths of the holes? Thanks.

  2. #2
    Join Date
    Mar 2003
    Posts
    2932
    Sounds like a plain old G83 cycle. You might try this in MDI just to see...

    G97 S500 M03
    G83 W-2.0 R0 Q1500 F0.008

  3. #3
    Join Date
    Mar 2006
    Posts
    107
    Quote Originally Posted by dcoupar View Post
    Sounds like a plain old G83 cycle. You might try this in MDI just to see...

    G97 S500 M03
    G83 W-2.0 R0 Q1500 F0.008
    Maybe Z-2.0 instead of W-2.0

    BTW, macro could be called through M/G/T code as I know, you have parameters to set that.
    Attached Thumbnails Attached Thumbnails untitled.JPG  
    Sorry for bad english

  4. #4
    Join Date
    Mar 2003
    Posts
    2932
    Either W or Z should work. W is incremental Z.

  5. #5
    Join Date
    Dec 2003
    Posts
    24220
    Here is also a drill macro that may come in handy.
    Al.
    Attached Thumbnails Attached Thumbnails Drill_peck_macro2.jpg   Drill_peck_macro.jpg  
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

Similar Threads

  1. Center Drill Drill Depth
    By bowersjack in forum MetalWork Discussion
    Replies: 14
    Last Post: 01-29-2022, 05:00 AM
  2. Removal of the drill press depth stop threaded rod
    By devinchi in forum Shopmaster/Shoptask
    Replies: 4
    Last Post: 03-14-2010, 03:10 PM
  3. Macro variable example I programmed today.
    By theemudracer in forum G-Code Programing
    Replies: 1
    Last Post: 03-08-2007, 03:50 AM
  4. Macro variable for current tool diam ?
    By Shizzlemah in forum Fadal
    Replies: 3
    Last Post: 10-30-2006, 03:47 PM
  5. Problem with drill depth
    By Alan S in forum Post Processors for MC
    Replies: 2
    Last Post: 11-03-2005, 09:23 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
  •