Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Custom Drill Cycles?


Darin
 Share

Recommended Posts

Hello,

 

I have a Mazak VTC with Fusion control. I am trying to feed or rapid into a part say -1.0" below the top of stock before I start peck drilling... Can this be done in a G83 or other cycle? Or is it only custom made drill path? I tried to set retract to -1.0 but I want it to come out of the hole say .25 above each peck for chips and coolant... How is this possible? I am running X5.. Thanks

Link to comment
Share on other sites

Hello,

 

I have a Mazak VTC with Fusion control. I am trying to feed or rapid into a part say -1.0" below the top of stock before I start peck drilling... Can this be done in a G83 or other cycle? Or is it only custom made drill path? I tried to set retract to -1.0 but I want it to come out of the hole say .25 above each peck for chips and coolant... How is this possible? I am running X5.. Thanks

Unfortunately, most of the machines I've dealt with do not have a canned cycle that allows a retract -Z- that differs from the start -Z- for drilling. My workaround is to disable the peck-drill cycle in the control definition on jobs that require this. This forces long code drilling which can give you what you want but there are downsides. Besides producing a lot of code, there may be other drill cycles within the same part program where you would prefer to use G83 but all peck drill ops within that machine group will now output long code.

 

If anyone have a more elegant solution I've love to know it!

Link to comment
Share on other sites

This is a normal cycle,

G83 G98 X-4.3301 Y2.5 Z-.619 R0.1 Q.06 P.02 F2.4

This is the modified code that will do what you want

Z.25
G83 G99 X-4.3301 Y2.5 Z-.619 R-1.0 Q.06 P.02 F2.4 <----- G99 retracts to clearance and R-1.0 starts the pecking 1.0" deep.

I believe what the OP is looking for is to have drilling start at Z-1.0, but have the drill retract to say Z+.25 between EACH peck. G98/G99 typically only controls the clearance plane between each hole coordinate.

Link to comment
Share on other sites

Darin,

From the description it sounds like you're looking to drill some holes that may be in the bottom of a cavity and you would like to have code output so that it will rapid to the finished floor of the cavity then start the canned drill cycle, not feeding from the Z 0.0 top of the part.

 

T2 M06

G0 G90 G54 X-1.375 Y.875 S1675 M3

G43 H2 Z.25

Z-1.375

G99 G81 Z-2. R-1.375 F16.5

Y-.875

X1.375

Y.875

G80

Z.25

M5

G90 G53 Z0.

G53 Y0.

M30

 

To get this output I need to set the "top of stock" in the linking parameters as the bottom of the cavity, in this case -1.500 absolute.

I've set the retract at 0.125 incremental, that also sets the feed plane in the code to Z -1.375.

I've activated clearance using a value of 0.250 absolute and set it to be use only at the start & end of the toolpath.

If you would prefer to have the canned cycle output using G98 then uncheck the use only at the start & end function in the clearance.

 

T2 M06

G0 G90 G54 X-1.375 Y.875 S1675 M3

G43 H2 Z.25

G98 G81 Z-2. R-1.375 F16.5

Y-.875

X1.375

Y.875

G80

M5

G90 G53 Z0.

G53 Y0.

M30

Link to comment
Share on other sites

I think I know what Darin is trying to do, at least it's what I've been hassling with for years. Say you have a hole that's 6" deep, so you drill it with a jobber drill 1-1/2" deep. Then you go it with a long drill. If you set the R -1.5, then it starts drilling where the jobber drill left off, but the drill doesn't retract all the way out of the hole to clear chips. If you set R to the top of the hole, then it retracts, but you have to drill a bunch of air.

 

I usually post the program using drill cycles, then post a second program with the drill cycles long hand, then manually crop the two together. Less than ideal. There seems to be no way of posting canned cycles and long hand in the same program.

 

There may be a way of getting the G83 cycle to post longhand, and then creating a custom drill cycle to replace the g83 canned cycle. I was dicking with it a few months ago, but got sidetracked (again)

 

I know I've run machines in the past that allowed you to do this with G83, have the R at the top, and the first Z at some - value. Don't recall exactly what controls though.

Link to comment
Share on other sites

G sounds like you're referring to "deep hole drilling", predrill with a jobber then finish it with a aircraft bit.

 

You could setup the toolpath similar to what I described with the G98 canned cycle, if you need to send the tool to a Z height at the end you could add a start & retract position using reference points.

 

T2 M06

G0 G90 G54 X1.375 Y.875 S1675 M3

G43 H2 Z.25

G98 G81 Z-2.25 R-1.375 F16.5

Y-.875

X-1.375

Y.875

G80

Z1.5

M5

G90 G53 Z0.

G53 Y0.

M30

%

 

There may be a way of getting the G83 cycle to post longhand, and then creating a custom drill cycle to replace the g83 canned cycle.

 

Yes, that setting is in the control definition, control topics: machine cycles / mill drill cycles

Don't forget to reload the machine and control def into your existing part file after making changes to the control def.

Link to comment
Share on other sites
there may be other drill cycles within the same part program where you would prefer to use G83 but all peck drill ops within that machine group will now output long code.

 

I don't think its possible (without post mods, not sure you could do it with mods either) to have both canned cycles and longhand code output to the same program....

Link to comment
Share on other sites

There may be a way of getting the G83 cycle to post longhand, and then creating a custom drill cycle to replace the g83 canned cycle. I was dicking with it a few months ago, but got sidetracked (again)

 

I know I've run machines in the past that allowed you to do this with G83, have the R at the top, and the first Z at some - value. Don't recall exactly what controls though.

Since you can't force long-code from a custom cycle I think your idea of creating a custom drill cycle to replace the G83 might be the way to go.

Link to comment
Share on other sites

I've finally gotten this to do what I want. Since you cannot post custom drill cycles longhand, I created a custom drill cycle at #10 to work the same as the PECK drill cycle, #2, and named it G83 Peck Cycle. Then I modified my post to allow 1st Peck and Subsequent Peck entries on the old Peck cycle, which is #2, and renamed it Deep Peck Cycle. Then I disabled canned cycle posting for the Peck cycle #2.

 

Now, if I want a normal peck, I use cycle #10 and it posts a normal G83 cycle. If I want to pick up where I left off with another drill, I use cycle #2, and it posts longhand, starting where the last drill left off, and retracting all the way out of the hole at each peck.

 

As an example

 

 

 

N1

T1 M6

T2

( TOOL - 1 , 1/8 JOBBER DRILL )

G54 G0 G90 A0.

G0 G90 X-.5054 Y.266 S10000 M3

M8

G43 H1 Z1.

G98 G83 Z-1.5 R.1 Q.065 F12.

G80

M5

M9

G91 G28 Z0.

M01

N2

T2 M6

T1

( TOOL - 2 , 1/8 TAPER LENGTH DRILL )

G54 G0 G90 A0.

G0 G90 X-.5054 Y.266 S3000 M3

M8

G43 H2 Z1.

Z.1

G1 Z-1.56 F4.

G0 Z.1

Z-1.46

G1 Z-1.62

G0 Z.1

Z-1.52

G1 Z-1.68

 

snip

Link to comment
Share on other sites

I've finally gotten this to do what I want. Since you cannot post custom drill cycles longhand, I created a custom drill cycle at #10 to work the same as the PECK drill cycle, #2, and named it G83 Peck Cycle. Then I modified my post to allow 1st Peck and Subsequent Peck entries on the old Peck cycle, which is #2, and renamed it Deep Peck Cycle. Then I disabled canned cycle posting for the Peck cycle #2.

 

Now, if I want a normal peck, I use cycle #10 and it posts a normal G83 cycle. If I want to pick up where I left off with another drill, I use cycle #2, and it posts longhand, starting where the last drill left off, and retracting all the way out of the hole at each peck.

 

As an example

 

 

 

N1

T1 M6

T2

( TOOL - 1 , 1/8 JOBBER DRILL )

G54 G0 G90 A0.

G0 G90 X-.5054 Y.266 S10000 M3

M8

G43 H1 Z1.

G98 G83 Z-1.5 R.1 Q.065 F12.

G80

M5

M9

G91 G28 Z0.

M01

N2

T2 M6

T1

( TOOL - 2 , 1/8 TAPER LENGTH DRILL )

G54 G0 G90 A0.

G0 G90 X-.5054 Y.266 S3000 M3

M8

G43 H2 Z1.

Z.1

G1 Z-1.56 F4.

G0 Z.1

Z-1.46

G1 Z-1.62

G0 Z.1

Z-1.52

G1 Z-1.68

 

snip

 

Nice job. This will be very helpfull.

Link to comment
Share on other sites
  • 10 months later...

I have project similar with the exception I do not want my drill to leave the hole. I am using a 12-inch 3/16 drill and drilling 7.5 inches deep, if I completely pull from the pilot hole I risk the drill whipping and creating damage to the existing hole. For example, I will have the hole pre-drilled 3.5" and I want my extention drill to only retract to z-.18 before it returns to continue drilling. This aforementioned manual code is what I assumed I would need to do, and this forum helps confirm my initial thought. THX!

Link to comment
Share on other sites

Here's how I do it;

 

ppeck$		   #Canned Peck Drill Cycle
  savdrl_gcode = gcode$
  pdrlcommonb
  if peck1$ = 0, result = mprint(speckrate0)
  if drl_prm2$,
    [
    sav_refht = refht$
    refht$ = drl_prm2$
    n$, pdrlxy, e$
    n$, sg01, *drl_prm2$, [if drl_prm3$, *drl_prm3$, else, *feed], e$
    n$, [if drl_prm1$, *drl_prm1$, pspindle], e$
    n$, *sgdrlref, *sgdrill, pfzout, pcout, prdrlout, *peck1$, *feed,
	 strcantext, e$
    pcanceldc$,
    n$, [if drl_prm1$, *speed, pspindle], e$
    n$, sg00, *initht$, e$
    refht$ = sav_refht
    ]
  else, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout,
    prdrlout, *peck1$, *feed, strcantext, e$
  pcom_movea

 

 

O5510
(3/32" TAPER LENGTH DRILL RIGHT SIDE)
IF[#153EQ#0]GOTO1
N0100 G00 G90 X1.08 Y-2.34 (B270.)
N0110 G43 H07 Z3.26 S4500 M03
N0120 G01 Z2.9725 F24.
N0130 G99 G83 Z.62 R2.9725 Q.04 F12.6
N0140 G80
N0150 G00 Z3.26
N0160 Y-2.915
N0170 G01 Z2.9725 F24.
N0180 G99 G83 Z.62 R2.9725 Q.04 F12.6
N0190 G80
N0200 G00 Z3.26
N0210 X.58
N0220 G01 Z2.9725 F24.
N0230 G99 G83 Z2.0019 R2.9725 Q.04 F12.6
N0240 G80
N0250 G00 Z3.26
N0260 G80
N0270 G00 Z11.14
N1 M99

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...