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:

Limit drill feed in post - lathe


CNCGUY
 Share

Recommended Posts

Hey all,

 

I need to limit the feed rate on drills for a specific machine. Here is what I did in ldrill in the post (modified fanuc).

 

code:

 ldrill$          #Canned G81 drill cycle, lathe

pdrlcommonb

if feed > 0.008, feed = 0.008

[

pcan1, pbld, n$, *sg80_f, "G99", prdrlout, pfzout, pffr, strcantext, e$

]

if initht$ > refht$, pbld, n$, sg00, "Z.1", e$

pcom_movea

It worked in V9 but wont work in X. Infact, the drill cycle wont even post. Any ideas on what I need to change?

Link to comment
Share on other sites

code:

G0 T6161

G18

G97 S200 M03

G0 G54 X0. Z.25 M8

G81 G99 R.1 Z.25 F.008

G0 Z.1

M9

G28 U0. V0. W0. M05

T6100

works for me

 

headscratch.gif

 

this is how I have it

 

code:

if feed > 0.008, feed = 0.008      

[

pcan1, pbld, n$, *sg80_f, "G99", prdrlout, pfzout, pffr, strcantext, e$

]

if initht$ > refht$, pbld, n$, sg00, "Z.1", e$

pcom_movea

Link to comment
Share on other sites

O.K. You have forced me to dig deeper (thats a good thing). redface.gif It does work for anything over .008 but will not work for .008 or less.

code:

N5  (.718 SPADE DRILL - HSS)

G00 G53 X0. Z-30.

G54

G97 S652 M03

T5

G00 X0. Z.1

M09

I guess my question now is - How do I get it to post properly if the value is .008 or less?

Link to comment
Share on other sites

Paul,

 

I did see that the brackets didn't need to be there but I tried it both ways and just left his logic, as it it did work.

 

Is there an overiding reason in that the logic shouldn't work?

Link to comment
Share on other sites

Removing the brackets didnt make difference. This is the only way I could get it to work.

code:

 ldrill$          #Canned G81 drill cycle, lathe

pdrlcommonb

if feed > 0.008, feed = 0.008,

else, feed = feed

pcan1, pbld, n$, *sg80_f, "G99", prdrlout, pfzout, pffr, strcantext, e$

if initht$ > refht$, pbld, n$, sg00, "Z.1", e$

pcom_movea

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

CNCGUY, you still have a logic problem. The comma (,) after the feed = 0.008 is not valid with the else on the next line.

 

code:

ldrill$          #Canned G81 drill cycle, lathe

pdrlcommonb

if feed > 0.008, feed = 0.008,

else, feed = feed

pcan1, pbld, n$, *sg80_f, "G99", prdrlout, pfzout, pffr, strcantext, e$

if initht$ > refht$, pbld, n$, sg00, "Z.1", e$

pcom_movea

Fix your loigic problem and try again. This time check your error log (.err) and make sure there are NOT any other MP related problems with syntax first.

 

Then start trouble shooting the values, your logic condition and ops being used.

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