CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] Subroutine help

Posted by Smoke
on 2001-03-29 19:49:14 UTC
Let's see, since what you've said and what you've shown in code don't match,
I'll presume you're spot drilling at the following locations (relative to
the start point at each location): X0, Y0; X.1, Y0; and X1.1 Y0 based on
the code you've shown. Also based on your code, two of the center drill
depths are .1001" deep and the other is .12 deep.
My code book indicates the figure you've shown for R should be a positive
number (.3) rather than a negative (-.3) as you've indicated as the R plane
should always be above the Z0 plane. You're code doesn't show the 1/2" long
slot and none of the dimensions you've shown are .5" apart. This leaves me
to wonder if you're planning on using one of the drilled thru holes as a
"starter" for the 1/16" milled slot? If so which one, and why the three
center drills?

At any rate, were I to write the code (for the 3 center drill operations
only) using looping, I'd do something like this:

Load tool;
Move to the location (X Y) of the start of the first set of holes using the
shortest safe route possible.
Z .3;
g91 m97 p2000 X.55 L#; (# is the number of times the routine is to be
repeated).

Load milling cutter;
Move to the location (X Y) of the start of the first slot using the shortest
safe route possible;
z.1;
g91 m97 p2010 X1.25 L#;
G90;
...
...
End of program;

N2000; (Note, this is a program line number and must be included AFTER the
end of program.)
G91 G81 Z-.1001 F.3 R.3;
X1 .1;
G81 Z-.12 F.3 R.3;
X.1;
G81 Z-.1001 F.3 R.3
G90;
M99;

N2010 G01 F3. Z-.18;
x.5;
G00 Z.1;
g90;
M99;

Incidently, you're RPM (100) appears way to slow for center drilling.
Hope this helps
Smoke

>> >1.5" long... leaving space for the clamp, they
>> repeat
>> >every 1.75". Each unit will have a small mark to
>> >indicate where to cut the start and finish, which I
>> >plan to make by tapping the surface with a center
>> >drill. Each will have a #59 hole drilled through,
>> and
>> >a 1/16" slot milled .5" along the middle.
>> >
>> >Because of the repeating units, I think that I want
>> to
>> >use subroutines to accomplish this. For example,
>> each
>> >unit requires 3 center drilling actions. Here is
>> some
>> >of the code that I have written:
>> >
>> >G90 ;Absolute coordinates
>> >M25 ;Move head up to clear main clamp
>> >G00 x2.5 y0.5 Z0.4 ;move to start of first unit
>> >
>> >M03 S100 ;spindle on
>> >
>> >:Center Drill
>> >
>> >G91 ; incremental
>> >G81 X0.0 Y0.0 Z-0.1001 R-.3 F3 ;kiss top to mark
>> start
>> >G81 x1.1 z-.12 r-.3 f3 ;center drill for #59 hole
>> >G81 X0.1 Y0.0 Z-0.1001 R-.3 F3 ;kiss top to mark
>> end
>> >
>> >Since I need to repeat this whole cycle every
>> 1.75", I
>> >would like to put these 3 lines into a subroutine
>> and
>> >call them as a unit. Then I just need to move over
>> >0.55" from where one ends, and call the routine
>> again.
>> >

Discussion Thread

m o 2001-03-29 15:56:29 UTC Subroutine help Smoke 2001-03-29 16:45:10 UTC Re: [CAD_CAM_EDM_DRO] Subroutine help m o 2001-03-29 17:15:13 UTC Re: [CAD_CAM_EDM_DRO] Subroutine help Smoke 2001-03-29 19:49:14 UTC Re: [CAD_CAM_EDM_DRO] Subroutine help Jon Elson 2001-03-29 21:56:12 UTC Re: [CAD_CAM_EDM_DRO] Subroutine help m o 2001-03-30 08:34:41 UTC Re: [CAD_CAM_EDM_DRO] Subroutine help Smoke 2001-03-30 09:24:41 UTC Re: [CAD_CAM_EDM_DRO] Subroutine help