Results 1 to 4 of 4

Thread: Simple Drill subroutine

  1. #1
    Registered tsaladyga's Avatar
    Join Date
    Aug 2009
    Location
    USA
    Posts
    28
    Downloads
    0
    Uploads
    0

    Simple Drill subroutine

    Can someone write a siple Drill sequence in OKuma OSP language?
    We make parts that are castings. Most of the time they are "cored", but sometimes they are solid in the center and we need to drill them with an insert rill and the we use a secondary offset and rough bore with the drill. Unfortunately we don't know when these parts come like this until it's at the maghine, then the operator waits for us to update the program. The problem is the next time we get those parts, they may have the hole. So I would like a subroutine that the oprator can call up, enter the rough diameter and Drill depth and go.
    Possible?
    Thanks guys.
    Todd


  2. #2
    Registered
    Join Date
    May 2004
    Location
    United States
    Posts
    4519
    Downloads
    0
    Uploads
    0
    Won't write it for you. Might try to help you work it out mostly on your own though. Since you are using an inserted drill, have you considered just using 2 or more drilling cycles. First one on X0. Next one on say X0.1 (0.050 DOC). And then so on until you get the size you want. If you are asking for a self-calculating macro type program, that is something entirely different.
    http://www.kirkcon.com/


  3. #3
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1713
    Downloads
    0
    Uploads
    0
    you don't need anything that complicated. just use block delete.
    basically rapid drill to X0, feed G01 to Z depth then rapid back to face of the job
    then use a G85 for roughing the bore.
    just make the program as usual and put block delete on the code for the drill.
    turn block delete ON if your castings are already cored.
    e.g.

    %
    G50 S1000
    G00 T0101 (2" UDRILL)
    G97 S600 M03
    G0 X0 Z0.20 M8
    ( )
    (USE BLOCK DEL TO SKIP DRILL)
    /G01 Z-5.0 F0.005
    /G0 Z0.2
    ( )
    (ROUGH BORE)
    G96 S300
    G85 N30 D0.300 F0.012 U0.02 W0.005
    N30 G81
    G0 X2.0
    G1 Z-5.0 F0.012
    X0
    G80
    G0 Z1.0
    G0 X10.0 Z10.0 M9
    T0100 M5
    M1
    M30


    this will drill 2" hole x 5" deep then bore out a further 2" so hole will be 4" dia by 5" deep.

    to change this all you need to do is change the BLUE numbers for other sizes.
    Even a button-pushing operator could handle that.

    if you want something more accurate to your actual parts provide some real sizes.
    i.e. bore dia and depth and/or profile/drawing and drill diameter......

    watch this for an idea..... (at 00:50)
    "http://www.youtube.com/watch?v=mFvnXtpPfwg"]okuma lsn cnc lathe - YouTube
    Last edited by fordav11; 05-18-2012 at 04:00 AM.


  4. #4
    Registered christinandavid's Avatar
    Join Date
    Aug 2009
    Location
    New Zealand
    Posts
    658
    Downloads
    0
    Uploads
    0
    Drill the hole even if it's already there. Safest option

    DP


Similar Threads

  1. Need Help!- Help setting up a simple automated Drill press
    By MarcusHMM in forum General Metal Working Machines
    Replies: 0
    Last Post: 03-22-2010, 05:17 PM
  2. subroutine
    By kendo in forum Okuma
    Replies: 3
    Last Post: 01-14-2010, 07:50 AM
  3. Need Help!- SheetCAM TNG simple drill operation
    By BillTodd in forum SheetCam
    Replies: 1
    Last Post: 12-03-2008, 02:23 PM
  4. 3 holes to drill, I'm looking for a simple and free cad program
    By NickLatech in forum G-Code Programing
    Replies: 11
    Last Post: 09-25-2007, 07:05 PM
  5. Example of a Subroutine?
    By donl517 in forum Fadal
    Replies: 14
    Last Post: 06-27-2007, 11:05 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.