CNCzone Network: RFQwork :: 3Dstuffzone :: Welderzone
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.
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.
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.
G00 T0101 (2" UDRILL)
G97 S600 M03
G0 X0 Z0.20 M8
(USE BLOCK DEL TO SKIP DRILL)
/G01 Z-5.0 F0.005
G85 N30 D0.300 F0.012 U0.02 W0.005
G1 Z-5.0 F0.012
G0 X10.0 Z10.0 M9
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 05:00 AM.
Drill the hole even if it's already there. Safest option
By MarcusHMM in forum General Metal Working Machines
Last Post: 03-22-2010, 06:17 PM
Last Post: 01-14-2010, 08:50 AM
By BillTodd in forum SheetCam
Last Post: 12-03-2008, 03:23 PM
By NickLatech in forum G-Code Programing
Last Post: 09-25-2007, 08:05 PM
By donl517 in forum Fadal
Last Post: 06-27-2007, 12:05 PM