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:

Lathe Canned Rough Output is Wrong


Recommended Posts

Hi,

 

I put together a program with a rough canned cycle for cutting the OD of a part on our HAAS TL-1, but when I go to post the program - it outputs opposite of what I want. I enter that I would like to leave .010" per side on the part for finishing in the "Stock to leave in X (U)" box, but instead I get the coding below. This is useable as is with some manual modification, but I would like to correct the problem so in the future it will output correctly. I've also attached a screen shot of mastercam prior to generating this code.

 

N110 G0 T0101

N120 G97 S969 M03

N130 G0 G54 X1.325 Z.1

N140 G50 S1800

N150 G96 S336

N560 G71 U.04 R.01

N570 G71 P580 Q690 U-.02 W.002 F.0048

N580 G0 G41 X.8325 S336

N590 G1 Z-.0079

N600 X.8641 Z-.0237

N610 G3 X.875 Z-.0369 I-.0131 K-.0132

N620 G1 X.8759 Z-1.1225

N630 G2 X.8838 Z-1.125 I.004 K.0019

N640 G1 X1.0515

N650 G3 X1.0779 Z-1.1305 K-.0186

N660 G1 X1.1142 Z-1.1487

N670 G3 X1.125 Z-1.1619 I-.0132 K-.0131

N680 G1 Z-1.405

N690 G40 X1.325

N700 G0 Z.1

N830 G28 U0. W0. M05

N840 T0100

N850 M30

 

Thanks for the help!

Bret

post-46377-0-61658000-1399573003_thumb.png

Link to comment
Share on other sites

not an expert on haas lathes but looking at your screen shot you have the comp

set to wear. when ever i use the canned cycles i turn the comp to off.

that way the numbers match the print.

then i do a seperate finish pass with the comp on set to control.

it maybe doing that because your tool might have comp to the center of the radius

not the z/x edges.

 

HTH Ken

Link to comment
Share on other sites

[Maybe I am mistaken for a Haas lathe, but shouldn't the rough direction be on the other side of the part?]

 

after taking closer look at your settings i also noticed that you have the comp direction to the left.

not sure but i think that should be to the right. that might giving you the "u-.02".

 

Ken

Link to comment
Share on other sites

Thanks for the input everyone!

  • I just tried turning the comp off - no change in output

  • I tried adjusting comp from left to right and vice versa with comp on and off - no change in output

 

This lathe is basically a glorified engine lathe with servo motors installed - it uses a standard Aloris tool post. When I enter my value (in this instance .01") into the box (stock I want to leave in X) in mastercam, it generates the actual lines of code down at the lower left of the screen (or at least what should be the correct lines). But when I go to process, they generate incorrect. I notice above that box it states: "The actual NC Output depends on the post processor". Is there a value in the post that controls whether it generates as a positive or negative value? If I enter the a negative value in mastercam for what I want to leave - it generates as a positive value. For right now - I will just cheat and change the program to suit - but I would like to get this figured out.

 

Once again,

Thanks for the help!

Bret

Link to comment
Share on other sites

not sure what your tool path looks like, but if you look at your posted code " N130 X1.325"

and your screen shot shows "X-1.325" per "tozmasters" post maybe try switching sides

in the roughing pattern.

also "N590 G1 Z-.0079" is this correct if not it might be how the rad. is defined on your tool,

compted to the center not the edges.

most od paths in mc are usually programed on the X+ sidein mc.

not as you would always see them in relation to how the machine is orintated.

 

Ken

Link to comment
Share on other sites

I just recently had the same problem, in a way--whenever I would do a canned rough with a boring bar, the U value would be negative. On our Okumas, the value has to always be a positive.

 

I made this change in my post:

 

in the lathe canned cycle end postblock prcc_call_end$,

find the line xstckcc = xstckcc * xmult4 * lccdirx

and change it to xstckcc = abs(xstckcc * xmult4 * lccdirx)

 

(labels may be different depending on your post)

 

Also, I'm not sure if you are asking about the stock to leave, but .010" per side is .020" in radial, so that number is correct. I'm sure you know that, I just wanted to make sure it was said. If that's not right depending on your machine, the problem is the multiplier (xmult4 in the above code.)

Link to comment
Share on other sites
  • 3 weeks later...

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