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:

Deep hole canned cycle


austing
 Share

Recommended Posts

I have some hole I am drilling that are very deep. We start with a jobber length drill then, go to two longer length drills.

I was wondering if there is a way to start drill #2 and #3 at the last drill point but retract to the top of the part. G code would be easiest.

Link to comment
Share on other sites

I have some hole I am drilling that are very deep. We start with a jobber length drill then, go to two longer length drills.

I was wondering if there is a way to start drill #2 and #3 at the last drill point but retract to the top of the part. G code would be easiest.

 

 

Only way I've found to do it is to disable canned cycles in your post. Then it will post longhand.

Link to comment
Share on other sites

I have a macro I use for a Fadal control. One could do something similar for others.

 

 

N1O9000*DEEPHOLEDRILLING

N2*R1=STARTDEPTH

N3*R2=FINALDEPTH

N4*R3=PECKCLEARANCE

N5*R4=CLEARANCEAMOUNT

N6*R5=DRILLFEEDRATE

N7*R6=RETURNPOINT

N8#V1=R1

N9#V3=R3

N10#V3=ABS(V3)

N11#V4=R4

N12#V4=ABS(V4)

N13#V12=R2

N14#V1=V1+V4

N15#V2=V1-V3

N16#:DRILL

N17#IFV2<V12THENGOTO:FINALDRILL

N18#R1=V1

N19#R2=V2

N20G0Z+R6

N21G0Z+R1

N22G1Z+R2F+R5

N23G0Z+R6

N24#V1=V2+V4

N25#V2=V2-V3

N26#GOTO:DRILL

N27#:FINALDRILL

N28#R2=V12

N29G0Z+R1

N30G1Z+R2F+R5

N31G0Z+R6

N32M99

%

Link to comment
Share on other sites

On Fanuc or Pseudo-Fanuc controllers, set your clearance value to something above the part (i.e .1 absolute if your part is at Z0). Your retract height should be set to .1 above the last drilled depth in subsequent ops or same as Clearance in first op (i.e. if your first op drilled to -1.4 your second op would be set to -1.4). Top of stock is set to the drill depth of the previous op ( in this example 0 for first op) and depth is set to whatever you can reach with the tool in the given operation.

This will result in G98'2 being output on subsequent ops. The tool will rapid to that point, then rapid to the retract height (which will be in the part for subsequent ops) then will feed to depth and will rapid back out. Peck Drill ops (i.e G83) will peck and retract all the way out between pecks before rapiding back down into the hole, chip-brak ops (i.e G73 will only retract to the level set in retract height before rapiding back down).

 

i.e.

 

%

O0001(DRILL EXAMPLE)

G20

G0 G17 G40 G49 G80 G90

T1 M6

G0 G90 G54 X0. Y0. S2000 M3

G43 H1 Z.1

G99 G81 Z-1.5 R.1 F4.

G80

M5

G91 G28 Z0.

M01

T2 M6

G0 G90 G54 X0. Y0. S2000 M3

G43 H2 Z.1

G98 G81 Z-3. R-1.4 F4.

G80

M5

G91 G28 Z0.

M01

T3 M6

G0 G90 G54 X0. Y0. S2000 M3

G43 H3 Z.1

G98 G81 Z-5. R-2.9 F4.

G80

M5

G91 G28 Z0.

G28 X0. Y0.

M30

%

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...