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:

HELP with drilling cycle


camgeneration
 Share

Recommended Posts

can someone please tell me why if i run this code alone the drill goes to the initial height between holes(1"), but if part of a bigger program is stays at final z depth between holes, (scraps centerdrill and part) banghead.gifcurse.gifbanghead.gifcurse.gif

N1 G00 G17 G20 G40 G80 G61.1 G90

N9010 M01

N9011 M08

N9012 T1 T3 M06 (DEFINE TOOL NAMES)

N9013 (MAX - Z1.)

N9014 (MIN - Z-1.412)

N9015 G00 G90 G55 X1.375 Y-1.188 S10000 M03

N9016 G43 H1 Z1.

N9017 G98 G82 Z-1.412 R-1.212 F30.

N9018 X.5

N9019 X4.33 Y-1.718

N9020 Y-.588

N9021 X6.017 Y-1.718

N9022 Y-.588

N9023 G80

N9024 M09

N9025 M05

I am running a mazak nexus 510c hs

Link to comment
Share on other sites

There is nothing in that code or anycode that I am aware of will make a drill stay at the final Z height. The retract motion is built into the machine canned cycle, you simply define where it goes.

 

Make sure the "use clearance only on first and last holes" is unchecked and make sure your retract plane and clearnace heights will clear the part.

Link to comment
Share on other sites

here is some of the code from before the drill cycle of the bigger program(it's part of a 3d program so i'm only posting the tail end.

N8995 X5.9211 Z-1.5833

N8996 X5.9029 Z-1.5793

N8997 X5.8849 Z-1.5747

N8998 X5.8671 Z-1.5694

N8999 X5.8495 Z-1.5634

N9000 X5.8321 Z-1.5568

N9001 X5.8284 Z-1.5554

N9002 X5.8246 Z-1.5544

N9003 X5.8208 Z-1.5536

N9004 G00 Z-1.4535

N9005 Y-2.4377 Z.5

N9006 Y-2.4378

N9007 M09

N9008 M05

N9009 G91 G28 Z0.

N9010 M01

N9011 M08

N9012 T1 T3 M06 (DEFINE TOOL NAMES)

N9013 (MAX - Z1.)

N9014 (MIN - Z-1.412)

N9015 G00 G90 G55 X1.375 Y-1.188 S10000 M03

N9016 G43 H1 Z1.

N9017 G98 G82 Z-1.412 R-1.212 F30.

N9018 X.5

N9019 X4.33 Y-1.718

N9020 Y-.588

N9021 X6.017 Y-1.718

N9022 Y-.588

N9023 G80

N9024 M09

N9025 M05

N9026 G91 G28 Z0.

N9027 M01

N9028 M08

N9029 T3 T2 M06 (DEFINE TOOL NAMES)

N9030 (MAX - Z1.)

N9031 (MIN - Z-2.4691)

N9032 G00 G90 G55 X4.33 Y-.588 S2000 M03

N9033 G43 H3 Z1.

N9034 G98 G73 Z-2.4691 R-1.212 Q.25 F10.

N9035 Y-1.718

N9036 X6.017 Y-.588

N9037 Y-1.718

N9038 G80

N9039 M09

N9040 M05

N9041 G91 G28 Z0.

N9042 M01

N9043 M08

when i just pull the code out of the big program and run it by it's self, it does as it should, but as run as above (the same code rember) it stays at z -1.412, the stock starts at z-1.312. I am looking right at the programming manual from mazak and it looks right???? banghead.gif

Link to comment
Share on other sites

it was originaly g81, which mazak calls spot drill, and only allows x,y,r,z doesn't even list feed rate as an option. I changed to g82 which is listed as drilling with the options for dwell and feedrate override for a final distance (I). both g81 and g82 do the same thing on the machine, ok by itself, milling across the part untill the tool breaks if part of a bigger program. g82 actually has a extra variable D which is distance from R to start of cutting. It is allowed to be omitted, and since i don't know how to modify the post to add this distance variable, i was allowing the start drilling point and the reference plane to be the same. just set it above the surface .1".

Link to comment
Share on other sites

No ,really ,it is my fault .

Sorry .

I was in hurry ,working ,some heavy stuff and very

silly too (designer is dumba$$ )

I had no time to read very nessasary information and replies ,I thought this is a drill code ,why on earth the guy would post nonreliable code .

Next time I would be more accurate .

And cautious .

 

Sorry one more time .

My fault .

Nevermore

Link to comment
Share on other sites

can someone please tell me why if i run this code alone the drill goes to the initial height between holes(1"), but if part of a bigger program is stays at final z depth between holes, (scraps centerdrill and part)

~~~~~~~~~~~~~~~~~~~

But if this is g18 it will move on Y axis

BTW ,in my deckel-maho you need to call g18 any time after the toolchange due to some parameter ,THAT ALLWAYS RESET IT TO G17 AT TOOLCHANGE (M6 actually macro program ,so no wonder )

May be you have such an option on your MAZAK TOO ?

Link to comment
Share on other sites

I will look to see if there is a parameter, i kind of doubt it though, it definitly does not reset now. i think the machine gets confused with a g18 and a drill cycle, doesn't do it either way right. Didn't want to be nasty either but after a lot of stress and time getting the post edit free, and to have tools and workpieces scraped i was not a happy camper. it all comes out of my wallet being my own shop, and times for me are hard enough already without extra expenses and time.

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